@microlink/cli 2.0.7 → 2.0.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/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://nicedoc.io/microlinkhq/cli",
5
- "version": "2.0.7",
5
+ "version": "2.0.8",
6
6
  "main": "src/index.js",
7
7
  "bin": {
8
8
  "microlink": "bin/microlink"
@@ -31,14 +31,14 @@
31
31
  "microlink"
32
32
  ],
33
33
  "dependencies": {
34
- "@microlink/mql": "~0.10.0",
34
+ "@microlink/mql": "~0.10.10",
35
35
  "clipboardy": "~2.3.0",
36
36
  "escape-string-regexp": "~4.0.0",
37
- "got": "~11.8.2",
37
+ "got": "~11.8.3",
38
38
  "jsome": "~2.5.0",
39
39
  "meow": "~9.0.0",
40
- "ora": "~5.4.0",
41
- "picocolors": "~0.2.1",
40
+ "nanospinner": "~0.6.0",
41
+ "picocolors": "~1.0.0",
42
42
  "pretty-bytes": "~5.6.0",
43
43
  "pretty-ms": "~7.0.1",
44
44
  "temperment": "~1.0.0",
@@ -54,7 +54,7 @@
54
54
  "finepack": "latest",
55
55
  "git-authors-cli": "latest",
56
56
  "git-dirty": "latest",
57
- "lint-staged": "latest",
57
+ "nano-staged": "latest",
58
58
  "npm-check-updates": "latest",
59
59
  "prettier-standard": "latest",
60
60
  "simple-git-hooks": "latest",
@@ -90,19 +90,19 @@
90
90
  "@commitlint/config-conventional"
91
91
  ]
92
92
  },
93
- "lint-staged": {
94
- "package.json": [
95
- "finepack"
96
- ],
93
+ "nano-staged": {
97
94
  "*.js,!*.min.js,": [
98
95
  "prettier-standard"
99
96
  ],
100
97
  "*.md": [
101
98
  "standard-markdown"
99
+ ],
100
+ "package.json": [
101
+ "finepack"
102
102
  ]
103
103
  },
104
104
  "simple-git-hooks": {
105
105
  "commit-msg": "npx commitlint --edit",
106
- "pre-commit": "npx lint-staged"
106
+ "pre-commit": "npx nano-staged"
107
107
  }
108
108
  }
package/src/api.js CHANGED
@@ -5,27 +5,19 @@
5
5
  require('update-notifier')({ pkg: require('../package.json') }).notify()
6
6
 
7
7
  const escapeStringRegexp = require('escape-string-regexp')
8
- const querystring = require('querystring')
8
+ const { URLSearchParams } = require('url')
9
9
  const clipboardy = require('clipboardy')
10
10
  const mql = require('@microlink/mql')
11
11
  const prettyMs = require('pretty-ms')
12
12
  const colors = require('picocolors')
13
13
  const temp = require('temperment')
14
- const createGot = require('got')
14
+ const got = require('got')
15
15
  const fs = require('fs')
16
16
  const os = require('os')
17
17
 
18
18
  const print = require('./print')
19
19
  const exit = require('./exit')
20
20
 
