Comparing version 2.0.0-rc4 to 2.0.0-rc5
@@ -370,3 +370,3 @@ 'use strict'; | ||
// Deduplicate based on `fn` | ||
filter(p => !sourcePres.map(({fn}) => fn).includes(p.fn)); | ||
filter(p => sourcePres.map(_p => _p.fn).indexOf(p.fn) === -1); | ||
ret._pres[key] = sourcePres.concat(deduplicated); | ||
@@ -379,3 +379,3 @@ ret._pres[key].numAsync = get(ret._pres[key], 'numAsync', 0); | ||
const deduplicated = other._posts[key]. | ||
filter(p => !sourcePosts.includes(p)); | ||
filter(p => sourcePosts.indexOf(p) === -1); | ||
ret._posts[key] = sourcePosts.concat(deduplicated); | ||
@@ -382,0 +382,0 @@ } |
{ | ||
"name": "kareem", | ||
"version": "2.0.0-rc4", | ||
"version": "2.0.0-rc5", | ||
"description": "Next-generation take on pre/post function hooks", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59935