memoize-object-decorator
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -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; |
{ | ||
"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
9148
43