@microlink/cli 2.1.46 → 2.1.48

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/LICENSE.md CHANGED
File without changes
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+
3
+ const cli = require('../src/cli')
4
+ cli.flags.endpoint = 'https://beta.microlink.io'
5
+ delete cli.flags.apiKey
6
+
7
+ require('../src/api')(cli, {
8
+ headers: {
9
+ authorization: require('../../api/src/constant').MICROLINK_API_AUTHORIZATION
10
+ }
11
+ })
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+
3
+ const cli = require('../src/cli')
4
+ cli.flags.endpoint = 'http://localhost:3000'
5
+ delete cli.flags.apiKey
6
+
7
+ require('../src/api')(cli, {
8
+ retry: 0,
9
+ headers: {
10
+ authorization: require('../../api/src/constant').AUTHORIZATION
11
+ }
12
+ })
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+
3
+ const cli = require('../src/cli')
4
+ cli.flags.endpoint = 'https://next.microlink.io'
5
+ delete cli.flags.apiKey
6
+
7
+ require('../src/api')(cli, {
8
+ headers: {
9
+ authorization: require('../../api/src/constant').AUTHORIZATION_TOKEN
10
+ }
11
+ })
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+
3
+ const cli = require('../src/cli')
4
+ cli.flags.endpoint = 'https://vercel.microlink.io'
5
+ require('../src/api')(cli)
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.46",
5
+ "version": "2.1.48",
6
6
  "main": "src/index.js",
7
7
  "bin": {
8
8
  "microlink": "bin/microlink",
@@ -72,17 +72,6 @@
72
72
  "bin",
73
73
  "src"
74
74
  ],
75
- "scripts": {
76
- "clean": "rm -rf node_modules",
77
- "contributors": "(npx git-authors-cli && npx finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
78
- "lint": "standard-markdown README.md && standard",
79
- "postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
80
- "pretest": "npm run lint",
81
- "release": "standard-version -a",
82
- "release:github": "github-generate-release",
83
- "release:tags": "git push --follow-tags origin HEAD:master",
84
- "test": "c8 ava"
85
- },
86
75
  "preferGlobal": true,
87
76
  "license": "MIT",
88
77
  "commitlint": {
@@ -110,5 +99,16 @@
110
99
  "simple-git-hooks": {
111
100
  "commit-msg": "npx commitlint --edit",
112
101
  "pre-commit": "npx nano-staged"
102
+ },
103
+ "scripts": {
104
+ "clean": "rm -rf node_modules",
105
+ "contributors": "(npx git-authors-cli && npx finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
106
+ "lint": "standard-markdown README.md && standard",
107
+ "postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
108
+ "pretest": "npm run lint",
109
+ "release": "standard-version -a",
110
+ "release:github": "github-generate-release",
111
+ "release:tags": "git push --follow-tags origin HEAD:master",
112
+ "test": "c8 ava"
113
113
  }
114
- }
114
+ }
package/src/cli.js CHANGED
@@ -8,8 +8,7 @@ const { _, ...flags } = mri(process.argv.slice(2), {
8
8
  apiKey: process.env.MICROLINK_API_KEY,
9
9
  pretty: true,
10
10
  color: true,
11
- copy: false,
12
- retry: 0
11
+ copy: false
13
12
  }
14
13
  })
15
14