@indra211/exios 0.0.0-stage → 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/package.json CHANGED
@@ -1,6 +1,108 @@
1
1
  {
2
2
  "name": "@indra211/exios",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
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
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "main": "./dist/index.node.cjs",
9
+ "module": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
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
+ },
63
+ "import": {
64
+ "types": "./dist/index.d.ts",
65
+ "default": "./dist/index.js"
66
+ },
67
+ "require": {
68
+ "types": "./dist/index.d.cts",
69
+ "default": "./dist/index.cjs"
70
+ }
71
+ },
72
+ "./package.json": "./package.json"
73
+ },
74
+ "files": [
75
+ "dist"
76
+ ],
77
+ "publishConfig": {
78
+ "access": "public"
79
+ },
80
+ "engines": {
81
+ "node": ">=20"
82
+ },
83
+ "scripts": {
84
+ "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsup",
85
+ "test": "vitest run",
86
+ "test:browser": "vitest run -c vitest.browser.config.ts",
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",
89
+ "lint:pkg": "publint && attw --pack",
90
+ "test:dist": "npm run build && vitest run -c vitest.dist.config.ts && tsc -p test/dist-types",
91
+ "test:node20": "npm run build && node test/node20-smoke.mjs"
92
+ },
93
+ "devDependencies": {
94
+ "@arethetypeswrong/cli": "^0.18.5",
95
+ "@types/node": "^26.6.6",
96
+ "@vitest/browser-playwright": "^5.1.0",
97
+ "@vitest/coverage-v8": "^5.1.0",
98
+ "playwright": "^1.65.1",
99
+ "publint": "^0.3.25",
100
+ "tsup": "^9.0.0",
101
+ "typescript": "^6.0.3",
102
+ "vitest": "^5.1.0"
103
+ },
104
+ "browser": {
105
+ "./dist/index.node.js": "./dist/index.js",
106
+ "./dist/index.node.cjs": "./dist/index.cjs"
107
+ }
108
+ }