21
- const GOT_OPTS = {
22
- headers: {
23
- authorization: process.env.MICROLINK_API_AUTHORIZATION
24
- }
25
- }
26
-
27
- const got = createGot.extend(GOT_OPTS)
28
-
29
21
  const ALL_ENDPOINTS = [
30
22
  'api.microlink.io',
31
23
  'next.microlink.io',
@@ -61,12 +53,15 @@ const getInput = input => {
61
53
  return collection.reduce((acc, item) => acc + item.trim(), '')
62
54
  }
63
55
 
64
- const fetch = async cli => {
65
- const { pretty, color, copy, endpoint, ...restOpts } = cli.flags
56
+ const toHeaders = input => Object.fromEntries(new URLSearchParams(input))
57
+
58
+ const fetch = async (cli, gotOpts) => {
59
+ const { pretty, color, copy, endpoint, ...flags } = cli.flags
66
60
  const input = getInput(cli.input, endpoint)
67
61
  const sanetizedInput = sanetizeInput(input, endpoint)
68
62
  const prefixedInput = prefixInput(sanetizedInput, endpoint)
69
- const { url, ...opts } = querystring.parse(prefixedInput)
63
+ const { url, ...queryParams } = toHeaders(prefixedInput)
64
+ const mqlOpts = { endpoint, ...queryParams, ...flags }
70
65
  const spinner = print.spinner()
71
66
 
72
67
  try {
@@ -74,21 +69,12 @@ const fetch = async cli => {
74
69
  spinner.start()
75
70
 
76
71
  const { body, response } = await (async () => {
77
- const mqlOpts = { ...opts, ...restOpts }
78
72
  if (url) {
79
- const { response, body } = await mql.buffer(
80
- url,
81
- { endpoint, ...mqlOpts },
82
- GOT_OPTS
83
- )
84
-
73
+ const { response, body } = await mql.buffer(url, mqlOpts, gotOpts)
85
74
  return { body, response }
86
75
  }
87
76
 
88
- const { apiKey } = mqlOpts
89
- const response = await got(endpoint, {
90
- headers: apiKey ? { 'x-api-key': apiKey } : undefined
91
- })
77
+ const response = await got(endpoint, mqlOpts)
92
78
  return { response, body: response.body }
93
79
  })()
94
80
 
@@ -190,4 +176,5 @@ const render = ({ body, response, flags }) => {
190
176
  }
191
177
  }
192
178
 
193
- module.exports = cli => exit(fetch(cli).then(render), cli)
179
+ module.exports = (cli, gotOpts = {}) =>
180
+ exit(fetch(cli, gotOpts).then(render), cli)
package/src/print.js CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict'
2
2
 
3
+ const { createSpinner } = require('nanospinner')
3
4
  const terminalLink = require('terminal-link')
4
5
  const prettyBytes = require('pretty-bytes')
5
6
  const prettyMs = require('pretty-ms')
6
7
  const colors = require('picocolors')
7
8
  const termImg = require('term-img')
8
9
  const jsome = require('jsome')
9
- const ora = require('ora')
10
10
 
11
11
  jsome.colors = {
12
12
  num: 'cyan',
@@ -23,7 +23,7 @@ jsome.colors = {
23
23
 
24
24
  module.exports = {
25
25
  spinner: (text = '') => {
26
- const spinner = ora({ color: 'white', text })
26
+ const spinner = createSpinner(text, { color: 'white' })
27
27
  const now = Date.now()
28
28
  const elapsedTime = () => Date.now() - now
29
29
  let interval
@@ -31,13 +31,15 @@ module.exports = {
31
31
  const start = () => {
32
32
  interval = setInterval(() => {
33
33
  const duration = elapsedTime()
34
- if (duration > 500) spinner.text = `${prettyMs(duration)} ${text}`
34
+ if (duration > 500) {
35
+ spinner.update({ text: `${prettyMs(duration)} ${text}` })
36
+ }
35
37
  }, 100)
36
38
  spinner.start()
37
39
  }
38
40
 
39
41
  const stop = () => {
40
- spinner.stop()
42
+ spinner.clear()
41
43
  clearInterval(interval)
42
44
  return elapsedTime()
43
45
  }
package/CHANGELOG.md DELETED
@@ -1,419 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ### [2.0.7](https://github.com/microlinkhq/cli/compare/v2.0.6...v2.0.7) (2021-10-09)
6
-
7
- ### [2.0.6](https://github.com/microlinkhq/cli/compare/v2.0.5...v2.0.6) (2021-10-01)
8
-
9
- ### [2.0.5](https://github.com/microlinkhq/cli/compare/v2.0.4...v2.0.5) (2021-08-22)
10
-
11
- ### [2.0.4](https://github.com/microlinkhq/cli/compare/v2.0.3...v2.0.4) (2021-08-22)
12
-
13
- ### [2.0.3](https://github.com/microlinkhq/cli/compare/v2.0.2...v2.0.3) (2021-08-16)
14
-
15
-
16
- ### Bug Fixes
17
-
18
- * report is named as more ([f03348c](https://github.com/microlinkhq/cli/commit/f03348c6e9d11cca3d8c517bfd4c69beeaec1ae9))
19
-
20
- ### [2.0.2](https://github.com/microlinkhq/cli/compare/v2.0.1...v2.0.2) (2021-05-27)
21
-
22
-
23
- ### Bug Fixes
24
-
25
- * pass apiKey under no url ([2f85785](https://github.com/microlinkhq/cli/commit/2f85785e6a77a205efa9cd36c3a728cb195dfc61))
26
-
27
- ### [2.0.1](https://github.com/microlinkhq/cli/compare/v2.0.0...v2.0.1) (2021-04-30)
28
-
29
-
30
- ### Bug Fixes
31
-
32
- * remove debug log ([c06a901](https://github.com/microlinkhq/cli/commit/c06a9016ef511a7a9dc4bbb2aa2eb1c10ab5c6d2))
33
-
34
- ## [2.0.0](https://github.com/microlinkhq/cli/compare/v2.0.0-4.0...v2.0.0) (2021-04-21)
35
-
36
- ## [2.0.0-4.0](https://github.com/microlinkhq/cli/compare/v2.0.0-3.0...v2.0.0-4.0) (2021-04-21)
37
-
38
- ## [2.0.0-3.0](https://github.com/microlinkhq/cli/compare/v2.0.0-2.0...v2.0.0-3.0) (2021-04-21)
39
-
40
- ## [2.0.0-2.0](https://github.com/microlinkhq/cli/compare/v2.0.0-1.0...v2.0.0-2.0) (2021-04-21)
41
-
42
- ## [2.0.0-1.0](https://github.com/microlinkhq/cli/compare/v2.0.0-0.0...v2.0.0-1.0) (2021-04-20)
43
-
44
- ## [2.0.0-0.0](https://github.com/microlinkhq/cli/compare/v1.5.8...v2.0.0-0.0) (2021-04-15)
45
-
46
- ### [1.5.8](https://github.com/microlinkhq/cli/compare/v1.5.7...v1.5.8) (2021-03-22)
47
-
48
- ### [1.5.7](https://github.com/microlinkhq/cli/compare/v1.5.6...v1.5.7) (2021-03-02)
49
-
50
- ### [1.5.6](https://github.com/microlinkhq/cli/compare/v1.5.5...v1.5.6) (2021-02-24)
51
-
52
- ### [1.5.5](https://github.com/microlinkhq/cli/compare/v1.5.4...v1.5.5) (2021-02-08)
53
-
54
- ### [1.5.4](https://github.com/microlinkhq/cli/compare/v1.5.3...v1.5.4) (2021-01-14)
55
-
56
- ### [1.5.3](https://github.com/microlinkhq/cli/compare/v1.5.2...v1.5.3) (2021-01-08)
57
-
58
- ### [1.5.2](https://github.com/microlinkhq/cli/compare/v1.5.1...v1.5.2) (2020-12-18)
59
-
60
- ### [1.5.1](https://github.com/microlinkhq/cli/compare/v1.5.0...v1.5.1) (2020-12-18)
61
-
62
-
63
- ### Bug Fixes
64
-
65
- * uri value is requestUrl ([2786c95](https://github.com/microlinkhq/cli/commit/2786c9596c62c89aacf5341a47ddc96c00e1dc7f))
66
-
67
- ## [1.5.0](https://github.com/microlinkhq/cli/compare/v1.4.14...v1.5.0) (2020-12-18)
68
-
69
-
70
- ### Features
71
-
72
- * update dependencies ([82f03b8](https://github.com/microlinkhq/cli/commit/82f03b87cf4eaff8a93afd798137f3db0965e21b))
73
-
74
- ### [1.4.14](https://github.com/microlinkhq/cli/compare/v1.4.13...v1.4.14) (2020-11-29)
75
-
76
- ### [1.4.13](https://github.com/microlinkhq/cli/compare/v1.4.12...v1.4.13) (2020-10-30)
77
-
78
- ### [1.4.12](https://github.com/microlinkhq/cli/compare/v1.4.11...v1.4.12) (2020-10-21)
79
-
80
- ### [1.4.11](https://github.com/microlinkhq/cli/compare/v1.4.10...v1.4.11) (2020-09-30)
81
-
82
- ### [1.4.10](https://github.com/microlinkhq/cli/compare/v1.4.9...v1.4.10) (2020-09-20)
83
-
84
- ### [1.4.9](https://github.com/microlinkhq/cli/compare/v1.4.8...v1.4.9) (2020-09-19)
85
-
86
- ### [1.4.8](https://github.com/microlinkhq/cli/compare/v1.4.7...v1.4.8) (2020-09-07)
87
-
88
- ### [1.4.7](https://github.com/microlinkhq/cli/compare/v1.4.6...v1.4.7) (2020-09-03)
89
-
90
- ### [1.4.6](https://github.com/microlinkhq/cli/compare/v1.4.5...v1.4.6) (2020-09-02)
91
-
92
- ### [1.4.5](https://github.com/microlinkhq/cli/compare/v1.4.4...v1.4.5) (2020-08-31)
93
-
94
- ### [1.4.4](https://github.com/microlinkhq/cli/compare/v1.4.3...v1.4.4) (2020-08-26)
95
-
96
- ### [1.4.3](https://github.com/microlinkhq/cli/compare/v1.4.2...v1.4.3) (2020-08-19)
97
-
98
- ### [1.4.2](https://github.com/microlinkhq/cli/compare/v1.4.1...v1.4.2) (2020-08-15)
99
-
100
-
101
- ### Bug Fixes
102
-
103
- * show info under error and pretty ([41d8dfb](https://github.com/microlinkhq/cli/commit/41d8dfb))
104
-
105
- ### [1.4.1](https://github.com/microlinkhq/cli/compare/v1.4.0...v1.4.1) (2020-08-15)
106
-
107
-
108
- ### Bug Fixes
109
-
110
- * miss expiration value ([a3594da](https://github.com/microlinkhq/cli/commit/a3594da))
111
-
112
- ## [1.4.0](https://github.com/microlinkhq/cli/compare/v1.3.51...v1.4.0) (2020-08-08)
113
-
114
-
115
- ### Features
116
-
117
- * add pretty flag ([32aaf50](https://github.com/microlinkhq/cli/commit/32aaf50))
118
-
119
- ### [1.3.51](https://github.com/microlinkhq/cli/compare/v1.3.50...v1.3.51) (2020-08-08)
120
-
121
- ### [1.3.50](https://github.com/microlinkhq/cli/compare/v1.3.49...v1.3.50) (2020-08-08)
122
-
123
-
124
- ### Bug Fixes
125
-
126
- * linter ([6f32a08](https://github.com/microlinkhq/cli/commit/6f32a08))
127
-
128
- ### [1.3.49](https://github.com/microlinkhq/cli/compare/v1.3.48...v1.3.49) (2020-07-20)
129
-
130
- ### [1.3.48](https://github.com/microlinkhq/cli/compare/v1.3.47...v1.3.48) (2020-06-26)
131
-
132
- ### [1.3.47](https://github.com/microlinkhq/cli/compare/v1.3.46...v1.3.47) (2020-06-10)
133
-
134
- ### [1.3.46](https://github.com/microlinkhq/cli/compare/v1.3.45...v1.3.46) (2020-06-01)
135
-
136
- ### [1.3.45](https://github.com/microlinkhq/cli/compare/v1.3.44...v1.3.45) (2020-05-26)
137
-
138
- ### [1.3.44](https://github.com/microlinkhq/cli/compare/v1.3.43...v1.3.44) (2020-05-21)
139
-
140
- ### [1.3.43](https://github.com/microlinkhq/cli/compare/v1.3.42...v1.3.43) (2020-05-21)
141
-
142
- ### [1.3.42](https://github.com/microlinkhq/cli/compare/v1.3.41...v1.3.42) (2020-05-19)
143
-
144
- ### [1.3.41](https://github.com/microlinkhq/cli/compare/v1.3.40...v1.3.41) (2020-05-17)
145
-
146
- ### [1.3.40](https://github.com/microlinkhq/cli/compare/v1.3.39...v1.3.40) (2020-05-07)
147
-
148
- ### [1.3.39](https://github.com/microlinkhq/cli/compare/v1.3.38...v1.3.39) (2020-04-28)
149
-
150
- ### [1.3.38](https://github.com/microlinkhq/cli/compare/v1.3.37...v1.3.38) (2020-04-24)
151
-
152
- ### [1.3.37](https://github.com/microlinkhq/cli/compare/v1.3.36...v1.3.37) (2020-04-08)
153
-
154
- ### [1.3.36](https://github.com/microlinkhq/cli/compare/v1.3.35...v1.3.36) (2020-04-03)
155
-
156
- ### [1.3.35](https://github.com/microlinkhq/cli/compare/v1.3.34...v1.3.35) (2020-03-23)
157
-
158
- ### [1.3.34](https://github.com/microlinkhq/cli/compare/v1.3.33...v1.3.34) (2020-03-23)
159
-
160
- ### [1.3.33](https://github.com/microlinkhq/cli/compare/v1.3.32...v1.3.33) (2020-03-20)
161
-
162
- ### [1.3.32](https://github.com/microlinkhq/cli/compare/v1.3.31...v1.3.32) (2020-03-20)
163
-
164
- ### [1.3.31](https://github.com/microlinkhq/cli/compare/v1.3.30...v1.3.31) (2020-03-07)
165
-
166
-
167
- ### Bug Fixes
168
-
169
- * spaces ([7e10ceb](https://github.com/microlinkhq/cli/commit/7e10ceb))
170
-
171
- ### [1.3.30](https://github.com/microlinkhq/cli/compare/v1.3.29...v1.3.30) (2020-03-04)
172
-
173
- ### [1.3.29](https://github.com/microlinkhq/cli/compare/v1.3.28...v1.3.29) (2020-03-01)
174
-
175
- ### [1.3.28](https://github.com/microlinkhq/cli/compare/v1.3.27...v1.3.28) (2020-02-17)
176
-
177
- ### [1.3.27](https://github.com/microlinkhq/cli/compare/v1.3.26...v1.3.27) (2020-02-13)
178
-
179
- ### [1.3.26](https://github.com/microlinkhq/cli/compare/v1.3.25...v1.3.26) (2020-02-13)
180
-
181
- ### [1.3.25](https://github.com/microlinkhq/cli/compare/v1.3.24...v1.3.25) (2020-02-09)
182
-
183
- ### [1.3.24](https://github.com/microlinkhq/cli/compare/v1.3.23...v1.3.24) (2020-02-04)
184
-
185
-
186
- ### Bug Fixes
187
-
188
- * set as buffer response ([b83ae7b](https://github.com/microlinkhq/cli/commit/b83ae7b696f408549361fa1442693e3990b56e8a))
189
-
190
- ### [1.3.23](https://github.com/microlinkhq/cli/compare/v1.3.22...v1.3.23) (2020-01-28)
191
-
192
- ### [1.3.22](https://github.com/microlinkhq/cli/compare/v1.3.21...v1.3.22) (2020-01-28)
193
-
194
- ### [1.3.21](https://github.com/microlinkhq/cli/compare/v1.3.20...v1.3.21) (2020-01-18)
195
-
196
- ### [1.3.20](https://github.com/microlinkhq/cli/compare/v1.3.19...v1.3.20) (2020-01-02)
197
-
198
- ### [1.3.19](https://github.com/microlinkhq/cli/compare/v1.3.18...v1.3.19) (2019-12-20)
199
-
200
- ### [1.3.18](https://github.com/microlinkhq/cli/compare/v1.3.17...v1.3.18) (2019-12-13)
201
-
202
- ### [1.3.17](https://github.com/microlinkhq/cli/compare/v1.3.16...v1.3.17) (2019-12-09)
203
-
204
- ### [1.3.16](https://github.com/microlinkhq/cli/compare/v1.3.15...v1.3.16) (2019-11-25)
205
-
206
- ### [1.3.15](https://github.com/microlinkhq/cli/compare/v1.3.14...v1.3.15) (2019-11-14)
207
-
208
- ### [1.3.14](https://github.com/microlinkhq/cli/compare/v1.3.13...v1.3.14) (2019-11-11)
209
-
210
- ### [1.3.13](https://github.com/microlinkhq/cli/compare/v1.3.12...v1.3.13) (2019-10-29)
211
-
212
-
213
- ### Bug Fixes
214
-
215
- * linter ([7b24d34](https://github.com/microlinkhq/cli/commit/7b24d34))
216
-
217
- ### [1.3.12](https://github.com/microlinkhq/cli/compare/v1.3.11...v1.3.12) (2019-10-23)
218
-
219
- ### [1.3.11](https://github.com/microlinkhq/cli/compare/v1.3.10...v1.3.11) (2019-10-18)
220
-
221
- ### [1.3.10](https://github.com/microlinkhq/cli/compare/v1.3.9...v1.3.10) (2019-10-15)
222
-
223
-
224
- ### Bug Fixes
225
-
226
- * remove debug log ([4fe59fa](https://github.com/microlinkhq/cli/commit/4fe59fa))
227
-
228
- ### [1.3.9](https://github.com/microlinkhq/cli/compare/v1.3.8...v1.3.9) (2019-10-12)
229
-
230
-
231
- ### Bug Fixes
232
-
233
- * calculate content length of a buffer ([3516520](https://github.com/microlinkhq/cli/commit/3516520))
234
- * object path ([af20e8e](https://github.com/microlinkhq/cli/commit/af20e8e))
235
-
236
- ### [1.3.8](https://github.com/microlinkhq/cli/compare/v1.3.7...v1.3.8) (2019-10-09)
237
-
238
- ### [1.3.7](https://github.com/microlinkhq/cli/compare/v1.3.6...v1.3.7) (2019-10-09)
239
-
240
- ### [1.3.6](https://github.com/microlinkhq/cli/compare/v1.3.5...v1.3.6) (2019-09-23)
241
-
242
- ### [1.3.5](https://github.com/microlinkhq/cli/compare/v1.3.4...v1.3.5) (2019-09-14)
243
-
244
- ### [1.3.4](https://github.com/microlinkhq/cli/compare/v1.3.3...v1.3.4) (2019-09-02)
245
-
246
- ### [1.3.3](https://github.com/microlinkhq/cli/compare/v1.3.2...v1.3.3) (2019-09-02)
247
-
248
- ### [1.3.2](https://github.com/microlinkhq/cli/compare/v1.3.1...v1.3.2) (2019-08-26)
249
-
250
- ### [1.3.1](https://github.com/microlinkhq/cli/compare/v1.3.0...v1.3.1) (2019-08-21)
251
-
252
- ## [1.3.0](https://github.com/microlinkhq/cli/compare/v1.2.5...v1.3.0) (2019-08-21)
253
-
254
-
255
- ### Features
256
-
257
- * add spinner animation on load ([933cc0c](https://github.com/microlinkhq/cli/commit/933cc0c))
258
-
259
- ### [1.2.5](https://github.com/microlinkhq/cli/compare/v1.2.4...v1.2.5) (2019-08-15)
260
-
261
- ### [1.2.4](https://github.com/microlinkhq/cli/compare/v1.2.3...v1.2.4) (2019-08-15)
262
-
263
-
264
- ### Bug Fixes
265
-
266
- * print image as fallback ([cf4b250](https://github.com/microlinkhq/cli/commit/cf4b250))
267
-
268
- ### [1.2.3](https://github.com/microlinkhq/cli/compare/v1.2.2...v1.2.3) (2019-08-15)
269
-
270
- ### [1.2.2](https://github.com/microlinkhq/cli/compare/v1.2.1...v1.2.2) (2019-08-02)
271
-
272
-
273
-
274
- ### [1.2.1](https://github.com/microlinkhq/cli/compare/v1.2.0...v1.2.1) (2019-07-29)
275
-
276
-
277
- ### Build System
278
-
279
- * **deps:** update pretty-bytes requirement from ~5.2.0 to ~5.3.0 ([49b248f](https://github.com/microlinkhq/cli/commit/49b248f))
280
- * **deps:** update pretty-bytes requirement from ~5.2.0 to ~5.3.0 ([#1](https://github.com/microlinkhq/cli/issues/1)) ([44d3e69](https://github.com/microlinkhq/cli/commit/44d3e69))
281
-
282
-
283
-
284
- ## [1.2.0](https://github.com/microlinkhq/cli/compare/v1.1.9...v1.2.0) (2019-07-11)
285
-
286
-
287
- ### Bug Fixes
288
-
289
- * linter ([3336d81](https://github.com/microlinkhq/cli/commit/3336d81))
290
-
291
-
292
- ### Build System
293
-
294
- * extract print helpers ([934a0cb](https://github.com/microlinkhq/cli/commit/934a0cb))
295
- * migrate lint-staged ([cede92e](https://github.com/microlinkhq/cli/commit/cede92e))
296
-
297
-
298
- ### Features
299
-
300
- * add copy flag ([0c31275](https://github.com/microlinkhq/cli/commit/0c31275))
301
-
302
-
303
-
304
- ### [1.1.9](https://github.com/microlinkhq/cli/compare/v1.1.8...v1.1.9) (2019-06-30)
305
-
306
-
307
- ### Build System
308
-
309
- * add base64 support ([8c472b1](https://github.com/microlinkhq/cli/commit/8c472b1))
310
-
311
-
312
-
313
- ### [1.1.8](https://github.com/microlinkhq/cli/compare/v1.1.7...v1.1.8) (2019-06-19)
314
-
315
-
316
- ### Build System
317
-
318
- * update travis ([fc1fc94](https://github.com/microlinkhq/cli/commit/fc1fc94))
319
-
320
-
321
-
322
- ### [1.1.7](https://github.com/microlinkhq/cli/compare/v1.1.6...v1.1.7) (2019-06-18)
323
-
324
-
325
- ### Bug Fixes
326
-
327
- * handle non json content properly ([972b4f1](https://github.com/microlinkhq/cli/commit/972b4f1))
328
-
329
-
330
-
331
- ### [1.1.6](https://github.com/microlinkhq/cli/compare/v1.1.5...v1.1.6) (2019-06-12)
332
-
333
-
334
- ### Build System
335
-
336
- * print specific api errors ([6372757](https://github.com/microlinkhq/cli/commit/6372757))
337
-
338
-
339
-
340
- ### [1.1.5](https://github.com/microlinkhq/cli/compare/v1.1.4...v1.1.5) (2019-06-09)
341
-
342
-
343
- ### Build System
344
-
345
- * tweak meta ([cb50ad3](https://github.com/microlinkhq/cli/commit/cb50ad3))
346
-
347
-
348
-
349
- ### [1.1.4](https://github.com/microlinkhq/cli/compare/v1.1.3...v1.1.4) (2019-06-09)
350
-
351
-
352
- ### Bug Fixes
353
-
354
- * setup metadata properly ([e3490b2](https://github.com/microlinkhq/cli/commit/e3490b2))
355
-
356
-
357
-
358
- ## [1.1.3](https://github.com/microlinkhq/microlink-cli/compare/v1.1.2...v1.1.3) (2019-06-09)
359
-
360
-
361
-
362
- ## [1.1.2](https://github.com/microlinkhq/microlink-cli/compare/v1.1.1...v1.1.2) (2019-06-09)
363
-
364
-
365
-
366
- ## [1.1.1](https://github.com/microlinkhq/microlink-cli/compare/v1.1.0...v1.1.1) (2019-06-09)
367
-
368
-
369
-
370
- ## [1.1.0](https://github.com/microlinkhq/microlink-cli/compare/v1.0.5...v1.1.0) (2019-05-28)
371
-
372
-
373
- ### Build System
374
-
375
- * update dependencies ([84c2814](https://github.com/microlinkhq/microlink-cli/commit/84c2814))
376
-
377
-
378
- ### Features
379
-
380
- * add resume message ([d7eb65d](https://github.com/microlinkhq/microlink-cli/commit/d7eb65d))
381
-
382
-
383
-
384
- ### [1.0.5](https://github.com/microlinkhq/microlink-cli/compare/v1.0.4...v1.0.5) (2019-05-20)
385
-
386
-
387
- ### Build System
388
-
389
- * change git-authors-cli position ([9911a9e](https://github.com/microlinkhq/microlink-cli/commit/9911a9e))
390
-
391
-
392
-
393
- ### [1.0.4](https://github.com/microlinkhq/microlink-cli/compare/v1.0.3...v1.0.4) (2019-05-09)
394
-
395
-
396
- ### Build System
397
-
398
- * remove throwHttpErrors a and header flags ([7cddd8c](https://github.com/microlinkhq/microlink-cli/commit/7cddd8c))
399
-
400
-
401
-
402
- ### [1.0.3](https://github.com/microlinkhq/microlink-cli/compare/v1.0.2...v1.0.3) (2019-05-06)
403
-
404
-
405
- ### Bug Fixes
406
-
407
- * empty headers ([c873950](https://github.com/microlinkhq/microlink-cli/commit/c873950))
408
-
409
-
410
-
411
- ## [1.0.2](https://github.com/microlinkhq/microlink-cli/compare/v1.0.1...v1.0.2) (2019-05-03)
412
-
413
-
414
-
415
- ## [1.0.1](https://github.com/microlinkhq/microlink-cli/compare/v1.0.0...v1.0.1) (2019-05-03)
416
-
417
-
418
-
419
- # 1.0.0 (2019-05-02)
package/bin/microlink-dev DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const cli = require('../src/cli')
4
- cli.flags.endpoint = 'http://localhost:3000'
5
- cli.flags.apiKey = ''
6
- require('../src/api')(cli)
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const cli = require('../src/cli')
4
- cli.flags.endpoint = 'https://next.microlink.io'
5
- cli.flags.apiKey = ''
6
- require('../src/api')(cli)
@@ -1,5 +0,0 @@
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)