UNPKG

tus-js-client

Version:

A pure JavaScript client for the tus resumable upload protocol

86 lines (85 loc) 3.53 kB
{ "name": "tus-js-client", "version": "4.3.1", "description": "A pure JavaScript client for the tus resumable upload protocol", "main": "lib.es5/node/index.js", "module": "lib.esm/node/index.js", "files": ["lib/**/*", "lib.es5/**/*", "lib.esm/**/*", "dist/**/*", "lib/index.d.ts"], "browser": { "./lib.es5/node/index.js": "./lib.es5/browser/index.js", "./lib.esm/node/index.js": "./lib.esm/browser/index.js", "./lib/node/index.js": "./lib/browser/index.js" }, "types": "./lib/index.d.ts", "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": { "@babel/cli": "^7.0.0", "@babel/core": "^7.13.10", "@babel/helper-get-function-arity": "^7.16.7", "@babel/plugin-syntax-jsx": "^7.12.13", "@babel/plugin-transform-modules-commonjs": "^7.9.6", "@babel/preset-env": "^7.0.0", "@biomejs/biome": "^1.7.3", "axios": "^0.28.0", "babelify": "^10.0.0", "browserify": "^17.0.0", "chokidar-cli": "^3.0.0", "exorcist": "^2.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", "puppeteer": "^22.3.0", "regenerator-runtime": "^0.14.0", "temp": "^0.9.4", "throttle": "^1.0.3", "tsd": "0.31.0", "uglify-js": "^3.9.2" }, "dependencies": { "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.es5 lib.esm", "build-test-bundle": "mkdir -p dist && browserify test/spec/browser-index.js -t [ babelify --plugins [ @babel/transform-modules-commonjs ] ] -d -o dist/browser-test-bundle.js", "build-bundle": "mkdir -p dist && browserify lib/browser/index.js -t [ babelify --plugins [ @babel/transform-modules-commonjs ] ] -s tus -d | exorcist ./dist/tus.js.map > dist/tus.js", "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": "babel -d lib.esm/ lib/", "build-transpile-cjs": "babel --no-babelrc --plugins @babel/transform-modules-commonjs -d lib.es5/ lib.esm/", "build-transpile": "npm-run-all build-transpile-esm build-transpile-cjs", "build": "npm-run-all clean build-bundle build-minify build-transpile 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.js", "test-browserstack": "karma start test/karma/browserstack.conf.js", "test-node": "jasmine test/spec/node-index.js", "test-types": "tsd", "lint": "biome check .", "fix": "biome check --apply ." } }