@yaakapp/cli 0.0.37 → 0.0.38
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/install.js +3 -2
- package/package.json +5 -5
package/install.js
CHANGED
@@ -34,7 +34,7 @@ function makeRequest(url) {
|
|
34
34
|
} else {
|
35
35
|
reject(
|
36
36
|
new Error(
|
37
|
-
`npm responded with status code ${response.statusCode} when downloading the package
|
37
|
+
`npm responded with status code ${response.statusCode} when downloading the package! ${url}`
|
38
38
|
)
|
39
39
|
);
|
40
40
|
}
|
@@ -73,8 +73,9 @@ function extractFileFromTarball(tarballBuffer, filepath) {
|
|
73
73
|
|
74
74
|
async function downloadBinaryFromNpm() {
|
75
75
|
// Download the tarball of the right binary distribution package
|
76
|
+
const platformSpecificPackageNameWithoutOrg = platformSpecificPackageName.split('/')[1];
|
76
77
|
const tarballDownloadBuffer = await makeRequest(
|
77
|
-
`https://registry.npmjs.org/${platformSpecificPackageName}/-/${
|
78
|
+
`https://registry.npmjs.org/${platformSpecificPackageName}/-/${platformSpecificPackageNameWithoutOrg}-${BINARY_DISTRIBUTION_VERSION}.tgz`,
|
78
79
|
);
|
79
80
|
|
80
81
|
const tarballBuffer = zlib.unzipSync(tarballDownloadBuffer);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@yaakapp/cli",
|
3
|
-
"version": "v0.0.
|
3
|
+
"version": "v0.0.38",
|
4
4
|
"main": "./index.js",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -13,9 +13,9 @@
|
|
13
13
|
"yaakcli": "bin/cli.js"
|
14
14
|
},
|
15
15
|
"optionalDependencies": {
|
16
|
-
"@yaakapp/cli-darwin-x64": "v0.0.
|
17
|
-
"@yaakapp/cli-darwin-arm64": "v0.0.
|
18
|
-
"@yaakapp/cli-linux-x64": "v0.0.
|
19
|
-
"@yaakapp/cli-win32-x64": "v0.0.
|
16
|
+
"@yaakapp/cli-darwin-x64": "v0.0.38",
|
17
|
+
"@yaakapp/cli-darwin-arm64": "v0.0.38",
|
18
|
+
"@yaakapp/cli-linux-x64": "v0.0.38",
|
19
|
+
"@yaakapp/cli-win32-x64": "v0.0.38"
|
20
20
|
}
|
21
21
|
}
|