@e-mc/request 0.12.6 → 0.12.7

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.
Files changed (3) hide show
  1. package/README.md +4 -4
  2. package/index.js +1 -1
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Interface
11
11
 
12
- * [View Source](https://www.unpkg.com/@e-mc/types@0.12.6/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.12.7/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { IModule, ModuleConstructor } from "./index";
@@ -255,9 +255,9 @@ instance.get("http://hostname/path/config.yml", options).then(data => {
255
255
 
256
256
  ## References
257
257
 
258
- - https://www.unpkg.com/@e-mc/types@0.12.6/lib/http.d.ts
259
- - https://www.unpkg.com/@e-mc/types@0.12.6/lib/request.d.ts
260
- - https://www.unpkg.com/@e-mc/types@0.12.6/lib/settings.d.ts
258
+ - https://www.unpkg.com/@e-mc/types@0.12.7/lib/http.d.ts
259
+ - https://www.unpkg.com/@e-mc/types@0.12.7/lib/request.d.ts
260
+ - https://www.unpkg.com/@e-mc/types@0.12.7/lib/settings.d.ts
261
261
 
262
262
  * https://www.npmjs.com/package/@types/node
263
263
 
package/index.js CHANGED
@@ -21,7 +21,7 @@ const host_1 = require("@e-mc/request/http/host");
21
21
  const adapter_1 = require("@e-mc/request/http/adapter");
22
22
  const kRequest = Symbol.for('request:constructor');
23
23
  const SUPPORTED_NODE20 = (0, types_1.supported)(20);
24
- const SUPPORTED_ZSTD = (0, types_1.supported)(23, 8) && typeof zlib.createZstdDecompress === 'function';
24
+ const SUPPORTED_ZSTD = (0, types_1.supported)(23, 8) || (0, types_1.supported)(22, 15, 0, true);
25
25
  const REGEXP_PEMCERT = /^-{3,}[ \t]*BEGIN[ \t].+\n-{3,}[ \t]*END[ \t][^-]+-{3,}$/s;
26
26
  const REGEXP_GLOBWITHIN = /\\\?|(?:(?<!\\)(?:\*|\[!?[^!\]]+\]|\{(?:[^,]+,)+[^}]+\}|[!?+*@]\((?:[^|]+\|)*[^)]+\)|\?.*\?|\?$))/;
27
27
  const REGEXP_RCLONE = /^rclone:\?/i;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/request",
3
- "version": "0.12.6",
3
+ "version": "0.12.7",
4
4
  "description": "Request constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -19,8 +19,8 @@
19
19
  "license": "BSD-3-Clause",
20
20
  "homepage": "https://github.com/anpham6/e-mc#readme",
21
21
  "dependencies": {
22
- "@e-mc/module": "0.12.6",
23
- "@e-mc/types": "0.12.6",
22
+ "@e-mc/module": "0.12.7",
23
+ "@e-mc/types": "0.12.7",
24
24
  "combined-stream": "^1.0.8",
25
25
  "js-yaml": "^4.1.0",
26
26
  "picomatch": "^4.0.3",