cyclejs-group
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -14,2 +14,4 @@ 'use strict'; | ||
require('babel/polyfill'); | ||
var _createStream = require('cyclejs'); | ||
@@ -16,0 +18,0 @@ |
{ | ||
"name": "cyclejs-group", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"author": "Eryk Napierala", | ||
@@ -5,0 +5,0 @@ "description": "Utility for CycleJS framework for reducing boilerplate when creating groups of streams", |
'use strict'; | ||
import 'babel/polyfill'; | ||
import { createStream } from 'cyclejs'; | ||
@@ -14,3 +16,3 @@ import mapValues from 'map-values'; | ||
inputObjects.reduce(mergeObjects, {}); | ||
for(let [ , { dependencies, stream } ] of Object.entries(streamWithDependencies)) { | ||
@@ -21,3 +23,3 @@ let streamDependencies = dependencies.map((dependencyName) => { | ||
} | ||
return combinedInputObject[dependencyName]; | ||
@@ -28,3 +30,3 @@ }); | ||
} | ||
if (inputObjects.length === 1) { | ||
@@ -60,3 +62,3 @@ return inputObjects[0]; | ||
} | ||
if (this instanceof createStreamsGroup) { // jshint ignore:line | ||
@@ -70,5 +72,5 @@ throw new Error('Cannot use `new` operator on `createStreamsGroup()`, it is not a constructor.'); | ||
})); | ||
let group = mapValues(streamsWithDeps, ({ stream }) => stream); | ||
// add `inject` and `dispose` as not enumerable properties to make them | ||
@@ -80,3 +82,3 @@ // not visible for `each` function | ||
}); | ||
Object.defineProperty(group, 'dispose', { | ||
@@ -86,3 +88,3 @@ enumerable: false, | ||
}); | ||
Object.freeze(group); | ||
@@ -89,0 +91,0 @@ |
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
24223
329