promise-toolkit-factory
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -25,4 +25,2 @@ "use strict"; | ||
throw new Error('t.conf.objs is not defined'); | ||
if(typeof t.conf.objs === 'undefined') | ||
throw new Error('t.conf.objs is not defined'); | ||
if(t.conf.objs.length === 0) | ||
@@ -29,0 +27,0 @@ throw new Error('t.conf.objs array is empty'); |
{ | ||
"name": "promise-toolkit-factory", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "factory for creating promised function flows", | ||
@@ -5,0 +5,0 @@ "main": "app.js", |
@@ -44,2 +44,3 @@ | ||
```javascript | ||
class exampleC{ | ||
@@ -57,8 +58,10 @@ func1(json_object){ | ||
} | ||
``` | ||
The error will throw back to the latest promise which will catch and return a reject for that promise. | ||
Usage Sample 1 | ||
## Usage Sample 1 | ||
This defines 2 class objects and 4 function flows. Each flow is done in sequence, with a json object passed to each subsequence function. A fork can simply be values passed to the appropriate flow. | ||
--------- | ||
```js | ||
@@ -88,2 +91,3 @@ var log4js = require("log4js") | ||
```js | ||
class exampleC{ | ||
@@ -101,2 +105,3 @@ func1(json_object){ | ||
} | ||
``` | ||
@@ -106,6 +111,8 @@ The error will throw back to the latest promise which will catch and return a reject for that promise. | ||
Usage Sample 2 | ||
## Usage Sample 2 | ||
This defines 2 class objects and 4 function flows from above but no file logging is defined. | ||
--------- | ||
```js | ||
const ptf = require("promise-toolkit-factory"); | ||
@@ -130,2 +137,3 @@ | ||
console.log("test complete"); | ||
``` |
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
134
19623
433