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

fairmont-core

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

fairmont-core - npm Package Compare versions

Comparing version 1.0.0-beta-20 to 1.0.0-beta-21

42

lib/index.js
// Generated by CoffeeScript 1.9.3
(function() {
var _, binary, compose, curry, flip, identity, negate, noOp, partial, pipe, spread, ternary, unary, wrap,
var _, apply, binary, compose, curry, flip, identity, negate, noOp, partial, pipe, spread, substitute, ternary, unary, wrap,
slice = [].slice;

@@ -36,2 +36,17 @@

substitute = curry(function(ax, bx) {
var a, i, j, len, results;
i = 0;
results = [];
for (j = 0, len = ax.length; j < len; j++) {
a = ax[j];
if (a === _) {
results.push(bx[i++]);
} else {
results.push(a);
}
}
return results;
});
partial = function() {

@@ -41,14 +56,5 @@ var ax, f;

return function() {
var a, bx;
var bx;
bx = 1 <= arguments.length ? slice.call(arguments, 0) : [];
bx = [].concat(bx);
return f.apply(null, ((function() {
var i, len, results;
results = [];
for (i = 0, len = ax.length; i < len; i++) {
a = ax[i];
results.push(a === _ ? bx.shift() : a);
}
return results;
})()).concat(bx));
return f.apply(null, substitute(ax, bx));
};

@@ -79,4 +85,4 @@ };

compose = function() {
var f, fx, g, i;
fx = 2 <= arguments.length ? slice.call(arguments, 0, i = arguments.length - 1) : (i = 0, []), f = arguments[i++];
var f, fx, g, j;
fx = 2 <= arguments.length ? slice.call(arguments, 0, j = arguments.length - 1) : (j = 0, []), f = arguments[j++];
if (fx.length === 0) {

@@ -124,2 +130,8 @@ return f;

apply = function() {
var args, f;
f = arguments[0], args = 2 <= arguments.length ? slice.call(arguments, 1) : [];
return f.apply(null, args);
};
negate = function(f) {

@@ -137,2 +149,3 @@ return function() {

_: _,
substitute: substitute,
partial: partial,

@@ -146,2 +159,3 @@ flip: flip,

ternary: ternary,
apply: apply,
negate: negate

@@ -148,0 +162,0 @@ };

{
"name": "fairmont-core",
"version": "1.0.0-beta-20",
"version": "1.0.0-beta-21",
"description": "Functional reactive programming in JavaScript",

@@ -29,3 +29,5 @@ "files": [

"amen": "^1.0.0-alpha-03",
"json": "^9.0.3"
"coffee-script": "~1.9.3",
"json": "^9.0.3",
"when": "^3.7.3"
},

@@ -32,0 +34,0 @@ "dependencies": {},

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