@priestine/pipeline
Advanced tools
Comparing version 3.0.0 to 4.0.0
{ | ||
"name": "@priestine/pipeline", | ||
"version": "v3.0.0", | ||
"version": "v4.0.0", | ||
"description": "Simple and reusable pipelines with abstracted asynchrony", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,4 +9,2 @@ # @priestine/pipeline | ||
## Table of Contents | ||
## Features | ||
@@ -19,3 +17,2 @@ | ||
- _Pipeline_ is a **Monoid** (right identity and left identity) with `p.empty()` and `P.empty()` | ||
- _IntermediatePipeline_ is a kind of _Pipeline_ that operates | ||
@@ -25,3 +22,3 @@ ## Installation | ||
```bash | ||
npm install @priestine/pipeline --save | ||
npm i -S @priestine/pipeline | ||
``` | ||
@@ -28,0 +25,0 @@ |
export * from "./intermediate"; | ||
export * from "./is-intermediate"; |
@@ -7,3 +7,2 @@ "use strict"; | ||
__export(require("./intermediate")); | ||
__export(require("./is-intermediate")); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var is_intermediate_1 = require("./is-intermediate"); | ||
var Intermediate = /** @class */ (function () { | ||
@@ -12,3 +11,3 @@ function Intermediate(value) { | ||
Intermediate.isIntermediate = function (x) { | ||
return is_intermediate_1.isIntermediate(x); | ||
return typeof x == "object" && x != null && "intermediate" in x; | ||
}; | ||
@@ -15,0 +14,0 @@ return Intermediate; |
@@ -49,3 +49,3 @@ import { BasePipeline } from "./base-pipeline"; | ||
*/ | ||
process(ctx: TReserved): Promise<TResult>; | ||
process(ctx?: TReserved): Promise<TResult>; | ||
} |
@@ -129,3 +129,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var result, i; | ||
var result, i, done; | ||
return __generator(this, function (_a) { | ||
@@ -149,3 +149,6 @@ switch (_a.label) { | ||
case 2: | ||
result = _a.sent(); | ||
done = _a.sent(); | ||
if (done != null) { | ||
result = done; | ||
} | ||
_a.label = 3; | ||
@@ -152,0 +155,0 @@ case 3: |
@@ -46,3 +46,3 @@ import { BasePipeline } from "./base-pipeline"; | ||
*/ | ||
process(ctx: TReserved): TResult; | ||
process(ctx?: TReserved): TResult; | ||
} |
@@ -101,3 +101,6 @@ "use strict"; | ||
} | ||
result = this._middleware[i](result); | ||
var done = this._middleware[i](result); | ||
if (done != null) { | ||
result = done; | ||
} | ||
} | ||
@@ -104,0 +107,0 @@ return result; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
37154
45
651
74