@cubejs-backend/cubestore 0.33.9 → 0.33.11
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/src/utils.d.ts +0 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +4 -49
- package/dist/src/utils.js.map +1 -1
- package/package.json +3 -3
package/dist/src/utils.d.ts
CHANGED
package/dist/src/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../js-wrapper/src/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../js-wrapper/src/utils.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,IAAI,MAAM,CAwClC;AAED,wBAAgB,oBAAoB,IAAI,OAAO,CAe9C"}
|
package/dist/src/utils.js
CHANGED
|
@@ -3,61 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.isCubeStoreSupported = exports.getTarget =
|
|
7
|
-
const child_process_1 = require("child_process");
|
|
6
|
+
exports.isCubeStoreSupported = exports.getTarget = void 0;
|
|
8
7
|
const process_1 = __importDefault(require("process"));
|
|
9
8
|
const shared_1 = require("@cubejs-backend/shared");
|
|
10
|
-
function detectLibc() {
|
|
11
|
-
if (process_1.default.platform !== 'linux') {
|
|
12
|
-
throw new Error('Unable to detect libc on not linux os');
|
|
13
|
-
}
|
|
14
|
-
try {
|
|
15
|
-
const { status } = (0, child_process_1.spawnSync)('getconf', ['GNU_LIBC_VERSION'], {
|
|
16
|
-
encoding: 'utf8',
|
|
17
|
-
// Using pipe to protect unexpect STDERR output
|
|
18
|
-
stdio: 'pipe'
|
|
19
|
-
});
|
|
20
|
-
if (status === 0) {
|
|
21
|
-
return 'gnu';
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
catch (e) {
|
|
25
|
-
(0, shared_1.internalExceptions)(e);
|
|
26
|
-
}
|
|
27
|
-
{
|
|
28
|
-
const { status, stdout, stderr } = (0, child_process_1.spawnSync)('ldd', ['--version'], {
|
|
29
|
-
encoding: 'utf8',
|
|
30
|
-
// Using pipe to protect unexpect STDERR output
|
|
31
|
-
stdio: 'pipe',
|
|
32
|
-
});
|
|
33
|
-
if (status === 0) {
|
|
34
|
-
if (stdout.includes('musl')) {
|
|
35
|
-
return 'musl';
|
|
36
|
-
}
|
|
37
|
-
if (stdout.includes('gnu')) {
|
|
38
|
-
return 'gnu';
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
if (stderr.includes('musl')) {
|
|
43
|
-
return 'musl';
|
|
44
|
-
}
|
|
45
|
-
if (stderr.includes('gnu')) {
|
|
46
|
-
return 'gnu';
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
(0, shared_1.displayCLIWarning)('Unable to detect what host library is used as libc, continue with gnu');
|
|
51
|
-
return 'gnu';
|
|
52
|
-
}
|
|
53
|
-
exports.detectLibc = detectLibc;
|
|
54
9
|
function getTarget() {
|
|
55
10
|
if (process_1.default.arch === 'x64') {
|
|
56
11
|
switch (process_1.default.platform) {
|
|
57
12
|
case 'win32':
|
|
58
13
|
return 'x86_64-pc-windows-msvc';
|
|
59
14
|
case 'linux':
|
|
60
|
-
return `x86_64-unknown-linux-${detectLibc()}`;
|
|
15
|
+
return `x86_64-unknown-linux-${(0, shared_1.detectLibc)()}`;
|
|
61
16
|
case 'darwin':
|
|
62
17
|
return 'x86_64-apple-darwin';
|
|
63
18
|
default:
|
|
@@ -67,7 +22,7 @@ function getTarget() {
|
|
|
67
22
|
if (process_1.default.arch === 'arm64') {
|
|
68
23
|
switch (process_1.default.platform) {
|
|
69
24
|
case 'linux':
|
|
70
|
-
switch (detectLibc()) {
|
|
25
|
+
switch ((0, shared_1.detectLibc)()) {
|
|
71
26
|
case 'gnu':
|
|
72
27
|
return 'aarch64-unknown-linux-gnu';
|
|
73
28
|
default:
|
|
@@ -92,7 +47,7 @@ function isCubeStoreSupported() {
|
|
|
92
47
|
if (process_1.default.platform === 'darwin') {
|
|
93
48
|
return true;
|
|
94
49
|
}
|
|
95
|
-
return process_1.default.platform === 'linux' && detectLibc() === 'gnu';
|
|
50
|
+
return process_1.default.platform === 'linux' && (0, shared_1.detectLibc)() === 'gnu';
|
|
96
51
|
}
|
|
97
52
|
return false;
|
|
98
53
|
}
|
package/dist/src/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../js-wrapper/src/utils.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../js-wrapper/src/utils.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA8B;AAC9B,mDAA2F;AAE3F,SAAgB,SAAS;IACvB,IAAI,iBAAO,CAAC,IAAI,KAAK,KAAK,EAAE;QAC1B,QAAQ,iBAAO,CAAC,QAAQ,EAAE;YACxB,KAAK,OAAO;gBACV,OAAO,wBAAwB,CAAC;YAClC,KAAK,OAAO;gBACV,OAAO,wBAAwB,IAAA,mBAAU,GAAE,EAAE,CAAC;YAChD,KAAK,QAAQ;gBACX,OAAO,qBAAqB,CAAC;YAC/B;gBACE,MAAM,IAAI,KAAK,CACb,iBAAiB,iBAAO,CAAC,GAAG,uDAAuD,CACpF,CAAC;SACL;KACF;IAED,IAAI,iBAAO,CAAC,IAAI,KAAK,OAAO,EAAE;QAC5B,QAAQ,iBAAO,CAAC,QAAQ,EAAE;YACxB,KAAK,OAAO;gBACV,QAAQ,IAAA,mBAAU,GAAE,EAAE;oBACpB,KAAK,KAAK;wBACR,OAAO,2BAA2B,CAAC;oBACrC;wBACE,MAAM,IAAI,KAAK,CACb,iBAAiB,iBAAO,CAAC,GAAG,8GAA8G,CAC3I,CAAC;iBACL;YACH,KAAK,QAAQ;gBACX,wBAAwB;gBACxB,OAAO,qBAAqB,CAAC;YAC/B;gBACE,MAAM,IAAI,KAAK,CACb,iBAAiB,iBAAO,CAAC,GAAG,yDAAyD,CACtF,CAAC;SACL;KACF;IAED,MAAM,IAAI,KAAK,CACb,iBAAiB,iBAAO,CAAC,IAAI,oBAAoB,iBAAO,CAAC,QAAQ,gDAAgD,CAClH,CAAC;AACJ,CAAC;AAxCD,8BAwCC;AAED,SAAgB,oBAAoB;IAClC,IAAI,iBAAO,CAAC,IAAI,KAAK,KAAK,EAAE;QAC1B,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,iBAAO,CAAC,QAAQ,CAAC,CAAC;KAChE;IAED,IAAI,iBAAO,CAAC,IAAI,KAAK,OAAO,EAAE;QAC5B,qDAAqD;QACrD,IAAI,iBAAO,CAAC,QAAQ,KAAK,QAAQ,EAAE;YACjC,OAAO,IAAI,CAAC;SACb;QAED,OAAO,iBAAO,CAAC,QAAQ,KAAK,OAAO,IAAI,IAAA,mBAAU,GAAE,KAAK,KAAK,CAAC;KAC/D;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAfD,oDAeC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-backend/cubestore",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.11",
|
|
4
4
|
"description": "Cube.js pre-aggregation storage layer.",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"typings": "dist/src/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@cubejs-backend/shared": "^0.33.
|
|
40
|
+
"@cubejs-backend/shared": "^0.33.11",
|
|
41
41
|
"@octokit/core": "^3.2.5",
|
|
42
42
|
"source-map-support": "^0.5.19"
|
|
43
43
|
},
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
],
|
|
51
51
|
"testEnvironment": "node"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "affcdbfacfe51721da7e94bdeb4b5761f2905231"
|
|
54
54
|
}
|