@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 CHANGED
@@ -1,6 +1,6 @@
1
- 328d5714b46b722966851d8e4e71d4943f072dddc48a2c99cb8d128d21a5b3f2 mycli-1.0.5-darwin-amd64.tar.gz
2
- 8aea3c6488eeee1ada76216959843e74410e299e704812f59338483c142ccf5a mycli-1.0.5-darwin-arm64.tar.gz
3
- b155b7e49cde8a018d31744ecd592786794686ae3552831cceb8579eb818c955 mycli-1.0.5-linux-amd64.tar.gz
4
- d18b9246a5e362dfd3895502ae3639282148bf6b9cc56c427244276a3feec272 mycli-1.0.5-linux-arm64.tar.gz
5
- 87524f75ba8af469c1d45a8f9eb7dc29103d963a5474586778f15c8e1a38d429 mycli-1.0.5-windows-amd64.zip
6
- 912a6b5a2ca02da2c5fd38fc47d7382ffac7b43f6313e471a7693d963c7f561e mycli-1.0.5-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.5",
3
+ "version": "1.0.6",
4
4
  "description": "A simple CLI demo built with Go",
5
5
  "bin": {
6
6
  "mycli": "scripts/run.js"
@@ -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 = "1.0.0";
11
- const REPO = "larksuite/cli";
12
- const NAME = "lark-cli";
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/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" });