fairmont-helpers
Advanced tools
Comparing version 1.0.0-beta-22 to 1.0.0-beta-23
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var _, binary, cat, complement, compose, curry, deepEqual, detach, difference, dupes, empty, fifth, first, flip, fourth, identity, includes, intersection, last, nth, partial, push, range, ref, remove, rest, second, shuffle, slice, ternary, third, unary, union, uniq, unique, uniqueBy, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var call, lift, ref; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var Crypto, base64, base64url, md5; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var Array, Async, Numeric, Object, String, Type, Util, include; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var abs, add, curry, div, even, gt, gte, lt, lte, max, min, mod, mul, negate, odd, partial, pow, ref, sub; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var bind, clone, curry, deepEqual, delegate, detach, extend, fromJSON, has, include, isFunction, isObject, keys, merge, negate, omit, pairs, pick, properties, property, query, ref, ref1, toJSON, values, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var blank, camelCase, capitalize, curry, dashed, htmlEscape, isMatch, match, plainText, replace, titleCase, toLower, toString, toUpper, underscored, w; |
@@ -1,17 +0,19 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
var GeneratorFunction, curry, instanceOf, isArray, isBoolean, isDate, isDefined, isError, isFinite, isFloat, isFunction, isGenerator, isInteger, isNaN, isNumber, isObject, isPromise, isRegExp, isString, isType, type; | ||
var GeneratorFunction, Type, curry, instanceOf, isArray, isBoolean, isDate, isDefined, isError, isFinite, isFloat, isFunction, isGenerator, isInteger, isMember, isNaN, isNumber, isObject, isPromise, isRegExp, isString, isType, prototype; | ||
curry = require("fairmont-core").curry; | ||
type = function(x) { | ||
return x != null ? x.constructor : void 0; | ||
prototype = function(value) { | ||
if (value != null) { | ||
return Object.getPrototypeOf(value); | ||
} | ||
}; | ||
isType = curry(function(t, x) { | ||
return type(x) === t; | ||
isType = curry(function(type, value) { | ||
return (type != null ? type.prototype : void 0) === prototype(value); | ||
}); | ||
instanceOf = curry(function(t, x) { | ||
return x instanceof t; | ||
isMember = curry(function(type, value) { | ||
return (isType(type, value)) || (isMember(type, prototype(value))); | ||
}); | ||
@@ -67,6 +69,24 @@ | ||
instanceOf = curry(function(t, x) { | ||
return x instanceof t; | ||
}); | ||
Type = { | ||
create: function(type) { | ||
return Object.create(type != null ? type.prototype : void 0); | ||
}, | ||
define: function(parent) { | ||
if (parent == null) { | ||
parent = Object; | ||
} | ||
return { | ||
prototype: Type.create(parent) | ||
}; | ||
} | ||
}; | ||
module.exports = { | ||
type: type, | ||
prototype: prototype, | ||
isType: isType, | ||
instanceOf: instanceOf, | ||
isMember: isMember, | ||
isBoolean: isBoolean, | ||
@@ -86,5 +106,7 @@ isNumber: isNumber, | ||
isGenerator: isGenerator, | ||
isPromise: isPromise | ||
isPromise: isPromise, | ||
instanceOf: instanceOf, | ||
Type: Type | ||
}; | ||
}).call(this); |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -95,3 +95,3 @@ var Method, async, benchmark, blank, curry, deepEqual, empty, isArray, isFunction, isGenerator, isObject, isString, length, memoize, promise, ref, ref1, sleep, timer, times; | ||
deepEqual = function(a, b) { | ||
var assert; | ||
var assert, error; | ||
assert = require("assert"); | ||
@@ -101,3 +101,3 @@ try { | ||
return true; | ||
} catch (_error) { | ||
} catch (error) { | ||
return false; | ||
@@ -104,0 +104,0 @@ } |
{ | ||
"name": "fairmont-helpers", | ||
"version": "1.0.0-beta-22", | ||
"version": "1.0.0-beta-23", | ||
"description": "True functional reactive programming for JavaScript.", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
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
30882
715