cfpathcheck
Advanced tools
Comparing version 4.2.0 to 4.3.0
@@ -5,2 +5,16 @@ # Change Log | ||
## [4.3.0] - 2020-08-13 | ||
### Added | ||
- deepEqual (used instead of lodash.isEqual) | ||
- Linting of test scripts, with annotations to squish some warnings | ||
- Further .snyk policy changes to ignore certain vulns | ||
### Updated | ||
- mocha@8.1.1 | ||
- snyk@1.373.1 | ||
- xo@0.33.0 | ||
### Removed | ||
- lodash | ||
## [4.2.0] - 2020-07-05 | ||
@@ -279,2 +293,4 @@ ### Added | ||
[4.3.0]: https://github.com/timbeadle/cfpathcheck/compare/4.2.0...4.3.0 | ||
[4.2.0]: https://github.com/timbeadle/cfpathcheck/compare/4.1.0...4.2.0 | ||
[4.1.0]: https://github.com/timbeadle/cfpathcheck/compare/4.0.0...4.1.0 | ||
@@ -281,0 +297,0 @@ [4.0.0]: https://github.com/timbeadle/cfpathcheck/compare/3.1.0...4.0.0 |
@@ -1,7 +0,6 @@ | ||
const _ = require('lodash'); | ||
const deepEqual = require('deep-equal'); | ||
/** | ||
* Uses lodash isEqual to perform non-strict object comparison. | ||
* Uses deep-equal to perform non-strict object comparison. | ||
* | ||
* @see https://stackoverflow.com/a/4587130/167987 | ||
* @param {object} targetObject - The object to search for. | ||
@@ -11,11 +10,5 @@ * @param {Array} list - The array of objects to search. | ||
const containsObject = (targetObject, list) => { | ||
for (const element of list) { | ||
if (_.isEqual(element, targetObject)) { | ||
return true; | ||
} | ||
} | ||
return list.some(item => deepEqual(item, targetObject)); | ||
} | ||
return false; | ||
}; | ||
/** | ||
@@ -22,0 +15,0 @@ * @param {string} line - The file line to check for an XML file prolog. |
@@ -10,3 +10,3 @@ { | ||
"description": "Check CFML files for correct paths in cfinclude/cfimport tags", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"homepage": "https://github.com/timbeadle/cfpathcheck", | ||
@@ -49,3 +49,3 @@ "author": { | ||
"test:coverage": "nyc --reporter=lcov npm run test:unit", | ||
"test:lint": "xo lib/*.js bin/cfpathcheck", | ||
"test:lint": "xo {lib,test}/*.js bin/cfpathcheck", | ||
"test:snyk": "snyk test --dev", | ||
@@ -60,17 +60,17 @@ "test:unit": "mocha test/*.spec.js", | ||
"crlf": "^1.1.0", | ||
"deep-equal": "^2.0.3", | ||
"glob": "^7.1.6", | ||
"lodash": "^4.17.15", | ||
"log-symbols": "^4.0.0", | ||
"minimist": "^1.2.5", | ||
"snyk": "^1.360.0" | ||
"snyk": "^1.373.1" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.2.0", | ||
"mocha": "^8.0.1", | ||
"mocha": "^8.1.1", | ||
"npm-run-all": "^4.1.5", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.0.5", | ||
"xo": "^0.32.1" | ||
"xo": "^0.33.0" | ||
}, | ||
"snyk": true | ||
} |
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
144559
840
+ Addeddeep-equal@^2.0.3
+ Addedarray-buffer-byte-length@1.0.1(transitive)
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addeddeep-equal@2.2.3(transitive)
+ Addedes-get-iterator@1.1.3(transitive)
+ Addedfor-each@0.3.3(transitive)
+ Addedfunctions-have-names@1.2.3(transitive)
+ Addedhas-bigints@1.0.2(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedinternal-slot@1.0.7(transitive)
+ Addedis-arguments@1.1.1(transitive)
+ Addedis-array-buffer@3.0.4(transitive)
+ Addedis-bigint@1.0.4(transitive)
+ Addedis-boolean-object@1.1.2(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-date-object@1.0.5(transitive)
+ Addedis-map@2.0.3(transitive)
+ Addedis-number-object@1.0.7(transitive)
+ Addedis-regex@1.1.4(transitive)
+ Addedis-set@2.0.3(transitive)
+ Addedis-shared-array-buffer@1.0.3(transitive)
+ Addedis-string@1.0.7(transitive)
+ Addedis-symbol@1.0.4(transitive)
+ Addedis-weakmap@2.0.2(transitive)
+ Addedis-weakset@2.0.3(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedobject-inspect@1.13.2(transitive)
+ Addedobject-is@1.1.6(transitive)
+ Addedobject.assign@4.1.5(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
+ Addedregexp.prototype.flags@1.5.3(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedset-function-name@2.0.2(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedstop-iteration-iterator@1.0.0(transitive)
+ Addedwhich-boxed-primitive@1.0.2(transitive)
+ Addedwhich-collection@1.0.2(transitive)
+ Addedwhich-typed-array@1.1.15(transitive)
- Removedlodash@^4.17.15
- Removedlodash@4.17.21(transitive)
Updatedsnyk@^1.373.1