@factor/filters
Advanced tools
Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6
@@ -106,2 +106,6 @@ module.exports.default = Factor => { | ||
if (this._filters[name][id]) { | ||
console.log("Duplicate Filter", name) | ||
} | ||
this._filters[name][id] = { callback, context, priority } | ||
@@ -116,3 +120,4 @@ | ||
// added the caller because sometimes callbacks look the exact same in different files! | ||
options.signature = this.uniqueHash(callback, require("caller")()) | ||
const { signature = "" } = options | ||
options.signature = this.uniqueHash(callback, signature) | ||
@@ -128,3 +133,5 @@ const callable = typeof callback != "function" ? () => callback : callback | ||
} | ||
})() | ||
} |
{ | ||
"name": "@factor/filters", | ||
"version": "1.0.0-alpha.5", | ||
"version": "1.0.0-alpha.6", | ||
"license": "GPL-2.0", | ||
@@ -9,6 +9,3 @@ "publishConfig": { | ||
"factor": {}, | ||
"gitHead": "3537bf16da77a27d03c8a79cc61e09611c73ddfd", | ||
"dependencies": { | ||
"caller": "^1.0.1" | ||
} | ||
"gitHead": "d3b17451c6b7cf11831022dbea0cafe1a955bd34" | ||
} |
22603
0
102
- Removedcaller@^1.0.1
- Removedcaller@1.1.0(transitive)