@eggplanty/mycli 1.0.4 → 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 CHANGED
@@ -1,6 +1,6 @@
1
- 753b0b2b16c207f1c27aa718ca3f53f0039046ecf09af4249407dc7a0701a17c mycli-1.0.4-darwin-amd64.tar.gz
2
- a3fde5128295e6159ce2bf82c2bc4992c9b04b184cd5c39a1d40577ef90a94a0 mycli-1.0.4-darwin-arm64.tar.gz
3
- 05bec28c5a9e3daf77c674c946a066c0c5bbe49c17bac434315e7cdbba0b3c1a mycli-1.0.4-linux-amd64.tar.gz
4
- fd42d731ad61935b13dc4a5d2c192eb9f6594ba24acd2cbc8ae5b68fbe312d68 mycli-1.0.4-linux-arm64.tar.gz
5
- cadf31682286d254c4b1730b6feba805bd7009263f364ed2eeba80292cf0a90a mycli-1.0.4-windows-amd64.zip
6
- 2b4245371a21439c56cc8120a12723364fbe7e4e3553c597514554daac7dd5b5 mycli-1.0.4-windows-arm64.zip
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggplanty/mycli",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A simple CLI demo built with Go",
5
5
  "bin": {
6
6
  "mycli": "scripts/run.js"
@@ -8,8 +8,8 @@ class ChecksumError extends Error {}
8
8
  class NetworkError extends Error {}
9
9
 
10
10
  const VERSION = require("../package.json").version;
11
- const REPO = "larksuite/cli";
12
- const NAME = "lark-cli";
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/lark-cli/v${VERSION}/${archiveName}`,
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(), "lark-cli-"));
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 @larksuite/cli\n`
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", "lark-cli" + ext);
6
+ const bin = path.join(__dirname, "..", "bin", "mycli" + ext);
7
7
 
8
8
  try {
9
9
  execFileSync(bin, process.argv.slice(2), { stdio: "inherit" });