chai-quantifiers
Advanced tools
Comparing version 1.0.16 to 1.0.17
{ | ||
"name": "chai-quantifiers", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "Array quantifier assertions for chai assertion library", | ||
@@ -37,16 +37,16 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"@types/chai": "^4.2.22", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.11.6", | ||
"@types/chai": "^4.3.1", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^18.0.1", | ||
"ansi-regex": ">=5.0.1", | ||
"chai": "^4.3.4", | ||
"chai": "^4.3.6", | ||
"coveralls": "^3.1.1", | ||
"eslint": "^8.1.0", | ||
"eslint-config-airbnb-base": "^14.2.1", | ||
"eslint-plugin-import": "^2.25.2", | ||
"eslint-plugin-promise": "^5.1.1", | ||
"mocha": "^9.1.3", | ||
"eslint": "^8.19.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"mocha": "^10.0.0", | ||
"nyc": "^15.1.0", | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4.4.4", | ||
"ts-node": "^10.8.2", | ||
"typescript": "^4.7.4", | ||
"y18n": ">=4.0.1" | ||
@@ -56,4 +56,3 @@ }, | ||
"chai": "^4.x.x" | ||
}, | ||
"dependencies": {} | ||
} | ||
} |
@@ -1,8 +0,6 @@ | ||
const evaluate = (array, predicate) => array.reduce( | ||
(acc, item, i) => ( | ||
predicate(item) | ||
? { t: [...acc.t, i], f: acc.f } | ||
: { t: acc.t, f: [...acc.f, i] } | ||
), { t: [], f: [] }, | ||
); | ||
const evaluate = (array, predicate) => array.reduce((acc, item, i) => ( | ||
predicate(item) | ||
? { t: [...acc.t, i], f: acc.f } | ||
: { t: acc.t, f: [...acc.f, i] } | ||
), { t: [], f: [] }); | ||
@@ -9,0 +7,0 @@ const plugin = (chai) => { |
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
9369
108