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

mocha-phantomjs-core

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-phantomjs-core - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

32

mocha-phantomjs-core.js

@@ -21,2 +21,18 @@ var

// Create and configure the client page
var
output = config.file ? fs.open(config.file, 'w') : system.stdout,
page = webpage.create({
settings: config.settings
}),
fail = function(msg, errno) {
if (output && config.file) {
output.close()
}
if (msg) {
system.stderr.writeLine(msg)
}
return phantom.exit(errno || 1)
}
if (config.hooks) {

@@ -39,18 +55,2 @@ hookData = {

// Create and configure the client page
var
output = config.file ? fs.open(config.file, 'w') : system.stdout,
page = webpage.create({
settings: config.settings
}),
fail = function(msg, errno) {
if (output && config.file) {
output.close()
}
if (msg) {
system.stderr.writeLine(msg)
}
return phantom.exit(errno || 1)
}
if (config.headers) {

@@ -57,0 +57,0 @@ page.customHeaders = config.headers

@@ -12,3 +12,3 @@ {

],
"version": "1.0.0",
"version": "1.0.1",
"author": "Nathan Black <nathan@nathanblack.org> (https://github.com/nathanboktae)",

@@ -15,0 +15,0 @@ "licenses": [

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