@cloudpss/fetch 0.5.20 → 0.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudpss/fetch",
3
- "version": "0.5.20",
3
+ "version": "0.5.22",
4
4
  "author": "CloudPSS",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -10,14 +10,11 @@
10
10
  "type": "module",
11
11
  "sideEffects": false,
12
12
  "engines": {
13
- "node": ">=16.8.0"
13
+ "node": ">=18.12.0"
14
14
  },
15
15
  "main": "dist/index.js",
16
16
  "module": "dist/index.js",
17
17
  "types": "dist/index.d.ts",
18
- "browser": {
19
- "./dist/impl.js": "./dist/impl-browser.js"
20
- },
21
18
  "exports": "./dist/index.js",
22
19
  "imports": {
23
20
  "#impl": {
@@ -27,7 +24,7 @@
27
24
  }
28
25
  },
29
26
  "dependencies": {
30
- "undici": "^6.7.0"
27
+ "undici": "^6.7.1"
31
28
  },
32
29
  "devDependencies": {
33
30
  "@types/ws": "^8.5.10"
@@ -24,7 +24,7 @@ function runWithEnv(env, callback) {
24
24
  function testProxyUrl(env, expected, input) {
25
25
  // Copy object to make sure that the in param does not get modified between
26
26
  // the call of this function and the use of it below.
27
- env = structuredClone(env);
27
+ env = { ...env };
28
28
 
29
29
  var title = 'getProxyForUrl(' + JSON.stringify(input) + ')' + ' === ' + JSON.stringify(expected);
30
30