@eggplanty/mycli 1.0.5 → 1.0.6
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/checksums.txt +6 -6
- package/package.json +1 -1
- package/scripts/install.js +6 -6
- package/scripts/run.js +1 -1
package/checksums.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
447e5d101e2b2caaade71403d545ce6fdb3dfc8377e74b7daf2267cd4889c84f mycli-1.0.6-darwin-amd64.tar.gz
|
|
2
|
+
50c3ec4c4c427e2ce9cc445a600a0689dcf4166a96c67f50f06ff4d3b4990400 mycli-1.0.6-darwin-arm64.tar.gz
|
|
3
|
+
819fabae0024ba0a1207ab7d339040242a221470c9fb8fd2f22de902ae506fb0 mycli-1.0.6-linux-amd64.tar.gz
|
|
4
|
+
0015b686ae540aa6e50c0090ec8c11a10d43eafc17393e8bae20d572f22f5bf6 mycli-1.0.6-linux-arm64.tar.gz
|
|
5
|
+
d7f100c4a074ee2558d9316b134cb72cd248a827dc2f1aac60a0e3bb9b6195c1 mycli-1.0.6-windows-amd64.zip
|
|
6
|
+
f08c8e271de57235453bebb76fbef5dfa3b82318d4f0e0d953c9ca8963fd1568 mycli-1.0.6-windows-arm64.zip
|
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -7,9 +7,9 @@ const crypto = require("crypto");
|
|
|
7
7
|
class ChecksumError extends Error {}
|
|
8
8
|
class NetworkError extends Error {}
|
|
9
9
|
|
|
10
|
-
const VERSION = "
|
|
11
|
-
const REPO = "
|
|
12
|
-
const NAME = "
|
|
10
|
+
const VERSION = require("../package.json").version;
|
|
11
|
+
const REPO = "eggplanty/test_npm";
|
|
12
|
+
const NAME = "mycli";
|
|
13
13
|
|
|
14
14
|
const PLATFORM_MAP = {
|
|
15
15
|
darwin: "darwin",
|
|
@@ -37,7 +37,7 @@ const ext = isWindows ? ".zip" : ".tar.gz";
|
|
|
37
37
|
const archiveName = `${NAME}-${VERSION}-${platform}-${arch}${ext}`;
|
|
38
38
|
const SOURCES = [
|
|
39
39
|
`https://github.com/${REPO}/releases/download/v${VERSION}/${archiveName}`,
|
|
40
|
-
`https://registry.npmmirror.com/-/binary/
|
|
40
|
+
`https://registry.npmmirror.com/-/binary/mycli/v${VERSION}/${archiveName}`,
|
|
41
41
|
];
|
|
42
42
|
|
|
43
43
|
const ALLOWED_INITIAL_HOSTS = new Set([
|
|
@@ -211,7 +211,7 @@ function getExpectedChecksum(archiveFilename, checksumPath = DEFAULT_CHECKSUM_PA
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
async function install() {
|
|
214
|
-
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "
|
|
214
|
+
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "mycli-"));
|
|
215
215
|
const archivePath = path.join(tmpDir, archiveName);
|
|
216
216
|
|
|
217
217
|
try {
|
|
@@ -261,7 +261,7 @@ if (require.main === module) {
|
|
|
261
261
|
console.error(
|
|
262
262
|
`\nIf you are behind a firewall or on a restricted network, try configuring a proxy:\n` +
|
|
263
263
|
` export https_proxy=http://your-proxy:port\n` +
|
|
264
|
-
` npm install -g @
|
|
264
|
+
` npm install -g @eggplanty/mycli\n`
|
|
265
265
|
);
|
|
266
266
|
} else {
|
|
267
267
|
console.error(`\n${NAME} install failed:\n${err.stack || err.message}`);
|
package/scripts/run.js
CHANGED
|
@@ -3,7 +3,7 @@ const { execFileSync } = require("child_process");
|
|
|
3
3
|
const path = require("path");
|
|
4
4
|
|
|
5
5
|
const ext = process.platform === "win32" ? ".exe" : "";
|
|
6
|
-
const bin = path.join(__dirname, "..", "bin", "
|
|
6
|
+
const bin = path.join(__dirname, "..", "bin", "mycli" + ext);
|
|
7
7
|
|
|
8
8
|
try {
|
|
9
9
|
execFileSync(bin, process.argv.slice(2), { stdio: "inherit" });
|