New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rspack/lite-tapable

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rspack/lite-tapable - npm Package Compare versions

Comparing version 1.0.0-beta.4 to 1.0.0-beta.5

28

dist/index.d.ts

@@ -6,3 +6,3 @@ type FixedSizeArray<T extends number, U> = T extends 0 ? undefined[] : ReadonlyArray<U> & {

type Measure<T extends number> = T extends 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 ? T : never;
type Append<T extends unknown[], U> = {
type Append<T extends any[], U> = {
0: [U];

@@ -18,3 +18,3 @@ 1: [T[0], U];

}[Measure<T['length']>];
export type AsArray<T> = T extends unknown[] ? T : [T];
export type AsArray<T> = T extends any[] ? T : [T];
export type Fn<T, R> = (...args: AsArray<T>) => R;

@@ -44,4 +44,4 @@ export type FnAsync<T, R> = (...args: Append<AsArray<T>, InnerCallback<Error, R>>) => void;

tap?: (tap: FullTap & IfSet<AdditionalOptions>) => void;
call?: (...args: unknown[]) => void;
loop?: (...args: unknown[]) => void;
call?: (...args: any[]) => void;
loop?: (...args: any[]) => void;
error?: (err: Error) => void;

@@ -52,7 +52,7 @@ result?: (result: R) => void;

}
type ArgumentNames<T extends unknown[]> = FixedSizeArray<T['length'], string>;
type ExtractHookArgs<H> = H extends Hook<infer T, unknown> ? T : never;
type ExtractHookReturn<H> = H extends Hook<unknown, infer R> ? R : never;
type ExtractHookAdditionalOptions<H> = H extends Hook<unknown, unknown, infer A> ? A : never;
export interface Hook<T = unknown, R = unknown, AdditionalOptions = UnsetAdditionalOptions> {
type ArgumentNames<T extends any[]> = FixedSizeArray<T['length'], string>;
type ExtractHookArgs<H> = H extends Hook<infer T, any> ? T : never;
type ExtractHookReturn<H> = H extends Hook<any, infer R> ? R : never;
type ExtractHookAdditionalOptions<H> = H extends Hook<any, any, infer A> ? A : never;
export interface Hook<T = any, R = any, AdditionalOptions = UnsetAdditionalOptions> {
name?: string;

@@ -75,3 +75,3 @@ tap(opt: Options<AdditionalOptions>, fn: Fn<T, R>): void;

_runRegisterInterceptors(options: FullTap & IfSet<AdditionalOptions>): FullTap & IfSet<AdditionalOptions>;
_runCallInterceptors(...args: unknown[]): void;
_runCallInterceptors(...args: any[]): void;
_runErrorInterceptors(e: Error): void;

@@ -144,3 +144,3 @@ _runTapInterceptors(tap: FullTap & IfSet<AdditionalOptions>): void;

}
export type HookMapKey = unknown;
export type HookMapKey = any;
export type HookFactory<H> = (key: HookMapKey, hook?: H) => H;

@@ -166,4 +166,4 @@ export interface HookMapInterceptor<H> {

constructor(stageRange: StageRange, hookMap: HookMap<H>);
get(key: HookMapKey): QueriedHook<unknown, unknown, UnsetAdditionalOptions> | undefined;
for(key: HookMapKey): QueriedHook<unknown, unknown, UnsetAdditionalOptions>;
get(key: HookMapKey): QueriedHook<any, any, UnsetAdditionalOptions> | undefined;
for(key: HookMapKey): QueriedHook<any, any, UnsetAdditionalOptions>;
isUsed(): boolean;

@@ -180,4 +180,4 @@ }

intercept(interceptor: HookInterceptor<ExtractHookArgs<Hook>, ExtractHookReturn<Hook>, ExtractHookAdditionalOptions<Hook>>): void;
withOptions(options: TapOptions & IfSet<ExtractHookAdditionalOptions<Hook>>): MultiHook<Hook<unknown, unknown, UnsetAdditionalOptions>>;
withOptions(options: TapOptions & IfSet<ExtractHookAdditionalOptions<Hook>>): MultiHook<Hook<any, any, UnsetAdditionalOptions>>;
}
export {};
{
"name": "@rspack/lite-tapable",
"version": "1.0.0-beta.4",
"version": "1.0.0-beta.5",
"repository": "https://github.com/rspack-contrib/rspack-lite-tapable",

@@ -5,0 +5,0 @@ "license": "MIT",

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