@microlink/cli 2.0.6 → 2.0.10

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