Socket
Socket
Sign inDemoInstall

cfpathcheck

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cfpathcheck - npm Package Compare versions

Comparing version 4.2.0 to 4.3.0

16

CHANGELOG.md

@@ -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

15

lib/utils.js

@@ -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
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc