@microlink/cli 2.1.23 → 2.1.24
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/bin/microlink-beta +11 -0
- package/bin/microlink-dev +12 -0
- package/bin/microlink-next +11 -0
- package/bin/microlink-vercel +5 -0
- package/package.json +1 -1
- package/src/api.js +1 -1
|
@@ -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').MICROLINK_API_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').MICROLINK_API_AUTHORIZATION
|
|
10
|
+
}
|
|
11
|
+
})
|
package/package.json
CHANGED
package/src/api.js
CHANGED
|
@@ -18,7 +18,7 @@ const print = require('./print')
|
|
|
18
18
|
const exit = require('./exit')
|
|
19
19
|
|
|
20
20
|
const microlinkUrl = () =>
|
|
21
|
-
/^https?:\/\/((?!geolocation\.)[a-z0-9-]+\.)
|
|
21
|
+
/^https?:\/\/((?!geolocation\.)[a-z0-9-]+\.)+microlink\.io/
|
|
22
22
|
|
|
23
23
|
const normalizeInput = input => {
|
|
24
24
|
if (!input) return input
|