@microlink/cli 2.1.55 → 2.1.56

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/cli.js +3 -1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@microlink/cli",
3
3
  "description": "Interacting with Microlink API from your terminal.",
4
4
  "homepage": "https://github.com/microlinkhq/cli",
5
- "version": "2.1.55",
5
+ "version": "2.1.56",
6
6
  "main": "src/index.js",
7
7
  "bin": {
8
8
  "microlink": "bin/microlink",
@@ -95,7 +95,7 @@
95
95
  },
96
96
  "nano-staged": {
97
97
  "*.js": [
98
- "npx -y @kikobeats/prettier-standard",
98
+ "npx @kikobeats/prettier-standard",
99
99
  "standard --fix"
100
100
  ],
101
101
  "*.md": [
package/src/cli.js CHANGED
@@ -16,7 +16,9 @@ const parsed = mri(process.argv.slice(2), {
16
16
  }
17
17
  })
18
18
 
19
- const { _, header, ...flags } = parsed
19
+ const { _, header, 'api-key': apiKey, ...flags } = parsed
20
+
21
+ if (apiKey !== undefined) flags.apiKey = apiKey
20
22
 
21
23
  const headers = parseHeaders(header)
22
24