async-array-buffer-broker
Advanced tools
Comparing version 2.0.14 to 2.0.15
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('babel-runtime/regenerator'), require('tslib'), require('broker-factory')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'babel-runtime/regenerator', 'tslib', 'broker-factory'], factory) : | ||
(factory((global.asyncArrayBufferBroker = {}),global._regeneratorRuntime,global.tslib_1,global.brokerFactory)); | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('babel-runtime/regenerator'), require('tslib'), require('broker-factory')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'babel-runtime/regenerator', 'tslib', 'broker-factory'], factory) : | ||
(factory((global.asyncArrayBufferBroker = {}),global._regeneratorRuntime,global.tslib_1,global.brokerFactory)); | ||
}(this, (function (exports,_regeneratorRuntime,tslib_1,brokerFactory) { 'use strict'; | ||
_regeneratorRuntime = _regeneratorRuntime && _regeneratorRuntime.hasOwnProperty('default') ? _regeneratorRuntime['default'] : _regeneratorRuntime; | ||
_regeneratorRuntime = _regeneratorRuntime && _regeneratorRuntime.hasOwnProperty('default') ? _regeneratorRuntime['default'] : _regeneratorRuntime; | ||
var _this = undefined; | ||
var wrap = brokerFactory.createBroker({ | ||
allocate: function allocate(_ref) { | ||
var call = _ref.call; | ||
var _this = undefined; | ||
var wrap = brokerFactory.createBroker({ | ||
allocate: function allocate(_ref) { | ||
var call = _ref.call; | ||
return function (length) { | ||
return tslib_1.__awaiter(_this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() { | ||
return _regeneratorRuntime.wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
return _context.abrupt('return', call('allocate', { length: length })); | ||
return function (length) { | ||
return tslib_1.__awaiter(_this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() { | ||
return _regeneratorRuntime.wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
return _context.abrupt('return', call('allocate', { length: length })); | ||
case 1: | ||
case 'end': | ||
return _context.stop(); | ||
case 1: | ||
case 'end': | ||
return _context.stop(); | ||
} | ||
} | ||
} | ||
}, _callee, this); | ||
})); | ||
}; | ||
}, | ||
deallocate: function deallocate(_ref2) { | ||
var notify = _ref2.notify; | ||
}, _callee, this); | ||
})); | ||
}; | ||
}, | ||
deallocate: function deallocate(_ref2) { | ||
var notify = _ref2.notify; | ||
return function (arrayBuffer) { | ||
notify('deallocate', { arrayBuffer: arrayBuffer }, [arrayBuffer]); | ||
}; | ||
} | ||
}); | ||
var load = function load(url) { | ||
var worker = new Worker(url); | ||
return wrap(worker); | ||
}; | ||
return function (arrayBuffer) { | ||
notify('deallocate', { arrayBuffer: arrayBuffer }, [arrayBuffer]); | ||
}; | ||
} | ||
}); | ||
var load = function load(url) { | ||
var worker = new Worker(url); | ||
return wrap(worker); | ||
}; | ||
exports.wrap = wrap; | ||
exports.load = load; | ||
exports.wrap = wrap; | ||
exports.load = load; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
}))); |
@@ -6,7 +6,12 @@ { | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "cz-conventional-changelog" | ||
} | ||
}, | ||
"dependencies": { | ||
"async-array-buffer-worker": "^3.0.12", | ||
"async-array-buffer-worker": "^3.0.13", | ||
"babel-runtime": "^6.26.0", | ||
"broker-factory": "^1.2.11", | ||
"fast-unique-numbers": "^1.1.3", | ||
"broker-factory": "^1.2.12", | ||
"fast-unique-numbers": "^1.1.4", | ||
"tslib": "^1.9.0" | ||
@@ -16,2 +21,4 @@ }, | ||
"devDependencies": { | ||
"@commitlint/cli": "^6.1.3", | ||
"@commitlint/config-angular": "^6.1.3", | ||
"babel-core": "^6.26.0", | ||
@@ -22,5 +29,7 @@ "babel-plugin-external-helpers": "^6.22.0", | ||
"chai": "^4.1.2", | ||
"eslint": "^4.18.1", | ||
"eslint-config-holy-grail": "^25.0.0", | ||
"greenkeeper-lockfile": "^1.13.2", | ||
"commitizen": "^2.9.6", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"eslint": "^4.19.0", | ||
"eslint-config-holy-grail": "^26.0.0", | ||
"greenkeeper-lockfile": "^1.14.0", | ||
"grunt": "^1.0.2", | ||
@@ -42,19 +51,19 @@ "grunt-cli": "^1.2.0", | ||
"karma-sinon-chai": "^1.3.3", | ||
"karma-webpack": "^2.0.11", | ||
"karma-webpack": "^2.0.13", | ||
"load-grunt-config": "^0.19.2", | ||
"mocha": "^5.0.1", | ||
"rollup": "^0.56.3", | ||
"mocha": "^5.0.4", | ||
"rollup": "^0.57.1", | ||
"rollup-plugin-babel": "^3.0.3", | ||
"sinon": "^4.4.2", | ||
"sinon-chai": "^2.14.0", | ||
"ts-loader": "^4.0.0", | ||
"tsconfig-holy-grail": "^4.0.0", | ||
"sinon": "^4.4.6", | ||
"sinon-chai": "^3.0.0", | ||
"ts-loader": "^4.1.0", | ||
"tsconfig-holy-grail": "^4.0.1", | ||
"tslint": "^5.9.1", | ||
"tslint-config-holy-grail": "^22.0.6", | ||
"tslint-config-holy-grail": "^23.0.3", | ||
"typescript": "^2.7.2", | ||
"webpack": "^4.0.0" | ||
"webpack": "^4.1.1" | ||
}, | ||
"files": [ | ||
"build/es2015/", | ||
"build/es5/", | ||
"build/es2015/", | ||
"build/esm/", | ||
@@ -73,2 +82,3 @@ "src/" | ||
"scripts": { | ||
"commitmsg": "commitlint --edit --extends @commitlint/config-angular", | ||
"precommit": "grunt lint", | ||
@@ -79,3 +89,3 @@ "prepublishOnly": "grunt build", | ||
"types": "build/es2015/module.d.ts", | ||
"version": "2.0.14" | ||
"version": "2.0.15" | ||
} |
13400
41
Updatedbroker-factory@^1.2.12
Updatedfast-unique-numbers@^1.1.4