@sitecore-jss/sitecore-pipelines
Advanced tools
Comparing version 8.0.3 to 9.0.0
@@ -17,4 +17,4 @@ "use strict"; | ||
while (_) try { | ||
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [0, t.value]; | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
@@ -21,0 +21,0 @@ case 0: case 1: t = op; break; |
@@ -25,4 +25,4 @@ "use strict"; | ||
while (_) try { | ||
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [0, t.value]; | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
@@ -174,3 +174,2 @@ case 0: case 1: t = op; break; | ||
* | ||
* @param compilers | ||
*/ | ||
@@ -177,0 +176,0 @@ exports.runWithCompilers = function (compilers) { return function (pipeline) { return __awaiter(_this, void 0, void 0, function () { |
@@ -25,4 +25,4 @@ "use strict"; | ||
while (_) try { | ||
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [0, t.value]; | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
@@ -29,0 +29,0 @@ case 0: case 1: t = op; break; |
@@ -11,4 +11,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// todo: this looks an awful lot like a mini database/collection... | ||
// is this the right pattern to use? and if so, should we look at an in-memory JS db? (e.g. LokiJS, TaffyDB, PouchDB, etc...) | ||
exports.createPipelinesRegistry = function (existingPipelines) { | ||
@@ -15,0 +13,0 @@ if (existingPipelines === void 0) { existingPipelines = {}; } |
@@ -17,4 +17,4 @@ "use strict"; | ||
while (_) try { | ||
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [0, t.value]; | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
@@ -21,0 +21,0 @@ case 0: case 1: t = op; break; |
@@ -17,4 +17,4 @@ "use strict"; | ||
while (_) try { | ||
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [0, t.value]; | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
@@ -21,0 +21,0 @@ case 0: case 1: t = op; break; |
{ | ||
"name": "@sitecore-jss/sitecore-pipelines", | ||
"version": "8.0.3", | ||
"version": "9.0.0", | ||
"description": "Sitecore Pipelines in JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,3 +0,4 @@ | ||
export { pipelineFactory, processorFactory } from './pipelineFactory'; | ||
export { pipelineFactory, processorFactory, Processor, Pipeline, ExecutablePipeline } from './pipelineFactory'; | ||
export { configLoader } from './configLoader'; | ||
export { run as runPipeline, runWithCompilers as runPipelineWithCompilers } from './pipeline'; | ||
export { PipelineRegistry } from './pipelinesRegistry'; |
@@ -17,4 +17,3 @@ import { ExecutablePipeline, Processor } from './pipelineFactory'; | ||
* | ||
* @param compilers | ||
*/ | ||
export declare const runWithCompilers: (compilers: any) => (pipeline: any) => Promise<any>; |
@@ -67,3 +67,6 @@ export interface Processor { | ||
export declare const pipelineFactory: { | ||
/** | ||
* Create a pipeline | ||
*/ | ||
create: (name?: string) => Pipeline; | ||
}; |
@@ -1,19 +0,13 @@ | ||
import { Pipeline, Processor } from './pipelineFactory'; | ||
export declare const createPipelinesRegistry: (existingPipelines?: { | ||
[k: string]: Pipeline; | ||
}) => { | ||
import { Pipeline } from './pipelineFactory'; | ||
export interface PipelineRegistry { | ||
addPipeline: (pipeline: Pipeline) => void; | ||
updatePipeline: (pipeline: Pipeline, pipelineName?: string) => void; | ||
deletePipeline: (pipelineName: string) => void; | ||
getPipeline: (pipelineName: string) => { | ||
name: string; | ||
args: any; | ||
processors: () => Processor[]; | ||
addProcessor: (processor: Processor) => void; | ||
run: () => Promise<any>; | ||
runWithCompilers: (compilers: string[]) => Promise<any>; | ||
}; | ||
getPipeline: (pipelineName: string) => Pipeline; | ||
getPipelines: () => { | ||
[x: string]: Pipeline; | ||
[key: string]: Pipeline; | ||
}; | ||
}; | ||
} | ||
export declare const createPipelinesRegistry: (existingPipelines?: { | ||
[k: string]: Pipeline; | ||
}) => PipelineRegistry; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49895
851
1