@microlink/mql 0.14.1 → 0.14.2
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/lightweight/index.js +1 -1
- package/lightweight/index.umd.js +1 -1
- package/package.json +2 -1
- package/src/constants.js +13 -0
package/lightweight/index.js
CHANGED
|
@@ -1209,7 +1209,7 @@ var distribution = /*#__PURE__*/Object.freeze({
|
|
|
1209
1209
|
|
|
1210
1210
|
var require$$1 = /*@__PURE__*/getAugmentedNamespace(distribution);
|
|
1211
1211
|
|
|
1212
|
-
const VERSION$1 = '0.14.
|
|
1212
|
+
const VERSION$1 = '0.14.2';
|
|
1213
1213
|
|
|
1214
1214
|
var constants = {
|
|
1215
1215
|
VERSION: VERSION$1,
|
package/lightweight/index.umd.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@microlink/mql",
|
|
3
3
|
"description": "Microlink Query Language. The official HTTP client to interact with Microlink API for Node.js, browsers & Deno.",
|
|
4
4
|
"homepage": "https://microlink.io/mql",
|
|
5
|
-
"version": "0.14.
|
|
5
|
+
"version": "0.14.2",
|
|
6
6
|
"types": "lightweight/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
"require": "./src/node.js",
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"files": [
|
|
85
85
|
"lightweight",
|
|
86
|
+
"src/constants.js",
|
|
86
87
|
"src/factory.js",
|
|
87
88
|
"src/node.js"
|
|
88
89
|
],
|
package/src/constants.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const VERSION = require('../package.json').version
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
VERSION,
|
|
7
|
+
USER_AGENT: `mql/${VERSION}`,
|
|
8
|
+
/**
|
|
9
|
+
* Based on require('got').defaults.options.retry.statusCodes
|
|
10
|
+
* but without 429 (too many requests)
|
|
11
|
+
*/
|
|
12
|
+
RETRY_STATUS_CODES: [408, 413, 500, 502, 503, 504, 521, 522, 524]
|
|
13
|
+
}
|