timingsrc 1.4.29 → 1.4.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +13 -12
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  This libary is meant to synchronize a [`MediaElement`](https://html.spec.whatwg.org/multipage/media.html#htmlmediaelement) (aka an `<audio/>` or `<video/>` element) with a [`TimingObject`](https://webtiming.github.io/timingobject/#dfn-timing-object).
8
8
 
9
- The [Timing Object specification](https://webtiming.github.io/timingobject/) defines an extension of the `MediaElement` which would add [`timingsrc`](https://webtiming.github.io/timingobject/#dom-htmlmediaelement-timingsrc) property. But so far this is not supported in any browser. Therefore this package can be used as a replacement as it provides the same functionality. But instead of patching the native protoypes this libary provides a function which can be used without modifying any built-in browser objects.
9
+ The [Timing Object specification](https://webtiming.github.io/timingobject/) defines an extension of the `MediaElement` which would add a [`timingsrc`](https://webtiming.github.io/timingobject/#dom-htmlmediaelement-timingsrc) property. But so far this is not supported in any browser. Therefore this package can be used as a replacement as it provides the same functionality. But instead of patching the native protoypes this libary provides a function which can be used without modifying any built-in browser objects.
10
10
 
11
11
  The code of this library is heavily inspired by the [`mediaSync()`](https://github.com/webtiming/timingsrc/blob/master/v1/mediasync/mediasync.js#L89) function that came with v1 of the [timingsrc](https://github.com/webtiming/timingsrc) library. However all the code has been completely rewritten in TypeScript with the goal to make it more testable and easier to reason about.
12
12
 
package/package.json CHANGED
@@ -9,9 +9,9 @@
9
9
  }
10
10
  },
11
11
  "dependencies": {
12
- "@babel/runtime": "^7.26.10",
13
- "subscribable-things": "^2.1.50",
14
- "timing-object": "^3.1.89",
12
+ "@babel/runtime": "^7.27.0",
13
+ "subscribable-things": "^2.1.51",
14
+ "timing-object": "^3.1.90",
15
15
  "tslib": "^2.8.1"
16
16
  },
17
17
  "description": "A library to synchronize a MediaElement with a TimingObject.",
@@ -27,10 +27,7 @@
27
27
  "commitizen": "^4.3.1",
28
28
  "cz-conventional-changelog": "^3.3.0",
29
29
  "eslint": "^8.57.0",
30
- "eslint-config-holy-grail": "^60.0.26",
31
- "grunt": "^1.6.1",
32
- "grunt-cli": "^1.5.0",
33
- "grunt-sh": "^0.2.1",
30
+ "eslint-config-holy-grail": "^60.0.31",
34
31
  "husky": "^9.1.7",
35
32
  "karma": "^6.4.4",
36
33
  "karma-browserstack-launcher": "^1.6.0",
@@ -41,11 +38,10 @@
41
38
  "karma-webkit-launcher": "^2.6.0",
42
39
  "karma-webpack": "^5.0.1",
43
40
  "lint-staged": "^15.5.0",
44
- "load-grunt-config": "^4.0.1",
45
41
  "mocha": "^11.1.0",
46
42
  "prettier": "^3.5.3",
47
43
  "rimraf": "^6.0.1",
48
- "rollup": "^4.35.0",
44
+ "rollup": "^4.37.0",
49
45
  "sinon": "^17.0.1",
50
46
  "sinon-chai": "^3.7.0",
51
47
  "ts-loader": "^9.5.2",
@@ -72,13 +68,18 @@
72
68
  "scripts": {
73
69
  "build": "rimraf build/* && tsc --project src/tsconfig.json && rollup --config config/rollup/bundle.mjs",
74
70
  "lint": "npm run lint:config && npm run lint:src && npm run lint:test",
75
- "lint:config": "eslint --config config/eslint/config.json --ext .js --report-unused-disable-directives config/",
71
+ "lint:config": "eslint --config config/eslint/config.json --ext .cjs --ext .js --ext .mjs --report-unused-disable-directives config/",
76
72
  "lint:src": "tslint --config config/tslint/src.json --project src/tsconfig.json src/*.ts src/**/*.ts",
77
73
  "lint:test": "eslint --config config/eslint/test.json --ext .js --report-unused-disable-directives test/",
78
74
  "prepare": "husky",
79
75
  "prepublishOnly": "npm run build",
80
- "test": "npm run lint && grunt test"
76
+ "test": "npm run lint && npm run build && npm run test:expectation-chrome && npm run test:expectation-firefox && npm run test:expectation-safari && npm run test:integration && npm run test:unit",
77
+ "test:expectation-chrome": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"expectation\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"chrome\" ]; then karma start config/karma/config-expectation-chrome.js --single-run; fi",
78
+ "test:expectation-firefox": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"expectation\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"firefox\" ]; then karma start config/karma/config-expectation-firefox.js --single-run; fi",
79
+ "test:expectation-safari": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"expectation\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"safari\" ]; then karma start config/karma/config-expectation-safari.js --single-run; fi",
80
+ "test:integration": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"integration\" ]; then karma start config/karma/config-integration.js --single-run; fi",
81
+ "test:unit": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"unit\" ]; then karma start config/karma/config-unit.js --single-run; fi"
81
82
  },
82
83
  "types": "build/es2019/module.d.ts",
83
- "version": "1.4.29"
84
+ "version": "1.4.31"
84
85
  }