UNPKG

@twilio/voice-sdk

Version:
129 lines (128 loc) 4.38 kB
{ "name": "@twilio/voice-sdk", "version": "2.17.0", "description": "Twilio's JavaScript Voice SDK", "main": "./es5/twilio.js", "module": "./esm/twilio.js", "types": "./es5/twilio.d.ts", "license": "Apache-2.0", "keywords": [ "twilio", "client", "sdk", "voice", "voip" ], "engines": { "node": ">= 12" }, "exports": { ".": { "import": "./esm/twilio.js", "require": "./es5/twilio.js" } }, "repository": { "type": "git", "url": "git@github.com:twilio/twilio-voice.js.git" }, "scripts": { "build": "npm-run-all clean build:constants build:errors docs:ts build:ts build:dist build:dist-min", "build:errors": "node ./scripts/errors.js", "build:dev": "ENV=dev npm run build", "build:dist": "node ./scripts/build.js ./lib/browser.js ./LICENSE.md ./dist/twilio.js", "build:dist-min": "uglifyjs ./dist/twilio.js -o ./dist/twilio.min.js --comments \"/^! twilio-voice.js/\" -b beautify=false,ascii_only=true", "build:release": "npm-run-all lint build test:es5 test:esm status", "build:ts": "rollup -c", "build:constants": "node ./scripts/constants.js", "clean": "rimraf ./coverage ./dist ./es5 ./esm ./reports", "coverage": "nyc ./node_modules/mocha/bin/mocha -r ts-node/register ./tests/index.ts", "coverage:check": "nyc check-coverage --lines 60 --branches 60 --functions 60", "docs:clean": "rimraf ./docs", "docs:js": "jsdoc -r -d dist/docs/js lib/twilio", "docs:json": "typedoc --json dist/docs/raw.json", "docs:ts": "typedoc --out docs", "lint": "tslint -c tslint.json --project tsconfig.json -t stylish", "merge:reports": "jrm ./reports/junit-report.xml \"./reports/*.xml\"", "release": "release", "start": "node server.js", "start:extension:server": "node tests/extension/server/server.js", "status": "git status", "test": "npm-run-all lint build test:unit test:es5 test:docker", "test:build": "npm-run-all test:es5 test:esm test:typecheck lint", "test:docker": "chmod +x ./scripts/run-docker-tests.sh && ./scripts/run-docker-tests.sh", "test:es5": "es-check es5 \"./es5/**/*.js\" ./dist/*.js", "test:extension": "mocha tests/extension/tests", "test:esm": "es-check es6 \"./esm/**/*.js\" --module", "test:integration": "cypress run", "test:integration:chrome": "npm run test:integration -- --browser chrome", "test:integration:edge": "npm run test:integration -- --browser edge", "test:integration:firefox": "npm run test:integration -- --browser firefox", "test:relay-server": "node ./tests/relay/server.js", "test:typecheck": "./node_modules/typescript/bin/tsc tests/typecheck/*.ts --noEmit", "test:unit": "nyc mocha -r ts-node/register ./tests/index.ts" }, "pre-commit": [ "lint", "build:constants", "test:unit", "docs:ts" ], "devDependencies": { "@datadog/datadog-ci": "3.2.0", "@ngrok/ngrok": "1.2.0", "@rollup/plugin-commonjs": "28.0.6", "@rollup/plugin-node-resolve": "16.0.1", "@rollup/plugin-typescript": "12.1.4", "@types/mime": "3.0.0", "@types/mocha": "5.2.7", "@types/node": "22.15.3", "@types/sinon": "9.0.5", "@types/ws": "7.2.0", "axios": "1.6.8", "babel-plugin-transform-inline-environment-variables": "0.4.3", "body-parser": "1.20.2", "browserify": "16.5.0", "buffer": "5.4.3", "cors": "2.8.5", "cypress": "14.4.0", "envify": "4.1.0", "es-check": "5.2.4", "express": "4.18.2", "geckodriver": "4.0.4", "is-docker": "2.0.0", "js-yaml": "3.13.1", "jsdoc": "4.0.2", "jsonwebtoken": "8.5.1", "junit-report-merger": "7.0.1", "lodash": "4.17.21", "mocha": "11.7.1", "npm-run-all": "4.1.5", "nyc": "15.1.0", "pre-commit": "1.2.2", "puppeteer": "24.16.2", "renamer": "4.0.0", "rollup": "4.46.3", "sinon": "9.0.3", "ts-node": "10.9.2", "tslint": "6.1.3", "twilio": "3.84.1", "twilio-release-tool": "1.0.5", "typedoc": "0.28.3", "typescript": "5.8.3", "uglify-js": "3.7.5", "vinyl-fs": "4.0.0", "vinyl-source-stream": "2.0.0", "ws": "7.4.6" }, "dependencies": { "@twilio/voice-errors": "1.7.0", "@types/events": "^3.0.3", "events": "3.3.0", "loglevel": "1.9.2", "tslib": "2.8.1" }, "overrides": { "tough-cookie": "4.1.4" } }