pageres
Advanced tools
Comparing version 5.2.0 to 5.2.1
@@ -5,8 +5,8 @@ "use strict"; | ||
const url_1 = require("url"); // eslint-disable-line node/no-deprecated-api | ||
const path = require("path"); | ||
const fs = require("fs"); | ||
const EventEmitter = require("events"); | ||
const p_memoize_1 = require("p-memoize"); | ||
const filenamify_1 = require("filenamify"); | ||
const unused_filename_1 = require("unused-filename"); | ||
const path = require("path"); | ||
const fs = require("fs"); | ||
const EventEmitter = require("events"); | ||
const arrayUniq = require("array-uniq"); | ||
@@ -13,0 +13,0 @@ const arrayDiffer = require("array-differ"); |
{ | ||
"name": "pageres", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"description": "Capture website screenshots", | ||
@@ -12,3 +12,3 @@ "license": "MIT", | ||
}, | ||
"main": "dist", | ||
"main": "dist/index.js", | ||
"engines": { | ||
@@ -102,3 +102,3 @@ "node": ">=8" | ||
}, | ||
"types": "dist", | ||
"types": "dist/index.d.ts", | ||
"ava": { | ||
@@ -125,2 +125,3 @@ "babel": false, | ||
"import/no-unresolved": "off", | ||
"import/first": "off", | ||
"import/newline-after-import": "off", | ||
@@ -127,0 +128,0 @@ "no-dupe-class-members": "off", |
@@ -9,3 +9,2 @@ # ![pageres](media/promo.png) | ||
## Install | ||
@@ -19,3 +18,2 @@ | ||
## Usage | ||
@@ -33,2 +31,4 @@ | ||
.run(); | ||
console.log('Finished generating screenshots!'); | ||
})(); | ||
@@ -39,3 +39,3 @@ ``` | ||
### Pageres([options]) | ||
### Pageres(options?) | ||
@@ -48,3 +48,3 @@ #### options | ||
Type: `number` *(Seconds)*<br> | ||
Type: `number` *(Seconds)*\ | ||
Default: `0` | ||
@@ -58,3 +58,3 @@ | ||
Type: `number` *(Seconds)*<br> | ||
Type: `number` *(Seconds)*\ | ||
Default: `60` | ||
@@ -66,3 +66,3 @@ | ||
Type: `boolean`<br> | ||
Type: `boolean`\ | ||
Default: `false` | ||
@@ -96,4 +96,4 @@ | ||
Define a customized filename using [Lo-Dash templates](https://lodash.com/docs#template).<br> | ||
For example `<%= date %> - <%= url %>-<%= size %><%= crop %>`. | ||
Define a customized filename using [Lo-Dash templates](https://lodash.com/docs#template).\ | ||
For example: `<%= date %> - <%= url %>-<%= size %><%= crop %>`. | ||
@@ -112,3 +112,3 @@ Available variables: | ||
Type: `boolean`<br> | ||
Type: `boolean`\ | ||
Default: `false` | ||
@@ -144,3 +144,3 @@ | ||
Type: `number`<br> | ||
Type: `number`\ | ||
Default: `1` | ||
@@ -152,5 +152,5 @@ | ||
Type: `string`<br> | ||
Default: `png`<br> | ||
Values: `png` `jpg` | ||
Type: `string`\ | ||
Default: `png`\ | ||
Values: `'png' | 'jpg'` | ||
@@ -173,3 +173,3 @@ Image format. | ||
Type: `boolean`<br> | ||
Type: `boolean`\ | ||
Default: `false` | ||
@@ -179,3 +179,3 @@ | ||
### pageres.src(url, sizes, [options]) | ||
### pageres.src(url, sizes, options?) | ||
@@ -186,3 +186,3 @@ Add a page to screenshot. | ||
*Required*<br> | ||
*Required*\ | ||
Type: `string` | ||
@@ -194,3 +194,3 @@ | ||
*Required*<br> | ||
*Required*\ | ||
Type: `string[]` | ||
@@ -200,6 +200,6 @@ | ||
A keyword is a version of a device from [this list](http://viewportsizes.com). | ||
You can also pass in the `w3counter` keyword to use the ten most popular | ||
resolutions from [w3counter](http://www.w3counter.com/globalstats.php). | ||
A keyword is a version of a device from [this list](https://github.com/kevva/viewport-list/blob/master/data.json). | ||
You can also pass in the `w3counter` keyword to use the ten most popular resolutions from [w3counter](http://www.w3counter.com/globalstats.php). | ||
#### options | ||
@@ -223,3 +223,2 @@ | ||
## Task runners | ||
@@ -231,3 +230,2 @@ | ||
## Built with Pageres | ||
@@ -237,5 +235,4 @@ | ||
## Related | ||
- [capture-website](https://github.com/sindresorhus/capture-website) - A different take on screenshotting websites |
Sorry, the diff of this file is not supported yet
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
24637
0
220