UNPKG

worker-timers

Version:

A replacement for setInterval() and setTimeout() which works in unfocused windows.

105 lines (104 loc) 4.26 kB
{ "author": "Christoph Guttandin", "bugs": { "url": "https://github.com/chrisguttandin/worker-timers/issues" }, "config": { "commitizen": { "path": "cz-conventional-changelog" } }, "contributors": [ { "email": "a-anng@expedia.com", "name": "Anthony Ng" } ], "dependencies": { "@babel/runtime": "^7.27.6", "tslib": "^2.8.1", "worker-timers-broker": "^8.0.9", "worker-timers-worker": "^9.0.9" }, "description": "A replacement for setInterval() and setTimeout() which works in unfocused windows.", "devDependencies": { "@babel/cli": "^7.28.0", "@babel/core": "^7.28.0", "@babel/plugin-external-helpers": "^7.27.1", "@babel/plugin-transform-runtime": "^7.28.0", "@babel/preset-env": "^7.28.0", "@babel/register": "^7.27.1", "@commitlint/cli": "^19.8.1", "@commitlint/config-angular": "^19.8.1", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-replace": "^6.0.2", "babel-loader": "^10.0.0", "chai": "^4.3.10", "commitizen": "^4.3.1", "cz-conventional-changelog": "^3.3.0", "eslint": "^8.57.0", "eslint-config-holy-grail": "^60.0.36", "husky": "^9.1.7", "karma": "^6.4.4", "karma-chrome-launcher": "^3.2.0", "karma-firefox-launcher": "^2.1.3", "karma-mocha": "^2.0.1", "karma-sauce-launcher": "^4.3.6", "karma-sinon-chai": "^2.0.2", "karma-webkit-launcher": "^2.6.0", "karma-webpack": "^5.0.1", "lint-staged": "^16.1.2", "memfs": "^4.17.2", "mocha": "^11.7.1", "prettier": "^3.6.2", "rimraf": "^6.0.1", "rollup": "^4.44.2", "sinon": "^17.0.2", "sinon-chai": "^3.7.0", "terser-webpack-plugin": "^5.3.14", "ts-loader": "^9.5.2", "tsconfig-holy-grail": "^15.0.2", "tslint": "^6.1.3", "tslint-config-holy-grail": "^56.0.6", "typescript": "^5.8.3", "webpack": "^5.100.0", "webpack-cli": "^6.0.1" }, "files": [ "build/es2019/", "build/es5/", "src/" ], "homepage": "https://github.com/chrisguttandin/worker-timers", "keywords": [ "Web Workers", "WindowTimers", "clearInterval", "clearTimeout", "interval", "setInterval", "setTimeout" ], "license": "MIT", "main": "build/es5/bundle.js", "module": "build/es2019/module.js", "name": "worker-timers", "repository": { "type": "git", "url": "https://github.com/chrisguttandin/worker-timers.git" }, "scripts": { "build": "rimraf build/* && webpack --config config/webpack/worker-es2019.js && tsc --project src/tsconfig.json && rollup --config config/rollup/bundle.mjs && babel ./build/es2019 --config-file ./config/babel/build.json --out-dir ./build/node", "lint": "npm run lint:config && npm run lint:src && npm run lint:test", "lint:config": "eslint --config config/eslint/config.json --ext .cjs --ext .js --ext .mjs --report-unused-disable-directives config/", "lint:src": "tslint --config config/tslint/src.json --project src/tsconfig.json src/*.ts src/**/*.ts", "lint:test": "eslint --config config/eslint/test.json --ext .js --report-unused-disable-directives test/", "prepare": "husky", "prepublishOnly": "npm run build", "test": "npm run lint && npm run build && npm run test:integration-browser && npm run test:integration-node", "test:integration-browser": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"integration\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"chrome\" -o \"$TARGET\" = \"firefox\" -o \"$TARGET\" = \"safari\" ]; then karma start config/karma/config-integration.js --single-run; fi", "test:integration-node": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"integration\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"node\" ]; then mocha --bail --parallel --recursive --require config/mocha/config-integration.js test/integration; fi" }, "types": "build/es2019/module.d.ts", "version": "8.0.23" }