@sitecore-jss/sitecore-pipelines
Advanced tools
Comparing version 12.0.0 to 12.0.1
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -37,3 +38,2 @@ }); | ||
}; | ||
var _this = this; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -45,3 +45,3 @@ var pipelinesRegistry_1 = require("./pipelinesRegistry"); | ||
var _b = _a.fileGlobs, fileGlobs = _b === void 0 ? [] : _b, _c = _a.workingDirectory, workingDirectory = _c === void 0 ? '' : _c, _d = _a.existingConfig, existingConfig = _d === void 0 ? {} : _d, _e = _a.allowEmptyGlobs, allowEmptyGlobs = _e === void 0 ? false : _e, createPipelinesRegistryImplementation = _a.createPipelinesRegistryImplementation, importModulesImplementation = _a.importModulesImplementation; | ||
return __awaiter(_this, void 0, void 0, function () { | ||
return __awaiter(void 0, void 0, void 0, function () { | ||
var pipelinesRegistry, moduleWrappers, _i, moduleWrappers_1, moduleWrapper, pipeline; | ||
@@ -48,0 +48,0 @@ return __generator(this, function (_f) { |
@@ -14,6 +14,7 @@ "use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -54,7 +55,8 @@ }); | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) | ||
t[p[i]] = s[p[i]]; | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
var _this = this; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -72,3 +74,3 @@ var utils_1 = require("./utils"); | ||
} | ||
return __assign({}, processor, { moduleWrapper: utils_1.importModules(importArgs)[0] }); | ||
return __assign(__assign({}, processor), { moduleWrapper: utils_1.importModules(importArgs)[0] }); | ||
} | ||
@@ -80,3 +82,3 @@ return processor; | ||
var processor = _a.processor, args = _a.args; | ||
return __awaiter(_this, void 0, void 0, function () { | ||
return __awaiter(void 0, void 0, void 0, function () { | ||
var processorArgs, otherProcessorInfo, mergedArgs, result, module_1, resultArgs; | ||
@@ -90,3 +92,3 @@ return __generator(this, function (_b) { | ||
processorArgs = processor.args, otherProcessorInfo = __rest(processor, ["args"]); | ||
mergedArgs = __assign({}, args, processorArgs, { processor: __assign({}, otherProcessorInfo) }); | ||
mergedArgs = __assign(__assign(__assign({}, args), processorArgs), { processor: __assign({}, otherProcessorInfo) }); | ||
if (!(typeof processor.process === 'function')) return [3 /*break*/, 2]; | ||
@@ -122,3 +124,3 @@ return [4 /*yield*/, processor.process(mergedArgs)]; | ||
var processors = _a.processors, _b = _a.pipelineArgs, pipelineArgs = _b === void 0 ? {} : _b; | ||
return __awaiter(_this, void 0, void 0, function () { | ||
return __awaiter(void 0, void 0, void 0, function () { | ||
var finalProcessors, pipelineResult, _i, finalProcessors_1, processor; | ||
@@ -154,3 +156,3 @@ return __generator(this, function (_c) { | ||
*/ | ||
exports.run = function (pipeline) { return __awaiter(_this, void 0, void 0, function () { | ||
exports.run = function (pipeline) { return __awaiter(void 0, void 0, void 0, function () { | ||
var pipelineName, pipelineResult; | ||
@@ -184,3 +186,3 @@ return __generator(this, function (_a) { | ||
*/ | ||
exports.runWithCompilers = function (compilers) { return function (pipeline) { return __awaiter(_this, void 0, void 0, function () { | ||
exports.runWithCompilers = function (compilers) { return function (pipeline) { return __awaiter(void 0, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
@@ -187,0 +189,0 @@ switch (_a.label) { |
@@ -14,6 +14,7 @@ "use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -49,3 +50,9 @@ }); | ||
}; | ||
var _this = this; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -101,7 +108,7 @@ var pipeline_1 = require("./pipeline"); | ||
if (predicate) { | ||
return predicate(processors.slice()); // weak attempt at immutability | ||
return predicate(__spreadArrays(processors)); // weak attempt at immutability | ||
} | ||
return processors.slice(); // weak attempt at immutability | ||
return __spreadArrays(processors); // weak attempt at immutability | ||
}; | ||
var run = function () { return __awaiter(_this, void 0, void 0, function () { | ||
var run = function () { return __awaiter(void 0, void 0, void 0, function () { | ||
var pipeline; | ||
@@ -113,3 +120,3 @@ return __generator(this, function (_a) { | ||
}); }; | ||
var runWithCompilers = function (compilers) { return __awaiter(_this, void 0, void 0, function () { | ||
var runWithCompilers = function (compilers) { return __awaiter(void 0, void 0, void 0, function () { | ||
var pipeline; | ||
@@ -116,0 +123,0 @@ return __generator(this, function (_a) { |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -37,3 +38,2 @@ }); | ||
}; | ||
var _this = this; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -61,3 +61,3 @@ var configLoader_1 = require("./configLoader"); | ||
}); | ||
var runner = function () { return __awaiter(_this, void 0, void 0, function () { | ||
var runner = function () { return __awaiter(void 0, void 0, void 0, function () { | ||
var compilers; | ||
@@ -64,0 +64,0 @@ return __generator(this, function (_a) { |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -37,3 +38,2 @@ }); | ||
}; | ||
var _this = this; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -132,3 +132,3 @@ var fs_1 = require("fs"); | ||
if (compilers === void 0) { compilers = []; } | ||
return __awaiter(_this, void 0, void 0, function () { | ||
return __awaiter(void 0, void 0, void 0, function () { | ||
var imports, _i, compilers_1, compiler; | ||
@@ -135,0 +135,0 @@ return __generator(this, function (_a) { |
{ | ||
"name": "@sitecore-jss/sitecore-pipelines", | ||
"version": "12.0.0", | ||
"version": "12.0.1", | ||
"description": "Sitecore Pipelines in JavaScript.", | ||
@@ -28,21 +28,21 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"glob": "^7.1.3" | ||
"glob": "^7.1.4" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.1.6", | ||
"@types/chai": "^4.2.3", | ||
"@types/glob": "^7.1.1", | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.12.0", | ||
"@types/sinon": "^5.0.5", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.7.11", | ||
"@types/sinon": "^7.5.0", | ||
"chai": "^4.2.0", | ||
"cross-env": "^5.2.0", | ||
"del": "^3.0.0", | ||
"del-cli": "^1.1.0", | ||
"mocha": "^5.2.0", | ||
"sinon": "^7.0.0", | ||
"ts-node": "^7.0.1", | ||
"typescript": "^3.1.3" | ||
"cross-env": "^6.0.3", | ||
"del": "^5.1.0", | ||
"del-cli": "^3.0.0", | ||
"mocha": "^6.2.1", | ||
"sinon": "^7.5.0", | ||
"ts-node": "^8.4.1", | ||
"typescript": "^3.6.3" | ||
}, | ||
"types": "types/index.d.ts", | ||
"gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b" | ||
"gitHead": "5762164a13e5d997cda8cc8e779bd99e3f74f80a" | ||
} |
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
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
298462
26
885
0
Updatedglob@^7.1.4