@percy/cli-snapshot 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/snapshot.js +5 -2
  2. package/package.json +3 -3
package/dist/snapshot.js CHANGED
@@ -84,9 +84,12 @@ export const snapshot = command('snapshot', {
84
84
 
85
85
  if (file) {
86
86
  // load snapshots file
87
- let snapshots = yield loadSnapshotFile(file); // accept a config object instead of an array of snapshots
87
+ let snapshots = yield loadSnapshotFile(file); // remove any references and accept an array of snapshots instead of an config object
88
88
 
89
- let config = Array.isArray(snapshots) ? {
89
+ let {
90
+ references,
91
+ ...config
92
+ } = Array.isArray(snapshots) ? {
90
93
  snapshots
91
94
  } : snapshots;
92
95
  options = merge(config, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/cli-snapshot",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,8 +32,8 @@
32
32
  ]
33
33
  },
34
34
  "dependencies": {
35
- "@percy/cli-command": "1.7.0",
35
+ "@percy/cli-command": "1.7.1",
36
36
  "yaml": "^2.0.0"
37
37
  },
38
- "gitHead": "f1418fb1effdaad2d32c65d1a358282ab1f9ec32"
38
+ "gitHead": "012892cdaf7a07aa1b5aa355017639cee0e8a19e"
39
39
  }