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

@sewing-kit/hooks

Package Overview
Dependencies
Maintainers
3
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sewing-kit/hooks - npm Package Compare versions

Comparing version 0.2.0-alpha.1 to 0.2.0

55

build/ts/index.d.ts
import type { Step, Target, TargetBuilder, WebApp, Service, Package, Project } from '@sewing-kit/core';
export declare const UNSET: unique symbol;
declare type Unset = typeof UNSET;
export declare type SeriesHookArguments<First = Unset, Second = Unset, Third = Unset> = First extends Unset ? [] : Second extends Unset ? [First] : Third extends Unset ? [First, Second] : [First, Second, Third];
export declare type SeriesHookFunction<First, Second, Third> = (...args: SeriesHookArguments<First, Second, Third>) => void | Promise<void>;
export declare class SeriesHook<First = Unset, Second = Unset, Third = Unset> {
export declare type SeriesHookArguments<TFirst = Unset, TSecond = Unset, TThird = Unset> = TFirst extends Unset ? [] : TSecond extends Unset ? [TFirst] : TThird extends Unset ? [TFirst, TSecond] : [TFirst, TSecond, TThird];
export declare type SeriesHookFunction<TFirst, TSecond, TThird> = (...args: SeriesHookArguments<TFirst, TSecond, TThird>) => void | Promise<void>;
export declare class SeriesHook<TFirst = Unset, TSecond = Unset, TThird = Unset> {
private hooks;
get hasHooks(): boolean;
hook(idOrHook: string | SeriesHookFunction<First, Second, Third>, maybeHook?: SeriesHookFunction<First, Second, Third>): this;
run(...args: SeriesHookArguments<First, Second, Third>): Promise<void>;
hook(idOrHook: string | SeriesHookFunction<TFirst, TSecond, TThird>, maybeHook?: SeriesHookFunction<TFirst, TSecond, TThird>): this;
run(...args: SeriesHookArguments<TFirst, TSecond, TThird>): Promise<void>;
}
export declare type WaterfallHookArguments<Value, First = Unset, Second = Unset, Third = Unset> = First extends Unset ? [Value] : Second extends Unset ? [Value, First] : Third extends Unset ? [Value, First, Second] : [Value, First, Second, Third];
export declare type WaterfallHookFunction<Value, First, Second, Third> = (...args: WaterfallHookArguments<Value, First, Second, Third>) => Value | Promise<Value>;
export declare class WaterfallHook<Value, First = Unset, Second = Unset, Third = Unset> {
export declare type WaterfallHookArguments<TValue, TFirst = Unset, TSecond = Unset, TThird = Unset> = TFirst extends Unset ? [TValue] : TSecond extends Unset ? [TValue, TFirst] : TThird extends Unset ? [TValue, TFirst, TSecond] : [TValue, TFirst, TSecond, TThird];
export declare type WaterfallHookFunction<TValue, TFirst, TSecond, TThird> = (...args: WaterfallHookArguments<TValue, TFirst, TSecond, TThird>) => TValue | Promise<TValue>;
export declare class WaterfallHook<TValue, TFirst = Unset, TSecond = Unset, TThird = Unset> {
private hooks;
get hasHooks(): boolean;
hook(idOrHook: string | WaterfallHookFunction<Value, First, Second, Third>, maybeHook?: WaterfallHookFunction<Value, First, Second, Third>): this;
run(...args: WaterfallHookArguments<Value, First, Second, Third>): Promise<Value>;
hook(idOrHook: string | WaterfallHookFunction<TValue, TFirst, TSecond, TThird>, maybeHook?: WaterfallHookFunction<TValue, TFirst, TSecond, TThird>): this;
run(...args: WaterfallHookArguments<TValue, TFirst, TSecond, TThird>): Promise<TValue>;
}

@@ -32,8 +32,9 @@ export interface BuildProjectConfigurationCustomHooks {

}
export interface BuildProjectTargetDetails<Type extends Project, Options, Context, Hooks> {
readonly target: Target<Project & Type, Options>;
readonly context: Context;
readonly hooks: Hooks;
export interface BuildProjectTargetDetails<TType extends Project, TOptions, TContext, THooks> {
readonly target: Target<Project & TType, TOptions>;
readonly context: TContext;
readonly hooks: THooks;
}
export interface BuildPackageTargetOptions {
[key: string]: unknown;
}

@@ -58,12 +59,13 @@ export interface BuildPackageConfigurationCustomHooks extends BuildProjectConfigurationCustomHooks {

readonly configure: SeriesHook<BuildPackageConfigurationHooks>;
readonly steps: WaterfallHook<readonly Step[], BuildPackageConfigurationHooks>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildPackageConfigurationHooks>;
}
export interface BuildPackageHooks {
readonly targets: WaterfallHook<readonly TargetBuilder<Package, BuildPackageTargetOptions>[]>;
readonly targets: WaterfallHook<ReadonlyArray<TargetBuilder<Package, BuildPackageTargetOptions>>>;
readonly configureHooks: WaterfallHook<BuildPackageConfigurationHooks>;
readonly context: WaterfallHook<BuildPackageContext>;
readonly steps: WaterfallHook<readonly Step[], BuildPackageHookContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildPackageHookContext>;
readonly target: SeriesHook<BuildProjectTargetDetails<Package, BuildPackageTargetOptions, BuildPackageHookContext, BuildPackageTargetHooks>>;
}
export interface BuildServiceTargetOptions {
[key: string]: unknown;
}

@@ -88,12 +90,13 @@ export interface BuildServiceConfigurationCustomHooks extends BuildProjectConfigurationCustomHooks {

readonly configure: SeriesHook<BuildServiceConfigurationHooks>;
readonly steps: WaterfallHook<readonly Step[], BuildServiceConfigurationHooks>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildServiceConfigurationHooks>;
}
export interface BuildServiceHooks {
readonly targets: WaterfallHook<readonly TargetBuilder<Service, BuildServiceTargetOptions>[]>;
readonly targets: WaterfallHook<ReadonlyArray<TargetBuilder<Service, BuildServiceTargetOptions>>>;
readonly configureHooks: WaterfallHook<BuildServiceConfigurationHooks>;
readonly context: WaterfallHook<BuildServiceContext>;
readonly steps: WaterfallHook<readonly Step[], BuildServiceHookContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildServiceHookContext>;
readonly target: SeriesHook<BuildProjectTargetDetails<Service, BuildServiceTargetOptions, BuildServiceHookContext, BuildServiceTargetHooks>>;
}
export interface BuildWebAppTargetOptions {
[key: string]: unknown;
}

@@ -118,9 +121,9 @@ export interface BuildWebAppConfigurationCustomHooks extends BuildProjectConfigurationCustomHooks {

readonly configure: SeriesHook<BuildWebAppConfigurationHooks>;
readonly steps: WaterfallHook<readonly Step[], BuildWebAppConfigurationHooks>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildWebAppConfigurationHooks>;
}
export interface BuildWebAppHooks {
readonly targets: WaterfallHook<readonly TargetBuilder<WebApp, BuildWebAppTargetOptions>[]>;
readonly targets: WaterfallHook<ReadonlyArray<TargetBuilder<WebApp, BuildWebAppTargetOptions>>>;
readonly configureHooks: WaterfallHook<BuildWebAppConfigurationHooks>;
readonly context: WaterfallHook<BuildWebAppContext>;
readonly steps: WaterfallHook<readonly Step[], BuildWebAppHookContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildWebAppHookContext>;
readonly target: SeriesHook<BuildProjectTargetDetails<WebApp, BuildWebAppTargetOptions, BuildWebAppHookContext, BuildWebAppTargetHooks>>;

@@ -169,3 +172,3 @@ }

readonly context: WaterfallHook<DevPackageContext>;
readonly steps: WaterfallHook<readonly Step[], DevPackageConfigurationHooks, DevPackageContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, DevPackageConfigurationHooks, DevPackageContext>;
}

@@ -190,3 +193,3 @@ export interface DevServiceConfigurationCustomHooks extends DevProjectConfigurationCustomHooks {

readonly context: WaterfallHook<DevServiceContext>;
readonly steps: WaterfallHook<readonly Step[], DevServiceConfigurationHooks, DevServiceContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, DevServiceConfigurationHooks, DevServiceContext>;
}

@@ -209,3 +212,3 @@ export interface DevWebAppConfigurationCustomHooks extends DevProjectConfigurationCustomHooks {

readonly context: WaterfallHook<DevWebAppContext>;
readonly steps: WaterfallHook<readonly Step[], DevWebAppConfigurationHooks, DevWebAppContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, DevWebAppConfigurationHooks, DevWebAppContext>;
}

@@ -212,0 +215,0 @@ export interface DevWorkspaceConfigurationCustomHooks {

@@ -10,2 +10,8 @@ # Changelog

## [0.2.0] - 2021-05-20
### Breaking Changes
- Update minimum supported node version to 12.14.0. Add engines field to help enforce usage of this version. [[#170](https://github.com/Shopify/sewing-kit-next/pull/170)]
## [0.1.10] - 2021-04-14

@@ -12,0 +18,0 @@

import type { Step, Target, TargetBuilder, WebApp, Service, Package, Project } from '@sewing-kit/core';
export declare const UNSET: unique symbol;
declare type Unset = typeof UNSET;
export declare type SeriesHookArguments<First = Unset, Second = Unset, Third = Unset> = First extends Unset ? [] : Second extends Unset ? [First] : Third extends Unset ? [First, Second] : [First, Second, Third];
export declare type SeriesHookFunction<First, Second, Third> = (...args: SeriesHookArguments<First, Second, Third>) => void | Promise<void>;
export declare class SeriesHook<First = Unset, Second = Unset, Third = Unset> {
export declare type SeriesHookArguments<TFirst = Unset, TSecond = Unset, TThird = Unset> = TFirst extends Unset ? [] : TSecond extends Unset ? [TFirst] : TThird extends Unset ? [TFirst, TSecond] : [TFirst, TSecond, TThird];
export declare type SeriesHookFunction<TFirst, TSecond, TThird> = (...args: SeriesHookArguments<TFirst, TSecond, TThird>) => void | Promise<void>;
export declare class SeriesHook<TFirst = Unset, TSecond = Unset, TThird = Unset> {
private hooks;
get hasHooks(): boolean;
hook(idOrHook: string | SeriesHookFunction<First, Second, Third>, maybeHook?: SeriesHookFunction<First, Second, Third>): this;
run(...args: SeriesHookArguments<First, Second, Third>): Promise<void>;
hook(idOrHook: string | SeriesHookFunction<TFirst, TSecond, TThird>, maybeHook?: SeriesHookFunction<TFirst, TSecond, TThird>): this;
run(...args: SeriesHookArguments<TFirst, TSecond, TThird>): Promise<void>;
}
export declare type WaterfallHookArguments<Value, First = Unset, Second = Unset, Third = Unset> = First extends Unset ? [Value] : Second extends Unset ? [Value, First] : Third extends Unset ? [Value, First, Second] : [Value, First, Second, Third];
export declare type WaterfallHookFunction<Value, First, Second, Third> = (...args: WaterfallHookArguments<Value, First, Second, Third>) => Value | Promise<Value>;
export declare class WaterfallHook<Value, First = Unset, Second = Unset, Third = Unset> {
export declare type WaterfallHookArguments<TValue, TFirst = Unset, TSecond = Unset, TThird = Unset> = TFirst extends Unset ? [TValue] : TSecond extends Unset ? [TValue, TFirst] : TThird extends Unset ? [TValue, TFirst, TSecond] : [TValue, TFirst, TSecond, TThird];
export declare type WaterfallHookFunction<TValue, TFirst, TSecond, TThird> = (...args: WaterfallHookArguments<TValue, TFirst, TSecond, TThird>) => TValue | Promise<TValue>;
export declare class WaterfallHook<TValue, TFirst = Unset, TSecond = Unset, TThird = Unset> {
private hooks;
get hasHooks(): boolean;
hook(idOrHook: string | WaterfallHookFunction<Value, First, Second, Third>, maybeHook?: WaterfallHookFunction<Value, First, Second, Third>): this;
run(...args: WaterfallHookArguments<Value, First, Second, Third>): Promise<Value>;
hook(idOrHook: string | WaterfallHookFunction<TValue, TFirst, TSecond, TThird>, maybeHook?: WaterfallHookFunction<TValue, TFirst, TSecond, TThird>): this;
run(...args: WaterfallHookArguments<TValue, TFirst, TSecond, TThird>): Promise<TValue>;
}

@@ -32,8 +32,9 @@ export interface BuildProjectConfigurationCustomHooks {

}
export interface BuildProjectTargetDetails<Type extends Project, Options, Context, Hooks> {
readonly target: Target<Project & Type, Options>;
readonly context: Context;
readonly hooks: Hooks;
export interface BuildProjectTargetDetails<TType extends Project, TOptions, TContext, THooks> {
readonly target: Target<Project & TType, TOptions>;
readonly context: TContext;
readonly hooks: THooks;
}
export interface BuildPackageTargetOptions {
[key: string]: unknown;
}

@@ -58,12 +59,13 @@ export interface BuildPackageConfigurationCustomHooks extends BuildProjectConfigurationCustomHooks {

readonly configure: SeriesHook<BuildPackageConfigurationHooks>;
readonly steps: WaterfallHook<readonly Step[], BuildPackageConfigurationHooks>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildPackageConfigurationHooks>;
}
export interface BuildPackageHooks {
readonly targets: WaterfallHook<readonly TargetBuilder<Package, BuildPackageTargetOptions>[]>;
readonly targets: WaterfallHook<ReadonlyArray<TargetBuilder<Package, BuildPackageTargetOptions>>>;
readonly configureHooks: WaterfallHook<BuildPackageConfigurationHooks>;
readonly context: WaterfallHook<BuildPackageContext>;
readonly steps: WaterfallHook<readonly Step[], BuildPackageHookContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildPackageHookContext>;
readonly target: SeriesHook<BuildProjectTargetDetails<Package, BuildPackageTargetOptions, BuildPackageHookContext, BuildPackageTargetHooks>>;
}
export interface BuildServiceTargetOptions {
[key: string]: unknown;
}

@@ -88,12 +90,13 @@ export interface BuildServiceConfigurationCustomHooks extends BuildProjectConfigurationCustomHooks {

readonly configure: SeriesHook<BuildServiceConfigurationHooks>;
readonly steps: WaterfallHook<readonly Step[], BuildServiceConfigurationHooks>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildServiceConfigurationHooks>;
}
export interface BuildServiceHooks {
readonly targets: WaterfallHook<readonly TargetBuilder<Service, BuildServiceTargetOptions>[]>;
readonly targets: WaterfallHook<ReadonlyArray<TargetBuilder<Service, BuildServiceTargetOptions>>>;
readonly configureHooks: WaterfallHook<BuildServiceConfigurationHooks>;
readonly context: WaterfallHook<BuildServiceContext>;
readonly steps: WaterfallHook<readonly Step[], BuildServiceHookContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildServiceHookContext>;
readonly target: SeriesHook<BuildProjectTargetDetails<Service, BuildServiceTargetOptions, BuildServiceHookContext, BuildServiceTargetHooks>>;
}
export interface BuildWebAppTargetOptions {
[key: string]: unknown;
}

@@ -118,9 +121,9 @@ export interface BuildWebAppConfigurationCustomHooks extends BuildProjectConfigurationCustomHooks {

readonly configure: SeriesHook<BuildWebAppConfigurationHooks>;
readonly steps: WaterfallHook<readonly Step[], BuildWebAppConfigurationHooks>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildWebAppConfigurationHooks>;
}
export interface BuildWebAppHooks {
readonly targets: WaterfallHook<readonly TargetBuilder<WebApp, BuildWebAppTargetOptions>[]>;
readonly targets: WaterfallHook<ReadonlyArray<TargetBuilder<WebApp, BuildWebAppTargetOptions>>>;
readonly configureHooks: WaterfallHook<BuildWebAppConfigurationHooks>;
readonly context: WaterfallHook<BuildWebAppContext>;
readonly steps: WaterfallHook<readonly Step[], BuildWebAppHookContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildWebAppHookContext>;
readonly target: SeriesHook<BuildProjectTargetDetails<WebApp, BuildWebAppTargetOptions, BuildWebAppHookContext, BuildWebAppTargetHooks>>;

@@ -169,3 +172,3 @@ }

readonly context: WaterfallHook<DevPackageContext>;
readonly steps: WaterfallHook<readonly Step[], DevPackageConfigurationHooks, DevPackageContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, DevPackageConfigurationHooks, DevPackageContext>;
}

@@ -190,3 +193,3 @@ export interface DevServiceConfigurationCustomHooks extends DevProjectConfigurationCustomHooks {

readonly context: WaterfallHook<DevServiceContext>;
readonly steps: WaterfallHook<readonly Step[], DevServiceConfigurationHooks, DevServiceContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, DevServiceConfigurationHooks, DevServiceContext>;
}

@@ -209,3 +212,3 @@ export interface DevWebAppConfigurationCustomHooks extends DevProjectConfigurationCustomHooks {

readonly context: WaterfallHook<DevWebAppContext>;
readonly steps: WaterfallHook<readonly Step[], DevWebAppConfigurationHooks, DevWebAppContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, DevWebAppConfigurationHooks, DevWebAppContext>;
}

@@ -212,0 +215,0 @@ export interface DevWorkspaceConfigurationCustomHooks {

{
"name": "@sewing-kit/hooks",
"license": "MIT",
"version": "0.2.0-alpha.1",
"version": "0.2.0",
"sideEffects": false,

@@ -11,3 +11,3 @@ "publishConfig": {

"engines": {
"node": "^12.22.0 || >=14.17.0"
"node": ">=12.14.0"
},

@@ -18,5 +18,5 @@ "scripts": {

"dependencies": {
"@sewing-kit/core": "^0.4.0-alpha.1"
"@sewing-kit/core": "^0.4.0"
},
"gitHead": "aabbbc30e295acfdb823e2e37c4b862e5c44b68e"
"gitHead": "c96a65cc1a6304570802d1fe737924c00a896cc3"
}
import {createPackage, Runtime} from '@sewing-kit/config';
import {createSewingKitPackagePlugin} from '../../config/sewing-kit';

@@ -3,0 +4,0 @@

@@ -19,19 +19,19 @@ import type {

export type SeriesHookArguments<
First = Unset,
Second = Unset,
Third = Unset
> = First extends Unset
TFirst = Unset,
TSecond = Unset,
TThird = Unset
> = TFirst extends Unset
? []
: Second extends Unset
? [First]
: Third extends Unset
? [First, Second]
: [First, Second, Third];
: TSecond extends Unset
? [TFirst]
: TThird extends Unset
? [TFirst, TSecond]
: [TFirst, TSecond, TThird];
export type SeriesHookFunction<First, Second, Third> = (
...args: SeriesHookArguments<First, Second, Third>
export type SeriesHookFunction<TFirst, TSecond, TThird> = (
...args: SeriesHookArguments<TFirst, TSecond, TThird>
) => void | Promise<void>;
export class SeriesHook<First = Unset, Second = Unset, Third = Unset> {
private hooks = new Set<SeriesHookFunction<First, Second, Third>>();
export class SeriesHook<TFirst = Unset, TSecond = Unset, TThird = Unset> {
private hooks = new Set<SeriesHookFunction<TFirst, TSecond, TThird>>();

@@ -43,4 +43,4 @@ get hasHooks() {

hook(
idOrHook: string | SeriesHookFunction<First, Second, Third>,
maybeHook?: SeriesHookFunction<First, Second, Third>,
idOrHook: string | SeriesHookFunction<TFirst, TSecond, TThird>,
maybeHook?: SeriesHookFunction<TFirst, TSecond, TThird>,
) {

@@ -56,3 +56,3 @@ if (typeof idOrHook === 'function') {

async run(...args: SeriesHookArguments<First, Second, Third>) {
async run(...args: SeriesHookArguments<TFirst, TSecond, TThird>) {
for (const hook of [...this.hooks]) {

@@ -65,25 +65,27 @@ await hook(...args);

export type WaterfallHookArguments<
Value,
First = Unset,
Second = Unset,
Third = Unset
> = First extends Unset
? [Value]
: Second extends Unset
? [Value, First]
: Third extends Unset
? [Value, First, Second]
: [Value, First, Second, Third];
TValue,
TFirst = Unset,
TSecond = Unset,
TThird = Unset
> = TFirst extends Unset
? [TValue]
: TSecond extends Unset
? [TValue, TFirst]
: TThird extends Unset
? [TValue, TFirst, TSecond]
: [TValue, TFirst, TSecond, TThird];
export type WaterfallHookFunction<Value, First, Second, Third> = (
...args: WaterfallHookArguments<Value, First, Second, Third>
) => Value | Promise<Value>;
export type WaterfallHookFunction<TValue, TFirst, TSecond, TThird> = (
...args: WaterfallHookArguments<TValue, TFirst, TSecond, TThird>
) => TValue | Promise<TValue>;
export class WaterfallHook<
Value,
First = Unset,
Second = Unset,
Third = Unset
TValue,
TFirst = Unset,
TSecond = Unset,
TThird = Unset
> {
private hooks = new Set<WaterfallHookFunction<Value, First, Second, Third>>();
private hooks = new Set<
WaterfallHookFunction<TValue, TFirst, TSecond, TThird>
>();

@@ -96,4 +98,4 @@ get hasHooks() {

hook(
idOrHook: string | WaterfallHookFunction<Value, First, Second, Third>,
maybeHook?: WaterfallHookFunction<Value, First, Second, Third>,
idOrHook: string | WaterfallHookFunction<TValue, TFirst, TSecond, TThird>,
maybeHook?: WaterfallHookFunction<TValue, TFirst, TSecond, TThird>,
) {

@@ -109,3 +111,3 @@ if (typeof idOrHook === 'function') {

async run(...args: WaterfallHookArguments<Value, First, Second, Third>) {
async run(...args: WaterfallHookArguments<TValue, TFirst, TSecond, TThird>) {
const [initialValue, ...extraArgs] = args;

@@ -142,10 +144,10 @@

export interface BuildProjectTargetDetails<
Type extends Project,
Options,
Context,
Hooks
TType extends Project,
TOptions,
TContext,
THooks
> {
readonly target: Target<Project & Type, Options>;
readonly context: Context;
readonly hooks: Hooks;
readonly target: Target<Project & TType, TOptions>;
readonly context: TContext;
readonly hooks: THooks;
}

@@ -155,3 +157,5 @@

export interface BuildPackageTargetOptions {}
export interface BuildPackageTargetOptions {
[key: string]: unknown;
}

@@ -185,3 +189,3 @@ export interface BuildPackageConfigurationCustomHooks

readonly steps: WaterfallHook<
readonly Step[],
ReadonlyArray<Step>,
BuildPackageConfigurationHooks

@@ -193,7 +197,7 @@ >;

readonly targets: WaterfallHook<
readonly TargetBuilder<Package, BuildPackageTargetOptions>[]
ReadonlyArray<TargetBuilder<Package, BuildPackageTargetOptions>>
>;
readonly configureHooks: WaterfallHook<BuildPackageConfigurationHooks>;
readonly context: WaterfallHook<BuildPackageContext>;
readonly steps: WaterfallHook<readonly Step[], BuildPackageHookContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildPackageHookContext>;
readonly target: SeriesHook<

@@ -211,3 +215,5 @@ BuildProjectTargetDetails<

export interface BuildServiceTargetOptions {}
export interface BuildServiceTargetOptions {
[key: string]: unknown;
}

@@ -241,3 +247,3 @@ export interface BuildServiceConfigurationCustomHooks

readonly steps: WaterfallHook<
readonly Step[],
ReadonlyArray<Step>,
BuildServiceConfigurationHooks

@@ -249,7 +255,7 @@ >;

readonly targets: WaterfallHook<
readonly TargetBuilder<Service, BuildServiceTargetOptions>[]
ReadonlyArray<TargetBuilder<Service, BuildServiceTargetOptions>>
>;
readonly configureHooks: WaterfallHook<BuildServiceConfigurationHooks>;
readonly context: WaterfallHook<BuildServiceContext>;
readonly steps: WaterfallHook<readonly Step[], BuildServiceHookContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildServiceHookContext>;
readonly target: SeriesHook<

@@ -267,3 +273,5 @@ BuildProjectTargetDetails<

export interface BuildWebAppTargetOptions {}
export interface BuildWebAppTargetOptions {
[key: string]: unknown;
}

@@ -296,3 +304,6 @@ export interface BuildWebAppConfigurationCustomHooks

readonly configure: SeriesHook<BuildWebAppConfigurationHooks>;
readonly steps: WaterfallHook<readonly Step[], BuildWebAppConfigurationHooks>;
readonly steps: WaterfallHook<
ReadonlyArray<Step>,
BuildWebAppConfigurationHooks
>;
}

@@ -302,7 +313,7 @@

readonly targets: WaterfallHook<
readonly TargetBuilder<WebApp, BuildWebAppTargetOptions>[]
ReadonlyArray<TargetBuilder<WebApp, BuildWebAppTargetOptions>>
>;
readonly configureHooks: WaterfallHook<BuildWebAppConfigurationHooks>;
readonly context: WaterfallHook<BuildWebAppContext>;
readonly steps: WaterfallHook<readonly Step[], BuildWebAppHookContext>;
readonly steps: WaterfallHook<ReadonlyArray<Step>, BuildWebAppHookContext>;
readonly target: SeriesHook<

@@ -380,3 +391,3 @@ BuildProjectTargetDetails<

readonly steps: WaterfallHook<
readonly Step[],
ReadonlyArray<Step>,
DevPackageConfigurationHooks,

@@ -416,3 +427,3 @@ DevPackageContext

readonly steps: WaterfallHook<
readonly Step[],
ReadonlyArray<Step>,
DevServiceConfigurationHooks,

@@ -447,3 +458,3 @@ DevServiceContext

readonly steps: WaterfallHook<
readonly Step[],
ReadonlyArray<Step>,
DevWebAppConfigurationHooks,

@@ -450,0 +461,0 @@ DevWebAppContext

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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