forked from openai/openai-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
118 lines (118 loc) · 3.48 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
{
"name": "openai",
"version": "4.13.0",
"description": "Client library for the OpenAI API",
"author": "OpenAI <support@openai.com>",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"type": "commonjs",
"repository": "github:openai/openai-node",
"license": "Apache-2.0",
"private": false,
"sideEffects": [
"./_shims/index.js",
"./_shims/index.mjs",
"./shims/node.js",
"./shims/node.mjs",
"./shims/web.js",
"./shims/web.mjs"
],
"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"
}
},
"scripts": {
"test": "bin/check-test-server && yarn jest",
"build": "bash ./build",
"prepack": "echo 'to pack, run yarn build && (cd dist; yarn pack)' && exit 1",
"prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1",
"format": "prettier --write --cache --cache-strategy metadata . !dist",
"tsn": "ts-node -r tsconfig-paths/register",
"lint": "eslint --ext ts,js .",
"fix": "eslint --fix --ext ts,js .",
"postpublish": "bash scripts/git-publish-deno.sh"
},
"dependencies": {
"@types/node": "^18.11.18",
"@types/node-fetch": "^2.6.4",
"abort-controller": "^3.0.0",
"agentkeepalive": "^4.2.1",
"digest-fetch": "^1.3.0",
"form-data-encoder": "1.7.2",
"formdata-node": "^4.3.2",
"node-fetch": "^2.6.7",
"web-streams-polyfill": "^3.2.1"
},
"devDependencies": {
"@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": "^4.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"jest": "^29.4.0",
"openai": "link:.",
"prettier": "rattrayalex/prettier#postfix-ternaries",
"ts-jest": "^29.1.0",
"ts-morph": "^19.0.0",
"ts-node": "^10.5.0",
"tsc-multi": "^1.1.0",
"tsconfig-paths": "^4.0.0",
"typescript": "^4.8.2"
},
"bin": "./bin/cli"
}