happo-cypress
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -116,3 +116,3 @@ /******/ (function(modules) { // webpackBootstrap | ||
/******/ // eslint-disable-next-line no-unused-vars | ||
/******/ var hotCurrentHash = "43f05c6bd1d51b8f9a71"; | ||
/******/ var hotCurrentHash = "26cd8d6c2e85b040003c"; | ||
/******/ var hotRequestTimeout = 10000; | ||
@@ -119,0 +119,0 @@ /******/ var hotCurrentModuleData = {}; |
@@ -86,2 +86,3 @@ const crypto = require('crypto'); | ||
variant, | ||
targets: options.targets, | ||
}); | ||
@@ -88,0 +89,0 @@ }); |
{ | ||
"name": "happo-cypress", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "A Happo integration with Cypress.io", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -67,2 +67,3 @@ const nodeFetch = require('node-fetch'); | ||
variant: rawVariant, | ||
targets, | ||
}) { | ||
@@ -74,3 +75,3 @@ if (!happoConfig) { | ||
snapshotAssetUrls.push(...assetUrls); | ||
snapshots.push({ html, component, variant }); | ||
snapshots.push({ html, component, variant, targets }); | ||
cssBlocks.forEach(block => { | ||
@@ -115,2 +116,5 @@ if (allCssBlocks.some(b => b.key === block.key)) { | ||
Object.keys(happoConfig.targets).map(async name => { | ||
const snapshotsForTarget = snapshots.filter( | ||
({ targets }) => !targets || targets.includes(name), | ||
); | ||
const requestIds = await happoConfig.targets[name].execute({ | ||
@@ -122,3 +126,3 @@ targetName: name, | ||
assetsPackage, | ||
snapPayloads: snapshots, | ||
snapPayloads: snapshotsForTarget, | ||
apiKey: happoConfig.apiKey, | ||
@@ -125,0 +129,0 @@ apiSecret: happoConfig.apiSecret, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
8404609
114
58011