@webpod/ps 0.0.0-beta.6 → 0.0.0-beta.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webpod/ps",
3
- "version": "0.0.0-beta.6",
3
+ "version": "0.0.0-beta.8",
4
4
  "description": "A process lookup utility",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -40,24 +40,24 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@webpod/ingrid": "^0.0.0-beta.3",
43
- "zurk": "^0.2.0"
43
+ "zurk": "^0.4.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/node": "^20.14.2",
47
- "c8": "^9.1.0",
48
- "concurrently": "^8.2.2",
49
- "esbuild": "^0.21.4",
50
- "esbuild-node-externals": "^1.13.1",
46
+ "@types/node": "^22.5.5",
47
+ "c8": "^10.1.2",
48
+ "concurrently": "^9.0.1",
49
+ "esbuild": "^0.23.1",
50
+ "esbuild-node-externals": "^1.14.0",
51
51
  "esbuild-plugin-entry-chunks": "^0.1.15",
52
52
  "eslint": "^8.57.0",
53
53
  "eslint-config-qiwi": "^2.1.3",
54
54
  "fast-glob": "^3.3.2",
55
55
  "minimist": "^1.2.8",
56
- "mocha": "^10.4.0",
57
- "sinon": "^18.0.0",
56
+ "mocha": "^10.7.3",
57
+ "sinon": "^18.0.1",
58
58
  "ts-node": "^10.9.2",
59
- "typedoc": "^0.25.13",
60
- "typescript": "^5.4.5"
59
+ "typedoc": "^0.26.7",
60
+ "typescript": "^5.6.2"
61
61
  },
62
62
  "repository": {
63
63
  "type": "git",
@@ -1,16 +1,16 @@
1
1
  export type * from './ps.js';
2
2
  export { kill, lookup, lookupSync, tree, treeSync } from './ps.js';
3
3
  declare const _default: {
4
- kill: (pid: string | number, opts?: string | number | import("./ps.js").TPsKillOptions | import("./ps.js").TPsNext | undefined, next?: import("./ps.js").TPsNext | undefined) => Promise<void>;
4
+ kill: (pid: string | number, opts?: import("./ps.js").TPsNext | import("./ps.js").TPsKillOptions | import("./ps.js").TPsKillOptions["signal"], next?: import("./ps.js").TPsNext) => Promise<void>;
5
5
  lookup: {
6
6
  (query?: import("./ps.js").TPsLookupQuery, cb?: import("./ps.js").TPsLookupCallback): Promise<import("./ps.js").TPsLookupEntry[]>;
7
7
  sync: (query?: import("./ps.js").TPsLookupQuery, cb?: import("./ps.js").TPsLookupCallback) => import("./ps.js").TPsLookupEntry[];
8
8
  };
9
9
  lookupSync: (query?: import("./ps.js").TPsLookupQuery, cb?: import("./ps.js").TPsLookupCallback) => import("./ps.js").TPsLookupEntry[];
10
10
  tree: {
11
- (opts?: string | number | import("./ps.js").TPsTreeOpts | undefined, cb?: import("./ps.js").TPsLookupCallback | undefined): Promise<import("./ps.js").TPsLookupEntry[]>;
12
- sync: (opts?: string | number | import("./ps.js").TPsTreeOpts | undefined, cb?: import("./ps.js").TPsLookupCallback | undefined) => import("./ps.js").TPsLookupEntry[];
11
+ (opts?: string | number | import("./ps.js").TPsTreeOpts | undefined, cb?: import("./ps.js").TPsLookupCallback): Promise<import("./ps.js").TPsLookupEntry[]>;
12
+ sync: (opts?: string | number | import("./ps.js").TPsTreeOpts | undefined, cb?: import("./ps.js").TPsLookupCallback) => import("./ps.js").TPsLookupEntry[];
13
13
  };
14
- treeSync: (opts?: string | number | import("./ps.js").TPsTreeOpts | undefined, cb?: import("./ps.js").TPsLookupCallback | undefined) => import("./ps.js").TPsLookupEntry[];
14
+ treeSync: (opts?: string | number | import("./ps.js").TPsTreeOpts | undefined, cb?: import("./ps.js").TPsLookupCallback) => import("./ps.js").TPsLookupEntry[];
15
15
  };
16
16
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
1
  import { TIngridResponse } from '@webpod/ingrid';
3
2
  export type TPsLookupCallback = (err: any, processList?: TPsLookupEntry[]) => void;
4
3
  export type TPsLookupEntry = {
@@ -68,7 +67,7 @@ export declare const treeSync: (opts?: string | number | TPsTreeOpts | undefined
68
67
  * @param {number} opts.timeout
69
68
  * @param next
70
69
  */
71
- export declare const kill: (pid: string | number, opts?: TPsNext | TPsKillOptions | TPsKillOptions['signal'], next?: TPsNext) => Promise<void>;
70
+ export declare const kill: (pid: string | number, opts?: TPsNext | TPsKillOptions | TPsKillOptions["signal"], next?: TPsNext) => Promise<void>;
72
71
  export declare const parseGrid: (output: string) => TPsLookupEntry[];
73
72
  export declare const formatOutput: (data: TIngridResponse) => TPsLookupEntry[];
74
73
  export type PromiseResolve<T = any> = (value?: T | PromiseLike<T>) => void;