-
Notifications
You must be signed in to change notification settings - Fork 874
/
package.json
135 lines (135 loc) · 3.69 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"name": "openai",
"version": "4.73.0",
"description": "The official TypeScript library for the OpenAI API",
"author": "OpenAI <[email protected]>",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"type": "commonjs",
"repository": "github:openai/openai-node",
"license": "Apache-2.0",
"packageManager": "[email protected]",
"files": [
"**/*"
],
"private": false,
"scripts": {
"test": "./scripts/test",
"build": "./scripts/build",
"prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1",
"format": "prettier --write --cache --cache-strategy metadata . !dist",
"prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build; fi",
"tsn": "ts-node -r tsconfig-paths/register",
"lint": "./scripts/lint",
"fix": "./scripts/format"
},
"dependencies": {
"@types/node": "^18.11.18",
"@types/node-fetch": "^2.6.4",
"abort-controller": "^3.0.0",
"agentkeepalive": "^4.2.1",
"form-data-encoder": "1.7.2",
"formdata-node": "^4.3.2",
"node-fetch": "^2.6.7"
},
"devDependencies": {
"@swc/core": "^1.3.102",
"@swc/jest": "^0.2.29",
"@types/jest": "^29.4.0",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"eslint": "^8.49.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-unused-imports": "^3.0.0",
"iconv-lite": "^0.6.3",
"fast-check": "^3.22.0",
"jest": "^29.4.0",
"prettier": "^3.0.0",
"prettier-2": "npm:prettier@^2",
"ts-jest": "^29.1.0",
"ts-node": "^10.5.0",
"tsc-multi": "^1.1.0",
"tsconfig-paths": "^4.0.0",
"typescript": "^4.8.2",
"zod": "^3.23.8"
},
"sideEffects": [
"./_shims/index.js",
"./_shims/index.mjs",
"./shims/node.js",
"./shims/node.mjs",
"./shims/web.js",
"./shims/web.mjs"
],
"imports": {
"openai": ".",
"openai/*": "./src/*"
},
"exports": {
"./_shims/auto/*": {
"deno": {
"types": "./dist/_shims/auto/*.d.ts",
"require": "./dist/_shims/auto/*.js",
"default": "./dist/_shims/auto/*.mjs"
},
"bun": {
"types": "./dist/_shims/auto/*.d.ts",
"require": "./dist/_shims/auto/*-bun.js",
"default": "./dist/_shims/auto/*-bun.mjs"
},
"browser": {
"types": "./dist/_shims/auto/*.d.ts",
"require": "./dist/_shims/auto/*.js",
"default": "./dist/_shims/auto/*.mjs"
},
"worker": {
"types": "./dist/_shims/auto/*.d.ts",
"require": "./dist/_shims/auto/*.js",
"default": "./dist/_shims/auto/*.mjs"
},
"workerd": {
"types": "./dist/_shims/auto/*.d.ts",
"require": "./dist/_shims/auto/*.js",
"default": "./dist/_shims/auto/*.mjs"
},
"node": {
"types": "./dist/_shims/auto/*-node.d.ts",
"require": "./dist/_shims/auto/*-node.js",
"default": "./dist/_shims/auto/*-node.mjs"
},
"types": "./dist/_shims/auto/*.d.ts",
"require": "./dist/_shims/auto/*.js",
"default": "./dist/_shims/auto/*.mjs"
},
".": {
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"./*.mjs": {
"types": "./dist/*.d.ts",
"default": "./dist/*.mjs"
},
"./*.js": {
"types": "./dist/*.d.ts",
"default": "./dist/*.js"
},
"./*": {
"types": "./dist/*.d.ts",
"require": "./dist/*.js",
"default": "./dist/*.mjs"
}
},
"bin": "./bin/cli",
"peerDependencies": {
"zod": "^3.23.8"
},
"peerDependenciesMeta": {
"zod": {
"optional": true
}
}
}