Merge pull request #38 from transitive-bullshit/feature/native-fetch-and-edge-support
Showing
| ... | ... | @@ -10,6 +10,7 @@ |
| "types": "./build/index.d.ts", | ||
| "exports": { | ||
| ".": { | ||
| "browser": "./build/browser/index.js", | ||
| "import": "./build/index.js", | ||
| "types": "./build/index.d.ts", | ||
| "default": "./build/index.js" | ||
| ... | ... | @@ -19,13 +20,14 @@ |
| "build" | ||
| ], | ||
| "engines": { | ||
| "node": ">=14" | ||
| "node": ">=16.8" | ||
| }, | ||
| "scripts": { | ||
| "build": "tsup", | ||
| "dev": "tsup --watch", | ||
| "clean": "del build", | ||
| "prebuild": "run-s clean", | ||
| "postbuild": "[ -n CI ] && sed -i '' 's/ *\\?\\? *(await import(\"undici\")).fetch//' build/browser/index.js || echo 'skipping postbuild on CI'", | ||
| "predev": "run-s clean", | ||
| "pretest": "run-s build", | ||
| "docs": "typedoc", | ||
| ... | ... | @@ -38,7 +40,7 @@ |
| "dependencies": { | ||
| "eventsource-parser": "^0.0.5", | ||
| "expiry-map": "^2.0.0", | ||
| "node-fetch": "2", | ||
| "p-timeout": "^6.0.0", | ||
| "remark": "^14.0.2", | ||
| "strip-markdown": "^5.0.0", | ||
| "uuid": "^9.0.0" | ||
| ... | ... | @@ -46,7 +48,6 @@ |
| "devDependencies": { | ||
| "@trivago/prettier-plugin-sort-imports": "^4.0.0", | ||
| "@types/node": "^18.11.9", | ||
| "@types/node-fetch": "2", | ||
| "@types/uuid": "^9.0.0", | ||
| "ava": "^5.1.0", | ||
| "del-cli": "^5.0.0", | ||
| ... | ... | @@ -62,6 +63,9 @@ |
| "typedoc-plugin-markdown": "^3.13.6", | ||
| "typescript": "^4.9.3" | ||
| }, | ||
| "optionalDependencies": { | ||
| "undici": "^5.13.0" | ||
| }, | ||
| "lint-staged": { | ||
| "*.{ts,tsx}": [ | ||
| "prettier --write" | ||
| ... | ... |
This diff is collapsed.
src/chatgpt-conversation.ts
0 → 100644
Please register or sign in to comment