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

shades

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shades - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

50

lib/utils/utils.js

@@ -7,3 +7,3 @@ 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

@@ -26,2 +26,46 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

var and = exports.and = function and() {
for (var _len = arguments.length, fs = Array(_len), _key = 0; _key < _len; _key++) {
fs[_key] = arguments[_key];
}
return function () {
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
return fs.reduce(function (acc, f) {
return acc && f.apply(undefined, args);
}, true);
};
};
var or = exports.or = function or() {
for (var _len3 = arguments.length, fs = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
fs[_key3] = arguments[_key3];
}
return function () {
for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
args[_key4] = arguments[_key4];
}
return fs.reduce(function (acc, f) {
return acc || f.apply(undefined, args);
}, false);
};
};
var filter = exports.filter = function filter(f) {
return function (arr) {
return arr.filter(f);
};
};
var map = exports.map = function map(f) {
return function (arr) {
return arr.map(f);
};
};
var inc = exports.inc = function inc(num) {

@@ -50,4 +94,4 @@ return num + 1;

var pipe = exports.pipe = function pipe() {
for (var _len = arguments.length, fs = Array(_len), _key = 0; _key < _len; _key++) {
fs[_key] = arguments[_key];
for (var _len5 = arguments.length, fs = Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
fs[_key5] = arguments[_key5];
}

@@ -54,0 +98,0 @@

2

package.json
{
"name": "shades",
"version": "1.4.0",
"version": "1.5.0",
"description": "Lens-like functionality with a lodash-style interface.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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