Comparing version 4.0.0-beta.1 to 4.0.0-beta.2
111
package.json
{ | ||
"name": "openai", | ||
"version": "4.0.0-beta.1", | ||
"version": "4.0.0-beta.2", | ||
"description": "Client library for the OpenAI API", | ||
"author": "OpenAI <support@openai.com>", | ||
"types": "dist/cjs/index.d.ts", | ||
"main": "dist/cjs/index.js", | ||
"types": "./index.d.ts", | ||
"main": "./index.js", | ||
"type": "commonjs", | ||
@@ -12,80 +12,53 @@ "repository": "github:openai/openai-node", | ||
"private": false, | ||
"files": [ | ||
"dist", | ||
"resources", | ||
"_shims", | ||
"/*.ts" | ||
], | ||
"exports": { | ||
"./_shims/*": { | ||
"deno": { | ||
"require": { | ||
"types": "./dist/cjs/_shims/*.d.ts", | ||
"default": "./dist/cjs/_shims/*.js" | ||
}, | ||
"types": "./dist/esm/_shims/*.d.ts", | ||
"default": "./dist/esm/_shims/*.js" | ||
"types": "./_shims/*.d.ts", | ||
"require": "./_shims/*.js", | ||
"default": "./_shims/*.mjs" | ||
}, | ||
"browser": { | ||
"require": { | ||
"types": "./dist/cjs/_shims/*.d.ts", | ||
"default": "./dist/cjs/_shims/*.js" | ||
}, | ||
"types": "./dist/esm/_shims/*.d.ts", | ||
"default": "./dist/esm/_shims/*.js" | ||
"types": "./_shims/*.d.ts", | ||
"require": "./_shims/*.js", | ||
"default": "./_shims/*.mjs" | ||
}, | ||
"worker": { | ||
"require": { | ||
"types": "./dist/cjs/_shims/*.d.ts", | ||
"default": "./dist/cjs/_shims/*.js" | ||
}, | ||
"types": "./dist/esm/_shims/*.d.ts", | ||
"default": "./dist/esm/_shims/*.js" | ||
"types": "./_shims/*.d.ts", | ||
"require": "./_shims/*.js", | ||
"default": "./_shims/*.mjs" | ||
}, | ||
"workerd": { | ||
"require": { | ||
"types": "./dist/cjs/_shims/*.d.ts", | ||
"default": "./dist/cjs/_shims/*.js" | ||
}, | ||
"types": "./dist/esm/_shims/*.d.ts", | ||
"default": "./dist/esm/_shims/*.js" | ||
"types": "./_shims/*.d.ts", | ||
"require": "./_shims/*.js", | ||
"default": "./_shims/*.mjs" | ||
}, | ||
"node": { | ||
"require": { | ||
"types": "./dist/cjs/_shims/*.node.d.ts", | ||
"default": "./dist/cjs/_shims/*.node.js" | ||
}, | ||
"types": "./dist/esm/_shims/*.node.d.ts", | ||
"default": "./dist/esm/_shims/*.node.js" | ||
"types": "./_shims/*.node.d.ts", | ||
"require": "./_shims/*.node.js", | ||
"default": "./_shims/*.node.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/cjs/_shims/*.d.ts", | ||
"default": "./dist/cjs/_shims/*.js" | ||
}, | ||
"types": "./dist/esm/_shims/*.d.ts", | ||
"default": "./dist/esm/_shims/*.js" | ||
"types": "./_shims/*.d.ts", | ||
"require": "./_shims/*.js", | ||
"default": "./_shims/*.mjs" | ||
}, | ||
".": { | ||
"require": { | ||
"types": "./dist/cjs/index.d.ts", | ||
"default": "./dist/cjs/index.js" | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"types": "./dist/esm/index.d.ts", | ||
"default": "./dist/esm/index.js" | ||
"types": "./index.d.mts", | ||
"default": "./index.mjs" | ||
}, | ||
"./*": { | ||
"require": { | ||
"types": "./dist/cjs/*.d.ts", | ||
"require": "./dist/cjs/*.js" | ||
}, | ||
"types": "./dist/esm/*.d.ts", | ||
"default": "./dist/esm/*.js" | ||
"types": "./*.d.ts", | ||
"require": "./*.js", | ||
"default": "./*.mjs" | ||
}, | ||
"./*.js": { | ||
"require": { | ||
"types": "./dist/cjs/*.d.ts", | ||
"require": "./dist/cjs/*.js" | ||
}, | ||
"types": "./dist/esm/*.d.ts", | ||
"default": "./dist/esm/*.js" | ||
"types": "./*.d.ts", | ||
"default": "./*.js" | ||
}, | ||
"./*.mjs": { | ||
"types": "./*.d.ts", | ||
"default": "./*.mjs" | ||
} | ||
@@ -96,3 +69,2 @@ }, | ||
"build": "bash ./build", | ||
"prepack": "yarn build", | ||
"format": "prettier --write .", | ||
@@ -113,18 +85,3 @@ "tsn": "ts-node -r tsconfig-paths/register", | ||
"qs": "^6.10.3" | ||
}, | ||
"devDependencies": { | ||
"openai": "link:.", | ||
"@types/jest": "^29.4.0", | ||
"@typescript-eslint/eslint-plugin": "^5.33.0", | ||
"@typescript-eslint/parser": "^5.33.0", | ||
"eslint": "^8.22.0", | ||
"eslint-plugin-unused-imports": "^2.0.0", | ||
"jest": "^29.4.0", | ||
"prettier": "rattrayalex/prettier#postfix-ternaries", | ||
"ts-jest": "^29.1.0", | ||
"ts-node": "^10.5.0", | ||
"tsc-alias": "^1.6.9", | ||
"tsconfig-paths": "^3.12.0", | ||
"typescript": "^4.8.2" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
5
6
499760
250
9783
1
0