@hpcc-js/comms 3.2.0 → 3.4.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.
package/package.json CHANGED
@@ -1,18 +1,21 @@
1
1
  {
2
2
  "name": "@hpcc-js/comms",
3
- "version": "3.2.0",
3
+ "version": "3.4.0",
4
4
  "description": "hpcc-js - Communications",
5
5
  "type": "module",
6
+ "main": "./dist/index.node.js",
7
+ "module": "./dist/index.browser.js",
6
8
  "exports": {
7
9
  ".": {
8
- "types": "./types/index.node.d.ts",
10
+ "types": "./types/index.browser.d.ts",
9
11
  "node": "./dist/index.node.js",
10
- "default": "./dist/index.js"
11
- }
12
+ "import": "./dist/index.browser.js",
13
+ "require": "./dist/index.browser.umd.cjs"
14
+ },
15
+ "./dist/*": "./dist/*"
12
16
  },
13
- "module": "./dist/index.node.js",
14
- "browser": "./dist/index.js",
15
- "types": "./types/index.node.d.ts",
17
+ "browser": "./dist/index.browser.umd.cjs",
18
+ "types": "./types/index.browser.d.ts",
16
19
  "files": [
17
20
  "dist/*",
18
21
  "src/*",
@@ -20,8 +23,10 @@
20
23
  ],
21
24
  "scripts": {
22
25
  "clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
23
- "bundle": "node esbuild.js",
24
- "bundle-watch": "npm run bundle -- --development --watch",
26
+ "bundle-node": "node ./esbuild.js",
27
+ "bundle-browser": "vite build",
28
+ "bundle": "run-s bundle-browser bundle-node",
29
+ "bundle-watch": "vite",
25
30
  "gen-types": "tsc --project tsconfig.json",
26
31
  "gen-types-watch": "npm run gen-types -- --watch",
27
32
  "build": "run-p gen-types bundle",
@@ -32,8 +37,8 @@
32
37
  "test-node": "vitest run --project node",
33
38
  "test": "vitest run",
34
39
  "coverage": "vitest run --coverage",
35
- "update": "npx -y npm-check-updates -u -t minor",
36
- "update-major": "npx -y npm-check-updates -u",
40
+ "update": "npx --yes npm-check-updates -u -t minor",
41
+ "update-major": "npx --yes npm-check-updates -u",
37
42
  "wsdl-access": "node ./lib-esm/index.js -k --url=http://localhost:8010/ws_access?wsdl --outDir=./src/services/wsdl",
38
43
  "wsdl-account": "node ./lib-esm/index.js -k --url=http://localhost:8010/Ws_Account?wsdl --outDir=./src/services/wsdl",
39
44
  "wsdl-cloud": "node ./lib-esm/index.js -k --url=http://localhost:8010/WsCloud?wsdl --outDir=./src/services/wsdl",
@@ -57,7 +62,7 @@
57
62
  "wsdl-all": "npm-run-all --aggregate-output -c --serial build --parallel wsdl-*"
58
63
  },
59
64
  "dependencies": {
60
- "@hpcc-js/util": "^3.2.0",
65
+ "@hpcc-js/util": "^3.3.0",
61
66
  "@xmldom/xmldom": "0.9.5",
62
67
  "abort-controller": "3.0.0",
63
68
  "data-uri-to-buffer": "6.0.2",
@@ -68,7 +73,7 @@
68
73
  },
69
74
  "devDependencies": {
70
75
  "@hpcc-js/ddl-shim": "^3.0.0",
71
- "@hpcc-js/esbuild-plugins": "^1.3.0",
76
+ "@hpcc-js/esbuild-plugins": "^1.4.0",
72
77
  "@types/d3-request": "1.0.9",
73
78
  "@types/d3-time-format": "2.3.4",
74
79
  "@types/node": "^18",
@@ -90,5 +95,5 @@
90
95
  "url": "https://github.com/hpcc-systems/Visualization/issues"
91
96
  },
