@toruslabs/broadcast-channel
Advanced tools
Comparing version 9.0.1 to 10.0.0
272
package.json
{ | ||
"name": "@toruslabs/broadcast-channel", | ||
"version": "9.0.1", | ||
"description": "A BroadcastChannel that works in New Browsers, Old Browsers, WebWorkers", | ||
"homepage": "https://github.com/pubkey/broadcast-channel#readme", | ||
"keywords": [ | ||
"broadcast-channel", | ||
"broadcastchannel", | ||
"broadcast", | ||
"polyfill", | ||
"localstorage", | ||
"indexeddb", | ||
"postMessage", | ||
"crosstab" | ||
], | ||
"files": [ | ||
"dist", | ||
"types" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/pubkey/broadcast-channel.git" | ||
}, | ||
"author": "pubkey", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/pubkey/broadcast-channel/issues" | ||
}, | ||
"main": "./dist/es5node/index.js", | ||
"module": "./dist/esnode/index.js", | ||
"browser": "./dist/lib/index.es5.js", | ||
"sideEffects": false, | ||
"types": "./types/index.d.ts", | ||
"scripts": { | ||
"test": "echo \"RUN ALL:\" && npm run test:browser && npm run test:e2e", | ||
"test:node": "npm run build:es5node && mocha ./test/index.test.js -b --timeout 6000 --exit", | ||
"test:node:loop": "npm run test:node && npm run test:node:loop", | ||
"test:browser": "npm run build && karma start ./config/karma.conf.js --single-run", | ||
"test:e2e": "concurrently \"npm run docs:serve\" \"sleep 20 && testcafe -b && testcafe chrome -e test/e2e.test.js --hostname localhost\" --kill-others --success first", | ||
"test:typings": "npm run build && mocha ./test/typings.test.js -b --timeout 12000 --exit", | ||
"test:performance": "npm run build && mocha ./test/performance.test.js -b --timeout 24000 --exit", | ||
"test:simple": "npm run build && node ./test_tmp/simple.test.js", | ||
"test:electron": "(cd ./test-electron && npm run test)", | ||
"size:prewebpack": "npm run build && cross-env NODE_ENV=build webpack --config ./config/webpack.config.js", | ||
"size:webpack": "npm run size:prewebpack && echo \"Build-Size Webpack (minified+gzip):\" && gzip-size --raw ./test_tmp/webpack.bundle.js", | ||
"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", | ||
"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", | ||
"lint": "eslint src test --cache", | ||
"clear": "rimraf -rf ./dist && rimraf -rf ./gen", | ||
"build:es6node": "rimraf -rf dist/esnode && cross-env NODE_ENV=es6 babel src --out-dir dist/esnode", | ||
"build:es6browser": "rimraf -rf dist/esbrowser && cross-env NODE_ENV=es6 babel src --out-dir dist/esbrowser && grep -rl NodeMethod dist/esbrowser/ | xargs sed -i '' 's/.*NodeMethod.*//'", | ||
"build:es5node": "cross-env NODE_ENV=es5 babel src --out-dir dist/es5node", | ||
"build:es5browser": "cross-env NODE_ENV=es5 babel src --out-dir dist/lib && grep -rl NodeMethod dist/lib/ | xargs sed -i '' 's/.*NodeMethod.*//'", | ||
"build:test": "cross-env NODE_ENV=es5 babel test --out-dir test_tmp", | ||
"build:index": "browserify test_tmp/scripts/index.js > docs/index.js", | ||
"build:browser": "browserify test_tmp/scripts/e2e.js > docs/e2e.js", | ||
"build:worker": "browserify test_tmp/scripts/worker.js > docs/worker.js", | ||
"build:iframe": "browserify test_tmp/scripts/iframe.js > docs/iframe.js", | ||
"build:lib-browser": "browserify dist/lib/browserify.index.js > dist/lib/browser.js", | ||
"build:lib-browser:min": "uglifyjs --compress --mangle --output dist/lib/browser.min.js -- dist/lib/browser.js", | ||
"build": "npm run clear && concurrently \"npm run build:es6node\" \"npm run build:es6browser\" \"npm run build:es5node\" \"npm run build:es5browser\" \"npm run build:test\" && concurrently \"npm run build:index\" \"npm run build:browser\" \"npm run build:worker\" \"npm run build:iframe\" && npm run build:lib-browser && npm run build:lib-browser:min", | ||
"build:min": "uglifyjs --compress --mangle --output dist/lib/browserify.min.js -- dist/lib/browserify.index.js", | ||
"docs:only": "http-server ./docs --silent", | ||
"docs:serve": "npm run build && echo \"Open http://localhost:8080/\" && npm run docs:only" | ||
}, | ||
"pre-commit": [ | ||
"lint" | ||
], | ||
"dependencies": { | ||
"@babel/runtime": "^7.22.10", | ||
"@toruslabs/eccrypto": "^4.0.0", | ||
"@toruslabs/metadata-helpers": "^5.0.0", | ||
"bowser": "^2.11.0", | ||
"loglevel": "^1.8.1", | ||
"oblivious-set": "1.1.1", | ||
"socket.io-client": "^4.7.2", | ||
"unload": "^2.4.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "7.22.10", | ||
"@babel/core": "7.22.10", | ||
"@babel/plugin-proposal-object-rest-spread": "7.20.7", | ||
"@babel/plugin-transform-member-expression-literals": "7.22.5", | ||
"@babel/plugin-transform-property-literals": "7.22.5", | ||
"@babel/plugin-transform-runtime": "7.22.10", | ||
"@babel/polyfill": "7.12.1", | ||
"@babel/preset-env": "7.22.10", | ||
"@babel/types": "7.22.10", | ||
"@rollup/plugin-node-resolve": "15.1.0", | ||
"@rollup/plugin-terser": "0.4.3", | ||
"@types/core-js": "2.5.5", | ||
"assert": "2.0.0", | ||
"async-test-util": "2.1.0", | ||
"browserify": "17.0.0", | ||
"child-process-promise": "2.2.1", | ||
"clone": "2.1.2", | ||
"concurrently": "8.2.0", | ||
"convert-hrtime": "5.0.0", | ||
"copyfiles": "2.4.1", | ||
"cross-env": "7.0.3", | ||
"detect-node": "^2.1.0", | ||
"eslint": "8.46.0", | ||
"gzip-size-cli": "5.1.0", | ||
"http-server": "14.1.1", | ||
"jest": "29.6.2", | ||
"karma": "6.4.2", | ||
"karma-babel-preprocessor": "8.0.2", | ||
"karma-browserify": "8.1.0", | ||
"karma-chrome-launcher": "3.2.0", | ||
"karma-coverage": "2.2.1", | ||
"karma-detect-browsers": "2.3.3", | ||
"karma-edge-launcher": "0.4.2", | ||
"karma-firefox-launcher": "2.1.2", | ||
"karma-ie-launcher": "1.0.0", | ||
"karma-mocha": "2.0.1", | ||
"karma-opera-launcher": "1.0.0", | ||
"karma-safari-launcher": "1.0.0", | ||
"mocha": "10.2.0", | ||
"pre-commit": "1.2.2", | ||
"random-int": "3.0.0", | ||
"random-token": "0.0.8", | ||
"rimraf": "^5.0.1", | ||
"rollup": "3.27.2", | ||
"testcafe": "3.1.0", | ||
"ts-node": "10.9.1", | ||
"typescript": "5.1.6", | ||
"uglify-js": "3.17.4", | ||
"watchify": "4.0.0", | ||
"webpack": "5.88.2", | ||
"webpack-cli": "5.1.4" | ||
}, | ||
"engines": { | ||
"node": ">=18.x", | ||
"npm": ">=9.x" | ||
} | ||
"name": "@toruslabs/broadcast-channel", | ||
"version": "10.0.0", | ||
"description": "A BroadcastChannel that works in New Browsers, Old Browsers, WebWorkers", | ||
"homepage": "https://github.com/pubkey/broadcast-channel#readme", | ||
"keywords": [ | ||
"broadcast-channel", | ||
"broadcastchannel", | ||
"broadcast", | ||
"polyfill", | ||
"localstorage", | ||
"indexeddb", | ||
"postMessage", | ||
"crosstab" | ||
], | ||
"files": [ | ||
"dist", | ||
"types" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/pubkey/broadcast-channel.git" | ||
}, | ||
"author": "pubkey", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/pubkey/broadcast-channel/issues" | ||
}, | ||
"main": "dist/broadcastChannel.cjs.js", | ||
"module": "dist/broadcastChannel.esm.js", | ||
"sideEffects": false, | ||
"types": "types/index.d.ts", | ||
"jsdelivr": "dist/broadcastChannel.umd.js", | ||
"unpkg": "dist/broadcastChannel.umd.js", | ||
"scripts": { | ||
"test": "echo \"RUN ALL:\" && npm run test:browser && npm run test:e2e", | ||
"test:node": "npm run build:publish && mocha ./test/index.test.js -b --timeout 6000 --exit", | ||
"test:node:loop": "npm run test:node && npm run test:node:loop", | ||
"test:browser": "npm run build:publish && karma start ./config/karma.conf.js --single-run", | ||
"test:e2e": "concurrently \"npm run docs:serve\" \"sleep 20 && testcafe -b && testcafe chrome -e test/e2e.test.js --hostname localhost\" --kill-others --success first", | ||
"test:typings": "npm run build:publish && mocha ./test/typings.test.js -b --timeout 12000 --exit", | ||
"test:performance": "npm run build:publish && mocha ./test/performance.test.js -b --timeout 24000 --exit", | ||
"test:simple": "npm run build:publish && node ./test_tmp/simple.test.js", | ||
"test:electron": "(cd ./test-electron && npm run test)", | ||
"size:prewebpack": "npm run build:publish && cross-env NODE_ENV=build webpack --config ./config/webpack.config.js", | ||
"size:webpack": "npm run size:prewebpack && echo \"Build-Size Webpack (minified+gzip):\" && gzip-size --raw ./test_tmp/webpack.bundle.js", | ||
"size:browserify": "npm run build:publish && 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", | ||
"size:rollup": "npm run build:publish && rollup --config ./config/rollup.config.js && echo \"Build-Size Rollup (minified+gzip):\" && gzip-size --raw ./test_tmp/rollup.bundle.js", | ||
"lint": "eslint src test --cache", | ||
"clear": "rimraf -rf ./dist && rimraf -rf ./gen", | ||
"build:es6node": "rimraf -rf dist/esnode && cross-env NODE_ENV=es6 babel src --out-dir dist/esnode", | ||
"build:es6browser": "rimraf -rf dist/esbrowser && cross-env NODE_ENV=es6 babel src --out-dir dist/esbrowser && grep -rl NodeMethod dist/esbrowser/ | xargs sed -i '' 's/.*NodeMethod.*//'", | ||
"build:es5node": "cross-env NODE_ENV=es5 babel src --out-dir dist/es5node", | ||
"build:es5browser": "cross-env NODE_ENV=es5 babel src --out-dir dist/lib && grep -rl NodeMethod dist/lib/ | xargs sed -i '' 's/.*NodeMethod.*//'", | ||
"build:test": "cross-env NODE_ENV=es5 babel test --out-dir test_tmp", | ||
"build:index": "browserify test_tmp/scripts/index.js > docs/index.js", | ||
"build:browser": "browserify test_tmp/scripts/e2e.js > docs/e2e.js", | ||
"build:worker": "browserify test_tmp/scripts/worker.js > docs/worker.js", | ||
"build:iframe": "browserify test_tmp/scripts/iframe.js > docs/iframe.js", | ||
"build:lib-browser": "browserify dist/lib/browserify.index.js > dist/lib/browser.js", | ||
"build:lib-browser:min": "uglifyjs --compress --mangle --output dist/lib/browser.min.js -- dist/lib/browser.js", | ||
"build": "npm run clear && concurrently \"npm run build:es6node\" \"npm run build:es6browser\" \"npm run build:publish\" \"npm run build:es5browser\" \"npm run build:test\" && concurrently \"npm run build:index\" \"npm run build:browser\" \"npm run build:worker\" \"npm run build:iframe\" && npm run build:lib-browser && npm run build:lib-browser:min", | ||
"build:min": "uglifyjs --compress --mangle --output dist/lib/browserify.min.js -- dist/lib/browserify.index.js", | ||
"docs:only": "http-server ./docs --silent", | ||
"docs:serve": "npm run build && echo \"Open http://localhost:8080/\" && npm run docs:only", | ||
"build:publish": "torus-scripts build" | ||
}, | ||
"pre-commit": [ | ||
"lint" | ||
], | ||
"dependencies": { | ||
"@babel/runtime": "^7.24.0", | ||
"@toruslabs/eccrypto": "^4.0.0", | ||
"@toruslabs/metadata-helpers": "^5.1.0", | ||
"loglevel": "^1.9.1", | ||
"oblivious-set": "1.4.0", | ||
"socket.io-client": "^4.7.5", | ||
"unload": "^2.4.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "7.23.9", | ||
"@babel/core": "7.24.0", | ||
"@babel/plugin-proposal-object-rest-spread": "7.20.7", | ||
"@babel/plugin-transform-member-expression-literals": "7.23.3", | ||
"@babel/plugin-transform-property-literals": "7.23.3", | ||
"@babel/plugin-transform-runtime": "7.24.0", | ||
"@babel/polyfill": "7.12.1", | ||
"@babel/preset-env": "7.24.0", | ||
"@babel/types": "7.24.0", | ||
"@rollup/plugin-node-resolve": "15.2.3", | ||
"@rollup/plugin-terser": "0.4.4", | ||
"@toruslabs/config": "^2.0.2", | ||
"@toruslabs/torus-scripts": "^5.3.0", | ||
"@types/core-js": "2.5.8", | ||
"assert": "2.1.0", | ||
"async-test-util": "2.4.0", | ||
"babel-loader": "^9.1.3", | ||
"browserify": "17.0.0", | ||
"child-process-promise": "2.2.1", | ||
"clone": "2.1.2", | ||
"concurrently": "8.2.2", | ||
"convert-hrtime": "5.0.0", | ||
"copyfiles": "2.4.1", | ||
"cross-env": "7.0.3", | ||
"detect-node": "^2.1.0", | ||
"eslint": "8.57.0", | ||
"gzip-size-cli": "5.1.0", | ||
"http-server": "14.1.1", | ||
"jest": "29.7.0", | ||
"karma": "6.4.3", | ||
"karma-babel-preprocessor": "8.0.2", | ||
"karma-browserify": "8.1.0", | ||
"karma-chrome-launcher": "3.2.0", | ||
"karma-coverage": "2.2.1", | ||
"karma-detect-browsers": "2.3.3", | ||
"karma-edge-launcher": "0.4.2", | ||
"karma-firefox-launcher": "2.1.3", | ||
"karma-ie-launcher": "1.0.0", | ||
"karma-mocha": "2.0.1", | ||
"karma-opera-launcher": "1.0.0", | ||
"karma-safari-launcher": "1.0.0", | ||
"mocha": "10.3.0", | ||
"pre-commit": "1.2.2", | ||
"random-int": "3.0.0", | ||
"random-token": "0.0.8", | ||
"rimraf": "^5.0.5", | ||
"rollup": "4.13.0", | ||
"testcafe": "3.5.0", | ||
"ts-node": "10.9.2", | ||
"typescript": "5.4.2", | ||
"uglify-js": "3.17.4", | ||
"watchify": "4.0.0", | ||
"webpack": "5.90.3", | ||
"webpack-cli": "5.1.4" | ||
}, | ||
"engines": { | ||
"node": ">=18.x", | ||
"npm": ">=9.x" | ||
} | ||
} |
@@ -21,16 +21,5 @@ declare type MethodType = 'idb' | 'native' | 'localstorage' | 'simulate' | 'server'; | ||
type?: MethodType; | ||
support3PC?: boolean; | ||
methods?: BroadcastMethod[] | BroadcastMethod; | ||
webWorkerSupport?: boolean; | ||
prepareDelay?: number; | ||
node?: { | ||
ttl?: number; | ||
useFastPath?: boolean; | ||
/** | ||
* Opening too many write files will throw an error. | ||
* So we ensure we throttle to have a max limit on writes. | ||
* @link https://stackoverflow.com/questions/8965606/node-and-error-emfile-too-many-open-files | ||
*/ | ||
maxParallelWrites?: number; | ||
}; | ||
idb?: { | ||
@@ -72,2 +61,2 @@ ttl?: number; | ||
export const OPEN_BROADCAST_CHANNELS: Set<BroadcastChannel>; | ||
export const OPEN_BROADCAST_CHANNELS: Set<BroadcastChannel>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
7
0
0
4
349397
54
18
1
80
2604
+ Addedoblivious-set@1.4.0(transitive)
- Removedbowser@^2.11.0
- Removedbowser@2.11.0(transitive)
- Removedoblivious-set@1.1.1(transitive)
Updated@babel/runtime@^7.24.0
Updatedloglevel@^1.9.1
Updatedoblivious-set@1.4.0
Updatedsocket.io-client@^4.7.5