@e-mc/request 0.9.10 → 0.9.12

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/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.9.10/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.9.12/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { IModule, ModuleConstructor } from "./index";
@@ -201,9 +201,9 @@ instance.get("http://hostname/path/config.yml", options).then(data => {
201
201
 
202
202
  ## References
203
203
 
204
- - https://www.unpkg.com/@e-mc/types@0.9.10/lib/http.d.ts
205
- - https://www.unpkg.com/@e-mc/types@0.9.10/lib/request.d.ts
206
- - https://www.unpkg.com/@e-mc/types@0.9.10/lib/settings.d.ts
204
+ - https://www.unpkg.com/@e-mc/types@0.9.12/lib/http.d.ts
205
+ - https://www.unpkg.com/@e-mc/types@0.9.12/lib/request.d.ts
206
+ - https://www.unpkg.com/@e-mc/types@0.9.12/lib/settings.d.ts
207
207
 
208
208
  * https://www.npmjs.com/package/@types/node
209
209
 
@@ -1,5 +1,5 @@
1
- import type { HttpHostConstructor } from '../../../types/lib/request';
2
-
3
- declare const HttpHost: HttpHostConstructor;
4
-
1
+ import type { HttpHostConstructor } from '@e-mc/types/lib/request';
2
+
3
+ declare const HttpHost: HttpHostConstructor;
4
+
5
5
  export = HttpHost;
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { RequestConstructor } from '../types/lib';
2
-
3
- declare const Request: RequestConstructor;
4
-
1
+ import type { RequestConstructor } from '@e-mc/types/lib';
2
+
3
+ declare const Request: RequestConstructor;
4
+
5
5
  export = Request;
package/index.js CHANGED
@@ -17,8 +17,8 @@ const yaml = require("js-yaml");
17
17
  const which = require("which");
18
18
  const types_1 = require("@e-mc/types");
19
19
  const module_1 = require("@e-mc/module");
20
- const host_1 = require("@e-mc/request/http/host");
21
20
  const util_1 = require("@e-mc/request/util");
21
+ const host_1 = require("@e-mc/request/http/host");
22
22
  const kSession = Symbol('session');
23
23
  const kHttpVersion = Symbol('httpVersion');
24
24
  const kIpVersion = Symbol('ipVersion');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/request",
3
- "version": "0.9.10",
3
+ "version": "0.9.12",
4
4
  "description": "Request constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "license": "BSD 3-Clause",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/module": "0.9.10",
24
- "@e-mc/types": "0.9.10",
23
+ "@e-mc/module": "0.9.12",
24
+ "@e-mc/types": "0.9.12",
25
25
  "combined-stream": "^1.0.8",
26
26
  "js-yaml": "^4.1.0",
27
27
  "picomatch": "^4.0.2",
package/util.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { AuthValue } from '../types/lib/http';
1
+ import type { AuthValue } from '@e-mc/types/lib/http';
2
2
 
3
3
  import type { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
4
4
  import type { Readable, Writable } from 'stream';
package/util.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  exports.cleanupStream = exports.byteLength = exports.hasSameStat = exports.getSize = exports.hasSize = exports.getTransferRate = exports.fromSeconds = exports.asFloat = exports.asInt = exports.trimPath = exports.isRetryable = exports.checkRetryable = exports.hasBasicAuth = exports.getBasicAuth = exports.normalizeHeaders = exports.parseHeader = void 0;
3
3
  const path = require("path");
4
- const util = require("util");
5
4
  const fs = require("fs");
6
- const module_1 = require("@e-mc/module");
5
+ const util = require("util");
7
6
  const types_1 = require("@e-mc/types");
7
+ const module_1 = require("@e-mc/module");
8
8
  const SUPPORTED_USVSTRING = module_1.supported(16, 8);
9
9
  const safeInt = (value) => value >= 0 ? Math.min(value, Number.MAX_SAFE_INTEGER) : NaN;
10
10
  function parseHeader(headers, name) {