@magda/typescript-common 5.3.0 → 5.4.0-alpha.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.
@@ -0,0 +1,2 @@
1
+ declare function treeKill(pid: number, signal?: string | number): Promise<void>;
2
+ export default treeKill;
@@ -0,0 +1,15 @@
1
+ import treeKillSync from "tree-kill";
2
+ async function treeKill(pid, signal = "SIGTERM") {
3
+ return new Promise((resolve, reject) => {
4
+ treeKillSync(pid, signal, (error) => {
5
+ if (error) {
6
+ reject(error);
7
+ }
8
+ else {
9
+ resolve();
10
+ }
11
+ });
12
+ });
13
+ }
14
+ export default treeKill;
15
+ //# sourceMappingURL=treeKill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"treeKill.js","sourceRoot":"","sources":["../src/treeKill.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,WAAW,CAAC;AAErC,KAAK,UAAU,QAAQ,CACnB,GAAW,EACX,SAA0B,SAAS;IAEnC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACnC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YAChC,IAAI,KAAK,EAAE,CAAC;gBACR,MAAM,CAAC,KAAK,CAAC,CAAC;YAClB,CAAC;iBAAM,CAAC;gBACJ,OAAO,EAAE,CAAC;YACd,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC;AAED,eAAe,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@magda/typescript-common",
3
3
  "description": "Common TypeScript code shared between components.",
4
- "version": "5.3.0",
4
+ "version": "5.4.0-alpha.0",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "exports": {
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@magda/esm-utils": "^1.0.1",
26
- "@magda/registry-aspects": "^5.3.0",
27
- "@magda/scripts": "^5.3.0",
26
+ "@magda/registry-aspects": "^5.4.0-alpha.0",
27
+ "@magda/scripts": "^5.4.0-alpha.0",
28
28
  "@types/chai": "^4.3.11",
29
29
  "@types/chai-as-promised": "^7.1.0",
30
30
  "@types/cross-spawn": "^6.0.1",
@@ -72,6 +72,7 @@
72
72
  "read-pkg-up": "^3.0.0",
73
73
  "resolve": "^1.15.0",
74
74
  "sql-syntax": "^2.0.1",
75
+ "tree-kill": "https://github.com/magda-io/node-tree-kill.git#magda",
75
76
  "urijs": "^1.19.11",
76
77
  "uuid": "^8.2.0",
77
78
  "yargs": "^12.0.5"