@jsii/runtime 1.84.0 → 1.85.0
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/bin/jsii-runtime.js +1 -2
- package/lib/host.js +1 -1
- package/package.json +8 -8
- package/webpack/bin/jsii-runtime.js +29 -21
- package/webpack/lib/program.js +1 -1
package/bin/jsii-runtime.js
CHANGED
|
@@ -8,8 +8,7 @@ const path_1 = require("path");
|
|
|
8
8
|
// Spawn another node process, with the following file descriptor setup:
|
|
9
9
|
// - No STDIN will be provided
|
|
10
10
|
// - STDOUT and STDERR will be intercepted, contents wrapped & forward to STDERR
|
|
11
|
-
// - FD#3 is the communication pipe to read jsii API messages
|
|
12
|
-
// - FD#4 is the communication pipe to write jsii API responses
|
|
11
|
+
// - FD#3 is the communication pipe to read & write jsii API messages
|
|
13
12
|
const child = (0, child_process_1.spawn)(process.execPath, [...process.execArgv, (0, path_1.resolve)(__dirname, '..', 'lib', 'program.js')], { stdio: ['ignore', 'pipe', 'pipe', 'pipe'] });
|
|
14
13
|
//#region Exit, error and signal forwarders
|
|
15
14
|
child.once('end', (code, signal) => {
|
package/lib/host.js
CHANGED
|
@@ -31,7 +31,7 @@ class KernelHost {
|
|
|
31
31
|
}
|
|
32
32
|
callbackHandler(callback) {
|
|
33
33
|
// write a "callback" response, which is a special response that tells
|
|
34
|
-
// the client that there's
|
|
34
|
+
// the client that there's synchronous callback it needs to invoke and
|
|
35
35
|
// bring back the result via a "complete" request.
|
|
36
36
|
this.inout.write({ callback });
|
|
37
37
|
return completeCallback.call(this);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsii/runtime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.85.0",
|
|
4
4
|
"description": "jsii runtime kernel process",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"package": "package-js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@jsii/kernel": "^1.
|
|
38
|
-
"@jsii/check-node": "1.
|
|
39
|
-
"@jsii/spec": "^1.
|
|
37
|
+
"@jsii/kernel": "^1.85.0",
|
|
38
|
+
"@jsii/check-node": "1.85.0",
|
|
39
|
+
"@jsii/spec": "^1.85.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@scope/jsii-calc-base": "^1.
|
|
43
|
-
"@scope/jsii-calc-lib": "^1.
|
|
44
|
-
"jsii-build-tools": "^1.
|
|
42
|
+
"@scope/jsii-calc-base": "^1.85.0",
|
|
43
|
+
"@scope/jsii-calc-lib": "^1.85.0",
|
|
44
|
+
"jsii-build-tools": "^1.85.0",
|
|
45
45
|
"jsii-calc": "^3.20.120",
|
|
46
46
|
"source-map-loader": "^4.0.1",
|
|
47
|
-
"webpack": "^5.
|
|
47
|
+
"webpack": "^5.87.0",
|
|
48
48
|
"webpack-cli": "^5.1.4"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -1463,6 +1463,7 @@ var __webpack_modules__ = {
|
|
|
1463
1463
|
comp = comp.value;
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
1466
1467
|
debug("comparator", comp, options);
|
|
1467
1468
|
this.options = options;
|
|
1468
1469
|
this.loose = !!options.loose;
|
|
@@ -1549,7 +1550,7 @@ var __webpack_modules__ = {
|
|
|
1549
1550
|
}
|
|
1550
1551
|
module.exports = Comparator;
|
|
1551
1552
|
const parseOptions = __webpack_require__(3867);
|
|
1552
|
-
const {re, t} = __webpack_require__(9541);
|
|
1553
|
+
const {safeRe: re, t} = __webpack_require__(9541);
|
|
1553
1554
|
const cmp = __webpack_require__(1918);
|
|
1554
1555
|
const debug = __webpack_require__(5432);
|
|
1555
1556
|
const SemVer = __webpack_require__(3013);
|
|
@@ -1575,10 +1576,10 @@ var __webpack_modules__ = {
|
|
|
1575
1576
|
this.options = options;
|
|
1576
1577
|
this.loose = !!options.loose;
|
|
1577
1578
|
this.includePrerelease = !!options.includePrerelease;
|
|
1578
|
-
this.raw = range;
|
|
1579
|
-
this.set =
|
|
1579
|
+
this.raw = range.trim().split(/\s+/).join(" ");
|
|
1580
|
+
this.set = this.raw.split("||").map((r => this.parseRange(r))).filter((c => c.length));
|
|
1580
1581
|
if (!this.set.length) {
|
|
1581
|
-
throw new TypeError(`Invalid SemVer Range: ${
|
|
1582
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
1582
1583
|
}
|
|
1583
1584
|
if (this.set.length > 1) {
|
|
1584
1585
|
const first = this.set[0];
|
|
@@ -1604,7 +1605,6 @@ var __webpack_modules__ = {
|
|
|
1604
1605
|
return this.range;
|
|
1605
1606
|
}
|
|
1606
1607
|
parseRange(range) {
|
|
1607
|
-
range = range.trim();
|
|
1608
1608
|
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
1609
1609
|
const memoKey = memoOpts + ":" + range;
|
|
1610
1610
|
const cached = cache.get(memoKey);
|
|
@@ -1619,7 +1619,6 @@ var __webpack_modules__ = {
|
|
|
1619
1619
|
debug("comparator trim", range);
|
|
1620
1620
|
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
1621
1621
|
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
1622
|
-
range = range.split(/\s+/).join(" ");
|
|
1623
1622
|
let rangeList = range.split(" ").map((comp => parseComparator(comp, this.options))).join(" ").split(/\s+/).map((comp => replaceGTE0(comp, this.options)));
|
|
1624
1623
|
if (loose) {
|
|
1625
1624
|
rangeList = rangeList.filter((comp => {
|
|
@@ -1677,7 +1676,7 @@ var __webpack_modules__ = {
|
|
|
1677
1676
|
const Comparator = __webpack_require__(7706);
|
|
1678
1677
|
const debug = __webpack_require__(5432);
|
|
1679
1678
|
const SemVer = __webpack_require__(3013);
|
|
1680
|
-
const {re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace} = __webpack_require__(9541);
|
|
1679
|
+
const {safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace} = __webpack_require__(9541);
|
|
1681
1680
|
const {FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE} = __webpack_require__(9041);
|
|
1682
1681
|
const isNullSet = c => c.value === "<0.0.0-0";
|
|
1683
1682
|
const isAny = c => c.value === "";
|
|
@@ -1892,7 +1891,7 @@ var __webpack_modules__ = {
|
|
|
1892
1891
|
3013: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1893
1892
|
const debug = __webpack_require__(5432);
|
|
1894
1893
|
const {MAX_LENGTH, MAX_SAFE_INTEGER} = __webpack_require__(9041);
|
|
1895
|
-
const {re, t} = __webpack_require__(9541);
|
|
1894
|
+
const {safeRe: re, t} = __webpack_require__(9541);
|
|
1896
1895
|
const parseOptions = __webpack_require__(3867);
|
|
1897
1896
|
const {compareIdentifiers} = __webpack_require__(3650);
|
|
1898
1897
|
class SemVer {
|
|
@@ -2123,8 +2122,10 @@ var __webpack_modules__ = {
|
|
|
2123
2122
|
default:
|
|
2124
2123
|
throw new Error(`invalid increment argument: ${release}`);
|
|
2125
2124
|
}
|
|
2126
|
-
this.format();
|
|
2127
|
-
this.
|
|
2125
|
+
this.raw = this.format();
|
|
2126
|
+
if (this.build.length) {
|
|
2127
|
+
this.raw += `+${this.build.join(".")}`;
|
|
2128
|
+
}
|
|
2128
2129
|
return this;
|
|
2129
2130
|
}
|
|
2130
2131
|
}
|
|
@@ -2194,7 +2195,7 @@ var __webpack_modules__ = {
|
|
|
2194
2195
|
4115: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2195
2196
|
const SemVer = __webpack_require__(3013);
|
|
2196
2197
|
const parse = __webpack_require__(7507);
|
|
2197
|
-
const {re, t} = __webpack_require__(9541);
|
|
2198
|
+
const {safeRe: re, t} = __webpack_require__(9541);
|
|
2198
2199
|
const coerce = (version, options) => {
|
|
2199
2200
|
if (version instanceof SemVer) {
|
|
2200
2201
|
return version;
|
|
@@ -2258,6 +2259,19 @@ var __webpack_modules__ = {
|
|
|
2258
2259
|
const highVersion = v1Higher ? v1 : v2;
|
|
2259
2260
|
const lowVersion = v1Higher ? v2 : v1;
|
|
2260
2261
|
const highHasPre = !!highVersion.prerelease.length;
|
|
2262
|
+
const lowHasPre = !!lowVersion.prerelease.length;
|
|
2263
|
+
if (lowHasPre && !highHasPre) {
|
|
2264
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
2265
|
+
return "major";
|
|
2266
|
+
}
|
|
2267
|
+
if (highVersion.patch) {
|
|
2268
|
+
return "patch";
|
|
2269
|
+
}
|
|
2270
|
+
if (highVersion.minor) {
|
|
2271
|
+
return "minor";
|
|
2272
|
+
}
|
|
2273
|
+
return "major";
|
|
2274
|
+
}
|
|
2261
2275
|
const prefix = highHasPre ? "pre" : "";
|
|
2262
2276
|
if (v1.major !== v2.major) {
|
|
2263
2277
|
return prefix + "major";
|
|
@@ -2268,16 +2282,7 @@ var __webpack_modules__ = {
|
|
|
2268
2282
|
if (v1.patch !== v2.patch) {
|
|
2269
2283
|
return prefix + "patch";
|
|
2270
2284
|
}
|
|
2271
|
-
|
|
2272
|
-
return "prerelease";
|
|
2273
|
-
}
|
|
2274
|
-
if (lowVersion.patch) {
|
|
2275
|
-
return "patch";
|
|
2276
|
-
}
|
|
2277
|
-
if (lowVersion.minor) {
|
|
2278
|
-
return "minor";
|
|
2279
|
-
}
|
|
2280
|
-
return "major";
|
|
2285
|
+
return "prerelease";
|
|
2281
2286
|
};
|
|
2282
2287
|
module.exports = diff;
|
|
2283
2288
|
},
|
|
@@ -2550,15 +2555,18 @@ var __webpack_modules__ = {
|
|
|
2550
2555
|
const debug = __webpack_require__(5432);
|
|
2551
2556
|
exports = module.exports = {};
|
|
2552
2557
|
const re = exports.re = [];
|
|
2558
|
+
const safeRe = exports.safeRe = [];
|
|
2553
2559
|
const src = exports.src = [];
|
|
2554
2560
|
const t = exports.t = {};
|
|
2555
2561
|
let R = 0;
|
|
2556
2562
|
const createToken = (name, value, isGlobal) => {
|
|
2563
|
+
const safe = value.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s");
|
|
2557
2564
|
const index = R++;
|
|
2558
2565
|
debug(name, index, value);
|
|
2559
2566
|
t[name] = index;
|
|
2560
2567
|
src[index] = value;
|
|
2561
2568
|
re[index] = new RegExp(value, isGlobal ? "g" : undefined);
|
|
2569
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : undefined);
|
|
2562
2570
|
};
|
|
2563
2571
|
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
2564
2572
|
createToken("NUMERICIDENTIFIERLOOSE", "[0-9]+");
|
package/webpack/lib/program.js
CHANGED
|
@@ -17312,7 +17312,7 @@ var __webpack_modules__ = {
|
|
|
17312
17312
|
},
|
|
17313
17313
|
4147: module => {
|
|
17314
17314
|
"use strict";
|
|
17315
|
-
module.exports = JSON.parse('{"name":"@jsii/runtime","version":"1.
|
|
17315
|
+
module.exports = JSON.parse('{"name":"@jsii/runtime","version":"1.85.0","description":"jsii runtime kernel process","license":"Apache-2.0","author":{"name":"Amazon Web Services","url":"https://aws.amazon.com"},"homepage":"https://github.com/aws/jsii","bugs":{"url":"https://github.com/aws/jsii/issues"},"repository":{"type":"git","url":"https://github.com/aws/jsii.git","directory":"packages/@jsii/runtime"},"engines":{"node":">= 14.17.0"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"jsii-runtime":"bin/jsii-runtime"},"scripts":{"build":"tsc --build && chmod +x bin/jsii-runtime && npx webpack-cli && npm run lint","watch":"tsc --build -w","lint":"eslint . --ext .js,.ts --ignore-path=.gitignore --ignore-pattern=webpack.config.js","lint:fix":"yarn lint --fix","test":"jest","test:update":"jest -u","package":"package-js"},"dependencies":{"@jsii/kernel":"^1.85.0","@jsii/check-node":"1.85.0","@jsii/spec":"^1.85.0"},"devDependencies":{"@scope/jsii-calc-base":"^1.85.0","@scope/jsii-calc-lib":"^1.85.0","jsii-build-tools":"^1.85.0","jsii-calc":"^3.20.120","source-map-loader":"^4.0.1","webpack":"^5.87.0","webpack-cli":"^5.1.4"}}');
|
|
17316
17316
|
},
|
|
17317
17317
|
5277: module => {
|
|
17318
17318
|
"use strict";
|