gemini-faildump
Advanced tools
Comparing version 5.1.1 to 6.0.0
# Changelog | ||
## 6.0.0 | ||
feat: support the changed field name "imagePath" -> "img.path" | ||
## 5.0.0 | ||
@@ -4,0 +8,0 @@ |
@@ -7,5 +7,5 @@ 'use strict'; | ||
exports.buildError = (data, config, options) => { | ||
return (data.imagePath || data.saveDiffTo) | ||
return (data.img || data.saveDiffTo) | ||
? new ImageError(data, config, options) | ||
: new BaseError(data, config); | ||
}; |
@@ -15,4 +15,4 @@ 'use strict'; | ||
this.imagePath = data.imagePath || tempFS.resolveImagePath(); | ||
this.saveImg = data.imagePath ? Promise.resolve : data.saveDiffTo.bind(data); | ||
this.imagePath = _.get(data, 'img.path') || tempFS.resolveImagePath(); | ||
this.saveImg = _.get(data, 'img.path') ? Promise.resolve : data.saveDiffTo.bind(data); | ||
this.light = options.light; | ||
@@ -19,0 +19,0 @@ this.isDiff = !_.isUndefined(data.equal); |
{ | ||
"name": "gemini-faildump", | ||
"version": "5.1.1", | ||
"version": "6.0.0", | ||
"description": "Fail information plugin", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
11698