@cubejs-backend/cubestore 0.31.31 → 0.31.32
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/download.d.ts.map +1 -1
- package/dist/src/download.js +23 -37
- package/dist/src/download.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../js-wrapper/src/download.ts"],"names":[],"mappings":"AAQA,wBAAgB,gBAAgB,WAE/B;AAED,wBAAgB,aAAa,WAI5B;
|
|
1
|
+
{"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../js-wrapper/src/download.ts"],"names":[],"mappings":"AAQA,wBAAgB,gBAAgB,WAE/B;AAED,wBAAgB,aAAa,WAI5B;AAmBD,wBAAsB,yBAAyB,kBAmC9C"}
|
package/dist/src/download.js
CHANGED
|
@@ -52,49 +52,35 @@ async function fetchRelease(version) {
|
|
|
52
52
|
});
|
|
53
53
|
return data;
|
|
54
54
|
}
|
|
55
|
-
function parseInfoFromAssetName(assetName) {
|
|
56
|
-
if (assetName.startsWith('cubestored-')) {
|
|
57
|
-
const fileName = assetName.slice('cubestored-'.length);
|
|
58
|
-
const targetAndType = fileName.slice(0, fileName.indexOf('.'));
|
|
59
|
-
const format = fileName.slice(fileName.indexOf('.') + 1);
|
|
60
|
-
if (targetAndType.endsWith('-shared')) {
|
|
61
|
-
return {
|
|
62
|
-
target: targetAndType.slice(0, -'-shared'.length),
|
|
63
|
-
format,
|
|
64
|
-
type: 'shared'
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
target: targetAndType,
|
|
69
|
-
format,
|
|
70
|
-
type: 'static'
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
55
|
async function downloadBinaryFromRelease() {
|
|
76
56
|
// eslint-disable-next-line global-require
|
|
77
57
|
const { version } = require('../../package.json');
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
58
|
+
const cubestorePath = getCubeStorePath();
|
|
59
|
+
const currentTarget = utils_1.getTarget();
|
|
60
|
+
const url = `https://github.com/cube-js/cube.js/releases/download/v${version}/cubestored-${currentTarget}.tar.gz`;
|
|
61
|
+
try {
|
|
62
|
+
await shared_1.downloadAndExtractFile(url, {
|
|
63
|
+
cwd: cubestorePath,
|
|
64
|
+
showProgress: true,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
catch (e) {
|
|
68
|
+
if (e.toString().includes('Not Found')) {
|
|
69
|
+
const release = await fetchRelease(version);
|
|
70
|
+
if (release) {
|
|
71
|
+
if (release.assets.length === 0) {
|
|
72
|
+
throw new Error(`There are no artifacts for Cube Store v${version}. Most probably it is still building. Please try again later.`);
|
|
73
|
+
}
|
|
74
|
+
throw new Error(`Cube Store v${version} Artifact for ${currentTarget} doesn't exist. Most probably it is still building. Please try again later.`);
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
throw new Error(`Unable to find Cube Store release v${version}. Most probably it was removed.`);
|
|
93
78
|
}
|
|
94
79
|
}
|
|
95
|
-
|
|
80
|
+
else {
|
|
81
|
+
throw e;
|
|
82
|
+
}
|
|
96
83
|
}
|
|
97
|
-
throw new Error(`Unable to find Cube Store release v${version}. Most probably it was removed.`);
|
|
98
84
|
}
|
|
99
85
|
exports.downloadBinaryFromRelease = downloadBinaryFromRelease;
|
|
100
86
|
//# sourceMappingURL=download.js.map
|
package/dist/src/download.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download.js","sourceRoot":"","sources":["../../js-wrapper/src/download.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCA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E;YACtC,MAAM,OAAO,GAAG,MAAM,YAAY,CAAC,OAAO,CAAC,CAAC;YAC5C,IAAI,OAAO,EAAE;gBACX,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;oBAC/B,MAAM,IAAI,KAAK,CACb,0CAA0C,OAAO,+DAA+D,CACjH,CAAC;iBACH;gBAED,MAAM,IAAI,KAAK,CACb,eAAe,OAAO,iBAAiB,aAAa,6EAA6E,CAClI,CAAC;aACH;iBAAM;gBACL,MAAM,IAAI,KAAK,CACb,sCAAsC,OAAO,iCAAiC,CAC/E,CAAC;aACH;SACF;aAAM;YACL,MAAM,CAAC,CAAC;SACT;KACF;AACH,CAAC;AAnCD,8DAmCC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-backend/cubestore",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.32",
|
|
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.31.
|
|
40
|
+
"@cubejs-backend/shared": "^0.31.32",
|
|
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": "03ead10d0fd5f3fae5a7356450be489a2f05ae47"
|
|
54
54
|
}
|