92
97
  "homepage": "https://github.com/hpcc-systems/Visualization",
93
- "gitHead": "658c50fd965a7744ba8db675ba6878607c44d5e2"
98
+ "gitHead": "81d237901332e57763f043ab47b18b26a842be76"
94
99
  }
@@ -1,3 +1,3 @@
1
1
  export const PKG_NAME = "@hpcc-js/comms";
2
- export const PKG_VERSION = "3.2.0";
3
- export const BUILD_VERSION = "3.2.0";
2
+ export const PKG_VERSION = "3.4.0";
3
+ export const BUILD_VERSION = "3.4.0";
@@ -138,14 +138,6 @@ export class ESPConnection implements IConnection {
138
138
  return retVal;
139
139
  }
140
140
  return response;
141
- }).catch(e => {
142
- if (e.isESPExceptions) {
143
- throw e;
144
- }
145
- throw new ESPExceptions(action, request, {
146
- Source: "ESPConnection.send",
147
- Exception: [{ Code: 0, Message: e.message }]
148
- });
149
141
  });
150
142
  }
151
143
 
@@ -0,0 +1 @@
1
+ export * from "./index.common.ts";
package/src/index.node.ts CHANGED
@@ -65,7 +65,7 @@ if (typeof root.btoa === "undefined") {
65
65
  };
66
66
  }
67
67
 
68
- export * from "./index-common.ts";
68
+ export * from "./index.common.ts";
69
69
 
70
70
  // Client Tools ---
71
71
  export * from "./clienttools/eclcc.ts";
@@ -2,7 +2,7 @@ import { AccountServiceBase, WsAccount } from "./wsdl/ws_account/v1.06/ws_accoun
2
2
  import { ESPExceptions } from "../espConnection.ts";
3
3
 
4
4
  export {
5
- WsAccount
5
+ type WsAccount
6
6
  };
7
7
 
