New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cardsgame/utils

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cardsgame/utils - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

lib/arrays.d.ts

1

lib/index.d.ts

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

export * from "./arrays";
export * from "./events";

@@ -2,0 +3,0 @@ export * from "./mapSchema";

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./arrays"));
__export(require("./events"));

@@ -8,0 +9,0 @@ __export(require("./mapSchema"));

@@ -9,2 +9,7 @@ /**

/**
* Call each function with the current argument and the result is use for the next call
* @param initial value to be passed through the pipeline
*/
export declare const compose: (value: any, ...functions: ((...args: any[]) => any)[]) => any;
/**
* Executes function multiple times

@@ -11,0 +16,0 @@ * @param length number of times function will be exetuced

@@ -13,2 +13,23 @@ "use strict";

/**
* Call each function with the current argument and the result is use for the next call
* @param initial value to be passed through the pipeline
*/
exports.compose = function (value) {
var functions = [];
for (var _i = 1; _i < arguments.length; _i++) {
functions[_i - 1] = arguments[_i];
}
return functions.reduce(function (arg, fn) {
if (typeof fn === "function") {
return fn(arg);
}
else if (typeof fn === "undefined") {
return arg;
}
else {
throw new Error("utils/compose, I expected a function here, got \"" + typeof fn + "\" instead...");
}
}, value);
};
/**
* Executes function multiple times

@@ -15,0 +36,0 @@ * @param length number of times function will be exetuced

4

package.json
{
"name": "@cardsgame/utils",
"version": "0.1.13",
"version": "0.1.14",
"description": "",

@@ -21,3 +21,3 @@ "main": "lib/index.js",

},
"gitHead": "ffb389831a9aa7be3967d047b16187cf2efc53fc"
"gitHead": "ac661e983fa7fff451c8301ebbca6567e6ad97d5"
}

Sorry, the diff of this file is not supported yet

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