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

@sewing-kit/hooks

Package Overview
Dependencies
Maintainers
1
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.1.0 to 0.1.1

7

build/cjs/index.js

@@ -7,2 +7,5 @@ "use strict";

exports.WaterfallHook = exports.SeriesHook = exports.UNSET = void 0;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
// ==================================================================

@@ -16,3 +19,3 @@ // PRIMITIVES

constructor() {
this.hooks = new Set();
_defineProperty(this, "hooks", new Set());
}

@@ -46,3 +49,3 @@

constructor() {
this.hooks = new Set();
_defineProperty(this, "hooks", new Set());
}

@@ -49,0 +52,0 @@

@@ -1,2 +0,3 @@

declare type Step = import('@sewing-kit/core').Step;
import type { Step } from '@sewing-kit/core';
import type { Runtime } from '@sewing-kit/model';
export declare const UNSET: unique symbol;

@@ -32,2 +33,9 @@ declare type Unset = typeof UNSET;

}
export interface BuildProjectVariantCustomContext {
}
export interface BuildProjectVariantCoreContext {
readonly runtimes: readonly Runtime[];
}
export interface BuildProjectVariantContext extends BuildProjectVariantCoreContext, Partial<BuildProjectVariantCustomContext> {
}
export interface BuildPackageOptions {

@@ -47,5 +55,17 @@ }

}
export interface BuildPackageVariantCustomContext extends BuildProjectVariantCustomContext {
}
interface BuildPackageVariantCoreContext extends BuildProjectVariantCoreContext {
}
export interface BuildPackageVariantContext extends BuildPackageVariantCoreContext, Partial<BuildPackageVariantCustomContext> {
}
export interface BuildPackageVariantHookContext {
readonly variant: BuildPackageVariantContext;
readonly project: BuildPackageContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildPackageVariantHooks {
readonly configure: SeriesHook<BuildPackageConfigurationHooks>;
readonly steps: WaterfallHook<readonly Step[], BuildPackageConfigurationHooks, BuildPackageContext>;
readonly context: WaterfallHook<BuildPackageVariantContext>;
readonly configure: SeriesHook<BuildPackageConfigurationHooks, BuildPackageVariantHookContext>;
readonly steps: WaterfallHook<readonly Step[], BuildPackageConfigurationHooks, BuildPackageVariantHookContext>;
}

@@ -56,9 +76,13 @@ export interface BuildPackageVariantDetails {

}
export interface BuildPackageHookContext {
readonly project: BuildPackageContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildPackageHooks {
readonly variants: WaterfallHook<readonly Partial<BuildPackageOptions>[]>;
readonly configureHooks: WaterfallHook<BuildPackageConfigurationHooks>;
readonly configure: SeriesHook<BuildPackageConfigurationHooks>;
readonly configure: SeriesHook<BuildPackageConfigurationHooks, BuildPackageHookContext>;
readonly context: WaterfallHook<BuildPackageContext>;
readonly steps: WaterfallHook<readonly Step[], BuildPackageConfigurationHooks, BuildPackageHookContext>;
readonly variant: SeriesHook<BuildPackageVariantDetails>;
readonly context: WaterfallHook<BuildPackageContext>;
readonly steps: WaterfallHook<readonly Step[], BuildPackageConfigurationHooks, BuildPackageContext>;
}

@@ -79,5 +103,17 @@ export interface BuildServiceOptions {

}
export interface BuildServiceVariantCustomContext extends BuildProjectVariantCustomContext {
}
interface BuildServiceVariantCoreContext extends BuildProjectVariantCoreContext {
}
export interface BuildServiceVariantContext extends BuildServiceVariantCoreContext, Partial<BuildServiceVariantCustomContext> {
}
export interface BuildServiceVariantHookContext {
readonly variant: BuildServiceVariantContext;
readonly project: BuildServiceContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildServiceVariantHooks {
readonly configure: SeriesHook<BuildServiceConfigurationHooks>;
readonly steps: WaterfallHook<readonly Step[], BuildServiceConfigurationHooks, BuildServiceContext>;
readonly context: WaterfallHook<BuildServiceVariantContext>;
readonly configure: SeriesHook<BuildServiceConfigurationHooks, BuildServiceVariantHookContext>;
readonly steps: WaterfallHook<readonly Step[], BuildServiceConfigurationHooks, BuildServiceVariantHookContext>;
}

@@ -88,8 +124,12 @@ export interface BuildServiceVariantDetails {

}
export interface BuildServiceHookContext {
readonly project: BuildServiceContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildServiceHooks {
readonly variants: WaterfallHook<readonly Partial<BuildServiceOptions>[]>;
readonly configureHooks: WaterfallHook<BuildServiceConfigurationHooks>;
readonly configure: SeriesHook<BuildServiceConfigurationHooks>;
readonly configure: SeriesHook<BuildServiceConfigurationHooks, BuildServiceHookContext>;
readonly context: WaterfallHook<BuildServiceContext>;
readonly steps: WaterfallHook<readonly Step[], BuildServiceConfigurationHooks, BuildServiceContext>;
readonly steps: WaterfallHook<readonly Step[], BuildServiceConfigurationHooks, BuildServiceHookContext>;
readonly variant: SeriesHook<BuildServiceVariantDetails>;

@@ -111,5 +151,17 @@ }

}
export interface BuildWebAppVariantCustomContext extends BuildProjectVariantCustomContext {
}
interface BuildWebAppVariantCoreContext extends BuildProjectVariantCoreContext {
}
export interface BuildWebAppVariantContext extends BuildWebAppVariantCoreContext, Partial<BuildWebAppVariantCustomContext> {
}
export interface BuildWebAppVariantHookContext {
readonly variant: BuildWebAppVariantContext;
readonly project: BuildWebAppContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildWebAppVariantHooks {
readonly configure: SeriesHook<BuildWebAppConfigurationHooks>;
readonly steps: WaterfallHook<readonly Step[], BuildWebAppConfigurationHooks, BuildWebAppContext>;
readonly context: WaterfallHook<BuildWebAppVariantContext>;
readonly configure: SeriesHook<BuildWebAppConfigurationHooks, BuildWebAppVariantHookContext>;
readonly steps: WaterfallHook<readonly Step[], BuildWebAppConfigurationHooks, BuildWebAppVariantHookContext>;
}

@@ -120,8 +172,12 @@ export interface BuildWebAppVariantDetails {

}
export interface BuildWebAppHookContext {
readonly project: BuildWebAppContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildWebAppHooks {
readonly variants: WaterfallHook<readonly Partial<BuildWebAppOptions>[]>;
readonly configureHooks: WaterfallHook<BuildWebAppConfigurationHooks>;
readonly configure: SeriesHook<BuildWebAppConfigurationHooks>;
readonly configure: SeriesHook<BuildWebAppConfigurationHooks, BuildWebAppHookContext>;
readonly context: WaterfallHook<BuildWebAppContext>;
readonly steps: WaterfallHook<readonly Step[], BuildWebAppConfigurationHooks, BuildWebAppContext>;
readonly steps: WaterfallHook<readonly Step[], BuildWebAppConfigurationHooks, BuildWebAppHookContext>;
readonly variant: SeriesHook<BuildWebAppVariantDetails>;

@@ -128,0 +184,0 @@ }

@@ -1,2 +0,3 @@

declare type Step = import('@sewing-kit/core').Step;
import type { Step } from '@sewing-kit/core';
import type { Runtime } from '@sewing-kit/model';
export declare const UNSET: unique symbol;

@@ -32,2 +33,9 @@ declare type Unset = typeof UNSET;

}
export interface BuildProjectVariantCustomContext {
}
export interface BuildProjectVariantCoreContext {
readonly runtimes: readonly Runtime[];
}
export interface BuildProjectVariantContext extends BuildProjectVariantCoreContext, Partial<BuildProjectVariantCustomContext> {
}
export interface BuildPackageOptions {

@@ -47,5 +55,17 @@ }

}
export interface BuildPackageVariantCustomContext extends BuildProjectVariantCustomContext {
}
interface BuildPackageVariantCoreContext extends BuildProjectVariantCoreContext {
}
export interface BuildPackageVariantContext extends BuildPackageVariantCoreContext, Partial<BuildPackageVariantCustomContext> {
}
export interface BuildPackageVariantHookContext {
readonly variant: BuildPackageVariantContext;
readonly project: BuildPackageContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildPackageVariantHooks {
readonly configure: SeriesHook<BuildPackageConfigurationHooks>;
readonly steps: WaterfallHook<readonly Step[], BuildPackageConfigurationHooks, BuildPackageContext>;
readonly context: WaterfallHook<BuildPackageVariantContext>;
readonly configure: SeriesHook<BuildPackageConfigurationHooks, BuildPackageVariantHookContext>;
readonly steps: WaterfallHook<readonly Step[], BuildPackageConfigurationHooks, BuildPackageVariantHookContext>;
}

@@ -56,9 +76,13 @@ export interface BuildPackageVariantDetails {

}
export interface BuildPackageHookContext {
readonly project: BuildPackageContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildPackageHooks {
readonly variants: WaterfallHook<readonly Partial<BuildPackageOptions>[]>;
readonly configureHooks: WaterfallHook<BuildPackageConfigurationHooks>;
readonly configure: SeriesHook<BuildPackageConfigurationHooks>;
readonly configure: SeriesHook<BuildPackageConfigurationHooks, BuildPackageHookContext>;
readonly context: WaterfallHook<BuildPackageContext>;
readonly steps: WaterfallHook<readonly Step[], BuildPackageConfigurationHooks, BuildPackageHookContext>;
readonly variant: SeriesHook<BuildPackageVariantDetails>;
readonly context: WaterfallHook<BuildPackageContext>;
readonly steps: WaterfallHook<readonly Step[], BuildPackageConfigurationHooks, BuildPackageContext>;
}

@@ -79,5 +103,17 @@ export interface BuildServiceOptions {

}
export interface BuildServiceVariantCustomContext extends BuildProjectVariantCustomContext {
}
interface BuildServiceVariantCoreContext extends BuildProjectVariantCoreContext {
}
export interface BuildServiceVariantContext extends BuildServiceVariantCoreContext, Partial<BuildServiceVariantCustomContext> {
}
export interface BuildServiceVariantHookContext {
readonly variant: BuildServiceVariantContext;
readonly project: BuildServiceContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildServiceVariantHooks {
readonly configure: SeriesHook<BuildServiceConfigurationHooks>;
readonly steps: WaterfallHook<readonly Step[], BuildServiceConfigurationHooks, BuildServiceContext>;
readonly context: WaterfallHook<BuildServiceVariantContext>;
readonly configure: SeriesHook<BuildServiceConfigurationHooks, BuildServiceVariantHookContext>;
readonly steps: WaterfallHook<readonly Step[], BuildServiceConfigurationHooks, BuildServiceVariantHookContext>;
}

@@ -88,8 +124,12 @@ export interface BuildServiceVariantDetails {

}
export interface BuildServiceHookContext {
readonly project: BuildServiceContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildServiceHooks {
readonly variants: WaterfallHook<readonly Partial<BuildServiceOptions>[]>;
readonly configureHooks: WaterfallHook<BuildServiceConfigurationHooks>;
readonly configure: SeriesHook<BuildServiceConfigurationHooks>;
readonly configure: SeriesHook<BuildServiceConfigurationHooks, BuildServiceHookContext>;
readonly context: WaterfallHook<BuildServiceContext>;
readonly steps: WaterfallHook<readonly Step[], BuildServiceConfigurationHooks, BuildServiceContext>;
readonly steps: WaterfallHook<readonly Step[], BuildServiceConfigurationHooks, BuildServiceHookContext>;
readonly variant: SeriesHook<BuildServiceVariantDetails>;

@@ -111,5 +151,17 @@ }

}
export interface BuildWebAppVariantCustomContext extends BuildProjectVariantCustomContext {
}
interface BuildWebAppVariantCoreContext extends BuildProjectVariantCoreContext {
}
export interface BuildWebAppVariantContext extends BuildWebAppVariantCoreContext, Partial<BuildWebAppVariantCustomContext> {
}
export interface BuildWebAppVariantHookContext {
readonly variant: BuildWebAppVariantContext;
readonly project: BuildWebAppContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildWebAppVariantHooks {
readonly configure: SeriesHook<BuildWebAppConfigurationHooks>;
readonly steps: WaterfallHook<readonly Step[], BuildWebAppConfigurationHooks, BuildWebAppContext>;
readonly context: WaterfallHook<BuildWebAppVariantContext>;
readonly configure: SeriesHook<BuildWebAppConfigurationHooks, BuildWebAppVariantHookContext>;
readonly steps: WaterfallHook<readonly Step[], BuildWebAppConfigurationHooks, BuildWebAppVariantHookContext>;
}

@@ -120,8 +172,12 @@ export interface BuildWebAppVariantDetails {

}
export interface BuildWebAppHookContext {
readonly project: BuildWebAppContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildWebAppHooks {
readonly variants: WaterfallHook<readonly Partial<BuildWebAppOptions>[]>;
readonly configureHooks: WaterfallHook<BuildWebAppConfigurationHooks>;
readonly configure: SeriesHook<BuildWebAppConfigurationHooks>;
readonly configure: SeriesHook<BuildWebAppConfigurationHooks, BuildWebAppHookContext>;
readonly context: WaterfallHook<BuildWebAppContext>;
readonly steps: WaterfallHook<readonly Step[], BuildWebAppConfigurationHooks, BuildWebAppContext>;
readonly steps: WaterfallHook<readonly Step[], BuildWebAppConfigurationHooks, BuildWebAppHookContext>;
readonly variant: SeriesHook<BuildWebAppVariantDetails>;

@@ -128,0 +184,0 @@ }

{
"name": "@sewing-kit/hooks",
"license": "MIT",
"version": "0.1.0",
"version": "0.1.1",
"sideEffects": false,

@@ -11,5 +11,6 @@ "publishConfig": {

"dependencies": {
"@sewing-kit/core": "^0.0.39"
"@sewing-kit/core": "^0.0.39",
"@sewing-kit/model": "^0.0.15"
},
"gitHead": "56aa32235e275d34ad6c12f45fa959e5dcaee80f"
"gitHead": "34ddec36939efe6e419fbda256f48edc13b06d8f"
}

@@ -1,2 +0,3 @@

type Step = import('@sewing-kit/core').Step;
import type {Step} from '@sewing-kit/core';
import type {Runtime} from '@sewing-kit/model';

@@ -127,2 +128,10 @@ // ==================================================================

export interface BuildProjectVariantCustomContext {}
export interface BuildProjectVariantCoreContext {
readonly runtimes: readonly Runtime[];
}
export interface BuildProjectVariantContext
extends BuildProjectVariantCoreContext,
Partial<BuildProjectVariantCustomContext> {}
// PACKAGE

@@ -151,8 +160,28 @@

export interface BuildPackageVariantCustomContext
extends BuildProjectVariantCustomContext {}
interface BuildPackageVariantCoreContext
extends BuildProjectVariantCoreContext {}
export interface BuildPackageVariantContext
extends BuildPackageVariantCoreContext,
Partial<BuildPackageVariantCustomContext> {}
export interface BuildPackageVariantHookContext {
readonly variant: BuildPackageVariantContext;
readonly project: BuildPackageContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildPackageVariantHooks {
readonly configure: SeriesHook<BuildPackageConfigurationHooks>;
readonly context: WaterfallHook<BuildPackageVariantContext>;
readonly configure: SeriesHook<
BuildPackageConfigurationHooks,
BuildPackageVariantHookContext
>;
readonly steps: WaterfallHook<
readonly Step[],
BuildPackageConfigurationHooks,
BuildPackageContext
BuildPackageVariantHookContext
>;

@@ -166,7 +195,14 @@ }

export interface BuildPackageHookContext {
readonly project: BuildPackageContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildPackageHooks {
readonly variants: WaterfallHook<readonly Partial<BuildPackageOptions>[]>;
readonly configureHooks: WaterfallHook<BuildPackageConfigurationHooks>;
readonly configure: SeriesHook<BuildPackageConfigurationHooks>;
readonly variant: SeriesHook<BuildPackageVariantDetails>;
readonly configure: SeriesHook<
BuildPackageConfigurationHooks,
BuildPackageHookContext
>;
readonly context: WaterfallHook<BuildPackageContext>;

@@ -176,4 +212,5 @@ readonly steps: WaterfallHook<

BuildPackageConfigurationHooks,
BuildPackageContext
BuildPackageHookContext
>;
readonly variant: SeriesHook<BuildPackageVariantDetails>;
}

@@ -204,8 +241,28 @@

export interface BuildServiceVariantCustomContext
extends BuildProjectVariantCustomContext {}
interface BuildServiceVariantCoreContext
extends BuildProjectVariantCoreContext {}
export interface BuildServiceVariantContext
extends BuildServiceVariantCoreContext,
Partial<BuildServiceVariantCustomContext> {}
export interface BuildServiceVariantHookContext {
readonly variant: BuildServiceVariantContext;
readonly project: BuildServiceContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildServiceVariantHooks {
readonly configure: SeriesHook<BuildServiceConfigurationHooks>;
readonly context: WaterfallHook<BuildServiceVariantContext>;
readonly configure: SeriesHook<
BuildServiceConfigurationHooks,
BuildServiceVariantHookContext
>;
readonly steps: WaterfallHook<
readonly Step[],
BuildServiceConfigurationHooks,
BuildServiceContext
BuildServiceVariantHookContext
>;

@@ -219,6 +276,14 @@ }

export interface BuildServiceHookContext {
readonly project: BuildServiceContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildServiceHooks {
readonly variants: WaterfallHook<readonly Partial<BuildServiceOptions>[]>;
readonly configureHooks: WaterfallHook<BuildServiceConfigurationHooks>;
readonly configure: SeriesHook<BuildServiceConfigurationHooks>;
readonly configure: SeriesHook<
BuildServiceConfigurationHooks,
BuildServiceHookContext
>;
readonly context: WaterfallHook<BuildServiceContext>;

@@ -228,3 +293,3 @@ readonly steps: WaterfallHook<

BuildServiceConfigurationHooks,
BuildServiceContext
BuildServiceHookContext
>;

@@ -257,8 +322,28 @@ readonly variant: SeriesHook<BuildServiceVariantDetails>;

export interface BuildWebAppVariantCustomContext
extends BuildProjectVariantCustomContext {}
interface BuildWebAppVariantCoreContext
extends BuildProjectVariantCoreContext {}
export interface BuildWebAppVariantContext
extends BuildWebAppVariantCoreContext,
Partial<BuildWebAppVariantCustomContext> {}
export interface BuildWebAppVariantHookContext {
readonly variant: BuildWebAppVariantContext;
readonly project: BuildWebAppContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildWebAppVariantHooks {
readonly configure: SeriesHook<BuildWebAppConfigurationHooks>;
readonly context: WaterfallHook<BuildWebAppVariantContext>;
readonly configure: SeriesHook<
BuildWebAppConfigurationHooks,
BuildWebAppVariantHookContext
>;
readonly steps: WaterfallHook<
readonly Step[],
BuildWebAppConfigurationHooks,
BuildWebAppContext
BuildWebAppVariantHookContext
>;

@@ -272,6 +357,14 @@ }

export interface BuildWebAppHookContext {
readonly project: BuildWebAppContext;
readonly workspace: BuildWorkspaceContext;
}
export interface BuildWebAppHooks {
readonly variants: WaterfallHook<readonly Partial<BuildWebAppOptions>[]>;
readonly configureHooks: WaterfallHook<BuildWebAppConfigurationHooks>;
readonly configure: SeriesHook<BuildWebAppConfigurationHooks>;
readonly configure: SeriesHook<
BuildWebAppConfigurationHooks,
BuildWebAppHookContext
>;
readonly context: WaterfallHook<BuildWebAppContext>;

@@ -281,3 +374,3 @@ readonly steps: WaterfallHook<

BuildWebAppConfigurationHooks,
BuildWebAppContext
BuildWebAppHookContext
>;

@@ -284,0 +377,0 @@ readonly variant: SeriesHook<BuildWebAppVariantDetails>;

@@ -14,3 +14,3 @@ {

"include": ["src/**/*.ts"],
"references": [{"path": "../core"}]
"references": [{"path": "../core"}, {"path": "../model"}]
}

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