8
8
  export class AccountService extends AccountServiceBase {
@@ -1,7 +1,7 @@
1
1
  import { CloudServiceBase, WsCloud } from "./wsdl/WsCloud/v1/WsCloud.ts";
2
2
 
3
3
  export {
4
- WsCloud
4
+ type WsCloud
5
5
  };
6
6
 
7
7
  export class CloudService extends CloudServiceBase {
@@ -1,7 +1,7 @@
1
1
  import { DaliServiceBase, WsDali } from "./wsdl/WsDali/v1.07/WsDali.ts";
2
2
 
3
3
  export {
4
- WsDali
4
+ type WsDali
5
5
  };
6
6
 
7
7
  export class DaliService extends DaliServiceBase {
@@ -1,7 +1,7 @@
1
1
  import { ElkServiceBase, WsElk } from "./wsdl/ws_elk/v1/ws_elk.ts";
2
2
 
3
3
  export {
4
- WsElk
4
+ type WsElk
5
5
  };
6
6
 
7
7
  export class ElkService extends ElkServiceBase {
@@ -4,7 +4,7 @@ import { max as d3Max, mean as d3Mean } from "d3-array";
4
4
  import { MachineServiceBase, WsMachine } from "./wsdl/ws_machine/v1.17/ws_machine.ts";
5
5
 
6
6
  export {
7
- WsMachine
7
+ type WsMachine
8
8
  };
9
9
 
10
10
  export namespace WsMachineEx {
@@ -1,7 +1,7 @@
1
1
  import { PackageProcessServiceBase, WsPackageProcess } from "./wsdl/WsPackageProcess/v1.04/WsPackageProcess.ts";
2
2
 
3
3
  export {
4
- WsPackageProcess
4
+ type WsPackageProcess
5
5
  };
6
6
 
7
7
  export class PackageProcessService extends PackageProcessServiceBase {
@@ -1,7 +1,7 @@
1
1
  import { ResourcesServiceBase, WsResources } from "./wsdl/WsResources/v1.01/WsResources.ts";
2
2
 
3
3
  export {
4
- WsResources
4
+ type WsResources
5
5
  };
6
6
 
7
7
  export class ResourcesService extends ResourcesServiceBase {
@@ -68,10 +68,8 @@ export class WorkunitsService extends WorkunitsServiceBase {
68
68
  }
69
69
 
70
70
  Ping(): Promise<WsWorkunits.WsWorkunitsPingResponse> {
71
- return this._connection.send("Ping", {}, "json", false, undefined, "WsWorkunitsPingResponse").then((response) => {
71
+ return this._connection.send("Ping", {}, "json", false, undefined, "WsWorkunitsPingResponse").then(() => {
72
72
  return { result: true };
73
- }).catch((e: Error) => {
74
- return { result: false, error: e };
75
73
  });
76
74
  }
77
75
 
@@ -1,3 +1,3 @@
1
1
  export declare const PKG_NAME = "@hpcc-js/comms";
2
- export declare const PKG_VERSION = "3.2.0";
3
- export declare const BUILD_VERSION = "3.2.0";
2
+ export declare const PKG_VERSION = "3.3.0";
3
+ export declare const BUILD_VERSION = "3.3.1";
@@ -0,0 +1 @@
1
+ export * from "./index.common.ts";
@@ -1,3 +1,3 @@
1
- export * from "./index-common.ts";
1
+ export * from "./index.common.ts";
2
2
  export * from "./clienttools/eclcc.ts";
3
3
  export * from "./clienttools/eclMeta.ts";
@@ -1,5 +1,5 @@
1
1
  import { AccountServiceBase, WsAccount } from "./wsdl/ws_account/v1.06/ws_account.ts";
2
- export { WsAccount };
2
+ export { type WsAccount };
3
3
  export declare class AccountService extends AccountServiceBase {
4
4
  VerifyUser(request: WsAccount.VerifyUserRequest): Promise<WsAccount.VerifyUserResponse>;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { CloudServiceBase, WsCloud } from "./wsdl/WsCloud/v1/WsCloud.ts";
2
- export { WsCloud };
2
+ export { type WsCloud };
3
3
  export declare class CloudService extends CloudServiceBase {
4
4
  getPODs(): Promise<object[]>;
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import { DaliServiceBase, WsDali } from "./wsdl/WsDali/v1.07/WsDali.ts";
2
- export { WsDali };
2
+ export { type WsDali };
3
3
  export declare class DaliService extends DaliServiceBase {
4
4
  }
@@ -1,4 +1,4 @@
1
1
  import { ElkServiceBase, WsElk } from "./wsdl/ws_elk/v1/ws_elk.ts";
2
- export { WsElk };
2
+ export { type WsElk };
3
3
  export declare class ElkService extends ElkServiceBase {
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { MachineServiceBase, WsMachine } from "./wsdl/ws_machine/v1.17/ws_machine.ts";
2
- export { WsMachine };
2
+ export { type WsMachine };
3
3
  export declare namespace WsMachineEx {
4
4
  interface DiskUsage extends WsMachine.DiskUsage {
5
5
  Total: number;
@@ -1,4 +1,4 @@
1
1
  import { PackageProcessServiceBase, WsPackageProcess } from "./wsdl/WsPackageProcess/v1.04/WsPackageProcess.ts";
2
- export { WsPackageProcess };
2
+ export { type WsPackageProcess };
3
3
  export declare class PackageProcessService extends PackageProcessServiceBase {
4
4
  }
@@ -1,4 +1,4 @@
1
1
  import { ResourcesServiceBase, WsResources } from "./wsdl/WsResources/v1.01/WsResources.ts";
2
- export { WsResources };
2
+ export { type WsResources };
3
3
  export declare class ResourcesService extends ResourcesServiceBase {
4
4
  }