Comparing version 1.1.1 to 2.0.0
"use strict"; | ||
/*global phantom: false*/ | ||
/* global phantom: true */ | ||
var webpage = require("webpage"); | ||
@@ -42,3 +43,3 @@ var system = require("system"); | ||
setTimeout(function () { | ||
page.render(dest); | ||
page.render(dest, { format: "png" }); | ||
phantom.exit(); | ||
@@ -51,3 +52,3 @@ }, 0); | ||
return page.evaluate(function () { | ||
/*global document: false*/ | ||
/* global document: true */ | ||
@@ -54,0 +55,0 @@ var el = document.documentElement; |
{ | ||
"name": "svg2png", | ||
"description": "A SVG to PNG converter, using PhantomJS", | ||
"version": "1.1.1", | ||
"author": "Domenic Denicola <d@domenic.me> (https://domenic.me)", | ||
"license": "WTFPL", | ||
"repository": "domenic/svg2png", | ||
"main": "lib/svg2png.js", | ||
"files": [ | ||
"lib/" | ||
], | ||
"scripts": { | ||
"test": "mocha", | ||
"lint": "jshint lib && jshint test" | ||
}, | ||
"dependencies": { | ||
"phantomjs": "^1.9.16" | ||
}, | ||
"devDependencies": { | ||
"chai": "^2.2.0", | ||
"jshint": "^2.6.3", | ||
"mocha": "^2.2.1" | ||
} | ||
"name": "svg2png", | ||
"description": "A SVG to PNG converter, using PhantomJS", | ||
"version": "2.0.0", | ||
"author": "Domenic Denicola <d@domenic.me> (https://domenic.me)", | ||
"license": "WTFPL", | ||
"repository": "domenic/svg2png", | ||
"main": "lib/svg2png.js", | ||
"files": [ | ||
"lib/" | ||
], | ||
"scripts": { | ||
"test": "mocha", | ||
"lint": "jshint lib && jshint test" | ||
}, | ||
"dependencies": { | ||
"phantomjs": "^1.9.18" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.4.1", | ||
"jshint": "^2.8.0", | ||
"mocha": "^2.3.3" | ||
} | ||
} |
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
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
5764
Updatedphantomjs@^1.9.18