grunt-lib-phantomjs
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -25,3 +25,3 @@ /* | ||
// The module to be exported is an event emitter. | ||
var exports = new EventEmitter2({wildcard: true}); | ||
var exports = new EventEmitter2({wildcard: true, maxListeners: 0}); | ||
@@ -28,0 +28,0 @@ // Get an asset file, local to the root of the project. |
{ | ||
"name": "grunt-lib-phantomjs", | ||
"description": "Grunt and PhantomJS, sitting in a tree.", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"homepage": "http://github.com/gruntjs/grunt-lib-phantomjs", | ||
@@ -38,3 +38,4 @@ "author": { | ||
"grunt": "~0.4.0", | ||
"difflet": "~0.2.3" | ||
"difflet": "~0.2.3", | ||
"express": "~3.1.1" | ||
}, | ||
@@ -41,0 +42,0 @@ "main": "lib/phantomjs", |
@@ -47,3 +47,3 @@ /* | ||
// Create a new page. | ||
var page = require('webpage').create(); | ||
var page = require('webpage').create(options.page); | ||
@@ -123,3 +123,3 @@ // Inject bridge script into client page. | ||
// reset this handler to a no-op so further calls to onLoadFinished from iframes don't affect us | ||
page.onLoadFinished = function() { /* no-op */} | ||
page.onLoadFinished = function() { /* no-op */}; | ||
@@ -126,0 +126,0 @@ // The window has loaded. |
@@ -11,2 +11,8 @@ # grunt-lib-phantomjs | ||
### Options | ||
* `timeout`: PhantomJS' timeout, in milliseconds. | ||
* `inject`: JavaScript to inject into the page. | ||
* `page`: an object of options for the PhantomJS [`page` object](https://github.com/ariya/phantomjs/wiki/API-Reference-WebPage). | ||
## An inline example | ||
@@ -13,0 +19,0 @@ |
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
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
14325
116
4
1