@gasket/engine
Advanced tools
Comparing version 6.24.2 to 6.26.1
@@ -48,15 +48,13 @@ declare module '@gasket/engine' { | ||
export interface Gasket { | ||
export default class GasketEngine { | ||
constructor(config: GasketConfigFile, context?: { resolveFrom?: string }); | ||
config: GasketConfig; | ||
exec<Id extends HookId>( | ||
hook: Id, | ||
...args: Parameters<HookExecTypes[Id]> | ||
): Promise<Array<ResolvedType<ReturnType<HookExecTypes[Id]>>>>; | ||
): Promise<ResolvedType<ReturnType<HookExecTypes[Id]>>[]>; | ||
execSync<Id extends HookId>( | ||
hook: Id, | ||
...args: Parameters<HookExecTypes[Id]> | ||
): Promise<Array<ResolvedType<ReturnType<HookExecTypes[Id]>>>>; | ||
): Promise<ResolvedType<ReturnType<HookExecTypes[Id]>>[]>; | ||
execWaterfall<Id extends HookId>( | ||
@@ -66,3 +64,2 @@ hook: Id, | ||
): ReturnType<HookExecTypes[Id]>; | ||
execWaterfallSync<Id extends HookId>( | ||
@@ -72,14 +69,14 @@ hook: Id, | ||
): ReturnType<HookExecTypes[Id]>; | ||
execApply<Id extends HookId, Return = void>( | ||
hook: Id, | ||
callback: (plugin: Plugin | null, handler: ApplyHookHandler<Id>) => Promise<Return> | ||
): Promise<Array<Return>> | ||
callback: (plugin: Plugin, handler: ApplyHookHandler<Id>) => Promise<Return> | ||
): Promise<Return[]>; | ||
execApplySync<Id extends HookId, Return = void>( | ||
hook: Id, | ||
callback: (plugin: Plugin | null, handler: ApplyHookHandler<Id>) => Return | ||
): Array<Return> | ||
callback: (plugin: Plugin, handler: ApplyHookHandler<Id>) => Return | ||
): Return[]; | ||
} | ||
export interface Gasket extends GasketEngine {} | ||
type PartialRecursive<T> = | ||
@@ -102,31 +99,2 @@ T extends Object | ||
} | ||
export default class GasketEngine implements Gasket { | ||
constructor(config: GasketConfigFile, context?: { resolveFrom?: string }); | ||
config: GasketConfig; | ||
exec<Id extends HookId>( | ||
hook: Id, | ||
...args: Parameters<HookExecTypes[Id]> | ||
): Promise<ResolvedType<ReturnType<HookExecTypes[Id]>>[]>; | ||
execSync<Id extends HookId>( | ||
hook: Id, | ||
...args: Parameters<HookExecTypes[Id]> | ||
): Promise<ResolvedType<ReturnType<HookExecTypes[Id]>>[]>; | ||
execWaterfall<Id extends HookId>( | ||
hook: Id, | ||
...args: Parameters<HookExecTypes[Id]> | ||
): ReturnType<HookExecTypes[Id]>; | ||
execWaterfallSync<Id extends HookId>( | ||
hook: Id, | ||
...args: Parameters<HookExecTypes[Id]> | ||
): ReturnType<HookExecTypes[Id]>; | ||
execApply<Id extends HookId, Return = void>( | ||
hook: Id, | ||
callback: (plugin: Plugin, handler: ApplyHookHandler<Id>) => Promise<Return> | ||
): Promise<Return[]>; | ||
execApplySync<Id extends HookId, Return = void>( | ||
hook: Id, | ||
callback: (plugin: Plugin, handler: ApplyHookHandler<Id>) => Return | ||
): Return[]; | ||
} | ||
} |
{ | ||
"name": "@gasket/engine", | ||
"version": "6.24.2", | ||
"version": "6.26.1", | ||
"description": "Plugin engine for gasket", | ||
@@ -72,3 +72,3 @@ "main": "lib/engine.js", | ||
}, | ||
"gitHead": "f9a5d895f1bafefe2c4f4eb0375afce9460931cf" | ||
"gitHead": "4ae5de8292ef8695e66583a8c74e945423a00707" | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
29739
564