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.4.0 to 4.5.0

.github/dependabot.yml

37

CHANGELOG.md
# 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

20

lib/cfpathcheck.js

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

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