chenyc
2025-12-09 545c24c6a711d71b65f3d4e8122fee3837fb1edc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
    "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.28.4",
        "tslib": "^2.8.1",
        "worker-timers-broker": "^8.0.11",
        "worker-timers-worker": "^9.0.11"
    },
    "description": "A replacement for setInterval() and setTimeout() which works in unfocused windows.",
    "devDependencies": {
        "@babel/cli": "^7.28.3",
        "@babel/core": "^7.28.4",
        "@babel/plugin-external-helpers": "^7.27.1",
        "@babel/plugin-transform-runtime": "^7.28.3",
        "@babel/preset-env": "^7.28.3",
        "@babel/register": "^7.28.3",
        "@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": "^61.0.1",
        "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.6",
        "memfs": "^4.43.0",
        "mocha": "^11.7.2",
        "prettier": "^3.6.2",
        "rimraf": "^6.0.1",
        "rollup": "^4.52.0",
        "sinon": "^17.0.2",
        "sinon-chai": "^3.7.0",
        "terser-webpack-plugin": "^5.3.14",
        "ts-loader": "^9.5.4",
        "tsconfig-holy-grail": "^15.0.2",
        "tslint": "^6.1.3",
        "tslint-config-holy-grail": "^56.0.6",
        "typescript": "^5.9.2",
        "webpack": "^5.101.3",
        "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.25"
}