fetchguard 1.2.0 → 1.2.2

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 (2) hide show
  1. package/README.md +3 -6
  2. package/package.json +4 -5
package/README.md CHANGED
@@ -88,13 +88,11 @@ Hardening tips:
88
88
  ## Installation
89
89
 
90
90
  ```bash
91
- npm install fetchguard ts-micro-result
92
- # pnpm add fetchguard ts-micro-result
93
- # yarn add fetchguard ts-micro-result
91
+ npm install fetchguard
92
+ # pnpm add fetchguard
93
+ # yarn add fetchguard
94
94
  ```
95
95
 
96
- **Peer dependency**: `ts-micro-result`
97
-
98
96
  ### Vite Configuration (Important!)
99
97
 
100
98
  If using **Vite**, add this to your `vite.config.ts`:
@@ -102,7 +100,6 @@ If using **Vite**, add this to your `vite.config.ts`:
102
100
  ```typescript
103
101
  export default defineConfig({
104
102
  optimizeDeps: {
105
- include: ['ts-micro-result'],
106
103
  exclude: ['fetchguard'] // Required for Web Workers
107
104
  }
108
105
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fetchguard",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "A secure fetch API library that runs in Web Workers with automatic token management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -42,20 +42,19 @@
42
42
  ],
43
43
  "author": "",
44
44
  "license": "MIT",
45
+ "dependencies": {
46
+ "ts-micro-result": "^2.1.10"
47
+ },
45
48
  "devDependencies": {
46
49
  "@vitest/browser": "^4.0.2",
47
50
  "@vitest/browser-playwright": "^4.0.2",
48
51
  "@vitest/ui": "^4.0.2",
49
52
  "happy-dom": "^20.0.8",
50
53
  "playwright": "^1.45.1",
51
- "ts-micro-result": "^2.1.10",
52
54
  "tsup": "^8.0.0",
53
55
  "typescript": "^5.0.0",
54
56
  "vitest": "^4.0.2"
55
57
  },
56
- "peerDependencies": {
57
- "ts-micro-result": "^2.1.10"
58
- },
59
58
  "engines": {
60
59
  "node": ">=16.0.0"
61
60
  },