@jsii/runtime 1.63.0 → 1.64.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/package.json +8 -8
- package/webpack/lib/program.js +38 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsii/runtime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.64.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.64.0",
|
|
38
|
+
"@jsii/check-node": "1.64.0",
|
|
39
|
+
"@jsii/spec": "^1.64.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.64.0",
|
|
43
|
+
"@scope/jsii-calc-lib": "^1.64.0",
|
|
44
|
+
"jsii-build-tools": "^1.64.0",
|
|
45
45
|
"jsii-calc": "^3.20.120",
|
|
46
46
|
"source-map-loader": "^4.0.0",
|
|
47
|
-
"webpack": "^5.
|
|
47
|
+
"webpack": "^5.74.0",
|
|
48
48
|
"webpack-cli": "^4.10.0"
|
|
49
49
|
}
|
|
50
50
|
}
|
package/webpack/lib/program.js
CHANGED
|
@@ -2707,14 +2707,30 @@ var __webpack_modules__ = {
|
|
|
2707
2707
|
const isArrayBufferView = b => !Buffer.isBuffer(b) && ArrayBuffer.isView(b);
|
|
2708
2708
|
class Pipe {
|
|
2709
2709
|
constructor(src, dest, opts) {
|
|
2710
|
+
this.src = src;
|
|
2710
2711
|
this.dest = dest;
|
|
2711
2712
|
this.opts = opts;
|
|
2712
2713
|
this.ondrain = () => src[RESUME]();
|
|
2713
2714
|
dest.on("drain", this.ondrain);
|
|
2714
2715
|
}
|
|
2716
|
+
unpipe() {
|
|
2717
|
+
this.dest.removeListener("drain", this.ondrain);
|
|
2718
|
+
}
|
|
2719
|
+
proxyErrors() {}
|
|
2715
2720
|
end() {
|
|
2721
|
+
this.unpipe();
|
|
2716
2722
|
if (this.opts.end) this.dest.end();
|
|
2717
|
-
|
|
2723
|
+
}
|
|
2724
|
+
}
|
|
2725
|
+
class PipeProxyErrors extends Pipe {
|
|
2726
|
+
unpipe() {
|
|
2727
|
+
this.src.removeListener("error", this.proxyErrors);
|
|
2728
|
+
super.unpipe();
|
|
2729
|
+
}
|
|
2730
|
+
constructor(src, dest, opts) {
|
|
2731
|
+
super(src, dest, opts);
|
|
2732
|
+
this.proxyErrors = er => dest.emit("error", er);
|
|
2733
|
+
src.on("error", this.proxyErrors);
|
|
2718
2734
|
}
|
|
2719
2735
|
}
|
|
2720
2736
|
module.exports = class Minipass extends Stream {
|
|
@@ -2884,14 +2900,22 @@ var __webpack_modules__ = {
|
|
|
2884
2900
|
const ended = this[EMITTED_END];
|
|
2885
2901
|
opts = opts || {};
|
|
2886
2902
|
if (dest === proc.stdout || dest === proc.stderr) opts.end = false; else opts.end = opts.end !== false;
|
|
2903
|
+
opts.proxyErrors = !!opts.proxyErrors;
|
|
2887
2904
|
if (ended) {
|
|
2888
2905
|
if (opts.end) dest.end();
|
|
2889
2906
|
} else {
|
|
2890
|
-
this.pipes.push(new Pipe(this, dest, opts));
|
|
2907
|
+
this.pipes.push(!opts.proxyErrors ? new Pipe(this, dest, opts) : new PipeProxyErrors(this, dest, opts));
|
|
2891
2908
|
if (this[ASYNC]) defer((() => this[RESUME]())); else this[RESUME]();
|
|
2892
2909
|
}
|
|
2893
2910
|
return dest;
|
|
2894
2911
|
}
|
|
2912
|
+
unpipe(dest) {
|
|
2913
|
+
const p = this.pipes.find((p => p.dest === dest));
|
|
2914
|
+
if (p) {
|
|
2915
|
+
this.pipes.splice(this.pipes.indexOf(p), 1);
|
|
2916
|
+
p.unpipe();
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2895
2919
|
addListener(ev, fn) {
|
|
2896
2920
|
return this.on(ev, fn);
|
|
2897
2921
|
}
|
|
@@ -9758,7 +9782,7 @@ var __webpack_modules__ = {
|
|
|
9758
9782
|
Object.defineProperty(exports, "__esModule", {
|
|
9759
9783
|
value: true
|
|
9760
9784
|
});
|
|
9761
|
-
exports.loadAssemblyFromFile = exports.loadAssemblyFromPath = exports.loadAssemblyFromBuffer = exports.writeAssembly = exports.findAssemblyFile = exports.compressedAssemblyExists = void 0;
|
|
9785
|
+
exports.loadAssemblyFromFile = exports.loadAssemblyFromPath = exports.loadAssemblyFromBuffer = exports.writeAssembly = exports.replaceAssembly = exports.findAssemblyFile = exports.compressedAssemblyExists = void 0;
|
|
9762
9786
|
const fs = __webpack_require__(7147);
|
|
9763
9787
|
const path = __webpack_require__(4822);
|
|
9764
9788
|
const zlib = __webpack_require__(9796);
|
|
@@ -9777,6 +9801,16 @@ var __webpack_modules__ = {
|
|
|
9777
9801
|
return dotJsiiFile;
|
|
9778
9802
|
}
|
|
9779
9803
|
exports.findAssemblyFile = findAssemblyFile;
|
|
9804
|
+
function replaceAssembly(assembly, directory) {
|
|
9805
|
+
writeAssembly(directory, _fingerprint(assembly), {
|
|
9806
|
+
compress: compressedAssemblyExists(directory)
|
|
9807
|
+
});
|
|
9808
|
+
}
|
|
9809
|
+
exports.replaceAssembly = replaceAssembly;
|
|
9810
|
+
function _fingerprint(assembly) {
|
|
9811
|
+
assembly.fingerprint = "*".repeat(10);
|
|
9812
|
+
return assembly;
|
|
9813
|
+
}
|
|
9780
9814
|
function writeAssembly(directory, assembly, {compress = false} = {}) {
|
|
9781
9815
|
if (compress) {
|
|
9782
9816
|
fs.writeFileSync(path.join(directory, assembly_1.SPEC_FILE_NAME), JSON.stringify({
|
|
@@ -15317,7 +15351,7 @@ var __webpack_modules__ = {
|
|
|
15317
15351
|
},
|
|
15318
15352
|
4147: module => {
|
|
15319
15353
|
"use strict";
|
|
15320
|
-
module.exports = JSON.parse('{"name":"@jsii/runtime","version":"1.
|
|
15354
|
+
module.exports = JSON.parse('{"name":"@jsii/runtime","version":"1.64.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.6.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.64.0","@jsii/check-node":"1.64.0","@jsii/spec":"^1.64.0"},"devDependencies":{"@scope/jsii-calc-base":"^1.64.0","@scope/jsii-calc-lib":"^1.64.0","jsii-build-tools":"^1.64.0","jsii-calc":"^3.20.120","source-map-loader":"^4.0.0","webpack":"^5.74.0","webpack-cli":"^4.10.0"}}');
|
|
15321
15355
|
},
|
|
15322
15356
|
5277: module => {
|
|
15323
15357
|
"use strict";
|