codify-plugin-lib 1.0.126 → 1.0.128

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/plan/plan.js CHANGED
@@ -276,6 +276,7 @@ export class Plan {
276
276
  return {
277
277
  planId: this.id,
278
278
  operation: this.changeSet.operation,
279
+ statefulMode: this.statefulMode,
279
280
  resourceName: this.coreParameters.name,
280
281
  resourceType: this.coreParameters.type,
281
282
  parameters: this.changeSet.parameterChanges,
@@ -44,7 +44,6 @@ export class BackgroundPty {
44
44
  });
45
45
  return new Promise((resolve) => {
46
46
  const cat = cp.spawn('cat', [`/tmp/${cid}`]);
47
- cat.stdout.pipe(process.stdout);
48
47
  let output = '';
49
48
  cat.stdout.on('data', (data) => {
50
49
  output += data.toString();
@@ -62,6 +61,9 @@ export class BackgroundPty {
62
61
  data: strippedData,
63
62
  });
64
63
  }
64
+ else {
65
+ process.stdout.write(data);
66
+ }
65
67
  });
66
68
  this.promiseQueue.run(async () => new Promise((resolve) => {
67
69
  const cdCommand = options?.cwd ? `cd ${options.cwd}; ` : '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-plugin-lib",
3
- "version": "1.0.126",
3
+ "version": "1.0.128",
4
4
  "description": "Library plugin library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "dependencies": {
15
15
  "ajv": "^8.12.0",
16
16
  "ajv-formats": "^2.1.1",
17
- "codify-schemas": "1.0.54",
17
+ "codify-schemas": "1.0.58",
18
18
  "@npmcli/promise-spawn": "^7.0.1",
19
19
  "@homebridge/node-pty-prebuilt-multiarch": "^0.12.0-beta.5",
20
20
  "uuid": "^10.0.0",
package/src/plan/plan.ts CHANGED
@@ -426,6 +426,7 @@ export class Plan<T extends StringIndexedObject> {
426
426
  return {
427
427
  planId: this.id,
428
428
  operation: this.changeSet.operation,
429
+ statefulMode: this.statefulMode,
429
430
  resourceName: this.coreParameters.name,
430
431
  resourceType: this.coreParameters.type,
431
432
  parameters: this.changeSet.parameterChanges,
@@ -14,8 +14,7 @@ describe('BackgroundPty tests', () => {
14
14
 
15
15
  const exitCode = await pty.kill();
16
16
  expect(exitCode).toMatchObject({
17
- exitCode: 1,
18
- signal: 0,
17
+ exitCode: 0,
19
18
  });
20
19
  })
21
20
 
@@ -55,7 +55,6 @@ export class BackgroundPty implements IPty {
55
55
 
56
56
  return new Promise<SpawnResult>((resolve) => {
57
57
  const cat = cp.spawn('cat', [`/tmp/${cid}`])
58
- cat.stdout.pipe(process.stdout);
59
58
 
60
59
  let output = '';
61
60
  cat.stdout.on('data', (data) => {
@@ -76,6 +75,8 @@ export class BackgroundPty implements IPty {
76
75
  exitCode: Number.parseInt(exit ?? 1, 10),
77
76
  data: strippedData,
78
77
  });
78
+ } else {
79
+ process.stdout.write(data);
79
80
  }
80
81
  })
81
82
 
@@ -6,7 +6,6 @@ export default defineConfig({
6
6
  fileParallelism: false,
7
7
  exclude: [
8
8
  ...defaultExclude,
9
- './src/utils/test-utils.test.ts',
10
9
  ]
11
10
  },
12
11
  });
package/vitest.config.ts CHANGED
@@ -2,7 +2,6 @@ import { defaultExclude, defineConfig } from 'vitest/config';
2
2
 
3
3
  export default defineConfig({
4
4
  test: {
5
- pool: 'forks',
6
5
  exclude: [
7
6
  ...defaultExclude,
8
7
  './src/utils/test-utils.test.ts',