cfpathcheck
Advanced tools
Comparing version 4.4.0 to 4.5.0
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
This project adheres to [Semantic Versioning](https://semver.org/). | ||
## [4.5.0] - 2022-05-03 | ||
### Added | ||
- dependabot | ||
- codeql analysis | ||
- NodeJS 16.x, 18.x test runs | ||
- @snyk/protect | ||
- @types/chai | ||
- @types/checkstyle-formatter | ||
- @types/deep-equal | ||
- @types/glob | ||
- @types/mocha | ||
- eslint | ||
- eslint-config-xo | ||
- eslint-plugin-import | ||
- ls-engines | ||
### Updated | ||
- https Semver link | ||
- bin/{cfpathcheck -> cli/js} | ||
- {test -> fixtures}/test-template.cfm | ||
- Various eslint code style issues fixed | ||
- chai@4.3.6 | ||
- deep-equal@2.0.5 | ||
- minimist@1.2.6 | ||
- mocha@10.0.0 | ||
- prettier@2.6.2 | ||
### Removed | ||
- TravisCI setup | ||
- DavidDM badges | ||
- NodeJS 10.x, 13.x, 15.x test runs | ||
- snyk | ||
- xo | ||
## [4.4.0] - 2020-10-20 | ||
@@ -305,2 +339,3 @@ ### Added | ||
[4.4.0]: https://github.com/timbeadle/cfpathcheck/compare/4.4.0...4.5.0 | ||
[4.4.0]: https://github.com/timbeadle/cfpathcheck/compare/4.3.0...4.4.0 | ||
@@ -307,0 +342,0 @@ [4.3.0]: https://github.com/timbeadle/cfpathcheck/compare/4.2.0...4.3.0 |
@@ -39,4 +39,4 @@ 'use strict'; | ||
} else if ( | ||
!Object.prototype.hasOwnProperty.call(prefixManifest, value.prefix) || | ||
!prefixManifest[value.prefix] | ||
!Object.prototype.hasOwnProperty.call(prefixManifest, value.prefix) | ||
|| !prefixManifest[value.prefix] | ||
) { | ||
@@ -92,5 +92,3 @@ // Don't override a true value with false - true is sticky | ||
*/ | ||
const readFile = (filePath) => { | ||
return fs.readFileSync(filePath, 'utf8').replace(/\r\n/, '\n'); | ||
}; | ||
const readFile = (filePath) => fs.readFileSync(filePath, 'utf8').replace(/\r\n/, '\n'); | ||
@@ -204,3 +202,3 @@ /** | ||
'cfimported namespace prefix "{2}" not used', | ||
'warning' | ||
'warning', | ||
); | ||
@@ -212,3 +210,3 @@ | ||
'used namespace prefix "{2}" not cfimported', | ||
'error' | ||
'error', | ||
); | ||
@@ -219,3 +217,3 @@ | ||
templatePathViolations, | ||
taglibPathViolations | ||
taglibPathViolations, | ||
); | ||
@@ -283,5 +281,3 @@ | ||
*/ | ||
const formatter = (violations, format) => { | ||
return format === 'checkstyle' ? checkstyleFormatter(violations) : violations; | ||
}; | ||
const formatter = (violations, format) => format === 'checkstyle' ? checkstyleFormatter(violations) : violations; | ||
@@ -303,3 +299,3 @@ /** | ||
console.warn( | ||
`Cannot write ${outFile}. Destination directory doesn’t exist` | ||
`Cannot write ${outFile}. Destination directory doesn’t exist`, | ||
); | ||
@@ -306,0 +302,0 @@ } |
@@ -9,5 +9,3 @@ const deepEqual = require('deep-equal'); | ||
*/ | ||
const containsObject = (targetObject, list) => { | ||
return list.some(item => deepEqual(item, targetObject)); | ||
} | ||
const containsObject = (targetObject, list) => list.some(item => deepEqual(item, targetObject)); | ||
@@ -14,0 +12,0 @@ /** |
{ | ||
"name": "cfpathcheck", | ||
"xo": { | ||
"env": [ | ||
"node" | ||
], | ||
"prettier": true | ||
}, | ||
"description": "Check CFML files for correct paths in cfinclude/cfimport tags", | ||
"version": "4.4.0", | ||
"version": "4.5.0", | ||
"homepage": "https://github.com/timbeadle/cfpathcheck", | ||
@@ -27,3 +21,3 @@ "author": { | ||
"type": "MIT", | ||
"url": "https://github.com/timbeadle/cfpathcheck/blob/master/LICENSE-MIT" | ||
"url": "https://github.com/timbeadle/cfpathcheck/blob/main-4.x/LICENSE-MIT" | ||
} | ||
@@ -38,6 +32,4 @@ ], | ||
"preferGlobal": true, | ||
"bin": { | ||
"cfpathcheck": "./bin/cfpathcheck" | ||
}, | ||
"main": "index.js", | ||
"bin": "./bin/cli.js", | ||
"main": "./lib/cfpathcheck.js", | ||
"engines": { | ||
@@ -47,30 +39,39 @@ "node": ">=10" | ||
"scripts": { | ||
"test": "run-p test:snyk test:lint test:unit", | ||
"test:ci": "run-p test:lint test:unit", | ||
"test": "run-p test:snyk test:lint test:unit test:engines", | ||
"test:ci": "run-p test:lint test:unit test:engines", | ||
"test:engines": "ls-engines", | ||
"test:coverage": "nyc --reporter=lcov npm run test:unit", | ||
"test:lint": "xo {lib,test}/*.js bin/cfpathcheck", | ||
"test:lint": "eslint {bin,lib,test}/*.js", | ||
"test:snyk": "snyk test --dev", | ||
"test:unit": "mocha test/*.spec.js", | ||
"snyk-protect": "snyk protect", | ||
"snyk-protect": "snyk-protect", | ||
"prepare": "npm run snyk-protect" | ||
}, | ||
"dependencies": { | ||
"@snyk/protect": "^1.917.0", | ||
"chalk": "^4.1.0", | ||
"checkstyle-formatter": "^1.1.0", | ||
"crlf": "^1.1.0", | ||
"deep-equal": "^2.0.4", | ||
"deep-equal": "^2.0.5", | ||
"glob": "^7.1.6", | ||
"log-symbols": "^4.0.0", | ||
"minimist": "^1.2.5", | ||
"snyk": "^1.419.0" | ||
"minimist": "^1.2.6" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.2.0", | ||
"mocha": "^8.2.0", | ||
"@types/chai": "^4.3.0", | ||
"@types/checkstyle-formatter": "^1.0.0", | ||
"@types/deep-equal": "^1.0.1", | ||
"@types/glob": "^7.2.0", | ||
"@types/mocha": "^9.0.0", | ||
"chai": "^4.3.6", | ||
"eslint": "^8.6.0", | ||
"eslint-config-xo": "^0.40.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"ls-engines": "^0.6.5", | ||
"mocha": "^10.0.0", | ||
"npm-run-all": "^4.1.5", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.1.2", | ||
"xo": "^0.34.1" | ||
"prettier": "^2.6.2" | ||
}, | ||
"snyk": true | ||
} |
@@ -7,6 +7,4 @@ # cfpathcheck | ||
[![Downloads/month](https://img.shields.io/npm/dm/cfpathcheck.svg)](https://www.npmjs.com/package/cfpathcheck) | ||
[![Build Status](https://travis-ci.com/timbeadle/cfpathcheck.svg?branch=master)](https://travis-ci.com/timbeadle/cfpathcheck) | ||
[![Build Status](https://github.com/timbeadle/cfpathcheck/workflows/Node.js%20CI/badge.svg)](https://github.com/timbeadle/cfpathcheck) | ||
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) | ||
[![Dependency Status](https://david-dm.org/timbeadle/cfpathcheck.svg)](https://david-dm.org/timbeadle/cfpathcheck) | ||
[![devDependency Status](https://david-dm.org/timbeadle/cfpathcheck/dev-status.svg)](https://david-dm.org/timbeadle/cfpathcheck#info=devDependencies) | ||
[![Code Climate](https://codeclimate.com/github/timbeadle/cfpathcheck/badges/gpa.svg)](https://codeclimate.com/github/timbeadle/cfpathcheck) | ||
@@ -35,2 +33,2 @@ [![DepShield Badge](https://depshield.sonatype.org/badges/timbeadle/cfpathcheck/depshield.svg)](https://depshield.github.io) | ||
* See [CHANGELOG](https://github.com/timbeadle/cfpathcheck/blob/master/CHANGELOG.md). | ||
* See [CHANGELOG](https://github.com/timbeadle/cfpathcheck/blob/main-4.x/CHANGELOG.md). |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
965256
14
14
349
33
1
+ Added@snyk/protect@^1.917.0
+ Added@snyk/protect@1.1293.1(transitive)
- Removedsnyk@^1.419.0
- Removed@sentry-internal/tracing@7.119.2(transitive)
- Removed@sentry/core@7.119.2(transitive)
- Removed@sentry/integrations@7.119.2(transitive)
- Removed@sentry/node@7.119.2(transitive)
- Removed@sentry/types@7.119.2(transitive)
- Removed@sentry/utils@7.119.2(transitive)
- Removedboolean@3.2.0(transitive)
- Removeddetect-node@2.1.0(transitive)
- Removedes6-error@4.1.1(transitive)
- Removedescape-string-regexp@4.0.0(transitive)
- Removedglobal-agent@3.0.0(transitive)
- Removedglobalthis@1.0.4(transitive)
- Removedimmediate@3.0.6(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedlie@3.1.1(transitive)
- Removedlocalforage@1.10.0(transitive)
- Removedmatcher@3.0.0(transitive)
- Removedroarr@2.15.4(transitive)
- Removedsemver@7.6.3(transitive)
- Removedsemver-compare@1.0.0(transitive)
- Removedserialize-error@7.0.1(transitive)
- Removedsnyk@1.1293.1(transitive)
- Removedsprintf-js@1.1.3(transitive)
- Removedtype-fest@0.13.1(transitive)
Updateddeep-equal@^2.0.5
Updatedminimist@^1.2.6