codify-plugin-lib 1.0.116 → 1.0.118

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.
@@ -55,9 +55,9 @@ export class Plugin {
55
55
  if (!this.resourceControllers.has(data.config.type)) {
56
56
  throw new Error(`Cannot get info for resource ${data.config.type}, resource doesn't exist`);
57
57
  }
58
- const result = await this.resourceControllers
58
+ const result = await ptyLocalStorage.run(this.planPty, () => this.resourceControllers
59
59
  .get(data.config.type)
60
- ?.import(data.config);
60
+ ?.import(data.config));
61
61
  return {
62
62
  request: data.config,
63
63
  result: result ?? [],
@@ -94,7 +94,7 @@ export class BackgroundPty {
94
94
  this.basePty.onExit((status) => {
95
95
  resolve(status);
96
96
  });
97
- this.basePty.kill();
97
+ this.basePty.kill('SIGKILL');
98
98
  });
99
99
  }
100
100
  async initialize() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-plugin-lib",
3
- "version": "1.0.116",
3
+ "version": "1.0.118",
4
4
  "description": "Library plugin library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -87,9 +87,11 @@ export class Plugin {
87
87
  throw new Error(`Cannot get info for resource ${data.config.type}, resource doesn't exist`);
88
88
  }
89
89
 
90
- const result = await this.resourceControllers
91
- .get(data.config.type!)
92
- ?.import(data.config);
90
+ const result = await ptyLocalStorage.run(this.planPty, () =>
91
+ this.resourceControllers
92
+ .get(data.config.type!)
93
+ ?.import(data.config)
94
+ )
93
95
 
94
96
  return {
95
97
  request: data.config,
@@ -117,7 +117,7 @@ export class BackgroundPty implements IPty {
117
117
  resolve(status);
118
118
  })
119
119
 
120
- this.basePty.kill()
120
+ this.basePty.kill('SIGKILL')
121
121
  })
122
122
  }
123
123