array-buffer-cache-worker
Advanced tools
Comparing version 6.0.57 to 6.0.58
@@ -15,6 +15,4 @@ (function (global, factory) { | ||
_classCallCheck__default["default"](this, ArrayBufferStore); | ||
this._store = new Map(); | ||
} | ||
_createClass__default["default"](ArrayBufferStore, [{ | ||
@@ -24,7 +22,5 @@ key: "clone", | ||
var arrayBuffer = this._store.get(id); | ||
if (arrayBuffer === undefined) { | ||
throw new Error("There is no arrayBuffer stored with an id called \"".concat(id, "\".")); | ||
} | ||
return arrayBuffer.slice(0); | ||
@@ -36,3 +32,2 @@ } | ||
var arrayBufferExisted = this._store["delete"](id); | ||
if (!arrayBufferExisted) { | ||
@@ -46,11 +41,8 @@ throw new Error("There is no arrayBuffer stored with an id called \"".concat(id, "\".")); | ||
var arrayBuffer = this._store.get(id); | ||
if (arrayBuffer === undefined) { | ||
throw new Error("There is no arrayBuffer stored with an id called \"".concat(id, "\".")); | ||
} | ||
if (begin < 0 || begin > arrayBuffer.byteLength) { | ||
throw new Error("The given value for begin \"".concat(begin, "\" is out of bounds.")); | ||
} | ||
if (end !== null) { | ||
@@ -60,3 +52,2 @@ if (end > arrayBuffer.byteLength) { | ||
} | ||
if (end < begin) { | ||
@@ -66,3 +57,2 @@ throw new Error("The given value for end \"".concat(end, "\" is below the given value for begin \"").concat(begin, "\".")); | ||
} | ||
return arrayBuffer.slice(begin, end === null ? arrayBuffer.byteLength : end); | ||
@@ -76,7 +66,5 @@ } | ||
} | ||
this._store.set(id, arrayBuffer); | ||
} | ||
}]); | ||
return ArrayBufferStore; | ||
@@ -104,4 +92,4 @@ }(); | ||
var arrayBufferId = _ref3.arrayBufferId, | ||
begin = _ref3.begin, | ||
end = _ref3.end; | ||
begin = _ref3.begin, | ||
end = _ref3.end; | ||
var arrayBuffer = arrayBufferStore.slice(arrayBufferId, begin, end); | ||
@@ -115,3 +103,3 @@ return { | ||
var arrayBuffer = _ref4.arrayBuffer, | ||
arrayBufferId = _ref4.arrayBufferId; | ||
arrayBufferId = _ref4.arrayBufferId; | ||
arrayBufferStore.store(arrayBufferId, arrayBuffer); | ||
@@ -118,0 +106,0 @@ return { |
@@ -12,12 +12,12 @@ { | ||
"dependencies": { | ||
"@babel/runtime": "^7.19.0", | ||
"@babel/runtime": "^7.19.4", | ||
"tslib": "^2.4.0", | ||
"worker-factory": "^6.0.69" | ||
"worker-factory": "^6.0.70" | ||
}, | ||
"description": "The worker which is used by the array-buffer-cache package.", | ||
"devDependencies": { | ||
"@babel/core": "^7.19.0", | ||
"@babel/core": "^7.19.6", | ||
"@babel/plugin-external-helpers": "^7.18.6", | ||
"@babel/plugin-transform-runtime": "^7.18.10", | ||
"@babel/preset-env": "^7.19.0", | ||
"@babel/plugin-transform-runtime": "^7.19.6", | ||
"@babel/preset-env": "^7.19.4", | ||
"@commitlint/cli": "^17.1.2", | ||
@@ -29,4 +29,4 @@ "@commitlint/config-angular": "^17.1.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^8.23.0", | ||
"eslint-config-holy-grail": "^52.0.32", | ||
"eslint": "^8.26.0", | ||
"eslint-config-holy-grail": "^52.0.33", | ||
"grunt": "^1.5.3", | ||
@@ -36,3 +36,3 @@ "grunt-cli": "^1.4.3", | ||
"husky": "^8.0.1", | ||
"karma": "^6.4.0", | ||
"karma": "^6.4.1", | ||
"karma-chrome-launcher": "^3.1.1", | ||
@@ -49,14 +49,14 @@ "karma-cli": "^2.0.0", | ||
"memory-fs": "^0.5.0", | ||
"mocha": "^10.0.0", | ||
"mocha": "^10.1.0", | ||
"prettier": "^2.7.1", | ||
"pretty-quick": "^3.1.3", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.79.0", | ||
"sinon": "^14.0.0", | ||
"rollup": "^2.79.1", | ||
"sinon": "^14.0.1", | ||
"sinon-chai": "^3.7.0", | ||
"ts-loader": "^9.3.1", | ||
"ts-loader": "^9.4.1", | ||
"tsconfig-holy-grail": "^11.1.36", | ||
"tslint": "^6.1.3", | ||
"tslint-config-holy-grail": "^53.2.33", | ||
"typescript": "^4.8.3", | ||
"typescript": "^4.8.4", | ||
"webpack": "^5.74.0" | ||
@@ -84,3 +84,3 @@ }, | ||
"types": "build/es2019/module.d.ts", | ||
"version": "6.0.57" | ||
"version": "6.0.58" | ||
} |
22872
Updated@babel/runtime@^7.19.4
Updatedworker-factory@^6.0.70