Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@onion-interceptor/pipes

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onion-interceptor/pipes - npm Package Compare versions

Comparing version 0.0.2-beta to 0.0.3-beta

40

dist/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc