Socket
Socket
Sign inDemoInstall

memoize-object-decorator

Package Overview
Dependencies
2
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.8 to 1.0.9

10

dist/memoize-object.decorator.js

@@ -22,3 +22,11 @@ "use strict";

}
return object_hash_1.sha1(args);
var MAX_EXECUTION_TIME = 5000;
var startTime = Date.now();
var sha1Hash = object_hash_1.sha1(args);
var stopTime = Date.now();
var executionTime = stopTime - startTime;
if (executionTime > MAX_EXECUTION_TIME) {
console.warn("@MemoizeObject() decorator for " + key.toString() + " method is running for too long (above 5000ms)");
}
return sha1Hash;
});

@@ -25,0 +33,0 @@ return descriptor;

2

package.json
{
"name": "memoize-object-decorator",
"version": "1.0.8",
"version": "1.0.9",
"description": "A decorator that overwrites lodash memoize function to reflect changes in objects' values and to include other function parameters than first while checking if something has been changed in passed arguments",

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

Sorry, the diff of this file is not supported yet

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