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

promise-toolkit-factory

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise-toolkit-factory - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

lib/appenders/classes.js

@@ -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');

2

package.json
{
"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");
```
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