terafoundation 2.0.0-dev.7 → 2.0.0-dev.9
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hdfs_ha.d.ts","sourceRoot":"","sources":["../../../src/connectors/hdfs_ha.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hdfs_ha.d.ts","sourceRoot":"","sources":["../../../src/connectors/hdfs_ha.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAa,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAclE,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,SAwD/B,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import util from 'node:util';
|
|
2
2
|
// @ts-expect-error
|
|
3
3
|
import { WebHDFSClient } from 'node-webhdfs';
|
|
4
|
-
|
|
4
|
+
function promisifyAll(obj) {
|
|
5
|
+
const promisified = {};
|
|
6
|
+
for (const key of Object.keys(obj)) {
|
|
7
|
+
if (typeof obj[key] === 'function') {
|
|
8
|
+
promisified[key] = util.promisify(obj[key]);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return promisified;
|
|
12
|
+
}
|
|
5
13
|
const connector = {
|
|
6
14
|
async createClient(customConfig, logger) {
|
|
7
15
|
let highAvailibility = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hdfs_ha.js","sourceRoot":"","sources":["../../../src/connectors/hdfs_ha.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hdfs_ha.js","sourceRoot":"","sources":["../../../src/connectors/hdfs_ha.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,mBAAmB;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,SAAS,YAAY,CAAC,GAAc;IA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;aACjB;YACD,aAAa,EAAE;gBACX,GAAG,EAAE,cAAc;gBACnB,OAAO,EAAE,KAAK;aACjB;YACD,aAAa,EAAE;gBACX,GAAG,EAAE,qDAAqD;gBAC1D,OAAO,EAAE,IAAI;gBACb,MAAM,CAAC,GAAQ;oBACX,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;wBAC1B,OAAO;oBACX,CAAC;oBACD,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;wBACrB,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;4BACjB,MAAM,IAAI,KAAK,CAAC,oEAAoE,CAAC,CAAC;wBAC1F,CAAC;wBACD,OAAO;oBACX,CAAC;oBACD,MAAM,IAAI,KAAK,CAAC,uFAAuF,CAAC,CAAC;gBAC7G,CAAC;aACJ;YACD,WAAW,EAAE;gBACT,GAAG,EAAE,iCAAiC;gBACtC,OAAO,EAAE,aAAa;aACzB;SACJ,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "terafoundation",
|
|
3
3
|
"displayName": "Terafoundation",
|
|
4
|
-
"version": "2.0.0-dev.
|
|
4
|
+
"version": "2.0.0-dev.9",
|
|
5
5
|
"description": "A Clustering and Foundation tool for Terascope Tools",
|
|
6
6
|
"homepage": "https://github.com/terascope/teraslice/tree/master/packages/terafoundation#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -28,11 +28,10 @@
|
|
|
28
28
|
"test:watch": "node ../scripts/bin/ts-scripts test --watch ../terafoundation --"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@terascope/core-utils": "~2.0.0-dev.
|
|
31
|
+
"@terascope/core-utils": "~2.0.0-dev.8",
|
|
32
32
|
"@terascope/file-asset-apis": "~1.1.2",
|
|
33
|
-
"@terascope/opensearch-client": "~2.0.0-dev.
|
|
34
|
-
"@terascope/types": "~2.0.0-dev.
|
|
35
|
-
"bluebird": "~3.7.2",
|
|
33
|
+
"@terascope/opensearch-client": "~2.0.0-dev.8",
|
|
34
|
+
"@terascope/types": "~2.0.0-dev.7",
|
|
36
35
|
"bunyan": "~1.8.15",
|
|
37
36
|
"convict": "~6.2.4",
|
|
38
37
|
"convict-format-with-moment": "~6.2.0",
|