Merge branch 'main' into patch-2
Showing
docs/classes/ChatGPTError.md
0 → 100644
This diff is collapsed.
This diff is collapsed.
{ | { | ||
"name": "chatgpt", | "name": "chatgpt", | ||
"version": "2.0.5", | "version": "2.3.2", | ||
"description": "Node.js client for the unofficial ChatGPT API.", | "description": "Node.js client for the unofficial ChatGPT API.", | ||
"author": "Travis Fischer <travis@transitivebullsh.it>", | "author": "Travis Fischer <travis@transitivebullsh.it>", | ||
"repository": "transitive-bullshit/chatgpt-api", | "repository": "transitive-bullshit/chatgpt-api", | ||
... | @@ -10,7 +10,6 @@ | ... | @@ -10,7 +10,6 @@ |
"types": "./build/index.d.ts", | "types": "./build/index.d.ts", | ||
"exports": { | "exports": { | ||
".": { | ".": { | ||
"browser": "./build/browser/index.js", | |||
"import": "./build/index.js", | "import": "./build/index.js", | ||
"types": "./build/index.d.ts", | "types": "./build/index.d.ts", | ||
"default": "./build/index.js" | "default": "./build/index.js" | ||
... | @@ -20,21 +19,19 @@ | ... | @@ -20,21 +19,19 @@ |
"build" | "build" | ||
], | ], | ||
"engines": { | "engines": { | ||
"node": ">=16.8" | "node": ">=18" | ||
}, | }, | ||
"scripts": { | "scripts": { | ||
"build": "tsup", | "build": "tsup", | ||
"dev": "tsup --watch", | "dev": "tsup --watch", | ||
"clean": "del build", | "clean": "del build", | ||
"prebuild": "run-s clean", | "prebuild": "run-s clean", | ||
"postbuild": "[ -n CI ] && sed -i '' 's/await import(\"undici\")/null/' build/browser/index.js || echo 'skipping postbuild on CI'", | |||
"predev": "run-s clean", | "predev": "run-s clean", | ||
"pretest": "run-s build", | "pretest": "run-s build", | ||
"docs": "typedoc", | "docs": "typedoc", | ||
"prepare": "husky install", | "prepare": "husky install", | ||
"pre-commit": "lint-staged", | "pre-commit": "lint-staged", | ||
"test": "run-p test:*", | "test": "run-p test:*", | ||
"test:unit": "ava", | |||
"test:prettier": "prettier '**/*.{js,jsx,ts,tsx}' --check" | "test:prettier": "prettier '**/*.{js,jsx,ts,tsx}' --check" | ||
}, | }, | ||
"dependencies": { | "dependencies": { | ||
... | @@ -43,7 +40,10 @@ | ... | @@ -43,7 +40,10 @@ |
"p-timeout": "^6.0.0", | "p-timeout": "^6.0.0", | ||
"remark": "^14.0.2", | "remark": "^14.0.2", | ||
"strip-markdown": "^5.0.0", | "strip-markdown": "^5.0.0", | ||
"uuid": "^9.0.0" | "delay": "^5.0.0", | ||
"uuid": "^9.0.0", | |||
"puppeteer-extra": "^3.3.4", | |||
"puppeteer-extra-plugin-stealth": "^2.11.1" | |||
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"@trivago/prettier-plugin-sort-imports": "^4.0.0", | "@trivago/prettier-plugin-sort-imports": "^4.0.0", | ||
... | @@ -57,14 +57,15 @@ | ... | @@ -57,14 +57,15 @@ |
"npm-run-all": "^4.1.5", | "npm-run-all": "^4.1.5", | ||
"ora": "^6.1.2", | "ora": "^6.1.2", | ||
"prettier": "^2.8.0", | "prettier": "^2.8.0", | ||
"puppeteer": "^19.4.0", | |||
"tsup": "^6.5.0", | "tsup": "^6.5.0", | ||
"tsx": "^3.12.1", | "tsx": "^3.12.1", | ||
"typedoc": "^0.23.21", | "typedoc": "^0.23.21", | ||
"typedoc-plugin-markdown": "^3.13.6", | "typedoc-plugin-markdown": "^3.13.6", | ||
"typescript": "^4.9.3" | "typescript": "^4.9.3" | ||
}, | }, | ||
"optionalDependencies": { | "peerDependencies": { | ||
"undici": "^5.13.0" | "puppeteer": "*" | ||
}, | }, | ||
"lint-staged": { | "lint-staged": { | ||
"*.{ts,tsx}": [ | "*.{ts,tsx}": [ | ||
... | ... |
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
src/openai-auth.ts
0 → 100644
Please register or sign in to comment