openai-streams
Advanced tools
Comparing version 5.1.1 to 5.1.2-canary.0
{ | ||
"name": "openai-streams", | ||
"description": "Tools for working with OpenAI streams in Node.js and TypeScript.", | ||
"version": "5.1.1", | ||
"version": "5.1.2-canary.0", | ||
"license": "MIT", | ||
@@ -24,26 +24,25 @@ "type": "module", | ||
"scripts": { | ||
"canary": "yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary", | ||
"dev": "tsmodule dev", | ||
"docs": "yarn typedoc src", | ||
"build": "tsmodule build", | ||
"postbuild": "yarn docs", | ||
"test": "yarn build && ava", | ||
"export-docs": "pnpm typedoc src", | ||
"export": "tsmodule build", | ||
"build": "pnpm export && pnpm export-docs", | ||
"test": "pnpm export && ava", | ||
"retest": "ava", | ||
"prepublishOnly": "yarn test", | ||
"prepublishOnly": "pnpm test", | ||
"lint": "eslint src --fix" | ||
}, | ||
"devDependencies": { | ||
"@tsmodule/tsmodule": "^42.1.0", | ||
"@types/node": "^18.14.4", | ||
"@typescript-eslint/eslint-plugin": "^5.54.0", | ||
"@typescript-eslint/parser": "^5.54.0", | ||
"@tsmodule/tsmodule": "^44.5.0", | ||
"@types/node": "^20.1.1", | ||
"@typescript-eslint/eslint-plugin": "^5.59.5", | ||
"@typescript-eslint/parser": "^5.59.5", | ||
"ava": "^5.2.0", | ||
"eslint": "^8.35.0", | ||
"eslint": "^8.40.0", | ||
"openai": "^3.2.1", | ||
"typedoc": "^0.23.26", | ||
"typescript": "^4.9.5" | ||
"typedoc": "^0.24.7", | ||
"typescript": "^5.0.4" | ||
}, | ||
"dependencies": { | ||
"dotenv": "^16.0.3", | ||
"eventsource-parser": "^0.1.0", | ||
"eventsource-parser": "^1.0.0", | ||
"yield-stream": "^3.0.0" | ||
@@ -50,0 +49,0 @@ }, |
@@ -126,6 +126,4 @@ # OpenAI Streams | ||
<sub>See the example in | ||
[`example/src/pages/api/hello.ts`](https://github.com/SpellcraftAI/openai-streams/blob/master/src/pages/api/hello.ts).</sub> | ||
<sub>See also | ||
[`src/pages/api/demo.ts`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/api/demo.ts) | ||
in `nextjs-openai`.</sub> | ||
[`example/src/pages/api/hello.ts`](https://github.com/SpellcraftAI/openai-streams/blob/master/example/src/pages/api/hello.ts).</sub> | ||
<sub> | ||
@@ -174,2 +172,2 @@ #### Use with ChatGPT API | ||
(const chunk of yieldStream(stream)) { ... }`. We recommend following this | ||
pattern if you find it intuitive. | ||
pattern if you find it intuitive. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75770
1
172
+ Addedeventsource-parser@1.1.2(transitive)
- Removedeventsource-parser@0.1.0(transitive)
Updatedeventsource-parser@^1.0.0