Socket
Socket
Sign inDemoInstall

access-sniff

Package Overview
Dependencies
158
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.0 to 3.2.0

5

dist/app/index.js

@@ -85,3 +85,6 @@ 'use strict';

if (!_this.options.force && totalIssueCount.error) {
return _bluebird2.default.reject(errorMessage);
return _bluebird2.default.reject({
errorMessage: errorMessage,
reportLogs: reportLogs
});
}

@@ -88,0 +91,0 @@

13

dist/cli/index.js

@@ -31,3 +31,3 @@ 'use strict';

_commander2.default.version(_package2.default.version).option('-r, --reportType [reportType]', 'Report type [json]', 'json').option('-l, --reportLocation [reportLocation]', 'Report Location [reports]', 'reports').option('-q, --quiet', 'No terminal output').parse(cliOptions);
_commander2.default.version(_package2.default.version).option('-r, --reportType [reportType]', 'Report type [json]', 'json').option('-l, --reportLocation [reportLocation]', 'Report Location [reports]', 'reports').option('-f, --force', 'No failure in case of errors').option('-q, --quiet', 'No terminal output').parse(cliOptions);

@@ -43,2 +43,6 @@ if (!_commander2.default.args.length) {

if (_commander2.default.force) {
options.force = true;
}
if (_commander2.default.quiet) {

@@ -48,6 +52,11 @@ options.verbose = false;

new _app2.default(options).run(_commander2.default.args).then(function (reportData) {
function writeReport(reportData) {
if (options.reportType || options.reportLocation) {
return (0, _reports2.default)(reportData, options);
}
}
new _app2.default(options).run(_commander2.default.args).then(writeReport, function (result) {
writeReport(result.reportLogs);
return Promise.reject(result.errorMessage);
});

@@ -54,0 +63,0 @@ };

@@ -37,3 +37,3 @@ 'use strict';

reportType: 'json',
location: ''
reportLocation: ''
};

@@ -49,3 +49,3 @@

if (options.location) {
if (options.reportLocation) {
report.writeFile();

@@ -64,3 +64,3 @@ }

type: options.reportType,
location: options.location,
location: options.reportLocation,
output: ''

@@ -67,0 +67,0 @@ };

@@ -16,5 +16,5 @@ 'use strict';

var _jsdom = require('jsdom');
var _oldApi = require('jsdom/lib/old-api');
var _jsdom2 = _interopRequireDefault(_jsdom);
var _oldApi2 = _interopRequireDefault(_oldApi);

@@ -36,3 +36,3 @@ var _bluebird = require('bluebird');

var messages = [];
var vConsole = _jsdom2.default.createVirtualConsole();
var vConsole = _oldApi2.default.createVirtualConsole();
var jsDomOptions = {

@@ -45,3 +45,2 @@ scripts: [scriptPath],

}
window.HTMLCS_RUNNER.run(accessibilityLevel);

@@ -67,3 +66,3 @@ }

_jsdom2.default.env(jsDomOptions);
_oldApi2.default.env(jsDomOptions);
});

@@ -70,0 +69,0 @@ };

{
"name": "access-sniff",
"version": "3.1.0",
"version": "3.2.0",
"description": "A node/iojs library & CLI for HTML_Codesniffer",

@@ -37,36 +37,35 @@ "main": "dist/",

"dependencies": {
"HTML_CodeSniffer": "squizlabs/HTML_CodeSniffer#2.0.7",
"axios": "^0.9.1",
"bluebird": "^3.3.1",
"chalk": "^1.1.1",
"commander": "^2.6.0",
"glob": "^7.1.1",
"jsdom": "^9.8.3",
"axios": "^0.18.0",
"bluebird": "^3.5.1",
"chalk": "^2.3.1",
"commander": "^2.14.1",
"glob": "^7.1.2",
"html_codesniffer": "^2.1.1",
"jsdom": "^11.6.2",
"mkdirp": "^0.5.1",
"phantomjs-prebuilt": "^2.1.12",
"rc": "^1.1.6",
"underscore": "^1.8.2",
"unixify": "^0.2.1",
"validator": "^5.0.0"
"phantomjs-prebuilt": "^2.1.16",
"rc": "^1.2.5",
"underscore": "^1.8.3",
"unixify": "^1.0.0",
"validator": "^9.4.1"
},
"devDependencies": {
"babel-core": "^6.14.0",
"babel-eslint": "^7.0.0",
"babel-plugin-syntax-flow": "^6.3.13",
"babel-plugin-transform-flow-strip-types": "^6.4.0",
"babel-preset-es2015": "^6.11.3",
"benchmark": "^2.1.2",
"del": "^2.2.2",
"eslint": "^3.6.1",
"flow-bin": "^0.34.0",
"gulp": "^3.9.1",
"babel-core": "^6.26.0",
"babel-eslint": "^8.2.1",
"babel-plugin-syntax-flow": "^6.18.0",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-preset-es2015": "^6.24.1",
"benchmark": "^2.1.4",
"del": "^3.0.0",
"eslint": "^4.18.0",
"flow-bin": "^0.66.0",
"gulp": "^4.0.0",
"gulp-babel": "^6.1.2",
"gulp-concat": "^2.6.0",
"gulp-eslint": "^3.0.1",
"gulp-istanbul": "^1.1.1",
"gulp-nodeunit": "0.0.5",
"gulp-concat": "^2.6.1",
"gulp-eslint": "^4.0.2",
"gulp-istanbul": "^1.1.3",
"gulp-nodeunit": "^0.1.0",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^2.0.0",
"run-sequence": "^1.1.5"
"gulp-uglify": "^3.0.0"
}
}

@@ -226,3 +226,6 @@ # AccessSniff

#### Force
`-f` or `-force`
#### Quiet
`-q` or `-quiet`

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc