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