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

cyclejs-group

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cyclejs-group - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

2

dist/create-streams-group.js

@@ -14,2 +14,4 @@ 'use strict';

require('babel/polyfill');
var _createStream = require('cyclejs');

@@ -16,0 +18,0 @@

2

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

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