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

utilsac

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utilsac - npm Package Compare versions

Comparing version 6.0.1 to 6.0.2

0

operators.js

@@ -0,0 +0,0 @@ // operators.js

2

package.json
{
"name": "utilsac",
"version": "6.0.1",
"version": "6.0.2",
"description": "JavaScript General Purpose Utility Functions",

@@ -5,0 +5,0 @@ "main": "files.js",

@@ -0,0 +0,0 @@ # JavaScript General Purpose Utility Functions

@@ -0,0 +0,0 @@

@@ -174,2 +174,5 @@ export {

// these variables are not global because they are inside a module
const separator = "-";
const previousResults = {};
const memoizeAsStrings = function (functionToMemoize) {

@@ -181,4 +184,2 @@ /*

*/
const separator = "-";
const previousResults = {};
return function (...args) {

@@ -190,12 +191,8 @@ const argumentsAsStrings = args.map(String).join(separator);

*/
if (Object.prototype.hasOwnProperty.call(previousResults, argumentsAsStrings)) {
// cache hit
return previousResults[argumentsAsStrings];
if (!Object.prototype.hasOwnProperty.call(previousResults, argumentsAsStrings)) {
// not yet in cache
previousResults[argumentsAsStrings] = functionToMemoize(...args);
}
// not yet in cache
const result = functionToMemoize(...args);
// add it for later
previousResults[argumentsAsStrings] = result;
return result;
return previousResults[argumentsAsStrings];
};
};

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