Socket
Socket
Sign inDemoInstall

prelude-ls

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 1.2.0

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# 1.2.0
- add `List.remove`
- build with LiveScript 1.6.0
- update dependencies
- remove coverage calculation
# 1.1.2

@@ -2,0 +8,0 @@ - add `Func.memoize`

12

lib/Func.js

@@ -1,3 +0,3 @@

// Generated by LiveScript 1.4.0
var apply, curry, flip, fix, over, memoize, slice$ = [].slice, toString$ = {}.toString;
// Generated by LiveScript 1.6.0
var apply, curry, flip, fix, over, memoize, toString$ = {}.toString;
apply = curry$(function(f, list){

@@ -30,4 +30,8 @@ return f.apply(null, list);

return function(){
var args, key, arg;
args = slice$.call(arguments);
var args, res$, i$, to$, key, arg;
res$ = [];
for (i$ = 0, to$ = arguments.length; i$ < to$; ++i$) {
res$.push(arguments[i$]);
}
args = res$;
key = (function(){

@@ -34,0 +38,0 @@ var i$, ref$, len$, results$ = [];

@@ -1,2 +0,2 @@

// Generated by LiveScript 1.4.0
// Generated by LiveScript 1.6.0
var Func, List, Obj, Str, Num, id, isType, replicate, prelude, toString$ = {}.toString;

@@ -3,0 +3,0 @@ Func = require('./Func.js');

@@ -1,3 +0,3 @@

// Generated by LiveScript 1.4.0
var each, map, compact, filter, reject, partition, find, head, first, tail, last, initial, empty, reverse, unique, uniqueBy, fold, foldl, fold1, foldl1, foldr, foldr1, unfoldr, concat, concatMap, flatten, difference, intersection, union, countBy, groupBy, andList, orList, any, all, sort, sortWith, sortBy, sum, product, mean, average, maximum, minimum, maximumBy, minimumBy, scan, scanl, scan1, scanl1, scanr, scanr1, slice, take, drop, splitAt, takeWhile, dropWhile, span, breakList, zip, zipWith, zipAll, zipAllWith, at, elemIndex, elemIndices, findIndex, findIndices, toString$ = {}.toString, slice$ = [].slice;
// Generated by LiveScript 1.6.0
var each, map, compact, filter, reject, remove, partition, find, head, first, tail, last, initial, empty, reverse, unique, uniqueBy, fold, foldl, fold1, foldl1, foldr, foldr1, unfoldr, concat, concatMap, flatten, difference, intersection, union, countBy, groupBy, andList, orList, any, all, sort, sortWith, sortBy, sum, product, mean, average, maximum, minimum, maximumBy, minimumBy, scan, scanl, scan1, scanl1, scanr, scanr1, slice, take, drop, splitAt, takeWhile, dropWhile, span, breakList, zip, zipWith, zipAll, zipAllWith, at, elemIndex, elemIndices, findIndex, findIndices, toString$ = {}.toString;
each = curry$(function(f, xs){

@@ -49,2 +49,11 @@ var i$, len$, x;

});
remove = curry$(function(el, xs){
var i, x$;
i = elemIndex(el, xs);
x$ = xs.slice();
if (i != null) {
x$.splice(i, 1);
}
return x$;
});
partition = curry$(function(f, xs){

@@ -180,4 +189,8 @@ var passed, failed, i$, len$, x;

difference = function(xs){
var yss, results, i$, len$, x, j$, len1$, ys;
yss = slice$.call(arguments, 1);
var yss, res$, i$, to$, results, len$, x, j$, len1$, ys;
res$ = [];
for (i$ = 1, to$ = arguments.length; i$ < to$; ++i$) {
res$.push(arguments[i$]);
}
yss = res$;
results = [];

@@ -197,4 +210,8 @@ outer: for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) {

intersection = function(xs){
var yss, results, i$, len$, x, j$, len1$, ys;
yss = slice$.call(arguments, 1);
var yss, res$, i$, to$, results, len$, x, j$, len1$, ys;
res$ = [];
for (i$ = 1, to$ = arguments.length; i$ < to$; ++i$) {
res$.push(arguments[i$]);
}
yss = res$;
results = [];

@@ -214,4 +231,8 @@ outer: for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) {

union = function(){
var xss, results, i$, len$, xs, j$, len1$, x;
xss = slice$.call(arguments);
var xss, res$, i$, to$, results, len$, xs, j$, len1$, x;
res$ = [];
for (i$ = 0, to$ = arguments.length; i$ < to$; ++i$) {
res$.push(arguments[i$]);
}
xss = res$;
results = [];

@@ -501,4 +522,8 @@ for (i$ = 0, len$ = xss.length; i$ < len$; ++i$) {

zipAll = function(){
var xss, minLength, i$, len$, xs, ref$, i, lresult$, j$, results$ = [];
xss = slice$.call(arguments);
var xss, res$, i$, to$, minLength, len$, xs, ref$, i, lresult$, j$, results$ = [];
res$ = [];
for (i$ = 0, to$ = arguments.length; i$ < to$; ++i$) {
res$.push(arguments[i$]);
}
xss = res$;
minLength = undefined;

@@ -521,4 +546,8 @@ for (i$ = 0, len$ = xss.length; i$ < len$; ++i$) {

zipAllWith = function(f){
var xss, minLength, i$, len$, xs, ref$, i, results$ = [];
xss = slice$.call(arguments, 1);
var xss, res$, i$, to$, minLength, len$, xs, ref$, i, results$ = [];
res$ = [];
for (i$ = 1, to$ = arguments.length; i$ < to$; ++i$) {
res$.push(arguments[i$]);
}
xss = res$;
minLength = undefined;

@@ -598,2 +627,3 @@ for (i$ = 0, len$ = xss.length; i$ < len$; ++i$) {

reject: reject,
remove: remove,
partition: partition,

@@ -600,0 +630,0 @@ find: find,

@@ -1,2 +0,2 @@

// Generated by LiveScript 1.4.0
// Generated by LiveScript 1.6.0
var max, min, negate, abs, signum, quot, rem, div, mod, recip, pi, tau, exp, sqrt, ln, pow, sin, tan, cos, asin, acos, atan, atan2, truncate, round, ceiling, floor, isItNaN, even, odd, gcd, lcm;

@@ -33,3 +33,3 @@ max = curry$(function(x$, y$){

var ref$;
return (((x$) % (ref$ = y$) + ref$) % ref$);
return ((x$) % (ref$ = y$) + ref$) % ref$;
});

@@ -36,0 +36,0 @@ recip = (function(it){

@@ -1,2 +0,2 @@

// Generated by LiveScript 1.4.0
// Generated by LiveScript 1.6.0
var values, keys, pairsToObj, objToPairs, listsToObj, objToLists, empty, each, map, compact, filter, reject, partition, find;

@@ -3,0 +3,0 @@ values = function(object){

@@ -1,2 +0,2 @@

// Generated by LiveScript 1.4.0
// Generated by LiveScript 1.6.0
var split, join, lines, unlines, words, unwords, chars, unchars, reverse, repeat, capitalize, camelize, dasherize;

@@ -3,0 +3,0 @@ split = curry$(function(sep, str){

{
"name": "prelude-ls",
"version": "1.1.2",
"version": "1.2.0",
"author": "George Zahariev <z@georgezahariev.com>",

@@ -28,8 +28,3 @@ "description": "prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.",

"bugs": "https://github.com/gkz/prelude-ls/issues",
"licenses": [
{
"type": "MIT",
"url": "https://raw.github.com/gkz/prelude-ls/master/LICENSE"
}
],
"license": "MIT",
"engines": {

@@ -46,9 +41,8 @@ "node": ">= 0.8.0"

"devDependencies": {
"livescript": "~1.4.0",
"uglify-js": "~2.4.12",
"mocha": "~2.2.4",
"istanbul": "~0.2.4",
"browserify": "~3.24.13",
"sinon": "~1.10.2"
"livescript": "^1.6.0",
"uglify-js": "^3.8.1",
"mocha": "^7.1.1",
"browserify": "^16.5.1",
"sinon": "~8.0.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc