@hpcc-js/comms 3.11.1 → 3.12.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.
- package/dist/browser/index.js +1 -8561
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.umd.cjs +1 -1
- package/dist/browser/index.umd.cjs.map +1 -1
- package/dist/node/index.cjs +9 -9
- package/dist/node/index.cjs.map +3 -3
- package/dist/node/index.js +10 -10
- package/dist/node/index.js.map +3 -3
- package/package.json +6 -6
- package/src/connection.ts +2 -2
- package/src/index.common.ts +0 -1
- package/src/index.node.ts +1 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/comms",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.1",
|
|
4
4
|
"description": "hpcc-js - Communications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/node/index.cjs",
|
|
@@ -74,15 +74,15 @@
|
|
|
74
74
|
"wsdl-all": "npm-run-all --aggregate-output -c --serial build --parallel wsdl-*"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@hpcc-js/util": "^3.4.
|
|
77
|
+
"@hpcc-js/util": "^3.4.3",
|
|
78
78
|
"@xmldom/xmldom": "0.9.8",
|
|
79
79
|
"abort-controller": "3.0.0",
|
|
80
80
|
"node-fetch": "3.3.2",
|
|
81
81
|
"undici": "7.16.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@hpcc-js/ddl-shim": "^3.2.
|
|
85
|
-
"@hpcc-js/esbuild-plugins": "^1.
|
|
84
|
+
"@hpcc-js/ddl-shim": "^3.2.2",
|
|
85
|
+
"@hpcc-js/esbuild-plugins": "^1.7.0",
|
|
86
86
|
"@kubernetes/client-node": "1.4.0",
|
|
87
87
|
"@types/d3-request": "1.0.9",
|
|
88
88
|
"@types/d3-time-format": "2.3.4",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"d3-format": "^1",
|
|
93
93
|
"d3-time-format": "^2",
|
|
94
94
|
"data-uri-to-buffer": "6.0.2",
|
|
95
|
-
"soap": "1.
|
|
95
|
+
"soap": "1.6.0",
|
|
96
96
|
"typescript-formatter": "^7.2.2"
|
|
97
97
|
},
|
|
98
98
|
"repository": {
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"esp",
|
|
113
113
|
"HPCC-Platform"
|
|
114
114
|
],
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "0289b8552e19395a8da9b70a154821cf70ce42e7"
|
|
116
116
|
}
|
package/src/connection.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { join, promiseTimeout, scopedLogger } from "@hpcc-js/util";
|
|
1
|
+
import { join, promiseTimeout, scopedLogger, utf8ToBase64 } from "@hpcc-js/util";
|
|
2
2
|
|
|
3
3
|
const logger = scopedLogger("comms/connection.ts");
|
|
4
4
|
|
|
@@ -137,7 +137,7 @@ export function jsonp(opts: IOptions, action: string, request: any = {}, respons
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
function authHeader(opts: IOptions): object {
|
|
140
|
-
return opts.userID ? { Authorization: `Basic ${
|
|
140
|
+
return opts.userID ? { Authorization: `Basic ${utf8ToBase64(`${opts.userID}:${opts.password}`)}` } : {};
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
// _omitMap is a workaround for older HPCC-Platform instances without credentials ---
|
package/src/index.common.ts
CHANGED
package/src/index.node.ts
CHANGED
|
@@ -7,6 +7,7 @@ root.DOMParser = DOMParser;
|
|
|
7
7
|
import fetch, { Headers, Request, Response, } from "node-fetch";
|
|
8
8
|
|
|
9
9
|
import * as https from "node:https";
|
|
10
|
+
import { Buffer } from "node:buffer";
|
|
10
11
|
import { Agent, setGlobalDispatcher } from "undici";
|
|
11
12
|
|
|
12
13
|
if (typeof root.fetch === "undefined") {
|
|
@@ -57,14 +58,6 @@ root.fetch.__trustwaveAgent = new https.Agent({
|
|
|
57
58
|
ca: globalCA + trustwave
|
|
58
59
|
});
|
|
59
60
|
|
|
60
|
-
// btoa polyfill ---
|
|
61
|
-
import { Buffer } from "node:buffer";
|
|
62
|
-
if (typeof root.btoa === "undefined") {
|
|
63
|
-
root.btoa = function (str: string) {
|
|
64
|
-
return Buffer.from(str || "", "utf8").toString("base64");
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
61
|
export * from "./index.common.ts";
|
|
69
62
|
|
|
70
63
|
// Client Tools ---
|