Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@quailjs/quail-cli

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quailjs/quail-cli - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

lib/evaluators/phantom_evaluator.js

12

lib/config.js

@@ -1,8 +0,10 @@

const fs = require('fs');
const path = require('path');
'use strict';
let cwd = process.cwd();
var fs = require('fs');
var path = require('path');
let getLocalConfig = callback => {
let configFilePath = path.join(cwd, '.quailrc');
var cwd = process.cwd();
var getLocalConfig = function getLocalConfig(callback) {
var configFilePath = path.join(cwd, '.quailrc');
fs.readFile(configFilePath, 'utf8', function (err, data) {

@@ -9,0 +11,0 @@ if (err) {

#!/usr/bin/env node --harmony
'use strict';
const path = require('path');
const configUtil = require('./config');
const cwd = process.cwd();
var path = require('path');
var configUtil = require('./config');
var cwd = process.cwd();
module.exports = function quailBuild() {
const quailCore = require(path.join(cwd, 'node_modules', '@quailjs/quail-core'));
var quailCore = require(path.join(cwd, 'node_modules', '@quailjs/quail-core'));
// Get a list of assessments.

@@ -11,0 +11,0 @@ configUtil.getLocalConfig(function (data) {

@@ -8,5 +8,5 @@ #!/usr/bin/env node --harmony

var appOpener = require('opener');
let config = require('./config');
let cwd = process.cwd();
let state = {};
var config = require('./config');
var cwd = process.cwd();
var state = {};

@@ -24,3 +24,2 @@ function serveAssessmentTestPage(response, assessmentName) {

// Javascript resources.
source += '<script src="' + state.jquery + '" type="application/javascript"></script>';
source += ['<script>', 'window.assessmentName = \'' + assessmentName + '\';', '</script>'].join('\n');

@@ -85,3 +84,3 @@ source += '<script src="' + state.quail + '" type="application/javascript"></script>';

// HTTP server for testing fixtures like jQuery and Quail.
// HTTP server for testing fixtures.
http.createServer(function (request, response) {

@@ -139,3 +138,2 @@ var accepts = request.headers.accept;

config.getLocalConfig(function (data) {
state.jquery = data.jquery;
state.quail = data.quail;

@@ -142,0 +140,0 @@ state.assessmentSpecsPath = data.assessmentSpecsPath;

@@ -12,9 +12,9 @@ #!/usr/bin/env node --harmony

// Change to the dist dir.
var cwd = path.join(__dirname, '..');
var cwd = process.cwd();
var runnerScript;
var phantomjsExec = path.join(__dirname, '..', 'node_modules/.bin/phantomjs');
var phantomjsExec = path.join(cwd, 'node_modules/phantomjs/bin/phantomjs');
var runners = {
'default': path.join(__dirname, '..', 'lib/evaluators/phantom_evaluator.js'),
wcag2: path.join(__dirname, '..', 'lib/evaluators/wcag2_evaluator.js')
'default': path.join(__dirname, 'evaluators/phantom_evaluator.js'),
wcag2: path.join(__dirname, 'evaluators/wcag2_evaluator.js')
};

@@ -28,5 +28,5 @@

var args = [runnerScript, url, cwd];
var args = [phantomjsExec, runnerScript, url, cwd];
// Determine the configuration file path.
var configFilePath = path.join(__dirname, '..', 'config/config.json');
var configFilePath = path.join(__dirname, '..', '.phantomrc');
if (cmd.config) {

@@ -41,3 +41,3 @@ configFilePath = cmd.config;

}
var proc = spawn(phantomjsExec, args, {
var proc = spawn('node', args, {
stdio: 'inherit'

@@ -44,0 +44,0 @@ });

{
"name": "@quailjs/quail-cli",
"description": "The Quail command line interface",
"version": "0.0.11",
"version": "0.0.12",
"author": {

@@ -18,6 +18,7 @@ "name": "Jesse Beach",

"commander": "^2.9.0",
"opener": "^1.4.1"
"opener": "^1.4.1",
"phantomjs": "^1.9.18"
},
"scripts": {
"compile": "babel --presets stage-2 -d lib/ src/",
"compile": "babel -d lib/ src/",
"prepublish": "npm run compile",

@@ -33,4 +34,5 @@ "test": "jscs -c .jscsrc src bin && eslint -c .eslintrc src bin",

"babel-eslint": "^5.0.0-beta4",
"babel-plugin-transform-object-rest-spread": "^6.3.13",
"babel-polyfill": "^6.2.0",
"babel-preset-stage-2": "^6.1.18",
"babel-preset-es2015": "^6.3.13",
"eslint": "^1.10.1",

@@ -45,4 +47,4 @@ "jscs": "jscs-dev/node-jscs#c5adeba",

"watch": {
"compile": "src/*.js"
"compile": "src/**/*.js"
}
}
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