-
Notifications
You must be signed in to change notification settings - Fork 318
/
Copy pathpackage.json
148 lines (148 loc) · 5.41 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
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"name": "tus-js-client",
"version": "5.0.0-pre1",
"description": "A pure JavaScript client for the tus resumable upload protocol",
"type": "module",
"main": "./lib.cjs/browser/index.js",
"types": "./lib.cjs/browser/index.d.ts",
"module": "./lib.esm/browser/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"node": {
"import": {
"types": "./lib.esm/node/index.d.ts",
"default": "./lib.esm/node/index.js"
},
"require": {
"types": "./lib.cjs/node/index.d.ts",
"default": "./lib.cjs/node/index.js"
}
},
"default": {
"import": {
"types": "./lib.esm/browser/index.d.ts",
"default": "./lib.esm/browser/index.js"
},
"require": {
"types": "./lib.cjs/browser/index.d.ts",
"default": "./lib.cjs/browser/index.js"
}
}
},
"./node/sources/StreamFileSource": {
"import": {
"types": "./lib.esm/node/sources/StreamFileSource.d.ts",
"default": "./lib.esm/node/sources/StreamFileSource.js"
},
"require": {
"types": "./lib.cjs/node/sources/StreamFileSource.d.ts",
"default": "./lib.cjs/node/sources/StreamFileSource.js"
}
},
"./node/FileUrlStorage": {
"import": {
"types": "./lib.esm/node/FileUrlStorage.d.ts",
"default": "./lib.esm/node/FileUrlStorage.js"
},
"require": {
"types": "./lib.cjs/node/FileUrlStorage.d.ts",
"default": "./lib.cjs/node/FileUrlStorage.js"
}
},
"./node/NodeHttpStack": {
"import": {
"types": "./lib.esm/node/NodeHttpStack.d.ts",
"default": "./lib.esm/node/NodeHttpStack.js"
},
"require": {
"types": "./lib.cjs/node/NodeHttpStack.d.ts",
"default": "./lib.cjs/node/NodeHttpStack.js"
}
},
"./browser/FetchHttpStack": {
"import": {
"types": "./lib.esm/browser/FetchHttpStack.d.ts",
"default": "./lib.esm/browser/FetchHttpStack.js"
},
"require": {
"types": "./lib.cjs/browser/FetchHttpStack.d.ts",
"default": "./lib.cjs/browser/FetchHttpStack.js"
}
}
},
"files": ["lib.cjs/", "lib.esm/", "dist/", "node", "browser"],
"engines": {
"node": ">=18"
},
"repository": {
"type": "git",
"url": "https://github.com/tus/tus-js-client.git"
},
"keywords": ["tus", "resumable", "upload", "protocol", "progress", "file", "browser"],
"license": "MIT",
"bugs": {
"url": "https://github.com/tus/tus-js-client/issues"
},
"homepage": "https://github.com/tus/tus-js-client",
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.3",
"@biomejs/biome": "^1.7.3",
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-typescript": "^12.1.2",
"@types/lodash.throttle": "^4.1.9",
"@types/proper-lockfile": "^4.1.4",
"@types/url-parse": "^1.4.11",
"chokidar-cli": "^3.0.0",
"into-stream": "^6.0.0",
"jasmine": "^5.1.0",
"jasmine-ajax": "^4.0.0",
"jasmine-core": "^5.1.1",
"karma": "^6.4.0",
"karma-browserstack-launcher": "^1.6.0",
"karma-chrome-launcher": "^3.1.1",
"karma-jasmine": "^5.1.0",
"npm-run-all": "^4.1.5",
"publint": "^0.3.2",
"puppeteer": "^22.3.0",
"rollup": "^4.30.1",
"temp": "^0.9.4",
"throttle": "^1.0.3",
"typescript": "^5.4.5",
"uglify-js": "^3.9.2"
},
"dependencies": {
"@types/node": "^20.12.12",
"buffer-from": "^1.1.2",
"combine-errors": "^3.0.3",
"is-stream": "^2.0.0",
"js-base64": "^3.7.2",
"lodash.throttle": "^4.1.1",
"proper-lockfile": "^4.1.2",
"url-parse": "^1.5.7"
},
"scripts": {
"clean": "rm -rf dist lib.cjs lib.esm",
"build-exports": "node scripts/setup-exports.js",
"build-test-bundle": "mkdir -p dist && rollup test/spec/browser-index.js --format iife --sourcemap --plugin node-resolve --plugin commonjs --file dist/browser-test-bundle.js",
"build-bundle": "mkdir -p dist && rollup lib/browser/index.ts --format umd --name tus --plugin typescript --plugin node-resolve --plugin commonjs --file ./dist/tus.js --sourcemap --sourcemapFile ./dist/tus.js.map",
"build-minify": "uglifyjs ./dist/tus.js -o ./dist/tus.min.js --compress --mangle --source-map \"content='./dist/tus.js.map',url='tus.min.js.map'\"",
"build-transpile-esm": "tsc --project tsconfig-esm.json && echo '{\"type\":\"module\"}' > lib.esm/package.json",
"build-transpile-cjs": "tsc --project tsconfig-cjs.json && echo '{\"type\":\"commonjs\"}' > lib.cjs/package.json",
"build-transpile": "npm-run-all build-transpile-esm build-transpile-cjs",
"build": "npm-run-all clean build-transpile build-bundle build-minify build-test-bundle",
"watch-bundle": "chokidar --initial \"lib/**/*\" -c \"npm run build-bundle\"",
"watch-test-bundle": "chokidar --initial \"test/spec/**/*\" -c \"npm run build-test-bundle\"",
"watch-transpile": "chokidar --initial \"lib/**/*\" -c \"npm run build-transpile\"",
"watch": "npm-run-all --parallel watch-*",
"test-puppeteer": "karma start test/karma/puppeteer.conf.cjs",
"test-browserstack": "karma start test/karma/browserstack.conf.cjs",
"test-node": "jasmine test/spec/node-index.js",
"lint-code": "biome check .",
"lint-package": "publint --pack npm",
"lint-type-exports": "attw --pack .",
"lint": "npm-run-all lint-*",
"fix": "biome check --write ."
}
}