@onion-interceptor/pipes
Advanced tools
Comparing version 0.0.2-beta to 0.0.3-beta
@@ -1,24 +0,24 @@ | ||
import { operate as n } from "onion-interceptor"; | ||
const e = (t) => n(async (c, a) => { | ||
import { operate as r } from "onion-interceptor"; | ||
const w = (a) => r(async (c, t) => { | ||
try { | ||
await a(); | ||
await t(); | ||
} finally { | ||
t(); | ||
a(); | ||
} | ||
}), i = (t) => n(async (c, a) => { | ||
}), h = (a) => r(async (c, t) => { | ||
try { | ||
await a(); | ||
} catch (r) { | ||
t(r); | ||
await t(); | ||
} catch (o) { | ||
throw a(o); | ||
} | ||
}), m = (t) => n(async (c, a) => { | ||
await new Promise((r) => setTimeout(r, t)), await a(); | ||
}), p = function(t, c, a) { | ||
return n(async (r, s) => { | ||
}), i = (a) => r(async (c, t) => { | ||
await new Promise((o) => setTimeout(o, a)), await t(); | ||
}), e = function(a, c, t) { | ||
return r(async (o, s) => { | ||
try { | ||
await s(), t(r); | ||
} catch (y) { | ||
c == null || c(y); | ||
await s(), a(o); | ||
} catch (n) { | ||
throw (c == null ? void 0 : c(n)) ?? n; | ||
} finally { | ||
a == null || a(); | ||
t == null || t(); | ||
} | ||
@@ -28,6 +28,6 @@ }); | ||
export { | ||
i as catchError, | ||
m as delay, | ||
e as finalize, | ||
p as tap | ||
h as catchError, | ||
i as delay, | ||
w as finalize, | ||
e as tap | ||
}; |
import { Context } from 'onion-interceptor'; | ||
type Cb = (ctx: Context) => void; | ||
type Throw = (err: unknown) => void; | ||
export declare const tap: (cb: Cb, throwE?: Throw, finalize?: () => void) => import('onion-interceptor').Opeartion; | ||
type ErrCb = (err: unknown) => void; | ||
type FinalizeCb = () => void; | ||
export declare const tap: (cb: Cb, errCb?: ErrCb, finalizeCb?: FinalizeCb) => import('onion-interceptor').Opeartion; | ||
export {}; |
{ | ||
"name": "@onion-interceptor/pipes", | ||
"version": "0.0.2-beta", | ||
"version": "0.0.3-beta", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "onion-interceptor pipes", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4228
45