@jsii/runtime 1.111.0 → 1.113.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 +2 -1
- package/lib/in-out.d.ts +3 -3
- package/package.json +9 -9
- package/webpack/bin/jsii-runtime.js +140 -84
- package/webpack/lib/program.js +853 -863
package/bin/jsii-runtime.js
CHANGED
|
@@ -53,7 +53,8 @@ for (const signal of Object.keys(os_1.constants.signals)) {
|
|
|
53
53
|
*/
|
|
54
54
|
function makeHandler(tag) {
|
|
55
55
|
return (chunk) => {
|
|
56
|
-
|
|
56
|
+
// Use the chunk directly if it's already a Buffer, otherwise create a Buffer from it
|
|
57
|
+
const buffer = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
57
58
|
(0, console_1.error)(JSON.stringify({ [tag]: buffer.toString('base64') }));
|
|
58
59
|
};
|
|
59
60
|
}
|
package/lib/in-out.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { api } from '@jsii/kernel';
|
|
2
2
|
import { SyncStdio } from './sync-stdio';
|
|
3
|
-
export
|
|
3
|
+
export type Output = {
|
|
4
4
|
hello: string;
|
|
5
5
|
} | {
|
|
6
6
|
ok: api.KernelResponse;
|
|
@@ -12,12 +12,12 @@ export declare type Output = {
|
|
|
12
12
|
error: string;
|
|
13
13
|
stack?: string;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type Input = ({
|
|
16
16
|
api: string;
|
|
17
17
|
} & api.KernelRequest) | {
|
|
18
18
|
complete: api.CompleteRequest;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type Exit = {
|
|
21
21
|
exit: number;
|
|
22
22
|
};
|
|
23
23
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsii/runtime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.113.0",
|
|
4
4
|
"description": "jsii runtime kernel process",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"jsii-runtime": "bin/jsii-runtime"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
|
-
"build": "tsc --build && chmod +x bin/jsii-runtime && npx webpack-cli &&
|
|
28
|
+
"build": "tsc --build && chmod +x bin/jsii-runtime && npx webpack-cli && yarn lint",
|
|
29
29
|
"watch": "tsc --build -w",
|
|
30
30
|
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts --ignore-path=.gitignore --ignore-pattern=webpack.config.js",
|
|
31
31
|
"lint:fix": "yarn lint --fix",
|
|
@@ -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.113.0",
|
|
38
|
+
"@jsii/check-node": "1.113.0",
|
|
39
|
+
"@jsii/spec": "^1.113.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.113.0",
|
|
43
|
+
"@scope/jsii-calc-lib": "^1.113.0",
|
|
44
|
+
"jsii-build-tools": "^1.113.0",
|
|
45
45
|
"jsii-calc": "^3.20.120",
|
|
46
46
|
"source-map-loader": "^5.0.0",
|
|
47
|
-
"webpack": "^5.
|
|
47
|
+
"webpack": "^5.100.2",
|
|
48
48
|
"webpack-cli": "^6.0.1"
|
|
49
49
|
}
|
|
50
50
|
}
|