async-array-buffer
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -8,2 +8,2 @@ import { load } from 'async-array-buffer-broker'; | ||
export const deallocate = asyncArrayBuffer.deallocate; | ||
//# sourceMappingURL=/users/chrisguttandin/repositories/async-array-buffer/node_modules/tsconfig-holy-grail/src/module.js.map | ||
//# sourceMappingURL=/private/var/folders/d9/rfrzl3y142q4pz1rvmx3ytt80000gn/t/async-array-buffer-repository-cshjsv/node_modules/tsconfig-holy-grail/src/module.js.map |
// tslint:disable-next-line:max-line-length | ||
// tslint:disable-next-line:max-line-length | ||
export const worker = `!function(){"use strict";var e=function(e){return new ArrayBuffer(e)};addEventListener("message",function(r){var a=r.data;try{if("allocate"===a.method){var s=a.id,t=a.params.length,n=e(t);postMessage({error:null,id:s,result:{arrayBuffer:n}},[n])}else a.method}catch(e){postMessage({error:{message:e.message},id:a.id,result:null})}})}();`; | ||
//# sourceMappingURL=/users/chrisguttandin/repositories/async-array-buffer/node_modules/tsconfig-holy-grail/src/worker/worker.js.map | ||
//# sourceMappingURL=/private/var/folders/d9/rfrzl3y142q4pz1rvmx3ytt80000gn/t/async-array-buffer-repository-cshjsv/node_modules/tsconfig-holy-grail/src/worker/worker.js.map |
@@ -39,3 +39,3 @@ (function (global, factory) { | ||
var deallocate = function deallocate(arrayBuffer) { | ||
worker.postMessage({ id: null, method: 'deallocate', params: { arrayBuffer: arrayBuffer } }); | ||
worker.postMessage({ id: null, method: 'deallocate', params: { arrayBuffer: arrayBuffer } }, [arrayBuffer]); | ||
}; | ||
@@ -42,0 +42,0 @@ return { |
@@ -1,1 +0,1 @@ | ||
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports):"function"==typeof define&&define.amd?define(["exports"],a):a(e.asyncArrayBuffer=e.asyncArrayBuffer||{})}(this,function(e){"use strict";var a=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,r=function(e){for(var r=Math.round(Math.random()*a);e.has(r);)r=Math.round(Math.random()*a);return r},t=new Blob(['!function(){"use strict";var e=function(e){return new ArrayBuffer(e)};addEventListener("message",function(r){var a=r.data;try{if("allocate"===a.method){var s=a.id,t=a.params.length,n=e(t);postMessage({error:null,id:s,result:{arrayBuffer:n}},[n])}else a.method}catch(e){postMessage({error:{message:e.message},id:a.id,result:null})}})}();'],{type:"application/javascript"}),n=function(e){var a=new Worker(e),t=new Set;return{allocate:function(e){return new Promise(function(n,o){var s=r(t);t.add(s);var l=function e(r){var l=r.data;l.id===s&&(t.delete(s),a.removeEventListener("message",e),null===l.error?n(l.result.arrayBuffer):o(new Error(l.error.message)))};a.addEventListener("message",l),a.postMessage({id:s,method:"allocate",params:{length:e}})})},deallocate:function(e){a.postMessage({id:null,method:"deallocate",params:{arrayBuffer:e}})}}}(URL.createObjectURL(t)),o=n.allocate,s=n.deallocate;e.allocate=o,e.deallocate=s,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports):"function"==typeof define&&define.amd?define(["exports"],a):a(e.asyncArrayBuffer=e.asyncArrayBuffer||{})}(this,function(e){"use strict";var a=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,r=function(e){for(var r=Math.round(Math.random()*a);e.has(r);)r=Math.round(Math.random()*a);return r},t=new Blob(['!function(){"use strict";var e=function(e){return new ArrayBuffer(e)};addEventListener("message",function(r){var a=r.data;try{if("allocate"===a.method){var s=a.id,t=a.params.length,n=e(t);postMessage({error:null,id:s,result:{arrayBuffer:n}},[n])}else a.method}catch(e){postMessage({error:{message:e.message},id:a.id,result:null})}})}();'],{type:"application/javascript"}),n=function(e){var a=new Worker(e),t=new Set;return{allocate:function(e){return new Promise(function(n,o){var s=r(t);t.add(s);var l=function e(r){var l=r.data;l.id===s&&(t.delete(s),a.removeEventListener("message",e),null===l.error?n(l.result.arrayBuffer):o(new Error(l.error.message)))};a.addEventListener("message",l),a.postMessage({id:s,method:"allocate",params:{length:e}})})},deallocate:function(e){a.postMessage({id:null,method:"deallocate",params:{arrayBuffer:e}},[e])}}}(URL.createObjectURL(t)),o=n.allocate,s=n.deallocate;e.allocate=o,e.deallocate=s,Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -8,2 +8,2 @@ import { load } from 'async-array-buffer-broker'; | ||
export var deallocate = asyncArrayBuffer.deallocate; | ||
//# sourceMappingURL=/users/chrisguttandin/repositories/async-array-buffer/node_modules/tsconfig-holy-grail/src/module.js.map | ||
//# sourceMappingURL=/private/var/folders/d9/rfrzl3y142q4pz1rvmx3ytt80000gn/t/async-array-buffer-repository-cshjsv/node_modules/tsconfig-holy-grail/src/module.js.map |
// tslint:disable-next-line:max-line-length | ||
// tslint:disable-next-line:max-line-length | ||
export var worker = "!function(){\"use strict\";var e=function(e){return new ArrayBuffer(e)};addEventListener(\"message\",function(r){var a=r.data;try{if(\"allocate\"===a.method){var s=a.id,t=a.params.length,n=e(t);postMessage({error:null,id:s,result:{arrayBuffer:n}},[n])}else a.method}catch(e){postMessage({error:{message:e.message},id:a.id,result:null})}})}();"; | ||
//# sourceMappingURL=/users/chrisguttandin/repositories/async-array-buffer/node_modules/tsconfig-holy-grail/src/worker/worker.js.map | ||
//# sourceMappingURL=/private/var/folders/d9/rfrzl3y142q4pz1rvmx3ytt80000gn/t/async-array-buffer-repository-cshjsv/node_modules/tsconfig-holy-grail/src/worker/worker.js.map |
@@ -13,3 +13,3 @@ { | ||
"babel-preset-es2015": "^6.18.0", | ||
"chai": "^3.5.0", | ||
"chai": "^4.0.0", | ||
"eslint-config-holy-grail": "^17.0.0", | ||
@@ -29,3 +29,3 @@ "grunt": "^1.0.1", | ||
"karma-firefox-launcher": "^1.0.0", | ||
"karma-leche": "0.0.8", | ||
"karma-leche": "0.0.9", | ||
"karma-mocha": "^1.1.0", | ||
@@ -44,3 +44,3 @@ "karma-sauce-launcher": "^1.0.0", | ||
"tsconfig-holy-grail": "^2.1.0", | ||
"tslint-config-holy-grail": "^7.0.0", | ||
"tslint-config-holy-grail": "^8.0.0", | ||
"typescript": "^2.0.10", | ||
@@ -70,3 +70,3 @@ "webpack": "^2.2.0" | ||
"types": "build/es2015/module.d.ts", | ||
"version": "1.0.0" | ||
"version": "1.0.1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12503