pageres
Advanced tools
Comparing version 2.1.0 to 3.0.1
{ | ||
"name": "pageres", | ||
"version": "2.1.0", | ||
"version": "3.0.1", | ||
"description": "Capture website screenshots", | ||
@@ -16,9 +16,10 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "node test/test.js", | ||
"test": "xo && npm run prepublish && ava", | ||
"prepublish": "babel lib --out-dir=dist --optional=runtime", | ||
"coverage": "nyc npm test && nyc report", | ||
"coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls" | ||
}, | ||
"main": "dist/index.js", | ||
"files": [ | ||
"index.js", | ||
"util.js" | ||
"dist" | ||
], | ||
@@ -58,3 +59,3 @@ "keywords": [ | ||
"array-uniq": "^1.0.2", | ||
"each-async": "^1.0.0", | ||
"babel-runtime": "^5.8.29", | ||
"easydate": "^2.0.0", | ||
@@ -70,2 +71,4 @@ "es5-shim": "^4.0.3", | ||
"object-assign": "^3.0.0", | ||
"pify": "^2.3.0", | ||
"plur": "^2.0.0", | ||
"protocolify": "^1.0.0", | ||
@@ -77,10 +80,22 @@ "rimraf": "^2.2.8", | ||
"devDependencies": { | ||
"ava": "0.0.4", | ||
"concat-stream": "^1.4.5", | ||
"ava": "*", | ||
"babel": "^5.8.23", | ||
"cookie": "^0.1.2", | ||
"coveralls": "^2.11.2", | ||
"get-stream": "^1.0.0", | ||
"image-size": "^0.3.3", | ||
"nyc": "^2.1.4", | ||
"png-js": "^0.1.1" | ||
"nyc": "^3.2.2", | ||
"path-exists": "^2.0.0", | ||
"png-js": "^0.1.1", | ||
"rfpify": "^0.1.0", | ||
"xo": "*" | ||
}, | ||
"xo": { | ||
"esnext": true, | ||
"ignores": [ | ||
"dist/**", | ||
"lib/index.js", | ||
"test/_*.js" | ||
] | ||
} | ||
} |
@@ -7,3 +7,3 @@ # ![pageres](media/promo.png) | ||
*See [pageres-cli](https://github.com/sindresorhus/pageres-cli) for the command-line version.* | ||
*See [pageres-cli](https://github.com/sindresorhus/pageres-cli) for the command-line tool.* | ||
@@ -23,12 +23,10 @@ | ||
```js | ||
var Pageres = require('pageres'); | ||
const Pageres = require('pageres'); | ||
var pageres = new Pageres({delay: 2}) | ||
const pageres = new Pageres({delay: 2}) | ||
.src('yeoman.io', ['480x320', '1024x768', 'iphone 5s'], {crop: true}) | ||
.src('todomvc.com', ['1280x1024', '1920x1080']) | ||
.dest(__dirname); | ||
pageres.run(function (err) { | ||
console.log('done'); | ||
}); | ||
.dest(__dirname) | ||
.run() | ||
.then(() => console.log('done')); | ||
``` | ||
@@ -173,15 +171,9 @@ | ||
### pageres.run(callback) | ||
### pageres.run() | ||
Run pageres. | ||
Run pageres. Returns a promise for an array of streams. | ||
#### callback(error, [items]) | ||
Type: `function` | ||
If you don't set a `dest()` you'll get `items` in this callback, which is an array of streams. | ||
### pageres.on('warn', callback) | ||
Warnings with eg. page errors. | ||
Warnings with e.g. page errors. | ||
@@ -191,5 +183,5 @@ | ||
Check out [grunt-pageres](https://github.com/sindresorhus/grunt-pageres) if you're using grunt. | ||
Check out [grunt-pageres](https://github.com/sindresorhus/grunt-pageres) if you're using Grunt. | ||
For gulp or broccoli, just use the below API directly. No need for a wrapper plugin. | ||
For Gulp and Broccoli, just use the API directly. No need for a wrapper plugin. | ||
@@ -196,0 +188,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
23040
452
19
11
200
1
+ Addedbabel-runtime@^5.8.29
+ Addedpify@^2.3.0
+ Addedplur@^2.0.0
+ Addedbabel-runtime@5.8.38(transitive)
+ Addedcore-js@1.2.7(transitive)
+ Addedirregular-plurals@1.4.0(transitive)
+ Addedplur@2.1.2(transitive)
- Removedeach-async@^1.0.0
- Removedeach-async@1.1.1(transitive)
- Removedonetime@1.1.0(transitive)
- Removedset-immediate-shim@1.0.1(transitive)