@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.
@@ -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
- const buffer = Buffer.from(chunk);
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 declare type Output = {
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 declare type Input = ({
15
+ export type Input = ({
16
16
  api: string;
17
17
  } & api.KernelRequest) | {
18
18
  complete: api.CompleteRequest;
19
19
  };
20
- export declare type Exit = {
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.111.0",
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 && npm run lint",
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.111.0",
38
- "@jsii/check-node": "1.111.0",
39
- "@jsii/spec": "^1.111.0"
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.111.0",
43
- "@scope/jsii-calc-lib": "^1.111.0",
44
- "jsii-build-tools": "^1.111.0",
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.98.0",
47
+ "webpack": "^5.100.2",
48
48
  "webpack-cli": "^6.0.1"
49
49
  }
50
50
  }