New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

worksmith

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

worksmith - npm Package Compare versions

Comparing version 0.0.8 to 0.0.10

test/task-regex-test.js

4

package.json
{
"name": "worksmith",
"version": "0.0.8",
"version": "0.0.10",
"description": "A purely functional workflow engine ",

@@ -25,7 +25,9 @@ "main": "index.js",

"dependencies": {
"async": "^0.9.0",
"debug": "^2.1.3",
"handlebars": "^3.0.2",
"lodash": "^3.7.0",
"pg": "^4.3.0",
"xregexp": "^2.0.0"
}
}

@@ -1,2 +0,2 @@

# WorkSmith
# worksmith

@@ -9,9 +9,9 @@ ```npm i worksmith --save```

## Highlights
- WorkSmith comes with an extensible task library
- worksmith comes with an extensible task library
- Control flow: ```sequence``` , ```parallel``` and ```warezSequence```
- IO: ```log```,```sql/pg```
- Tansformation: ```map```, ```regex```, ```set```
- Extensibitly: ```code``` task type, create custom task types by creating files in the tasks folder
- Extensibitly: ```code``` activity , create custom task types by creating files in the tasks folder
- with WorkSmith you can build a complex async process chain from functional steps (tasks) - yet keep the application easy to understand and each functional step easy to developer and maintain. forget ```if(err) return next(err)```
- with worksmith you can build a complex async process chain from functional steps (tasks) - yet keep the application easy to understand and each functional step easy to developer and maintain. forget ```if(err) return next(err)```
- workflow steps are unaware about each other - they communicate over a shared context. WorkSmith provides an intuitive expression syntax for working with the context in a workflow definitions

@@ -21,2 +21,3 @@ ## usage

### A workflow definition:
This can be in a config file, or as part of your js code as a variable.

@@ -69,3 +70,3 @@ ```javascript

WorkSmith lets you build your activities on a super easy way
worksmith lets you build your activities on a super easy way
Place the following code as ```"hello-world.js"``` in the ```tasks``` folder

@@ -72,0 +73,0 @@

@@ -1,5 +0,2 @@

var debug = require('debug')('workflow:activities:sql:pg')
var pg = require('pg')
var _ = require('lodash')
var workflow = require('../')
var debug = require('debug')('workflow:activities:code')

@@ -6,0 +3,0 @@

@@ -5,2 +5,3 @@ var debug = require('debug')('workflow:activities:map')

//TODO: refactor and place this to wf creator level
Object.keys(definition).forEach(function(key) {

@@ -7,0 +8,0 @@ if (key[0] === ">") {

@@ -6,2 +6,12 @@ var debug = require('debug')('workflow:activities:log')

module.exports = function (node) {
//TODO: refactor and place this to wf creator level
Object.keys(node).forEach(function (key) {
if (key[0] === ">") {
node.value = node[key];
node.resultTo = key.slice(1);
delete node[key]
}
});
//for performance considerations the regex pattern should be constructed w/o using context variables
var p = XRegExp(node.pattern,'x');

@@ -8,0 +18,0 @@

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