broker-factory 3.1.7 → 3.1.8
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 +9 -9
- package/package.json +11 -11
package/build/es5/bundle.js
CHANGED
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
var call = _ref.call;
|
|
19
19
|
return /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
20
20
|
var _MessageChannel, port1, port2, portId;
|
|
21
|
-
return _regeneratorRuntime.wrap(function
|
|
21
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
22
22
|
while (1) switch (_context.prev = _context.next) {
|
|
23
23
|
case 0:
|
|
24
24
|
_MessageChannel = new MessageChannel(), port1 = _MessageChannel.port1, port2 = _MessageChannel.port2;
|
|
25
|
-
_context.next =
|
|
25
|
+
_context.next = 1;
|
|
26
26
|
return call('connect', {
|
|
27
27
|
port: port1
|
|
28
28
|
}, [port1]);
|
|
29
|
-
case
|
|
29
|
+
case 1:
|
|
30
30
|
portId = _context.sent;
|
|
31
31
|
PORT_MAP.set(port2, portId);
|
|
32
32
|
return _context.abrupt("return", port2);
|
|
33
|
-
case
|
|
33
|
+
case 2:
|
|
34
34
|
case "end":
|
|
35
35
|
return _context.stop();
|
|
36
36
|
}
|
|
@@ -42,21 +42,21 @@
|
|
|
42
42
|
return /*#__PURE__*/function () {
|
|
43
43
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(port) {
|
|
44
44
|
var portId;
|
|
45
|
-
return _regeneratorRuntime.wrap(function
|
|
45
|
+
return _regeneratorRuntime.wrap(function (_context2) {
|
|
46
46
|
while (1) switch (_context2.prev = _context2.next) {
|
|
47
47
|
case 0:
|
|
48
48
|
portId = PORT_MAP.get(port);
|
|
49
49
|
if (!(portId === undefined)) {
|
|
50
|
-
_context2.next =
|
|
50
|
+
_context2.next = 1;
|
|
51
51
|
break;
|
|
52
52
|
}
|
|
53
53
|
throw new Error('The given port is not connected.');
|
|
54
|
-
case
|
|
55
|
-
_context2.next =
|
|
54
|
+
case 1:
|
|
55
|
+
_context2.next = 2;
|
|
56
56
|
return call('disconnect', {
|
|
57
57
|
portId: portId
|
|
58
58
|
});
|
|
59
|
-
case
|
|
59
|
+
case 2:
|
|
60
60
|
case "end":
|
|
61
61
|
return _context2.stop();
|
|
62
62
|
}
|
package/package.json
CHANGED
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"@babel/runtime": "^7.27.6",
|
|
13
13
|
"fast-unique-numbers": "^9.0.22",
|
|
14
14
|
"tslib": "^2.8.1",
|
|
15
|
-
"worker-factory": "^7.0.
|
|
15
|
+
"worker-factory": "^7.0.44"
|
|
16
16
|
},
|
|
17
17
|
"description": "A little factory function to create a broker for a JSON-RPC based Web Worker.",
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@babel/core": "^7.
|
|
19
|
+
"@babel/core": "^7.28.0",
|
|
20
20
|
"@babel/plugin-external-helpers": "^7.27.1",
|
|
21
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
22
|
-
"@babel/preset-env": "^7.
|
|
21
|
+
"@babel/plugin-transform-runtime": "^7.28.0",
|
|
22
|
+
"@babel/preset-env": "^7.28.0",
|
|
23
23
|
"@commitlint/cli": "^19.8.1",
|
|
24
24
|
"@commitlint/config-angular": "^19.8.1",
|
|
25
25
|
"@rollup/plugin-babel": "^6.0.4",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"commitizen": "^4.3.1",
|
|
28
28
|
"cz-conventional-changelog": "^3.3.0",
|
|
29
29
|
"eslint": "^8.57.0",
|
|
30
|
-
"eslint-config-holy-grail": "^60.0.
|
|
30
|
+
"eslint-config-holy-grail": "^60.0.36",
|
|
31
31
|
"husky": "^9.1.7",
|
|
32
32
|
"karma": "^6.4.4",
|
|
33
33
|
"karma-chrome-launcher": "^3.2.0",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"karma-sinon-chai": "^2.0.2",
|
|
38
38
|
"karma-webkit-launcher": "^2.6.0",
|
|
39
39
|
"karma-webpack": "^5.0.1",
|
|
40
|
-
"lint-staged": "^
|
|
41
|
-
"mocha": "^11.
|
|
42
|
-
"prettier": "^3.
|
|
40
|
+
"lint-staged": "^16.1.2",
|
|
41
|
+
"mocha": "^11.7.1",
|
|
42
|
+
"prettier": "^3.6.2",
|
|
43
43
|
"rimraf": "^6.0.1",
|
|
44
|
-
"rollup": "^4.
|
|
44
|
+
"rollup": "^4.44.2",
|
|
45
45
|
"sinon": "^17.0.2",
|
|
46
46
|
"sinon-chai": "^3.7.0",
|
|
47
47
|
"ts-loader": "^9.5.2",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"tslint": "^6.1.3",
|
|
50
50
|
"tslint-config-holy-grail": "^56.0.6",
|
|
51
51
|
"typescript": "^5.8.3",
|
|
52
|
-
"webpack": "^5.
|
|
52
|
+
"webpack": "^5.100.0"
|
|
53
53
|
},
|
|
54
54
|
"files": [
|
|
55
55
|
"build/es2019/",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"test:unit": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"unit\" ]; then karma start config/karma/config-unit.js --single-run; fi"
|
|
78
78
|
},
|
|
79
79
|
"types": "build/es2019/module.d.ts",
|
|
80
|
-
"version": "3.1.
|
|
80
|
+
"version": "3.1.8"
|
|
81
81
|
}
|