timingsrc 1.4.22 → 1.4.24
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.
- package/LICENSE +1 -1
- package/build/es5/bundle.js +4 -4
- package/package.json +16 -16
package/LICENSE
CHANGED
package/build/es5/bundle.js
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
54
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
54
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
55
55
|
var createSetTimingsrcWithCustomUpdateFunction = function createSetTimingsrcWithCustomUpdateFunction(animationFrame, clearInterval, document, on, setInterval, updateMediaElement) {
|
|
56
56
|
return function (mediaElement, timingObject, updateFunction) {
|
|
57
57
|
var prepareTimingStateVector = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
return function (_ref3, currentTime, previousUpdateVectorWithCustomState) {
|
|
131
131
|
var position = _ref3.position,
|
|
132
132
|
velocity = _ref3.velocity;
|
|
133
|
-
var _ref4 = previousUpdateVectorWithCustomState !== null && previousUpdateVectorWithCustomState !==
|
|
133
|
+
var _ref4 = previousUpdateVectorWithCustomState !== null && previousUpdateVectorWithCustomState !== undefined ? previousUpdateVectorWithCustomState : {
|
|
134
134
|
mediaElementDelay: 0
|
|
135
135
|
},
|
|
136
136
|
mediaElementDelay = _ref4.mediaElementDelay;
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
var positionDifference = currentTime - position;
|
|
152
152
|
var absolutePositionDifference = Math.abs(positionDifference);
|
|
153
153
|
if (absolutePositionDifference > threshold) {
|
|
154
|
-
var _ref5 = previousUpdateVectorWithCustomState !== null && previousUpdateVectorWithCustomState !==
|
|
154
|
+
var _ref5 = previousUpdateVectorWithCustomState !== null && previousUpdateVectorWithCustomState !== undefined ? previousUpdateVectorWithCustomState : {
|
|
155
155
|
position: null
|
|
156
156
|
},
|
|
157
157
|
lastPosition = _ref5.position;
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
var createUpdateStepwiseFactory = function createUpdateStepwiseFactory(translateTimingStateVector) {
|
|
227
227
|
return function (tolerance) {
|
|
228
228
|
return function (timingStateVector, currentTime, previousUpdateVectorWithCustomState) {
|
|
229
|
-
var _ref = previousUpdateVectorWithCustomState !== null && previousUpdateVectorWithCustomState !==
|
|
229
|
+
var _ref = previousUpdateVectorWithCustomState !== null && previousUpdateVectorWithCustomState !== undefined ? previousUpdateVectorWithCustomState : {
|
|
230
230
|
lastAppliedPostion: 0,
|
|
231
231
|
lastAppliedTimestamp: 0,
|
|
232
232
|
lastAppliedVelocity: 0,
|
package/package.json
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@babel/runtime": "^7.26.0",
|
|
13
|
-
"subscribable-things": "^2.1.
|
|
14
|
-
"timing-object": "^3.1.
|
|
15
|
-
"tslib": "^2.8.
|
|
13
|
+
"subscribable-things": "^2.1.46",
|
|
14
|
+
"timing-object": "^3.1.86",
|
|
15
|
+
"tslib": "^2.8.1"
|
|
16
16
|
},
|
|
17
17
|
"description": "A library to synchronize a MediaElement with a TimingObject.",
|
|
18
18
|
"devDependencies": {
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
"@babel/plugin-external-helpers": "^7.25.9",
|
|
21
21
|
"@babel/plugin-transform-runtime": "^7.25.9",
|
|
22
22
|
"@babel/preset-env": "^7.26.0",
|
|
23
|
-
"@commitlint/cli": "^19.
|
|
24
|
-
"@commitlint/config-angular": "^19.
|
|
23
|
+
"@commitlint/cli": "^19.6.1",
|
|
24
|
+
"@commitlint/config-angular": "^19.7.0",
|
|
25
25
|
"@rollup/plugin-babel": "^6.0.4",
|
|
26
26
|
"chai": "^4.3.10",
|
|
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.
|
|
30
|
+
"eslint-config-holy-grail": "^60.0.17",
|
|
31
31
|
"grunt": "^1.6.1",
|
|
32
32
|
"grunt-cli": "^1.5.0",
|
|
33
33
|
"grunt-sh": "^0.2.1",
|
|
34
|
-
"husky": "^9.1.
|
|
34
|
+
"husky": "^9.1.7",
|
|
35
35
|
"karma": "^6.4.4",
|
|
36
36
|
"karma-browserstack-launcher": "^1.6.0",
|
|
37
37
|
"karma-chrome-launcher": "^3.2.0",
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
"karma-sinon-chai": "^2.0.2",
|
|
41
41
|
"karma-webkit-launcher": "^2.6.0",
|
|
42
42
|
"karma-webpack": "^5.0.1",
|
|
43
|
-
"lint-staged": "^15.
|
|
43
|
+
"lint-staged": "^15.3.0",
|
|
44
44
|
"load-grunt-config": "^4.0.1",
|
|
45
|
-
"mocha": "^10.
|
|
46
|
-
"prettier": "^3.
|
|
45
|
+
"mocha": "^10.8.2",
|
|
46
|
+
"prettier": "^3.4.2",
|
|
47
47
|
"rimraf": "^6.0.1",
|
|
48
|
-
"rollup": "^4.
|
|
48
|
+
"rollup": "^4.30.0",
|
|
49
49
|
"sinon": "^17.0.1",
|
|
50
50
|
"sinon-chai": "^3.7.0",
|
|
51
51
|
"ts-loader": "^9.5.1",
|
|
52
|
-
"tsconfig-holy-grail": "^15.0.
|
|
52
|
+
"tsconfig-holy-grail": "^15.0.2",
|
|
53
53
|
"tslint": "^6.1.3",
|
|
54
|
-
"tslint-config-holy-grail": "^56.0.
|
|
55
|
-
"typescript": "^5.
|
|
56
|
-
"webpack": "^5.
|
|
54
|
+
"tslint-config-holy-grail": "^56.0.6",
|
|
55
|
+
"typescript": "^5.7.2",
|
|
56
|
+
"webpack": "^5.97.1"
|
|
57
57
|
},
|
|
58
58
|
"files": [
|
|
59
59
|
"build/es2019/",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"test": "grunt lint && grunt test"
|
|
81
81
|
},
|
|
82
82
|
"types": "build/es2019/module.d.ts",
|
|
83
|
-
"version": "1.4.
|
|
83
|
+
"version": "1.4.24"
|
|
84
84
|
}
|