array-buffer-cache-worker 6.0.57 → 6.0.58
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/build/es5/bundle.js +3 -15
- package/package.json +14 -14
package/build/es5/bundle.js
CHANGED
@@ -12,26 +12,21 @@
|
|
12
12
|
var ArrayBufferStore = /*#__PURE__*/function () {
|
13
13
|
function ArrayBufferStore() {
|
14
14
|
_classCallCheck__default["default"](this, ArrayBufferStore);
|
15
|
-
|
16
15
|
this._store = new Map();
|
17
16
|
}
|
18
|
-
|
19
17
|
_createClass__default["default"](ArrayBufferStore, [{
|
20
18
|
key: "clone",
|
21
19
|
value: function clone(id) {
|
22
20
|
var arrayBuffer = this._store.get(id);
|
23
|
-
|
24
21
|
if (arrayBuffer === undefined) {
|
25
22
|
throw new Error("There is no arrayBuffer stored with an id called \"".concat(id, "\"."));
|
26
23
|
}
|
27
|
-
|
28
24
|
return arrayBuffer.slice(0);
|
29
25
|
}
|
30
26
|
}, {
|
31
27
|
key: "purge",
|
32
28
|
value: function purge(id) {
|
33
29
|
var arrayBufferExisted = this._store["delete"](id);
|
34
|
-
|
35
30
|
if (!arrayBufferExisted) {
|
36
31
|
throw new Error("There is no arrayBuffer stored with an id called \"".concat(id, "\"."));
|
37
32
|
}
|
@@ -40,25 +35,20 @@
|
|
40
35
|
key: "slice",
|
41
36
|
value: function slice(id, begin, end) {
|
42
37
|
var arrayBuffer = this._store.get(id);
|
43
|
-
|
44
38
|
if (arrayBuffer === undefined) {
|
45
39
|
throw new Error("There is no arrayBuffer stored with an id called \"".concat(id, "\"."));
|
46
40
|
}
|
47
|
-
|
48
41
|
if (begin < 0 || begin > arrayBuffer.byteLength) {
|
49
42
|
throw new Error("The given value for begin \"".concat(begin, "\" is out of bounds."));
|
50
43
|
}
|
51
|
-
|
52
44
|
if (end !== null) {
|
53
45
|
if (end > arrayBuffer.byteLength) {
|
54
46
|
throw new Error("The given value for end \"".concat(end, "\" is out of bounds."));
|
55
47
|
}
|
56
|
-
|
57
48
|
if (end < begin) {
|
58
49
|
throw new Error("The given value for end \"".concat(end, "\" is below the given value for begin \"").concat(begin, "\"."));
|
59
50
|
}
|
60
51
|
}
|
61
|
-
|
62
52
|
return arrayBuffer.slice(begin, end === null ? arrayBuffer.byteLength : end);
|
63
53
|
}
|
64
54
|
}, {
|
@@ -67,11 +57,9 @@
|
|
67
57
|
if (this._store.has(id)) {
|
68
58
|
throw new Error("There is already an arrayBuffer stored with an id called \"".concat(id, "\"."));
|
69
59
|
}
|
70
|
-
|
71
60
|
this._store.set(id, arrayBuffer);
|
72
61
|
}
|
73
62
|
}]);
|
74
|
-
|
75
63
|
return ArrayBufferStore;
|
76
64
|
}();
|
77
65
|
|
@@ -94,8 +82,8 @@
|
|
94
82
|
},
|
95
83
|
slice: function slice(_ref3) {
|
96
84
|
var arrayBufferId = _ref3.arrayBufferId,
|
97
|
-
|
98
|
-
|
85
|
+
begin = _ref3.begin,
|
86
|
+
end = _ref3.end;
|
99
87
|
var arrayBuffer = arrayBufferStore.slice(arrayBufferId, begin, end);
|
100
88
|
return {
|
101
89
|
result: arrayBuffer,
|
@@ -104,7 +92,7 @@
|
|
104
92
|
},
|
105
93
|
store: function store(_ref4) {
|
106
94
|
var arrayBuffer = _ref4.arrayBuffer,
|
107
|
-
|
95
|
+
arrayBufferId = _ref4.arrayBufferId;
|
108
96
|
arrayBufferStore.store(arrayBufferId, arrayBuffer);
|
109
97
|
return {
|
110
98
|
result: null
|
package/package.json
CHANGED
@@ -9,29 +9,29 @@
|
|
9
9
|
}
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
|
-
"@babel/runtime": "^7.19.
|
12
|
+
"@babel/runtime": "^7.19.4",
|
13
13
|
"tslib": "^2.4.0",
|
14
|
-
"worker-factory": "^6.0.
|
14
|
+
"worker-factory": "^6.0.70"
|
15
15
|
},
|
16
16
|
"description": "The worker which is used by the array-buffer-cache package.",
|
17
17
|
"devDependencies": {
|
18
|
-
"@babel/core": "^7.19.
|
18
|
+
"@babel/core": "^7.19.6",
|
19
19
|
"@babel/plugin-external-helpers": "^7.18.6",
|
20
|
-
"@babel/plugin-transform-runtime": "^7.
|
21
|
-
"@babel/preset-env": "^7.19.
|
20
|
+
"@babel/plugin-transform-runtime": "^7.19.6",
|
21
|
+
"@babel/preset-env": "^7.19.4",
|
22
22
|
"@commitlint/cli": "^17.1.2",
|
23
23
|
"@commitlint/config-angular": "^17.1.0",
|
24
24
|
"@rollup/plugin-babel": "^5.3.1",
|
25
25
|
"chai": "^4.3.6",
|
26
26
|
"commitizen": "^4.2.5",
|
27
27
|
"cz-conventional-changelog": "^3.3.0",
|
28
|
-
"eslint": "^8.
|
29
|
-
"eslint-config-holy-grail": "^52.0.
|
28
|
+
"eslint": "^8.26.0",
|
29
|
+
"eslint-config-holy-grail": "^52.0.33",
|
30
30
|
"grunt": "^1.5.3",
|
31
31
|
"grunt-cli": "^1.4.3",
|
32
32
|
"grunt-sh": "^0.2.0",
|
33
33
|
"husky": "^8.0.1",
|
34
|
-
"karma": "^6.4.
|
34
|
+
"karma": "^6.4.1",
|
35
35
|
"karma-chrome-launcher": "^3.1.1",
|
36
36
|
"karma-cli": "^2.0.0",
|
37
37
|
"karma-firefox-launcher": "^2.1.2",
|
@@ -43,18 +43,18 @@
|
|
43
43
|
"karma-webpack": "^5.0.0",
|
44
44
|
"load-grunt-config": "^4.0.1",
|
45
45
|
"memory-fs": "^0.5.0",
|
46
|
-
"mocha": "^10.
|
46
|
+
"mocha": "^10.1.0",
|
47
47
|
"prettier": "^2.7.1",
|
48
48
|
"pretty-quick": "^3.1.3",
|
49
49
|
"rimraf": "^3.0.2",
|
50
|
-
"rollup": "^2.79.
|
51
|
-
"sinon": "^14.0.
|
50
|
+
"rollup": "^2.79.1",
|
51
|
+
"sinon": "^14.0.1",
|
52
52
|
"sinon-chai": "^3.7.0",
|
53
|
-
"ts-loader": "^9.
|
53
|
+
"ts-loader": "^9.4.1",
|
54
54
|
"tsconfig-holy-grail": "^11.1.36",
|
55
55
|
"tslint": "^6.1.3",
|
56
56
|
"tslint-config-holy-grail": "^53.2.33",
|
57
|
-
"typescript": "^4.8.
|
57
|
+
"typescript": "^4.8.4",
|
58
58
|
"webpack": "^5.74.0"
|
59
59
|
},
|
60
60
|
"files": [
|
@@ -77,5 +77,5 @@
|
|
77
77
|
"test": "grunt lint && grunt test"
|
78
78
|
},
|
79
79
|
"types": "build/es2019/module.d.ts",
|
80
|
-
"version": "6.0.
|
80
|
+
"version": "6.0.58"
|
81
81
|
}
|