@culli/base
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -0,1 +1,8 @@ | ||
# 0.1.3 (2017-02-08) | ||
--- | ||
## Bug Fixes | ||
- fix(base): Fix most imports [61d0b38c](/commits/61d0b38cd7a2e6d7b62dd8b96061529f03ba6e1a) | ||
# v0.1.2 (2016-10-27) | ||
@@ -2,0 +9,0 @@ --- |
@@ -6,2 +6,5 @@ "use strict"; | ||
}); | ||
var _util = require("./util"); | ||
var curry2 = function curry2(f) { | ||
@@ -58,2 +61,5 @@ return function curried2(a0, a1) { | ||
var curry = function curry(f) { | ||
if (process.ENV !== "production") { | ||
!(0, _util.isFun)(f) && (0, _util.throws)("Curried argument is not a function: " + f); | ||
} | ||
switch (f.length) { | ||
@@ -60,0 +66,0 @@ case 0: |
@@ -14,4 +14,2 @@ "use strict"; | ||
var _hold2 = _interopRequireDefault(_hold); | ||
var _mostSubject = require("most-subject"); | ||
@@ -72,3 +70,3 @@ | ||
var hold = exports.hold = (0, _curry2.default)(_hold2.default); | ||
var hold = exports.hold = (0, _curry2.default)(_hold.hold); | ||
@@ -117,3 +115,3 @@ var skipRepeats = exports.skipRepeats = (0, _curry2.default)(most.skipRepeatsWith); | ||
makeSubject: function makeSubject() { | ||
var s = (0, _mostSubject.subject)(); | ||
var s = (0, _mostSubject.async)(); | ||
var o = { | ||
@@ -120,0 +118,0 @@ next: function next(x) { |
{ | ||
"name": "@culli/base", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Base utils for cullish cycle library development", | ||
@@ -40,10 +40,10 @@ "author": "Matti Lankinen <m.lankinen@iki.fi> (https://github.com/milankinen)", | ||
"dependencies": { | ||
"@most/hold": "^1.3.1", | ||
"most": "^1.0.4", | ||
"most-subject": "^4.1.3" | ||
"@most/hold": "^2.0.0", | ||
"most": "^1.2.1", | ||
"most-subject": "^5.3.0" | ||
}, | ||
"devDependencies": { | ||
"@cycle/xstream-adapter": "^3.0.4", | ||
"should": "^11.1.1", | ||
"xstream": "^6.5.0" | ||
"@cycle/xstream-adapter": "^3.1.0", | ||
"should": "^11.2.0", | ||
"xstream": "^10.2.0" | ||
}, | ||
@@ -50,0 +50,0 @@ "nyc": { |
@@ -0,1 +1,3 @@ | ||
import {isFun, throws} from "./util" | ||
const curry2 = f => function curried2(a0, a1) { | ||
@@ -36,2 +38,5 @@ switch (arguments.length) { | ||
const curry = f => { | ||
if (process.ENV !== "production") { | ||
!isFun(f) && throws(`Curried argument is not a function: ${f}`) | ||
} | ||
switch (f.length) { | ||
@@ -38,0 +43,0 @@ case 0: |
import * as most from "most" | ||
import mhold from "@most/hold" | ||
import {subject} from "most-subject" | ||
import {hold as mhold} from "@most/hold" | ||
import {async as subject} from "most-subject" | ||
import curry from "./curry" | ||
@@ -5,0 +5,0 @@ import {isFun} from "./util" |
@@ -0,1 +1,2 @@ | ||
import should from "should" | ||
import {curry} from "../src/index" | ||
@@ -26,2 +27,5 @@ | ||
}) | ||
it("throws an exception if the given argument is not a function", () => { | ||
should.throws(() => curry("tsers")) | ||
}) | ||
}) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
1
100593
1510
+ Added@most/hold@2.0.0(transitive)
+ Addedmost-subject@5.3.0(transitive)
- Removed@most/hold@1.4.3(transitive)
- Removedmost-subject@4.1.3(transitive)
Updated@most/hold@^2.0.0
Updatedmost@^1.2.1
Updatedmost-subject@^5.3.0