@eik/cli 3.1.6 → 3.1.8

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [3.1.8](https://github.com/eik-lib/cli/compare/v3.1.7...v3.1.8) (2024-09-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * login spinner obscuring input ([#600](https://github.com/eik-lib/cli/issues/600)) ([3c18a87](https://github.com/eik-lib/cli/commit/3c18a87945e0f59dd57f3b56688bbaf0fc1ee60e))
7
+
8
+ ## [3.1.7](https://github.com/eik-lib/cli/compare/v3.1.6...v3.1.7) (2024-08-29)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add missing image type to debug output ([c4f0407](https://github.com/eik-lib/cli/commit/c4f04077fac1df977947b53576e1d22edba3de98))
14
+
1
15
  ## [3.1.6](https://github.com/eik-lib/cli/compare/v3.1.5...v3.1.6) (2024-08-29)
2
16
 
3
17
 
package/commands/login.js CHANGED
@@ -33,7 +33,7 @@ export const builder = (yargs) => {
33
33
 
34
34
  export const handler = commandHandler(
35
35
  { command, options: ["server"] },
36
- async (argv, logger) => {
36
+ async (argv, logger, spinner) => {
37
37
  const { key, server } = argv;
38
38
 
39
39
  let k = key;
@@ -41,6 +41,7 @@ export const handler = commandHandler(
41
41
  let rl = null;
42
42
 
43
43
  if (!s || !k) {
44
+ spinner.stop();
44
45
  rl = readline.createInterface({
45
46
  input: process.stdin,
46
47
  output: process.stdout,
@@ -69,6 +70,7 @@ export const handler = commandHandler(
69
70
 
70
71
  if (rl) rl.close();
71
72
 
73
+ spinner.start();
72
74
  const token = await new Login({
73
75
  logger,
74
76
  key: k,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eik/cli",
3
- "version": "3.1.6",
3
+ "version": "3.1.8",
4
4
  "description": "CLI tool for publishing assets to an Eik server",
5
5
  "main": "./classes/index.js",
6
6
  "types": "./types/classes/index.d.ts",
@@ -58,7 +58,7 @@
58
58
  "@eik/eslint-config": "1.0.2",
59
59
  "@eik/prettier-config": "1.0.1",
60
60
  "@eik/semantic-release-config": "1.0.0",
61
- "@eik/service": "2.3.1",
61
+ "@eik/service": "2.3.2",
62
62
  "@eik/sink-memory": "1.1.2",
63
63
  "@eik/typescript-config": "1.0.0",
64
64
  "@types/yargs": "17.0.33",
@@ -1,2 +1,2 @@
1
- declare function _default(type: any): "PACKAGE" | "NPM" | "MAP";
1
+ declare function _default(type: any): "PACKAGE" | "NPM" | "IMAGE" | "MAP";
2
2
  export default _default;
@@ -1,5 +1,6 @@
1
1
  export default (type) => {
2
2
  if (type === "package") return "PACKAGE";
3
3
  if (type === "npm") return "NPM";
4
+ if (type === "image") return "IMAGE";
4
5
  return "MAP";
5
6
  };