@microlink/cli 2.0.5 → 2.0.9

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