Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pix-diff

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pix-diff - npm Package Compare versions

Comparing version 1.0.13 to 1.0.14

3

CHANGELOG.md
Changelog
=========
V1.0.14 - Merged PR #30 to add extra variables to formatImageName (credit to koningskristof)
- Merged PR #31 to fix constructor JSdocs (credit to abierbaum) (13/10/2016)
v1.0.13 - Added auto resize option (13/09/2016)

@@ -4,0 +7,0 @@

8

index.js

@@ -17,4 +17,4 @@ 'use strict';

* @param {string} options.basePath Path to screenshots folder
* @param {string} options.width Width of browser
* @param {string} options.height Height of browser
* @param {int} options.width Width of browser
* @param {int} options.height Height of browser
* @param {boolean} options.autoResize Automatically resize the browser

@@ -64,2 +64,4 @@ * @param {string} options.formatImageOptions Custom variables for Image Name

this.deviceName = _.capabilities.deviceName ? camelCase(_.capabilities.deviceName) : '';
this.name = _.capabilities.name ? _.capabilities.name : '';
this.logName = _.capabilities.logName ? _.capabilities.logName : '';

@@ -125,2 +127,4 @@ if (_.framework !== 'custom') {

'deviceName': this.deviceName,
'name': this.name,
'logName': this.logName,
'dpr': this.devicePixelRatio,

@@ -127,0 +131,0 @@ 'width': this.width,

{
"name": "pix-diff",
"version": "1.0.13",
"version": "1.0.14",
"description": "Protractor plugin for image comparison",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -177,2 +177,5 @@ Pix-Diff

* ```dpr``` The device pixel ratio
* ```name``` The name from capabilities
* ```logName``` The logName from capabilities
* ```deviceName``` The deviceName from capabilities

@@ -179,0 +182,0 @@ Images specified via name in the spec method will be selected according to the browsers current resolution. That is to say that multiple images can share the same name differentated by resolution.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc