| import * as Effect from "@effect/io/Effect"; | ||
| import { HttpError } from "../exception.js"; | ||
| const fetch_ = (req) => { | ||
| return Effect.tryPromiseInterrupt({ | ||
| return Effect.tryPromise({ | ||
| try: (signal) => fetch(req.url, Object.assign(Object.assign({}, req.init), { signal })), | ||
@@ -6,0 +6,0 @@ catch: (error) => new HttpError("Fetch error", error), |
+6
-6
| { | ||
| "name": "http-kit", | ||
| "version": "0.3.1", | ||
| "version": "0.4.0", | ||
| "type": "module", | ||
@@ -61,10 +61,10 @@ "description": "Platform agnostic fetch kit for the Effect package", | ||
| "devDependencies": { | ||
| "@effect/data": "^0.17.0", | ||
| "@effect/io": "^0.36.1", | ||
| "@effect/data": "^0.18.6", | ||
| "@effect/io": "^0.40.3", | ||
| "rimraf": "^5.0.1", | ||
| "typescript": "^5.1.6" | ||
| "typescript": "^5.2.2" | ||
| }, | ||
| "peerDependencies": { | ||
| "@effect/data": "^0.17.0", | ||
| "@effect/io": "^0.36.1" | ||
| "@effect/data": "^0.18.6", | ||
| "@effect/io": "^0.40.3" | ||
| }, | ||
@@ -71,0 +71,0 @@ "scripts": { |
20131
-0.04%