@e-mc/request 0.9.28 → 0.9.30

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2025 An Pham
1
+ Copyright 2024 An Pham
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
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.9.28/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.9.30/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { IModule, ModuleConstructor } from "./index";
@@ -202,9 +202,9 @@ instance.get("http://hostname/path/config.yml", options).then(data => {
202
202
 
203
203
  ## References
204
204
 
205
- - https://www.unpkg.com/@e-mc/types@0.9.28/lib/http.d.ts
206
- - https://www.unpkg.com/@e-mc/types@0.9.28/lib/request.d.ts
207
- - https://www.unpkg.com/@e-mc/types@0.9.28/lib/settings.d.ts
205
+ - https://www.unpkg.com/@e-mc/types@0.9.30/lib/http.d.ts
206
+ - https://www.unpkg.com/@e-mc/types@0.9.30/lib/request.d.ts
207
+ - https://www.unpkg.com/@e-mc/types@0.9.30/lib/settings.d.ts
208
208
 
209
209
  * https://www.npmjs.com/package/@types/node
210
210
 
package/index.js CHANGED
@@ -1298,7 +1298,7 @@ class Request extends module_1 {
1298
1298
  const pattern = new RegExp(`^${leading}(?:=|$)`);
1299
1299
  for (let i = 0; i < opts.length; ++i) {
1300
1300
  if (pattern.test(opts[i])) {
1301
- opts.splice(i--, i);
1301
+ opts.splice(i, 1);
1302
1302
  break;
1303
1303
  }
1304
1304
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/request",
3
- "version": "0.9.28",
3
+ "version": "0.9.30",
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.9.28",
24
- "@e-mc/types": "0.9.28",
23
+ "@e-mc/module": "0.9.30",
24
+ "@e-mc/types": "0.9.30",
25
25
  "combined-stream": "^1.0.8",
26
26
  "js-yaml": "^4.1.1",
27
27
  "picomatch": "^4.0.3",