@microlink/mql 0.9.10 → 0.9.14

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/CHANGELOG.md ADDED
@@ -0,0 +1,623 @@
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
+ ### [0.9.14](https://github.com/microlinkhq/mql/compare/v0.9.13...v0.9.14) (2021-10-01)
6
+
7
+
8
+ ### Features
9
+
10
+ * add EFATALCLIENT error code ([cf4e924](https://github.com/microlinkhq/mql/commit/cf4e92478282155d76a1476a7340834512508b03))
11
+
12
+ ### [0.9.13](https://github.com/microlinkhq/mql/compare/v0.9.12...v0.9.13) (2021-09-19)
13
+
14
+ ### [0.9.12](https://github.com/microlinkhq/mql/compare/v0.9.11...v0.9.12) (2021-09-18)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * serialize values properly ([74e2dbb](https://github.com/microlinkhq/mql/commit/74e2dbb9f376cf4dbe5ef49afe0a27714d7765ce))
20
+
21
+ ### [0.9.11](https://github.com/microlinkhq/mql/compare/v0.9.10...v0.9.11) (2021-09-12)
22
+
23
+ ### [0.9.10](https://github.com/microlinkhq/mql/compare/v0.9.9...v0.9.10) (2021-09-12)
24
+
25
+ ### [0.9.9](https://github.com/microlinkhq/mql/compare/v0.9.8...v0.9.9) (2021-08-09)
26
+
27
+ ### [0.9.8](https://github.com/microlinkhq/mql/compare/v0.9.7...v0.9.8) (2021-06-28)
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * ensure input exist before render ([7af11e1](https://github.com/microlinkhq/mql/commit/7af11e1eed5f73980b449c39f4a1f8cae8db09ec))
33
+
34
+ ### [0.9.7](https://github.com/microlinkhq/mql/compare/v0.9.5...v0.9.7) (2021-06-26)
35
+
36
+
37
+ ### Features
38
+
39
+ * add api param types ([00ff9b7](https://github.com/microlinkhq/mql/commit/00ff9b705928697543282b47894a0110ba1ed3cf))
40
+ * add types ([41cc61a](https://github.com/microlinkhq/mql/commit/41cc61ace94824d7b3814f93be34f8e1ccdb9c40))
41
+
42
+
43
+ ### Bug Fixes
44
+
45
+ * **build:** add missing dependency ([89b16a3](https://github.com/microlinkhq/mql/commit/89b16a31e2896bea752726ca7caae2a0f5f14f07))
46
+
47
+ ### [0.9.5](https://github.com/microlinkhq/mql/compare/v0.9.4...v0.9.5) (2021-05-25)
48
+
49
+
50
+ ### Bug Fixes
51
+
52
+ * default parameters ([d5d788a](https://github.com/microlinkhq/mql/commit/d5d788ab486b070b41af0ed32491b65020657db2))
53
+
54
+ ### [0.9.4](https://github.com/microlinkhq/mql/compare/v0.9.3...v0.9.4) (2021-05-25)
55
+
56
+ ### [0.9.3](https://github.com/microlinkhq/mql/compare/v0.9.2...v0.9.3) (2021-03-21)
57
+
58
+
59
+ ### Bug Fixes
60
+
61
+ * setup mql version properly ([e5f9016](https://github.com/microlinkhq/mql/commit/e5f9016167e1a5aeb1ecfb9b8d2a0cd42b972742))
62
+
63
+ ### [0.9.2](https://github.com/microlinkhq/mql/compare/v0.9.1...v0.9.2) (2021-03-20)
64
+
65
+
66
+ ### Bug Fixes
67
+
68
+ * browser dist file ([17aaecc](https://github.com/microlinkhq/mql/commit/17aaeccea629d3ca03f64139c8592fac32e9bd83))
69
+
70
+ ### [0.9.1](https://github.com/microlinkhq/mql/compare/v0.9.0...v0.9.1) (2021-03-20)
71
+
72
+
73
+ ### Bug Fixes
74
+
75
+ * scripts ([e883dd0](https://github.com/microlinkhq/mql/commit/e883dd0c42abe8e1e527dc24d8ab847ff83fd7c4))
76
+
77
+ ## [0.9.0](https://github.com/microlinkhq/mql/compare/v0.8.4...v0.9.0) (2021-03-20)
78
+
79
+ ### [0.8.4](https://github.com/microlinkhq/mql/compare/v0.8.3...v0.8.4) (2021-03-20)
80
+
81
+ ### [0.8.3](https://github.com/microlinkhq/mql/compare/v0.8.2...v0.8.3) (2021-03-03)
82
+
83
+ ### [0.8.2](https://github.com/microlinkhq/mql/compare/v0.8.1...v0.8.2) (2021-02-24)
84
+
85
+ ### [0.8.1](https://github.com/microlinkhq/mql/compare/v0.8.0...v0.8.1) (2021-01-17)
86
+
87
+ ## [0.8.0](https://github.com/microlinkhq/mql/compare/v0.7.19...v0.8.0) (2020-12-18)
88
+
89
+ ### [0.7.19](https://github.com/microlinkhq/mql/compare/v0.7.18...v0.7.19) (2020-11-29)
90
+
91
+ ### [0.7.18](https://github.com/microlinkhq/mql/compare/v0.7.17...v0.7.18) (2020-11-29)
92
+
93
+ ### [0.7.17](https://github.com/microlinkhq/mql/compare/v0.7.16...v0.7.17) (2020-11-29)
94
+
95
+ ### [0.7.16](https://github.com/microlinkhq/mql/compare/v0.7.15...v0.7.16) (2020-11-16)
96
+
97
+ ### [0.7.15](https://github.com/microlinkhq/mql/compare/v0.7.14...v0.7.15) (2020-10-31)
98
+
99
+
100
+ ### Bug Fixes
101
+
102
+ * linter ([031f98d](https://github.com/microlinkhq/mql/commit/031f98d561a056c175afdd659e517236867d39e4))
103
+
104
+ ### [0.7.14](https://github.com/microlinkhq/mql/compare/v0.7.13...v0.7.14) (2020-10-21)
105
+
106
+ ### [0.7.13](https://github.com/microlinkhq/mql/compare/v0.7.12...v0.7.13) (2020-10-13)
107
+
108
+ ### [0.7.12](https://github.com/microlinkhq/mql/compare/v0.7.11...v0.7.12) (2020-10-13)
109
+
110
+ ### [0.7.11](https://github.com/microlinkhq/mql/compare/v0.7.10...v0.7.11) (2020-10-12)
111
+
112
+ ### [0.7.10](https://github.com/microlinkhq/mql/compare/v0.7.9...v0.7.10) (2020-09-29)
113
+
114
+ ### [0.7.9](https://github.com/microlinkhq/mql/compare/v0.7.8...v0.7.9) (2020-09-20)
115
+
116
+ ### [0.7.8](https://github.com/microlinkhq/mql/compare/v0.7.7...v0.7.8) (2020-09-10)
117
+
118
+
119
+ ### Bug Fixes
120
+
121
+ * remove unused dependency ([7b87935](https://github.com/microlinkhq/mql/commit/7b879351587f85234a08e05cc199150219ebb3cf))
122
+
123
+ ### [0.7.7](https://github.com/microlinkhq/mql/compare/v0.7.6...v0.7.7) (2020-09-08)
124
+
125
+ ### [0.7.6](https://github.com/microlinkhq/mql/compare/v0.7.5...v0.7.6) (2020-09-07)
126
+
127
+ ### [0.7.5](https://github.com/microlinkhq/mql/compare/v0.7.4...v0.7.5) (2020-08-29)
128
+
129
+ ### [0.7.4](https://github.com/microlinkhq/mql/compare/v0.7.3...v0.7.4) (2020-07-17)
130
+
131
+ ### [0.7.3](https://github.com/microlinkhq/mql/compare/v0.7.2...v0.7.3) (2020-07-09)
132
+
133
+ ### [0.7.2](https://github.com/microlinkhq/mql/compare/v0.7.1...v0.7.2) (2020-07-05)
134
+
135
+ ### [0.7.1](https://github.com/microlinkhq/mql/compare/v0.7.0...v0.7.1) (2020-05-27)
136
+
137
+
138
+ ### Bug Fixes
139
+
140
+ * avoid undefined ([9feaec8](https://github.com/microlinkhq/mql/commit/9feaec8bdd1f826a6dd13064bf34b9564b999ef7))
141
+
142
+ ## [0.7.0](https://github.com/microlinkhq/mql/compare/v0.6.15...v0.7.0) (2020-05-25)
143
+
144
+
145
+ ### Features
146
+
147
+ * customize http client as third argument ([b9cf7c7](https://github.com/microlinkhq/mql/commit/b9cf7c71ebb05a3e667ebb1b421ea1e874b8f472))
148
+
149
+ ### [0.6.15](https://github.com/microlinkhq/mql/compare/v0.6.14...v0.6.15) (2020-05-19)
150
+
151
+
152
+ ### Bug Fixes
153
+
154
+ * ensure to parse buffer responses ([bf69ba9](https://github.com/microlinkhq/mql/commit/bf69ba9c1fd25a093442a1dab0431cd19be13bc6))
155
+
156
+ ### [0.6.14](https://github.com/microlinkhq/mql/compare/v0.6.13...v0.6.14) (2020-05-17)
157
+
158
+
159
+ ### Bug Fixes
160
+
161
+ * ensure to parse body ([6d66e43](https://github.com/microlinkhq/mql/commit/6d66e43128b62065cf2868d3614e62cb1668d56c))
162
+
163
+ ### [0.6.13](https://github.com/microlinkhq/mql/compare/v0.6.12...v0.6.13) (2020-05-04)
164
+
165
+ ### [0.6.12](https://github.com/microlinkhq/mql/compare/v0.6.11...v0.6.12) (2020-04-21)
166
+
167
+ ### [0.6.11](https://github.com/microlinkhq/mql/compare/v0.6.10...v0.6.11) (2020-04-03)
168
+
169
+
170
+ ### Bug Fixes
171
+
172
+ * client timeout ([ad4fadf](https://github.com/microlinkhq/mql/commit/ad4fadf1a699c9bc1bc1c8a7c435bc397a26758c))
173
+
174
+ ### [0.6.10](https://github.com/microlinkhq/mql/compare/v0.6.9...v0.6.10) (2020-03-30)
175
+
176
+ ### [0.6.9](https://github.com/microlinkhq/mql/compare/v0.6.8...v0.6.9) (2020-03-25)
177
+
178
+ ### [0.6.8](https://github.com/microlinkhq/mql/compare/v0.6.7...v0.6.8) (2020-03-23)
179
+
180
+ ### [0.6.7](https://github.com/microlinkhq/mql/compare/v0.6.6...v0.6.7) (2020-03-23)
181
+
182
+ ### [0.6.6](https://github.com/microlinkhq/mql/compare/v0.6.5...v0.6.6) (2020-03-23)
183
+
184
+ ### [0.6.5](https://github.com/microlinkhq/mql/compare/v0.6.4...v0.6.5) (2020-03-11)
185
+
186
+
187
+ ### Bug Fixes
188
+
189
+ * remove module field ([56e17d7](https://github.com/microlinkhq/mql/commit/56e17d71bdbb91c2ff8f4b2dc1ae3212e990f01a)), closes [#50](https://github.com/microlinkhq/mql/issues/50)
190
+
191
+ ### [0.6.4](https://github.com/microlinkhq/mql/compare/v0.6.3...v0.6.4) (2020-03-09)
192
+
193
+ ### [0.6.3](https://github.com/microlinkhq/mql/compare/v0.6.2...v0.6.3) (2020-03-04)
194
+
195
+
196
+ ### Bug Fixes
197
+
198
+ * remove isStream prop ([afe5f6f](https://github.com/microlinkhq/mql/commit/afe5f6f802d5f947011a2829ae51c3dc79ac0fe6))
199
+
200
+ ### [0.6.2](https://github.com/microlinkhq/mql/compare/v0.6.1...v0.6.2) (2020-03-03)
201
+
202
+
203
+ ### Bug Fixes
204
+
205
+ * headers serialization on browser ([23fde59](https://github.com/microlinkhq/mql/commit/23fde599afbe700a94be9a522ab9dfdcfc6f31da))
206
+
207
+ ### [0.6.1](https://github.com/microlinkhq/mql/compare/v0.6.0...v0.6.1) (2020-03-01)
208
+
209
+
210
+ ### Bug Fixes
211
+
212
+ * streaming ([a3d97c6](https://github.com/microlinkhq/mql/commit/a3d97c684dae1e66bec5b6e29498a7d7c22d8207))
213
+
214
+ ## [0.6.0](https://github.com/microlinkhq/mql/compare/v0.5.23...v0.6.0) (2020-03-01)
215
+
216
+
217
+ ### Features
218
+
219
+ * better error handling ([17bee3b](https://github.com/microlinkhq/mql/commit/17bee3b051803f21ac761967439b2fcd4fe8d409))
220
+
221
+ ### [0.5.23](https://github.com/microlinkhq/mql/compare/v0.5.22...v0.5.23) (2020-02-28)
222
+
223
+ ### [0.5.22](https://github.com/microlinkhq/mql/compare/v0.5.21...v0.5.22) (2020-02-20)
224
+
225
+ ### [0.5.21](https://github.com/microlinkhq/mql/compare/v0.5.20...v0.5.21) (2020-02-12)
226
+
227
+ ### [0.5.20](https://github.com/microlinkhq/mql/compare/v0.5.19...v0.5.20) (2020-02-07)
228
+
229
+ ### [0.5.19](https://github.com/microlinkhq/mql/compare/v0.5.18...v0.5.19) (2020-02-05)
230
+
231
+ ### [0.5.18](https://github.com/microlinkhq/mql/compare/v0.5.17...v0.5.18) (2020-02-05)
232
+
233
+
234
+ ### Bug Fixes
235
+
236
+ * ensure ky is loaded properly ([9f44ee2](https://github.com/microlinkhq/mql/commit/9f44ee20e2ac99e23d258b3651fec66290949e4f))
237
+
238
+ ### [0.5.17](https://github.com/microlinkhq/mql/compare/v0.5.16...v0.5.17) (2020-02-03)
239
+
240
+
241
+ ### Features
242
+
243
+ * update dependencies ([06e7ae2](https://github.com/microlinkhq/mql/commit/06e7ae2b8c195cbdb20e01f48d3ff3f551dd1cd6))
244
+
245
+ ### [0.5.16](https://github.com/microlinkhq/mql/compare/v0.5.15...v0.5.16) (2020-01-18)
246
+
247
+ ### [0.5.15](https://github.com/microlinkhq/mql/compare/v0.5.14...v0.5.15) (2019-12-20)
248
+
249
+
250
+ ### Bug Fixes
251
+
252
+ * only flatten data objects ([1867815](https://github.com/microlinkhq/mql/commit/1867815b9804d02f3f5ba7bda51a4dcb22712faa))
253
+
254
+ ### [0.5.14](https://github.com/microlinkhq/mql/compare/v0.5.13...v0.5.14) (2019-12-04)
255
+
256
+ ### [0.5.13](https://github.com/microlinkhq/mql/compare/v0.5.12...v0.5.13) (2019-11-25)
257
+
258
+
259
+ ### Bug Fixes
260
+
261
+ * ensure to flatten options passed ([3afeb3d](https://github.com/microlinkhq/mql/commit/3afeb3d930af220b312ca0be1a3048d0f2899114))
262
+
263
+ ### [0.5.12](https://github.com/microlinkhq/mql/compare/v0.5.11...v0.5.12) (2019-11-18)
264
+
265
+ ### [0.5.11](https://github.com/microlinkhq/mql/compare/v0.5.10...v0.5.11) (2019-11-09)
266
+
267
+ ### [0.5.10](https://github.com/microlinkhq/mql/compare/v0.5.9...v0.5.10) (2019-10-23)
268
+
269
+ ### [0.5.9](https://github.com/microlinkhq/mql/compare/v0.5.8...v0.5.9) (2019-10-18)
270
+
271
+ ### [0.5.8](https://github.com/microlinkhq/mql/compare/v0.5.7...v0.5.8) (2019-10-18)
272
+
273
+
274
+ ### Bug Fixes
275
+
276
+ * timeout no more undefined ([0f81606](https://github.com/microlinkhq/mql/commit/0f81606))
277
+
278
+ ### [0.5.7](https://github.com/microlinkhq/mql/compare/v0.5.6...v0.5.7) (2019-10-14)
279
+
280
+ ### [0.5.6](https://github.com/microlinkhq/mql/compare/v0.5.5...v0.5.6) (2019-10-14)
281
+
282
+ ### [0.5.5](https://github.com/microlinkhq/mql/compare/v0.5.4...v0.5.5) (2019-10-14)
283
+
284
+ ### [0.5.4](https://github.com/microlinkhq/mql/compare/v0.5.3...v0.5.4) (2019-10-13)
285
+
286
+ ### [0.5.3](https://github.com/microlinkhq/mql/compare/v0.5.2...v0.5.3) (2019-10-13)
287
+
288
+
289
+ ### Bug Fixes
290
+
291
+ * setup fetch default options ([81087d0](https://github.com/microlinkhq/mql/commit/81087d0))
292
+
293
+ ### [0.5.2](https://github.com/microlinkhq/mql/compare/v0.5.1...v0.5.2) (2019-10-13)
294
+
295
+
296
+ ### Bug Fixes
297
+
298
+ * print timeout ([e829a4a](https://github.com/microlinkhq/mql/commit/e829a4a))
299
+
300
+ ### [0.5.1](https://github.com/microlinkhq/mql/compare/v0.5.0...v0.5.1) (2019-10-13)
301
+
302
+ ## [0.5.0](https://github.com/microlinkhq/mql/compare/v0.4.5...v0.5.0) (2019-10-08)
303
+
304
+ ### [0.4.5](https://github.com/microlinkhq/mql/compare/v0.4.4...v0.4.5) (2019-09-28)
305
+
306
+ ### [0.4.4](https://github.com/microlinkhq/mql/compare/v1.0.22...v0.4.4) (2019-09-26)
307
+
308
+
309
+ ### Bug Fixes
310
+
311
+ * pass headers ([d79f883](https://github.com/microlinkhq/mql/commit/d79f883))
312
+
313
+ ### [0.4.3](https://github.com/microlinkhq/mql/compare/v0.4.2...v0.4.3) (2019-09-10)
314
+
315
+ ### [0.4.2](https://github.com/microlinkhq/mql/compare/v1.0.19...v0.4.2) (2019-09-08)
316
+
317
+ ### [0.4.1](https://github.com/microlinkhq/mql/compare/v0.4.0...v0.4.1) (2019-08-24)
318
+
319
+ ## [0.4.0](https://github.com/microlinkhq/mql/compare/v0.3.16...v0.4.0) (2019-08-24)
320
+
321
+
322
+ ### Bug Fixes
323
+
324
+ * linter ([5f62d0f](https://github.com/microlinkhq/mql/commit/5f62d0f))
325
+
326
+ ### [0.3.16](https://github.com/microlinkhq/mql/compare/v1.0.16...v0.3.16) (2019-08-13)
327
+
328
+ ### [0.3.15](https://github.com/microlinkhq/mql/compare/v1.0.9...v0.3.15) (2019-07-31)
329
+
330
+
331
+ ### Bug Fixes
332
+
333
+ * linter ([f7f985b](https://github.com/microlinkhq/mql/commit/f7f985b))
334
+
335
+ ### [0.3.14](https://github.com/microlinkhq/mql/compare/v1.0.7...v0.3.14) (2019-07-10)
336
+
337
+
338
+ ### Build System
339
+
340
+ * migrate lint-staged ([698e8e0](https://github.com/microlinkhq/mql/commit/698e8e0))
341
+ * update dependencies ([d15b056](https://github.com/microlinkhq/mql/commit/d15b056))
342
+
343
+
344
+
345
+ ### [0.3.13](https://github.com/microlinkhq/mql/compare/v0.3.12...v0.3.13) (2019-06-12)
346
+
347
+
348
+ ### Bug Fixes
349
+
350
+ * handle buffer ([e62c782](https://github.com/microlinkhq/mql/commit/e62c782))
351
+
352
+
353
+ ### Build System
354
+
355
+ * generate bundle ([2a6fa12](https://github.com/microlinkhq/mql/commit/2a6fa12))
356
+
357
+
358
+
359
+ ### [0.3.12](https://github.com/microlinkhq/mql/compare/v0.3.11...v0.3.12) (2019-06-09)
360
+
361
+
362
+ ### Bug Fixes
363
+
364
+ * require ([2eb2416](https://github.com/microlinkhq/mql/commit/2eb2416))
365
+
366
+
367
+ ### Build System
368
+
369
+ * generate bundle ([37ec175](https://github.com/microlinkhq/mql/commit/37ec175))
370
+
371
+
372
+
373
+ ### [0.3.11](https://github.com/microlinkhq/mql/compare/v0.3.10...v0.3.11) (2019-06-09)
374
+
375
+
376
+ ### Bug Fixes
377
+
378
+ * setup umd main file properly ([4804c27](https://github.com/microlinkhq/mql/commit/4804c27))
379
+ * umd ([ac37de9](https://github.com/microlinkhq/mql/commit/ac37de9))
380
+ * use default constructor ([ee75e1c](https://github.com/microlinkhq/mql/commit/ee75e1c))
381
+
382
+
383
+ ### Build System
384
+
385
+ * generate build after release ([4920073](https://github.com/microlinkhq/mql/commit/4920073))
386
+ * ignore stats.html ([c43e0cc](https://github.com/microlinkhq/mql/commit/c43e0cc))
387
+
388
+
389
+
390
+ ### [0.3.10](https://github.com/microlinkhq/mql/compare/v1.0.6...v0.3.10) (2019-06-08)
391
+
392
+
393
+ ### Bug Fixes
394
+
395
+ * just parse when the body is an string ([2612577](https://github.com/microlinkhq/mql/commit/2612577))
396
+
397
+
398
+ ### Build System
399
+
400
+ * update dependencies ([9e1a31c](https://github.com/microlinkhq/mql/commit/9e1a31c))
401
+
402
+
403
+ ### Tests
404
+
405
+ * update snapshot ([0caa920](https://github.com/microlinkhq/mql/commit/0caa920))
406
+
407
+
408
+
409
+ ### [0.3.9](https://github.com/microlinkhq/mql/compare/v1.0.5...v0.3.9) (2019-05-28)
410
+
411
+
412
+ ### Build System
413
+
414
+ * associate url with the error ([605f913](https://github.com/microlinkhq/mql/commit/605f913))
415
+
416
+
417
+ ### Tests
418
+
419
+ * avoid date ([a21c21c](https://github.com/microlinkhq/mql/commit/a21c21c))
420
+
421
+
422
+
423
+ ### [0.3.8](https://github.com/microlinkhq/mql/compare/v1.0.4...v0.3.8) (2019-05-28)
424
+
425
+
426
+ ### Build System
427
+
428
+ * update dependencies ([5047672](https://github.com/microlinkhq/mql/commit/5047672))
429
+
430
+
431
+
432
+ ### [0.3.7](https://github.com/microlinkhq/mql/compare/v1.0.3...v0.3.7) (2019-05-20)
433
+
434
+
435
+ ### Bug Fixes
436
+
437
+ * **package:** update is-url-http to version 1.2.0 ([fb85fae](https://github.com/microlinkhq/mql/commit/fb85fae))
438
+
439
+
440
+ ### Tests
441
+
442
+ * update snapshots ([101c989](https://github.com/microlinkhq/mql/commit/101c989))
443
+
444
+
445
+
446
+ ## [0.3.6](https://github.com/microlinkhq/mql/compare/v0.3.5...v0.3.6) (2019-04-25)
447
+
448
+
449
+
450
+ ## [0.3.5](https://github.com/microlinkhq/mql/compare/v0.3.4...v0.3.5) (2019-04-25)
451
+
452
+
453
+ ### Bug Fixes
454
+
455
+ * **package:** update ky to version 0.10.0 ([9947a0e](https://github.com/microlinkhq/mql/commit/9947a0e))
456
+ * **package:** update ky-universal to version 0.2.0 ([5cd3d89](https://github.com/microlinkhq/mql/commit/5cd3d89))
457
+
458
+
459
+
460
+ <a name="0.3.4"></a>
461
+ ## [0.3.4](https://github.com/microlinkhq/mql/compare/v0.3.3...v0.3.4) (2019-04-08)
462
+
463
+
464
+
465
+ <a name="0.3.3"></a>
466
+ ## [0.3.3](https://github.com/microlinkhq/mql/compare/v0.3.2...v0.3.3) (2019-03-29)
467
+
468
+
469
+
470
+ <a name="0.3.2"></a>
471
+ ## [0.3.2](https://github.com/microlinkhq/mql/compare/v0.3.1...v0.3.2) (2019-03-29)
472
+
473
+
474
+
475
+ <a name="0.3.1"></a>
476
+ ## [0.3.1](https://github.com/microlinkhq/mql/compare/v0.3.0...v0.3.1) (2019-03-29)
477
+
478
+
479
+
480
+ <a name="0.3.0"></a>
481
+ # [0.3.0](https://github.com/microlinkhq/mql/compare/v0.2.12...v0.3.0) (2019-03-21)
482
+
483
+
484
+ ### Features
485
+
486
+ * add custom rules support ([f342dd3](https://github.com/microlinkhq/mql/commit/f342dd3))
487
+
488
+
489
+
490
+ <a name="0.2.12"></a>
491
+ ## [0.2.12](https://github.com/microlinkhq/mql/compare/v0.2.11...v0.2.12) (2019-03-11)
492
+
493
+
494
+
495
+ <a name="0.2.11"></a>
496
+ ## [0.2.11](https://github.com/microlinkhq/mql/compare/v0.2.6...v0.2.11) (2019-03-11)
497
+
498
+
499
+ ### Bug Fixes
500
+
501
+ * add missing browser dependency ([ec1ed09](https://github.com/microlinkhq/mql/commit/ec1ed09))
502
+
503
+
504
+
505
+ <a name="0.2.10"></a>
506
+ ## 0.2.10 (2019-03-03)
507
+
508
+
509
+
510
+ <a name="0.2.9"></a>
511
+ ## 0.2.9 (2019-03-03)
512
+
513
+
514
+
515
+ <a name="0.2.8"></a>
516
+ ## 0.2.8 (2019-03-03)
517
+
518
+
519
+
520
+ <a name="0.2.7"></a>
521
+ ## 0.2.7 (2019-03-03)
522
+
523
+
524
+
525
+ <a name="0.2.10"></a>
526
+ ## 0.2.10 (2019-03-03)
527
+
528
+ * build: update dependencies ([1998c50](https://github.com/microlinkhq/mql/commit/1998c50))
529
+
530
+
531
+
532
+ <a name="0.2.9"></a>
533
+ ## 0.2.9 (2019-03-03)
534
+
535
+ * test: improve ([f89a41f](https://github.com/microlinkhq/mql/commit/f89a41f))
536
+
537
+
538
+
539
+ <a name="0.2.8"></a>
540
+ ## 0.2.8 (2019-03-03)
541
+
542
+ * build: setup deps ([491e227](https://github.com/microlinkhq/mql/commit/491e227))
543
+
544
+
545
+
546
+ <a name="0.2.7"></a>
547
+ ## 0.2.7 (2019-03-03)
548
+
549
+ * build: add ky-universal as dependecy ([8570d8e](https://github.com/microlinkhq/mql/commit/8570d8e))
550
+ * build: fix tests ([c9bddfd](https://github.com/microlinkhq/mql/commit/c9bddfd))
551
+
552
+
553
+
554
+ # Change Log
555
+
556
+ 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.
557
+
558
+ <a name="0.2.6"></a>
559
+ ## [0.2.6](https://github.com/microlinkhq/mql/compare/v0.2.5...v0.2.6) (2019-02-24)
560
+
561
+
562
+
563
+ <a name="0.2.5"></a>
564
+ ## [0.2.5](https://github.com/microlinkhq/mql/compare/v0.2.4...v0.2.5) (2019-02-24)
565
+
566
+
567
+
568
+ <a name="0.2.4"></a>
569
+ ## [0.2.4](https://github.com/microlinkhq/mql/compare/v0.2.3...v0.2.4) (2019-02-24)
570
+
571
+
572
+
573
+ <a name="0.2.3"></a>
574
+ ## [0.2.3](https://github.com/microlinkhq/mql/compare/v0.2.2...v0.2.3) (2019-02-24)
575
+
576
+
577
+
578
+ <a name="0.2.2"></a>
579
+ ## [0.2.2](https://github.com/microlinkhq/mql/compare/v0.2.1...v0.2.2) (2019-02-24)
580
+
581
+
582
+
583
+ <a name="0.2.1"></a>
584
+ ## [0.2.1](https://github.com/microlinkhq/mql/compare/v0.2.0...v0.2.1) (2019-02-24)
585
+
586
+
587
+
588
+ <a name="0.2.0"></a>
589
+ # 0.2.0 (2019-02-24)
590
+
591
+
592
+ ### Bug Fixes
593
+
594
+ * linter ([92762fc](https://github.com/microlinkhq/mql/commit/92762fc))
595
+ * **package:** update is-url-http to version 1.1.1 ([7d0d33a](https://github.com/microlinkhq/mql/commit/7d0d33a))
596
+
597
+
598
+ ### Features
599
+
600
+ * add browser support ([fdcfad5](https://github.com/microlinkhq/mql/commit/fdcfad5))
601
+
602
+
603
+
604
+ <a name="0.1.0"></a>
605
+ # 0.1.0 (2019-02-03)
606
+
607
+
608
+ ### Bug Fixes
609
+
610
+ * better docs ([ea72b17](https://github.com/microlinkhq/mql/commit/ea72b17))
611
+
612
+
613
+
614
+ <a name="0.1.0"></a>
615
+ # 0.1.0 (2019-02-03)
616
+
617
+ * docs: add introduction ([2d30d5a](https://github.com/microlinkhq/mql/commit/2d30d5a))
618
+ * test: fix snapshots ([ec78c1d](https://github.com/microlinkhq/mql/commit/ec78c1d))
619
+ * build: first commit ([8cf91a9](https://github.com/microlinkhq/mql/commit/8cf91a9))
620
+ * build: tweak meta ([bbf383c](https://github.com/microlinkhq/mql/commit/bbf383c))
621
+ * fix: better docs ([ea72b17](https://github.com/microlinkhq/mql/commit/ea72b17))
622
+ * add cache support ([f7f2414](https://github.com/microlinkhq/mql/commit/f7f2414))
623
+ * add error handling ([7f56519](https://github.com/microlinkhq/mql/commit/7f56519))
package/dist/mql.js CHANGED
@@ -316,8 +316,8 @@
316
316
  return {
317
317
  status: 'error',
318
318
  data: { url: message },
319
- more: 'https://microlink.io/efatal',
320
- code: 'EFATAL',
319
+ more: 'https://microlink.io/efatalclient',
320
+ code: 'EFATALCLIENT',
321
321
  message,
322
322
  url
323
323
  }
@@ -343,12 +343,12 @@
343
343
  if (!isObject(rules)) return
344
344
  const flatRules = flatten(rules);
345
345
  return Object.keys(flatRules).reduce(
346
- (acc, key) => ({ ...acc, [`data.${key}`]: flatRules[key] }),
346
+ (acc, key) => ({ ...acc, [`data.${key}`]: flatRules[key].toString() }),
347
347
  {}
348
348
  )
349
349
  };
350
350
 
351
- const fetchFromApi = async (apiUrl, opts = {}) => {
351
+ const fetchFromApi = async (apiUrl, opts = {}, retryCount = 0) => {
352
352
  try {
353
353
  const response = await got(apiUrl, opts);
354
354
  return opts.responseType === 'buffer'
@@ -361,6 +361,8 @@
361
361
  const body =
362
362
  isObject(rawBody) && !Buffer.isBuffer(rawBody) ? rawBody : parseBody(rawBody, err, uri);
363
363
 
364
+ if (body.code === 'EFATALCLIENT' && retryCount++ < 2) return fetchFromApi(apiUrl, opts, retryCount)
365
+
364
366
  throw MicrolinkError({
365
367
  ...body,
366
368
  message: body.message,
@@ -954,7 +956,7 @@
954
956
  stringify,
955
957
  got,
956
958
  flatten,
957
- VERSION: '0.9.10'
959
+ VERSION: '0.9.14'
958
960
  });
959
961
 
960
962
  return browser;