1{ 2 "name": "broadcast-channel", 3 "version": "3.4.1", 4 "description": "A BroadcastChannel that works in New Browsers, Old Browsers, WebWorkers and NodeJs", 5 "homepage": "https://github.com/pubkey/broadcast-channel#readme", 6 "keywords": [ 7 "broadcast-channel", 8 "broadcastchannel", 9 "broadcast", 10 "polyfill", 11 "localstorage", 12 "indexeddb", 13 "postMessage", 14 "crosstab", 15 "ipc", 16 "leader-election" 17 ], 18 "repository": { 19 "type": "git", 20 "url": "git+https://github.com/pubkey/broadcast-channel.git" 21 }, 22 "author": "pubkey", 23 "license": "MIT", 24 "bugs": { 25 "url": "https://github.com/pubkey/broadcast-channel/issues" 26 }, 27 "main": "./dist/lib/index.es5.js", 28 "jsnext:main": "./dist/es/index.js", 29 "module": "./dist/es/index.js", 30 "sideEffects": false, 31 "types": "./types/index.d.ts", 32 "scripts": { 33 "test": "echo \"RUN ALL:\" && npm run test:node && npm run test:browser && npm run test:e2e", 34 "test:node": "npm run build && mocha ./test/index.test.js -b --timeout 6000 --exit", 35 "test:node:loop": "npm run test:node && npm run test:node:loop", 36 "test:browser": "npm run build && karma start ./config/karma.conf.js --single-run", 37 "test:e2e": "concurrently \"npm run docs:serve\" \"sleep 20 && testcafe -b && testcafe all test/e2e.test.js\" --kill-others --success first", 38 "test:typings": "npm run build && mocha ./test/typings.test.js -b --timeout 12000 --exit", 39 "test:performance": "npm run build && mocha ./test/performance.test.js -b --timeout 24000 --exit", 40 "test:simple": "npm run build && node ./test_tmp/simple.test.js", 41 "test:electron": "(cd ./test-electron && npm run test)", 42 "size:prewebpack": "npm run build && cross-env NODE_ENV=build webpack --config ./config/webpack.config.js", 43 "size:webpack": "npm run size:prewebpack && echo \"Build-Size Webpack (minified+gzip):\" && gzip-size --raw ./test_tmp/webpack.bundle.js", 44 "size:browserify": "npm run build && rimraf test_tmp/browserify.js && browserify --no-builtins dist/lib/browserify.index.js > test_tmp/browserify.js && uglifyjs --compress --mangle --output test_tmp/browserify.min.js -- test_tmp/browserify.js && echo \"Build-Size browserify (minified+gzip):\" && gzip-size --raw test_tmp/browserify.min.js", 45 "size:rollup": "npm run build && rollup --config ./config/rollup.config.js && echo \"Build-Size Rollup (minified+gzip):\" && gzip-size --raw ./test_tmp/rollup.bundle.js", 46 "lint": "eslint src test config", 47 "clear": "rimraf -rf ./dist && rimraf -rf ./gen", 48 "build:es6": "rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es", 49 "build:es5": "cross-env NODE_ENV=es5 babel src --out-dir dist/lib", 50 "build:test": "cross-env NODE_ENV=es5 babel test --out-dir test_tmp", 51 "build:index": "browserify test_tmp/scripts/index.js > docs/index.js", 52 "build:browser": "browserify test_tmp/scripts/e2e.js > docs/e2e.js", 53 "build:worker": "browserify test_tmp/scripts/worker.js > docs/worker.js", 54 "build:iframe": "browserify test_tmp/scripts/iframe.js > docs/iframe.js", 55 "build:leader-iframe": "browserify test_tmp/scripts/leader-iframe.js > docs/leader-iframe.js", 56 "build:lib-browser": "browserify dist/lib/browserify.index.js > dist/lib/browser.js", 57 "build:lib-browser:min": "uglifyjs --compress --mangle --output dist/lib/browser.min.js -- dist/lib/browser.js", 58 "build": "npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" && concurrently \"npm run build:index\" \"npm run build:browser\" \"npm run build:worker\" \"npm run build:iframe\" \"npm run build:leader-iframe\" && npm run build:lib-browser && npm run build:lib-browser:min", 59 "build:min": "uglifyjs --compress --mangle --output dist/lib/browserify.min.js -- dist/lib/browserify.index.js", 60 "docs:only": "http-server ./docs --silent", 61 "docs:serve": "npm run build && echo \"Open http://localhost:8080/\" && npm run docs:only" 62 }, 63 "pre-commit": [ 64 "lint" 65 ], 66 "dependencies": { 67 "@babel/runtime": "^7.7.2", 68 "detect-node": "^2.0.4", 69 "js-sha3": "0.8.0", 70 "microseconds": "0.2.0", 71 "nano-time": "1.0.0", 72 "rimraf": "3.0.2", 73 "unload": "2.2.0" 74 }, 75 "devDependencies": { 76 "@babel/cli": "7.12.10", 77 "@babel/core": "7.12.10", 78 "@babel/plugin-check-constants": "7.0.0-beta.38", 79 "@babel/plugin-proposal-object-rest-spread": "7.12.1", 80 "@babel/plugin-transform-member-expression-literals": "7.12.1", 81 "@babel/plugin-transform-property-literals": "7.12.1", 82 "@babel/plugin-transform-runtime": "7.12.10", 83 "@babel/polyfill": "7.12.1", 84 "@babel/preset-env": "7.12.11", 85 "@babel/types": "7.12.12", 86 "@types/core-js": "2.5.4", 87 "assert": "2.0.0", 88 "async-test-util": "1.7.3", 89 "browserify": "17.0.0", 90 "child-process-promise": "2.2.1", 91 "clone": "2.1.2", 92 "concurrently": "5.3.0", 93 "convert-hrtime": "3.0.0", 94 "copyfiles": "2.4.1", 95 "cross-env": "7.0.3", 96 "eslint": "7.18.0", 97 "gzip-size-cli": "4.0.0", 98 "http-server": "0.12.3", 99 "jest": "26.6.3", 100 "karma": "6.0.1", 101 "karma-babel-preprocessor": "8.0.1", 102 "karma-browserify": "8.0.0", 103 "karma-chrome-launcher": "3.1.0", 104 "karma-coverage": "2.0.3", 105 "karma-detect-browsers": "2.3.3", 106 "karma-edge-launcher": "0.4.2", 107 "karma-firefox-launcher": "2.1.0", 108 "karma-ie-launcher": "1.0.0", 109 "karma-mocha": "2.0.1", 110 "karma-opera-launcher": "1.0.0", 111 "karma-safari-launcher": "1.0.0", 112 "mocha": "8.2.1", 113 "pre-commit": "1.2.2", 114 "random-int": "2.0.1", 115 "random-token": "0.0.8", 116 "rollup": "2.38.0", 117 "rollup-plugin-node-resolve": "5.2.0", 118 "rollup-plugin-uglify": "6.0.4", 119 "testcafe": "1.10.1", 120 "testcafe-hammerhead": "19.1.1", 121 "ts-node": "9.1.1", 122 "typescript": "4.1.3", 123 "watchify": "3.11.1", 124 "webpack": "5.17.0", 125 "webpack-cli": "4.4.0" 126 }, 127 "browser": { 128 "./src/methods/node.js": false, 129 "./dist/es/methods/node.js": false, 130 "./dist/lib/methods/node.js": false 131 } 132} 133