@jsenv/core 29.4.4 → 29.4.5
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/dist/babel_helpers/wrapRegExp/wrapRegExp.js +16 -3
- package/dist/js/ws.js +10 -10
- package/package.json +8 -8
|
@@ -15,14 +15,19 @@ export default function _wrapRegExp() {
|
|
|
15
15
|
inherits(BabelRegExp, RegExp);
|
|
16
16
|
BabelRegExp.prototype.exec = function (str) {
|
|
17
17
|
var result = _super.exec.call(this, str);
|
|
18
|
-
if (result)
|
|
18
|
+
if (result) {
|
|
19
|
+
result.groups = buildGroups(result, this);
|
|
20
|
+
var indices = result.indices;
|
|
21
|
+
if (indices) indices.groups = buildGroups(indices, this);
|
|
22
|
+
}
|
|
19
23
|
return result;
|
|
20
24
|
};
|
|
21
25
|
BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
|
22
26
|
if (typeof substitution === "string") {
|
|
23
27
|
var groups = _groups.get(this);
|
|
24
28
|
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
|
25
|
-
|
|
29
|
+
var group = groups[name];
|
|
30
|
+
return "$" + (Array.isArray(group) ? group.join("$") : group);
|
|
26
31
|
}));
|
|
27
32
|
} else if (typeof substitution === "function") {
|
|
28
33
|
var _this = this;
|
|
@@ -45,7 +50,15 @@ export default function _wrapRegExp() {
|
|
|
45
50
|
|
|
46
51
|
var g = _groups.get(re);
|
|
47
52
|
return Object.keys(g).reduce(function (groups, name) {
|
|
48
|
-
|
|
53
|
+
var i = g[name];
|
|
54
|
+
if (typeof i === "number") groups[name] = result[i];else {
|
|
55
|
+
// i is an array of indexes
|
|
56
|
+
var k = 0;
|
|
57
|
+
// if no group matched, we stop at k = i.length - 1 and then
|
|
58
|
+
// we store result[i[i.length - 1]] which is undefined.
|
|
59
|
+
while (result[i[k]] === undefined && k + 1 < i.length) k++;
|
|
60
|
+
groups[name] = result[i[k]];
|
|
61
|
+
}
|
|
49
62
|
return groups;
|
|
50
63
|
}, Object.create(null));
|
|
51
64
|
}
|
package/dist/js/ws.js
CHANGED
|
@@ -283,7 +283,7 @@ const kRun = Symbol('kRun');
|
|
|
283
283
|
* A very simple job queue with adjustable concurrency. Adapted from
|
|
284
284
|
* https://github.com/STRML/async-limiter
|
|
285
285
|
*/
|
|
286
|
-
|
|
286
|
+
let Limiter$1 = class Limiter {
|
|
287
287
|
/**
|
|
288
288
|
* Creates a new `Limiter`.
|
|
289
289
|
*
|
|
@@ -324,7 +324,7 @@ class Limiter$1 {
|
|
|
324
324
|
job(this[kDone]);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
}
|
|
327
|
+
};
|
|
328
328
|
var limiter = Limiter$1;
|
|
329
329
|
const zlib = require$$0$1;
|
|
330
330
|
const bufferUtil = bufferUtil$1.exports;
|
|
@@ -351,7 +351,7 @@ let zlibLimiter;
|
|
|
351
351
|
/**
|
|
352
352
|
* permessage-deflate implementation.
|
|
353
353
|
*/
|
|
354
|
-
|
|
354
|
+
let PerMessageDeflate$4 = class PerMessageDeflate {
|
|
355
355
|
/**
|
|
356
356
|
* Creates a PerMessageDeflate instance.
|
|
357
357
|
*
|
|
@@ -685,7 +685,7 @@ class PerMessageDeflate$4 {
|
|
|
685
685
|
callback(null, data);
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
|
-
}
|
|
688
|
+
};
|
|
689
689
|
var permessageDeflate = PerMessageDeflate$4;
|
|
690
690
|
|
|
691
691
|
/**
|
|
@@ -873,7 +873,7 @@ const INFLATING = 5;
|
|
|
873
873
|
*
|
|
874
874
|
* @extends Writable
|
|
875
875
|
*/
|
|
876
|
-
|
|
876
|
+
let Receiver$1 = class Receiver extends Writable {
|
|
877
877
|
/**
|
|
878
878
|
* Creates a Receiver instance.
|
|
879
879
|
*
|
|
@@ -1264,7 +1264,7 @@ class Receiver$1 extends Writable {
|
|
|
1264
1264
|
}
|
|
1265
1265
|
this._state = GET_INFO;
|
|
1266
1266
|
}
|
|
1267
|
-
}
|
|
1267
|
+
};
|
|
1268
1268
|
var receiver = Receiver$1;
|
|
1269
1269
|
|
|
1270
1270
|
/**
|
|
@@ -1308,7 +1308,7 @@ const maskBuffer = Buffer.alloc(4);
|
|
|
1308
1308
|
/**
|
|
1309
1309
|
* HyBi Sender implementation.
|
|
1310
1310
|
*/
|
|
1311
|
-
|
|
1311
|
+
let Sender$1 = class Sender {
|
|
1312
1312
|
/**
|
|
1313
1313
|
* Creates a Sender instance.
|
|
1314
1314
|
*
|
|
@@ -1700,7 +1700,7 @@ class Sender$1 {
|
|
|
1700
1700
|
this._socket.write(list[0], cb);
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
1703
|
-
}
|
|
1703
|
+
};
|
|
1704
1704
|
var sender = Sender$1;
|
|
1705
1705
|
const {
|
|
1706
1706
|
kForOnEventAttribute: kForOnEventAttribute$1,
|
|
@@ -2199,7 +2199,7 @@ const subprotocolRegex = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
|
|
|
2199
2199
|
*
|
|
2200
2200
|
* @extends EventEmitter
|
|
2201
2201
|
*/
|
|
2202
|
-
|
|
2202
|
+
let WebSocket$1 = class WebSocket extends EventEmitter$1 {
|
|
2203
2203
|
/**
|
|
2204
2204
|
* Create a new `WebSocket`.
|
|
2205
2205
|
*
|
|
@@ -2590,7 +2590,7 @@ class WebSocket$1 extends EventEmitter$1 {
|
|
|
2590
2590
|
this._socket.destroy();
|
|
2591
2591
|
}
|
|
2592
2592
|
}
|
|
2593
|
-
}
|
|
2593
|
+
};
|
|
2594
2594
|
|
|
2595
2595
|
/**
|
|
2596
2596
|
* @constant {Number} CONNECTING
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "29.4.
|
|
3
|
+
"version": "29.4.5",
|
|
4
4
|
"description": "Tool to develop, test and build js projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@babel/plugin-proposal-dynamic-import": "7.18.6",
|
|
65
|
-
"@babel/plugin-transform-modules-systemjs": "7.19.
|
|
65
|
+
"@babel/plugin-transform-modules-systemjs": "7.19.6",
|
|
66
66
|
"@babel/plugin-transform-modules-umd": "7.18.6",
|
|
67
67
|
"@c88/v8-coverage": "0.1.1",
|
|
68
68
|
"@financial-times/polyfill-useragent-normaliser": "1.10.2",
|
|
69
69
|
"@jsenv/abort": "4.2.4",
|
|
70
|
-
"@jsenv/ast": "1.4.
|
|
71
|
-
"@jsenv/babel-plugins": "1.0.
|
|
70
|
+
"@jsenv/ast": "1.4.3",
|
|
71
|
+
"@jsenv/babel-plugins": "1.0.9",
|
|
72
72
|
"@jsenv/filesystem": "4.1.5",
|
|
73
73
|
"@jsenv/importmap": "1.2.1",
|
|
74
74
|
"@jsenv/integrity": "0.0.1",
|
|
75
75
|
"@jsenv/log": "3.3.1",
|
|
76
76
|
"@jsenv/node-esm-resolution": "0.2.0",
|
|
77
|
-
"@jsenv/server": "14.1.
|
|
77
|
+
"@jsenv/server": "14.1.9",
|
|
78
78
|
"@jsenv/sourcemap": "1.0.6",
|
|
79
79
|
"@jsenv/uneval": "1.6.0",
|
|
80
80
|
"@jsenv/url-meta": "7.0.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"istanbul-reports": "3.1.5",
|
|
91
91
|
"launch-editor": "2.6.0",
|
|
92
92
|
"pidtree": "0.6.0",
|
|
93
|
-
"rollup": "3.2.
|
|
93
|
+
"rollup": "3.2.5",
|
|
94
94
|
"string-width": "5.1.2",
|
|
95
95
|
"strip-ansi": "7.0.1",
|
|
96
96
|
"terser": "5.15.1",
|
|
@@ -99,14 +99,14 @@
|
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@babel/eslint-parser": "7.19.1",
|
|
102
|
-
"@babel/plugin-syntax-import-assertions": "7.
|
|
102
|
+
"@babel/plugin-syntax-import-assertions": "7.20.0",
|
|
103
103
|
"@jsenv/assert": "./packages/assert/",
|
|
104
104
|
"@jsenv/eslint-config": "./packages/eslint-config/",
|
|
105
105
|
"@jsenv/file-size-impact": "13.0.1",
|
|
106
106
|
"@jsenv/https-local": "3.0.1",
|
|
107
107
|
"@jsenv/package-workspace": "0.5.0",
|
|
108
108
|
"@jsenv/performance-impact": "3.0.1",
|
|
109
|
-
"eslint": "8.
|
|
109
|
+
"eslint": "8.26.0",
|
|
110
110
|
"eslint-plugin-html": "7.1.0",
|
|
111
111
|
"eslint-plugin-import": "2.26.0",
|
|
112
112
|
"eslint-plugin-react": "7.31.10",
|