array-buffer-cache-broker 4.0.60 → 4.0.62

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Christoph Guttandin
3
+ Copyright (c) 2023 Christoph Guttandin
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -4,11 +4,6 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.arrayBufferCacheBroker = {}, global._asyncToGenerator, global._regeneratorRuntime, global.brokerFactory, global.fastUniqueNumbers));
5
5
  })(this, (function (exports, _asyncToGenerator, _regeneratorRuntime, brokerFactory, fastUniqueNumbers) { 'use strict';
6
6
 
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
-
9
- var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
10
- var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
11
-
12
7
  var arrayBufferIds = new Set();
13
8
  var wrap = brokerFactory.createBroker({
14
9
  clone: function clone(_ref) {
@@ -22,21 +17,19 @@
22
17
  purge: function purge(_ref2) {
23
18
  var call = _ref2.call;
24
19
  return /*#__PURE__*/function () {
25
- var _ref3 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(arrayBufferId) {
26
- return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
27
- while (1) {
28
- switch (_context.prev = _context.next) {
29
- case 0:
30
- _context.next = 2;
31
- return call('purge', {
32
- arrayBufferId: arrayBufferId
33
- });
34
- case 2:
35
- arrayBufferIds["delete"](arrayBufferId);
36
- case 3:
37
- case "end":
38
- return _context.stop();
39
- }
20
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(arrayBufferId) {
21
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
22
+ while (1) switch (_context.prev = _context.next) {
23
+ case 0:
24
+ _context.next = 2;
25
+ return call('purge', {
26
+ arrayBufferId: arrayBufferId
27
+ });
28
+ case 2:
29
+ arrayBufferIds["delete"](arrayBufferId);
30
+ case 3:
31
+ case "end":
32
+ return _context.stop();
40
33
  }
41
34
  }, _callee);
42
35
  }));
@@ -59,24 +52,22 @@
59
52
  store: function store(_ref5) {
60
53
  var call = _ref5.call;
61
54
  return /*#__PURE__*/function () {
62
- var _ref6 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(arrayBuffer) {
55
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(arrayBuffer) {
63
56
  var arrayBufferId;
64
- return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
65
- while (1) {
66
- switch (_context2.prev = _context2.next) {
67
- case 0:
68
- arrayBufferId = fastUniqueNumbers.addUniqueNumber(arrayBufferIds);
69
- _context2.next = 3;
70
- return call('store', {
71
- arrayBuffer: arrayBuffer,
72
- arrayBufferId: arrayBufferId
73
- }, [arrayBuffer]);
74
- case 3:
75
- return _context2.abrupt("return", arrayBufferId);
76
- case 4:
77
- case "end":
78
- return _context2.stop();
79
- }
57
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
58
+ while (1) switch (_context2.prev = _context2.next) {
59
+ case 0:
60
+ arrayBufferId = fastUniqueNumbers.addUniqueNumber(arrayBufferIds);
61
+ _context2.next = 3;
62
+ return call('store', {
63
+ arrayBuffer: arrayBuffer,
64
+ arrayBufferId: arrayBufferId
65
+ }, [arrayBuffer]);
66
+ case 3:
67
+ return _context2.abrupt("return", arrayBufferId);
68
+ case 4:
69
+ case "end":
70
+ return _context2.stop();
80
71
  }
81
72
  }, _callee2);
82
73
  }));
@@ -94,6 +85,4 @@
94
85
  exports.load = load;
95
86
  exports.wrap = wrap;
96
87
 
97
- Object.defineProperty(exports, '__esModule', { value: true });
98
-
99
88
  }));
package/package.json CHANGED
@@ -9,30 +9,30 @@
9
9
  }
10
10
  },
11
11
  "dependencies": {
12
- "@babel/runtime": "^7.20.1",
13
- "array-buffer-cache-worker": "^6.0.60",
14
- "broker-factory": "^3.0.71",
15
- "fast-unique-numbers": "^6.0.24",
12
+ "@babel/runtime": "^7.20.7",
13
+ "array-buffer-cache-worker": "^6.0.62",
14
+ "broker-factory": "^3.0.73",
15
+ "fast-unique-numbers": "^7.0.0",
16
16
  "tslib": "^2.4.1"
17
17
  },
18
18
  "description": "The broker which is used by the array-buffer-cache package.",
19
19
  "devDependencies": {
20
- "@babel/core": "^7.20.2",
20
+ "@babel/core": "^7.20.12",
21
21
  "@babel/plugin-external-helpers": "^7.18.6",
22
22
  "@babel/plugin-transform-runtime": "^7.19.6",
23
23
  "@babel/preset-env": "^7.20.2",
24
- "@commitlint/cli": "^17.3.0",
25
- "@commitlint/config-angular": "^17.3.0",
26
- "@rollup/plugin-babel": "^5.3.1",
24
+ "@commitlint/cli": "^17.4.2",
25
+ "@commitlint/config-angular": "^17.4.2",
26
+ "@rollup/plugin-babel": "^6.0.3",
27
27
  "chai": "^4.3.7",
28
- "commitizen": "^4.2.5",
28
+ "commitizen": "^4.2.6",
29
29
  "cz-conventional-changelog": "^3.3.0",
30
- "eslint": "^8.28.0",
31
- "eslint-config-holy-grail": "^52.0.33",
30
+ "eslint": "^8.32.0",
31
+ "eslint-config-holy-grail": "^55.0.2",
32
32
  "grunt": "^1.5.3",
33
33
  "grunt-cli": "^1.4.3",
34
34
  "grunt-sh": "^0.2.0",
35
- "husky": "^8.0.2",
35
+ "husky": "^8.0.3",
36
36
  "karma": "^6.4.1",
37
37
  "karma-chrome-launcher": "^3.1.1",
38
38
  "karma-firefox-launcher": "^2.1.2",
@@ -42,18 +42,18 @@
42
42
  "karma-sinon-chai": "^2.0.2",
43
43
  "karma-webpack": "^5.0.0",
44
44
  "load-grunt-config": "^4.0.1",
45
- "mocha": "^10.1.0",
46
- "prettier": "^2.8.0",
45
+ "mocha": "^10.2.0",
46
+ "prettier": "^2.8.3",
47
47
  "pretty-quick": "^3.1.3",
48
- "rimraf": "^3.0.2",
49
- "rollup": "^2.79.1",
50
- "sinon": "^14.0.2",
48
+ "rimraf": "^4.0.6",
49
+ "rollup": "^3.10.0",
50
+ "sinon": "^15.0.1",
51
51
  "sinon-chai": "^3.7.0",
52
- "ts-loader": "^9.4.1",
53
- "tsconfig-holy-grail": "^11.1.36",
52
+ "ts-loader": "^9.4.2",
53
+ "tsconfig-holy-grail": "^12.0.0",
54
54
  "tslint": "^6.1.3",
55
- "tslint-config-holy-grail": "^53.2.34",
56
- "typescript": "^4.9.3",
55
+ "tslint-config-holy-grail": "^54.0.0",
56
+ "typescript": "^4.9.4",
57
57
  "webpack": "^5.75.0"
58
58
  },
59
59
  "files": [
@@ -76,5 +76,5 @@
76
76
  "test": "grunt lint && grunt test"
77
77
  },
78
78
  "types": "build/es2019/module.d.ts",
79
- "version": "4.0.60"
79
+ "version": "4.0.62"
80
80
  }