testcafe-blink-diff
Advanced tools
Comparing version 0.3.7 to 0.3.8
const path = require('path'); | ||
const fs = require('fs'); | ||
const isFullPage = process.argv.slice(2).indexOf('--full-page'); | ||
const isTakeSnapshot = process.argv.slice(2).indexOf('--take-snapshot'); | ||
const isFullPage = process.env.FULL_PAGE || process.argv.slice(2).indexOf('--full-page'); | ||
const isTakeSnapshot = process.env.TAKE_SNAPSHOT || process.argv.slice(2).indexOf('--take-snapshot'); | ||
const snapshotName = isTakeSnapshot > -1 ? process.argv.slice(2)[isTakeSnapshot + 1] : null; | ||
@@ -7,0 +7,0 @@ |
{ | ||
"name": "testcafe-blink-diff", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"description": "Visual regression for Testcafé through BlinkDiff", | ||
"main": "lib/index.js", | ||
"bin": { | ||
"testcafe-blink-diff": "bin/cli" | ||
"testcafe-blink-diff": "./bin/cli.js" | ||
}, | ||
@@ -25,12 +25,12 @@ "files": [ | ||
"glob": "^7.1.2", | ||
"open": "0.0.5", | ||
"open": "^6.4.0", | ||
"wargs": "^0.8.1" | ||
}, | ||
"devDependencies": { | ||
"bili": "^3.1.2", | ||
"eslint": "^5.3.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"bili": "^4.2.5", | ||
"eslint": "^6.4.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"somedom": "0.0.7" | ||
"somedom": "^0.1.3" | ||
} | ||
} |
@@ -47,1 +47,15 @@ [![NPM version](https://badge.fury.io/js/testcafe-blink-diff.png)](http://badge.fury.io/js/testcafe-blink-diff) | ||
</p> | ||
## API Options | ||
`takeSnapshot(t[, label[, options]])` | ||
- `label|options.label` — Readable name for the taken snapshot | ||
- `options.as` — Valid identifier for later comparison | ||
- `options.timeout` — Waiting time before taking snapshots | ||
- `options.selector` — String, or `Selector()` to match on the DOM | ||
- `options.blockOut` — List of `Selector()` nodes to "block-out" on the snapshot | ||
> "Block-out" means matched DOM nodes are covered by a solid-color overlay, helping to reduce unwanted differences if they change often, e.g. ads | ||
Type `npx testcafe-blink-diff --help` to list all available options. |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
61
15370
6
303
1
6
+ Addedis-wsl@1.1.0(transitive)
+ Addedopen@6.4.0(transitive)
- Removedopen@0.0.5(transitive)
Updatedopen@^6.4.0