UNPKG

tus-js-client-stall-detection

Version:

A pure JavaScript client for the tus resumable upload protocol

164 lines (163 loc) 5.66 kB
{ "name": "tus-js-client-stall-detection", "version": "5.0.0-alpha.12", "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/NodeStreamFileSource": { "import": { "types": "./lib.esm/node/sources/NodeStreamFileSource.d.ts", "default": "./lib.esm/node/sources/NodeStreamFileSource.js" }, "require": { "types": "./lib.cjs/node/sources/NodeStreamFileSource.d.ts", "default": "./lib.cjs/node/sources/NodeStreamFileSource.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/", "lib.cjs/", "lib.esm/", "dist/", "node/", "browser/" ], "engines": { "node": ">=20" }, "repository": { "type": "git", "url": "git+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": "^24.1.1", "rollup": "^4.30.1", "temp": "^0.9.4", "throttle": "^1.0.3", "typescript": "^5.4.5", "uglify-js": "^3.9.2" }, "dependencies": { "@types/node": "^22.13.0", "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 ." } }