@indra211/exios 1.0.0 → 2.0.0
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 +54 -14
- package/dist/index.cjs +939 -395
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +74 -8
- package/dist/index.js +940 -395
- package/dist/index.node.cjs +2545 -0
- package/dist/index.node.js +2515 -0
- package/package.json +59 -4
package/package.json
CHANGED
|
@@ -1,15 +1,65 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indra211/exios",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Zero-dependency axios-compatible HTTP client
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Zero-dependency axios-compatible HTTP client (XHR in browsers, Node http in Node, fetch fallback) with retry and a circuit breaker.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": false,
|
|
8
|
-
"main": "./dist/index.cjs",
|
|
8
|
+
"main": "./dist/index.node.cjs",
|
|
9
9
|
"module": "./dist/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
+
"deno": {
|
|
14
|
+
"import": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"types": "./dist/index.d.cts",
|
|
20
|
+
"default": "./dist/index.cjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"workerd": {
|
|
24
|
+
"import": {
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"default": "./dist/index.js"
|
|
27
|
+
},
|
|
28
|
+
"require": {
|
|
29
|
+
"types": "./dist/index.d.cts",
|
|
30
|
+
"default": "./dist/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"edge-light": {
|
|
34
|
+
"import": {
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"default": "./dist/index.js"
|
|
37
|
+
},
|
|
38
|
+
"require": {
|
|
39
|
+
"types": "./dist/index.d.cts",
|
|
40
|
+
"default": "./dist/index.cjs"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"browser": {
|
|
44
|
+
"import": {
|
|
45
|
+
"types": "./dist/index.d.ts",
|
|
46
|
+
"default": "./dist/index.js"
|
|
47
|
+
},
|
|
48
|
+
"require": {
|
|
49
|
+
"types": "./dist/index.d.cts",
|
|
50
|
+
"default": "./dist/index.cjs"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"node": {
|
|
54
|
+
"import": {
|
|
55
|
+
"types": "./dist/index.d.ts",
|
|
56
|
+
"default": "./dist/index.node.js"
|
|
57
|
+
},
|
|
58
|
+
"require": {
|
|
59
|
+
"types": "./dist/index.d.cts",
|
|
60
|
+
"default": "./dist/index.node.cjs"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
13
63
|
"import": {
|
|
14
64
|
"types": "./dist/index.d.ts",
|
|
15
65
|
"default": "./dist/index.js"
|
|
@@ -34,7 +84,8 @@
|
|
|
34
84
|
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsup",
|
|
35
85
|
"test": "vitest run",
|
|
36
86
|
"test:browser": "vitest run -c vitest.browser.config.ts",
|
|
37
|
-
"
|
|
87
|
+
"test:browser:all": "EXIOS_BROWSERS=chromium,firefox,webkit vitest run -c vitest.browser.config.ts",
|
|
88
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.node.json --noEmit && tsc -p test/tsconfig.json --noEmit",
|
|
38
89
|
"lint:pkg": "publint && attw --pack",
|
|
39
90
|
"test:dist": "npm run build && vitest run -c vitest.dist.config.ts && tsc -p test/dist-types",
|
|
40
91
|
"test:node20": "npm run build && node test/node20-smoke.mjs"
|
|
@@ -49,5 +100,9 @@
|
|
|
49
100
|
"tsup": "^9.0.0",
|
|
50
101
|
"typescript": "^6.0.3",
|
|
51
102
|
"vitest": "^5.1.0"
|
|
103
|
+
},
|
|
104
|
+
"browser": {
|
|
105
|
+
"./dist/index.node.js": "./dist/index.js",
|
|
106
|
+
"./dist/index.node.cjs": "./dist/index.cjs"
|
|
52
107
|
}
|
|
53
108
|
}
|