@seekrit/cli 0.23.0 → 0.23.1

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1976,7 +1976,7 @@ function isServiceToken(value) {
1976
1976
  }
1977
1977
  //#endregion
1978
1978
  //#region package.json
1979
- var version = "0.23.0";
1979
+ var version = "0.23.1";
1980
1980
  //#endregion
1981
1981
  //#region ../../packages/api-client/src/index.ts
1982
1982
  var SeekritApiError = class extends Error {
@@ -4589,9 +4589,20 @@ program.command("run").description("run a command with decrypted secrets injecte
4589
4589
  ...process.env
4590
4590
  }
4591
4591
  });
4592
+ const signals = [
4593
+ "SIGINT",
4594
+ "SIGTERM",
4595
+ "SIGHUP",
4596
+ "SIGQUIT"
4597
+ ];
4598
+ const forward = (signal) => {
4599
+ if (child.exitCode === null && child.signalCode === null) child.kill(signal);
4600
+ };
4601
+ for (const signal of signals) process.on(signal, forward);
4592
4602
  child.on("exit", (code, signal) => {
4603
+ for (const s of signals) process.off(s, forward);
4593
4604
  if (signal) process.kill(process.pid, signal);
4594
- process.exit(code ?? 1);
4605
+ else process.exit(code ?? 1);
4595
4606
  });
4596
4607
  child.on("error", (err) => fail(`failed to start ${cmd}: ${err.message}`));
4597
4608
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekrit/cli",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "description": "End-to-end encrypted secrets manager CLI — inject decrypted secrets into any command.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -27,8 +27,8 @@
27
27
  "@types/node": "^26.1.0",
28
28
  "tsdown": "^0.22.3",
29
29
  "@seekrit/api-client": "0.0.1",
30
- "@seekrit/core": "0.0.1",
31
- "@seekrit/crypto": "0.0.1"
30
+ "@seekrit/crypto": "0.0.1",
31
+ "@seekrit/core": "0.0.1"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "tsdown",