@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.
@@ -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.1';
1212
+ const VERSION$1 = '0.14.2';
1213
1213
 
1214
1214
  var constants = {
1215
1215
  VERSION: VERSION$1,
@@ -1215,7 +1215,7 @@
1215
1215
 
1216
1216
  var require$$1 = /*@__PURE__*/getAugmentedNamespace(distribution);
1217
1217
 
1218
- const VERSION$1 = '0.14.1';
1218
+ const VERSION$1 = '0.14.2';
1219
1219
 
1220
1220
  var constants = {
1221
1221
  VERSION: VERSION$1,
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.1",
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
  ],
@@ -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
+ }