Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "nflow", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "event/data/control flow", | ||
@@ -11,3 +11,4 @@ "main": "dist/nflow.js", | ||
"start": "webpack --watch --colors", | ||
"dev": "webpack-dev-server" | ||
"dev": "webpack-dev-server", | ||
"publish-to-npm": "publish" | ||
}, | ||
@@ -38,3 +39,4 @@ "keywords": [ | ||
"webpack": "^1.12.8", | ||
"webpack-dev-server": "^1.12.1" | ||
"webpack-dev-server": "^1.12.1", | ||
"publish": "0.5.0" | ||
}, | ||
@@ -41,0 +43,0 @@ "directories": { |
@@ -1,8 +0,12 @@ | ||
![](https://avatars2.githubusercontent.com/u/16370234?v=3&s=200) | ||
# nFlow JS [![Build Status](https://travis-ci.org/mere/nflow.svg?branch=master)](https://travis-ci.org/mere/nflow) [![npm version](https://badge.fury.io/js/nflow.svg)](https://badge.fury.io/js/nflow) [![Dependency Status](https://www.versioneye.com/nodejs/nflow/0.0.4/badge.svg)](https://www.versioneye.com/nodejs/nflow/0.0.4) | ||
<img height=80 src="http://nflow-js.github.io/assets/logo.svg"> | ||
# nFlow JS | ||
Event/data/control flow | ||
[![npm version](https://badge.fury.io/js/nflow.svg)](https://badge.fury.io/js/nflow) [![Dependency Status](https://www.versioneye.com/nodejs/nflow/0.0.4/badge.svg)](https://www.versioneye.com/nodejs/nflow/0.0.4) | ||
> Work in progress, decent docs and examples are on the way | ||
nflow-js.github.io | ||
http://nflow-js.github.io | ||
@@ -25,5 +29,6 @@ ### What is it? | ||
### Unit tests | ||
[![Circle CI](https://circleci.com/gh/nflow-js/nflow.svg?style=svg&circle-token=c48681c248ecfdd1fcbc94ca9f5dd2b39fd06fbc)](https://circleci.com/gh/nflow-js/nflow) | ||
To run the unit tests, clone this repo and run: | ||
- `npm install` | ||
- `npm test` | ||
- `npm test` |
- [ ] allow multiple siblings to share the same name | ||
- [x] allow multiple siblings to share the same name | ||
- [ ] automatically set hight of tree() in flow-vis | ||
@@ -7,6 +7,2 @@ - [ ] flow-vis: deal with cyclick dependency | ||
- [ ] implement `.clone` | ||
- [ ] | ||
- [ ] | ||
- [ ] | ||
- [ ] | ||
- [ ] | ||
- [x] migrate over to webpack |
@@ -8,3 +8,3 @@ import { DEFAULTS | ||
import logger from '../logger' | ||
import {assert} from '../utils' | ||
import {assert, dispatchInternalEvent} from '../utils' | ||
@@ -27,3 +27,3 @@ var guid = 0 | ||
flow.name.value = name | ||
logger.dispatchInternalEvent(flow, 'name', name, previousName) | ||
dispatchInternalEvent(flow, 'name', name, previousName) | ||
return flow | ||
@@ -41,2 +41,2 @@ } | ||
} | ||
} |
@@ -5,19 +5,6 @@ import factory from './factory' | ||
var flow = factory(DEFAULTS, "flow") | ||
logger.init(flow) | ||
var root = factory(DEFAULTS, "flow") | ||
logger.init(root) | ||
console.log('t', this) | ||
// if (typeof define === 'function' && define.amd) { | ||
// // AMD. Register as an anonymous module. | ||
// define([], ()=>instance); | ||
// } else if (typeof module === 'object' && module.exports) { | ||
// // Node. Does not work with strict CommonJS, but | ||
// // only CommonJS-like environments that support module.exports, | ||
// // like Node. | ||
// module.exports = instance; | ||
// } else { | ||
// // Browser globals ("this" is window) | ||
// scope["this"].flow = instance | ||
// } | ||
export default flow | ||
global.nflow = root | ||
module.exports = root |
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
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
34
0
69875
17
34
2108