function-tree
Advanced tools
Comparing version 0.4.7 to 0.5.0-0-alpha.012818d6
{ | ||
"name": "function-tree", | ||
"version": "0.4.7", | ||
"version": "0.5.0-0-alpha.012818d6", | ||
"description": "When a function is not enough", | ||
"main": "src/index.js", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"clean": "rimraf lib && rimraf tests/*.js*", | ||
"demo:redux": "node demos/server --demo redux", | ||
"demo:mobx": "node demos/server --demo mobx", | ||
"demo:node": "node demos/node/main.js", | ||
"test": "nodeunit tests" | ||
"test": "../../node_modules/.bin/mocha --compilers js:../../node_modules/babel-register 'src/**/*.test.js'", | ||
"build": "BABEL_ENV=production ../../node_modules/.bin/babel src/ --out-dir=lib/ -s", | ||
"coverage": "../../node_modules/.bin/nyc --reporter=lcov --reporter=json npm run test", | ||
"prepublish": "npm run build" | ||
}, | ||
"devDependencies": { | ||
"axios": "^0.14.0", | ||
"babel-loader": "^6.2.5", | ||
"babel-plugin-transform-class-properties": "^6.11.5", | ||
"babel-plugin-transform-decorators-legacy": "^1.3.4", | ||
"babel-preset-es2015": "^6.14.0", | ||
"babel-preset-react": "^6.11.1", | ||
"body-parser": "^1.15.2", | ||
"css-loader": "^0.24.0", | ||
"express": "^4.14.0", | ||
"html-webpack-plugin": "^2.22.0", | ||
"mobx": "^2.5.1", | ||
"mobx-react": "^3.5.5", | ||
"nodeunit": "^0.10.2", | ||
"picture-tube": "^1.0.0", | ||
"react": "^15.3.1", | ||
"react-dom": "^15.3.1", | ||
"react-redux": "^4.4.5", | ||
"redux": "^3.5.2", | ||
"request": "^2.74.0", | ||
"style-loader": "^0.13.1", | ||
"webpack": "^1.13.2", | ||
"webpack-dev-middleware": "^1.6.1" | ||
}, | ||
"devDependencies": {}, | ||
"dependencies": { | ||
"chalk": "^1.1.3", | ||
"object-assign": "^4.1.0" | ||
"eventemitter3": "^2.0.2" | ||
}, | ||
@@ -46,3 +22,3 @@ "directories": { | ||
"type": "git", | ||
"url": "git+https://github.com/cerebral/function-tree.git" | ||
"url": "git+https://github.com/cerebral/cerebral.git" | ||
}, | ||
@@ -56,8 +32,20 @@ "keywords": [ | ||
], | ||
"author": "Christian Alfoni", | ||
"author": "Christian Alfoni <christianalfoni@gmail.com>", | ||
"contributors": [ | ||
"Aleksey Guryanov <gurianov@gmail.com>" | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/cerebral/function-tree/issues" | ||
"url": "https://github.com/cerebral/cerebral/issues" | ||
}, | ||
"homepage": "https://github.com/cerebral/function-tree#readme" | ||
"homepage": "https://github.com/cerebral/cerebral/tree/master/packages/function-tree#readme", | ||
"nyc": { | ||
"exclude": [ | ||
"node_modules", | ||
"lib", | ||
"tests", | ||
"**/*.test.js", | ||
"**/testHelper.js" | ||
] | ||
} | ||
} |
@@ -5,3 +5,4 @@ # function-tree | ||
`npm install function-tree` | ||
### Install | ||
This project is still in alpha. To test alpha version check [instructions in monorepo](https://github.com/cerebral/cerebral/blob/master/README.md). | ||
@@ -57,7 +58,7 @@ ### What is it? | ||
const FunctionTree = require('function-tree') | ||
const ContextProvider = require('function-tree/providers/Context') | ||
const ContextProvider = require('function-tree/providers').ContextProvider | ||
const appMounted = require('../src/events/appMounted') | ||
const window = {app: {}} | ||
const execute = new FunctionTree([ | ||
const execute = FunctionTree([ | ||
ContextProvider({ | ||
@@ -85,3 +86,3 @@ window, | ||
const execute = new FunctionTree([ | ||
const execute = FunctionTree([ | ||
// Providers | ||
@@ -97,6 +98,6 @@ ]) | ||
import FunctionTree from 'function-tree' | ||
import ContextProvider from 'function-tree/providers/Context' | ||
import {ContextProvider} from 'function-tree/providers' | ||
import request from 'request' | ||
const execute = new FunctionTree([ | ||
const execute = FunctionTree([ | ||
ContextProvider({ | ||
@@ -296,3 +297,3 @@ request | ||
const execute = new FunctionTree([ | ||
const execute = FunctionTree([ | ||
function MyProvider(context, functionDetails, payload) { | ||
@@ -331,3 +332,3 @@ context // Current context | ||
const execute = new FunctionTree() | ||
const execute = FunctionTree() | ||
const tree = [ | ||
@@ -368,3 +369,3 @@ funcA | ||
const execute = new FunctionTree([]) | ||
const execute = FunctionTree([]) | ||
const tree = [ | ||
@@ -388,3 +389,3 @@ funcA, { | ||
import FunctionTree from 'function-tree' | ||
import ContextProvider from 'function-tree/providers/Context' | ||
import {ContextProvider} from 'function-tree/providers' | ||
import request from 'request' | ||
@@ -397,3 +398,3 @@ | ||
const execute = new FunctionTree([ | ||
const execute = FunctionTree([ | ||
ContextProvider({ | ||
@@ -415,7 +416,6 @@ request | ||
import FunctionTree from 'function-tree' | ||
import DebuggerProvider from 'function-tree/providers/Debugger' | ||
import ContextProvider from 'function-tree/providers/Context' | ||
import {ContextProvider, DebuggerProvider} from 'function-tree/providers' | ||
import request from 'request' | ||
const execute = new FunctionTree([ | ||
const execute = FunctionTree([ | ||
DebuggerProvider({ | ||
@@ -447,3 +447,3 @@ colors: { | ||
const execute = new FunctionTree([ | ||
const execute = FunctionTree([ | ||
NodeDebuggerProvider({ | ||
@@ -468,3 +468,3 @@ colors: { | ||
const execute = new FunctionTree([]) | ||
const execute = FunctionTree([]) | ||
const tree = [ | ||
@@ -480,5 +480,11 @@ funcA | ||
// When a function tree ends its execution | ||
// When a function tree execution has ended | ||
execute.on('end', (execution, payload) => {}) | ||
// When a function tree goes down a path | ||
execute.on('pathStart', (execution, payload) => {}) | ||
// When a function tree ends execution of a path | ||
execute.on('pathEnd', (execution, payload) => {}) | ||
// When a function in a function tree starts executing | ||
@@ -485,0 +491,0 @@ execute.on('functionStart', (execution, functionDetails, payload) => {}) |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
254120
0
0
488
0
1115
43
1423
1
+ Addedeventemitter3@^2.0.2
+ Addedeventemitter3@2.0.3(transitive)
- Removedobject-assign@^4.1.0
- Removedobject-assign@4.1.1(transitive)