@e-mc/request 0.10.20 → 0.10.22

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.10.20/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.10.22/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { IModule, ModuleConstructor } from "./index";
@@ -205,9 +205,9 @@ instance.get("http://hostname/path/config.yml", options).then(data => {
205
205
 
206
206
  ## References
207
207
 
208
- - https://www.unpkg.com/@e-mc/types@0.10.20/lib/http.d.ts
209
- - https://www.unpkg.com/@e-mc/types@0.10.20/lib/request.d.ts
210
- - https://www.unpkg.com/@e-mc/types@0.10.20/lib/settings.d.ts
208
+ - https://www.unpkg.com/@e-mc/types@0.10.22/lib/http.d.ts
209
+ - https://www.unpkg.com/@e-mc/types@0.10.22/lib/request.d.ts
210
+ - https://www.unpkg.com/@e-mc/types@0.10.22/lib/settings.d.ts
211
211
 
212
212
  * https://www.npmjs.com/package/@types/node
213
213
 
package/index.js CHANGED
@@ -1865,7 +1865,7 @@ class Request extends module_1 {
1865
1865
  const pattern = new RegExp(`^${leading}(?:=|$)`);
1866
1866
  for (let i = 0; i < opts.length; ++i) {
1867
1867
  if (pattern.test(opts[i])) {
1868
- opts.splice(i--, i);
1868
+ opts.splice(i, 1);
1869
1869
  break;
1870
1870
  }
1871
1871
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/request",
3
- "version": "0.10.20",
3
+ "version": "0.10.22",
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": "MIT",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/module": "0.10.20",
24
- "@e-mc/types": "0.10.20",
23
+ "@e-mc/module": "0.10.22",
24
+ "@e-mc/types": "0.10.22",
25
25
  "combined-stream": "^1.0.8",
26
26
  "js-yaml": "^4.1.1",
27
27
  "picomatch": "^4.0.4",