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

refract-callbag

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

refract-callbag - npm Package Compare versions

Comparing version 1.0.0-4 to 1.0.0-5

src/compose.ts

19

index.es.js

@@ -175,2 +175,19 @@ import $$observable from 'symbol-observable';

export { withEffects };
var identity = function (arg) { return arg; };
var compose = function () {
var fns = [];
for (var _i = 0; _i < arguments.length; _i++) {
fns[_i] = arguments[_i];
}
if (fns.length === 0) {
return identity;
}
if (fns.length === 1) {
return fns[0];
}
return function (arg) {
return fns.reduceRight(function (previousResult, fn) { return fn(previousResult); }, arg);
};
};
export { withEffects, compose };

@@ -181,2 +181,20 @@ 'use strict';

var identity = function (arg) { return arg; };
var compose = function () {
var fns = [];
for (var _i = 0; _i < arguments.length; _i++) {
fns[_i] = arguments[_i];
}
if (fns.length === 0) {
return identity;
}
if (fns.length === 1) {
return fns[0];
}
return function (arg) {
return fns.reduceRight(function (previousResult, fn) { return fn(previousResult); }, arg);
};
};
exports.withEffects = withEffects;
exports.compose = compose;

2

package.json
{
"name": "refract-callbag",
"version": "1.0.0-4",
"version": "1.0.0-5",
"main": "index.js",

@@ -5,0 +5,0 @@ "jsnext:main": "index.es.js",

import { withEffects } from './withEffects'
import { ObservableComponent, Aperture } from './observable'
import { ErrorHandler, Handler, ObserveOptions } from './baseTypes'
import { compose, Compose } from './compose'

@@ -11,3 +12,5 @@ export {

ErrorHandler,
ObserveOptions
ObserveOptions,
compose,
Compose
}
import { withEffects } from './withEffects'
import { ObservableComponent, Aperture } from './observable'
import { ErrorHandler, Handler, ObserveOptions } from './baseTypes'
import { compose, Compose } from './compose'
export {

@@ -10,3 +11,5 @@ withEffects,

ErrorHandler,
ObserveOptions
ObserveOptions,
compose,
Compose
}
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