grunt-lib-phantomjs
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -5,3 +5,3 @@ /* | ||
* | ||
* Copyright (c) 2013 "Cowboy" Ben Alman, contributors | ||
* Copyright (c) 2015 "Cowboy" Ben Alman, contributors | ||
* Licensed under the MIT license. | ||
@@ -19,3 +19,3 @@ */ | ||
var semver = require('semver'); | ||
var Tempfile = require('temporary/lib/file'); | ||
var Tempfile = require('temporary').File; | ||
var EventEmitter2 = require('eventemitter2').EventEmitter2; | ||
@@ -60,4 +60,4 @@ | ||
var kill = function(){ | ||
// Only kill process if it's connected, otherwise an error would be thrown. | ||
if (phantomJSHandle.connected){ | ||
// Only kill process if it has a pid, otherwise an error would be thrown. | ||
if (phantomJSHandle.pid){ | ||
phantomJSHandle.kill(); | ||
@@ -64,0 +64,0 @@ } |
{ | ||
"name": "grunt-lib-phantomjs", | ||
"description": "Grunt and PhantomJS, sitting in a tree.", | ||
"version": "0.6.0", | ||
"homepage": "http://github.com/gruntjs/grunt-lib-phantomjs", | ||
"description": "Grunt and PhantomJS, sitting in a tree", | ||
"version": "0.7.0", | ||
"author": { | ||
@@ -10,9 +9,3 @@ "name": "Grunt Team", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/gruntjs/grunt-lib-phantomjs.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/gruntjs/grunt-lib-phantomjs/issues" | ||
}, | ||
"repository": "gruntjs/grunt-lib-phantomjs", | ||
"licenses": [ | ||
@@ -25,3 +18,3 @@ { | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
"node": ">=0.10.0" | ||
}, | ||
@@ -32,13 +25,13 @@ "scripts": { | ||
"dependencies": { | ||
"eventemitter2": "~0.4.9", | ||
"semver": "~1.0.14", | ||
"temporary": "~0.0.4", | ||
"phantomjs": "~1.9.0-1" | ||
"eventemitter2": "^0.4.9", | ||
"phantomjs": "^1.9.15", | ||
"semver": "^4.3.0", | ||
"temporary": "^0.0.8" | ||
}, | ||
"devDependencies": { | ||
"grunt-contrib-jshint": "~0.6.2", | ||
"grunt": "~0.4.0", | ||
"difflet": "~0.2.3", | ||
"express": "~3.1.1", | ||
"grunt-cli": "~0.1.13" | ||
"difflet": "^0.2.3", | ||
"express": "^4.11.2", | ||
"grunt": "^0.4.5", | ||
"grunt-cli": "^0.1.13", | ||
"grunt-contrib-jshint": "^0.11.0" | ||
}, | ||
@@ -45,0 +38,0 @@ "main": "lib/phantomjs", |
@@ -5,3 +5,3 @@ /* | ||
* | ||
* Copyright (c) 2012 "Cowboy" Ben Alman, contributors | ||
* Copyright (c) 2015 "Cowboy" Ben Alman, contributors | ||
* Licensed under the MIT license. | ||
@@ -108,2 +108,6 @@ */ | ||
phantom.onError = function(msg, trace) { | ||
sendMessage('error.onError', msg, trace); | ||
}; | ||
// Run before the page is loaded. | ||
@@ -110,0 +114,0 @@ page.onInitialized = function() { |
@@ -1,7 +0,6 @@ | ||
# grunt-lib-phantomjs | ||
# grunt-lib-phantomjs [![Build Status](https://travis-ci.org/gruntjs/grunt-lib-phantomjs.png?branch=master)](https://travis-ci.org/gruntjs/grunt-lib-phantomjs) | ||
[![Build Status](https://travis-ci.org/gruntjs/grunt-lib-phantomjs.png?branch=master)](https://travis-ci.org/gruntjs/grunt-lib-phantomjs) | ||
> Grunt and PhantomJS, sitting in a tree. | ||
## Usage | ||
@@ -108,5 +107,9 @@ | ||
## OS Dependencies | ||
PhantomJS requires these dependencies | ||
**On Ubuntu/Debian** | ||
apt-get install libfontconfig1 fontconfig libfontconfig1-dev libfreetype6-dev | ||
PhantomJS requires these dependencies on Ubuntu/Debian: | ||
``` | ||
apt-get install libfontconfig1 fontconfig libfontconfig1-dev libfreetype6-dev | ||
``` |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
295
115
15276
2
2
2
+ Addedsemver@4.3.6(transitive)
- Removedsemver@1.0.14(transitive)
Updatedeventemitter2@^0.4.9
Updatedphantomjs@^1.9.15
Updatedsemver@^4.3.0
Updatedtemporary@^0.0.8