@e-mc/request 0.14.4 → 0.14.5
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 +4 -4
- package/index.js +2 -2
- package/package.json +4 -4
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.14.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.14.5/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.14.
|
|
259
|
-
- https://www.unpkg.com/@e-mc/types@0.14.
|
|
260
|
-
- https://www.unpkg.com/@e-mc/types@0.14.
|
|
258
|
+
- https://www.unpkg.com/@e-mc/types@0.14.5/lib/http.d.ts
|
|
259
|
+
- https://www.unpkg.com/@e-mc/types@0.14.5/lib/request.d.ts
|
|
260
|
+
- https://www.unpkg.com/@e-mc/types@0.14.5/lib/settings.d.ts
|
|
261
261
|
|
|
262
262
|
* https://www.npmjs.com/package/@types/node
|
|
263
263
|
|
package/index.js
CHANGED
|
@@ -2496,11 +2496,11 @@ class Request extends Module {
|
|
|
2496
2496
|
mergeBinOpts(args, opts, binOpts, options) {
|
|
2497
2497
|
if (binOpts) {
|
|
2498
2498
|
for (const leading of binOpts) {
|
|
2499
|
-
if (leading
|
|
2499
|
+
if (leading[0] === '-') {
|
|
2500
2500
|
const pattern = new RegExp(`^${leading}(?:=|$)`);
|
|
2501
2501
|
for (let i = 0; i < opts.length; ++i) {
|
|
2502
2502
|
if (pattern.test(opts[i])) {
|
|
2503
|
-
opts.splice(i
|
|
2503
|
+
opts.splice(i, 1);
|
|
2504
2504
|
break;
|
|
2505
2505
|
}
|
|
2506
2506
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/request",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.5",
|
|
4
4
|
"description": "Request constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"license": "BSD-3-Clause",
|
|
17
17
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@e-mc/module": "0.14.
|
|
20
|
-
"@e-mc/types": "0.14.
|
|
19
|
+
"@e-mc/module": "0.14.5",
|
|
20
|
+
"@e-mc/types": "0.14.5",
|
|
21
21
|
"combined-stream": "^1.0.8",
|
|
22
22
|
"js-yaml": "^4.2.0",
|
|
23
|
-
"picomatch": "^4.0.
|
|
23
|
+
"picomatch": "^4.0.5",
|
|
24
24
|
"which": "^4.0.0"
|
|
25
25
|
}
|
|
26
26
|
}
|