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

function-tree

Package Overview
Dependencies
Maintainers
3
Versions
487
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

function-tree - npm Package Compare versions

Comparing version 0.4.7 to 0.5.0-0-alpha.012818d6

.nyc_output/4804fa9a706dc9f1a8b95ba4d290387b.json

60

package.json
{
"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"
]
}
}

40

README.md

@@ -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

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