@percy/core 1.0.4 → 1.0.5

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 +1 -1
  2. package/package.json +6 -6
package/dist/snapshot.js CHANGED
@@ -151,7 +151,7 @@ export function validateSnapshotOptions(options) {
151
151
  for (let snap of snaps) validURL(typeof snap === 'string' ? snap : snap.url, baseUrl); // add back snapshots before validating and scrubbing; function snapshots are validated later
152
152
 
153
153
 
154
- if (snapshots) migrated.snapshots = typeof snapshots === 'function' ? [] : snapshots;
154
+ if (snapshots) migrated.snapshots = typeof snapshots === 'function' ? [] : snapshots;else if (!isSnapshot && options.snapshots) migrated.snapshots = [];
155
155
  let errors = PercyConfig.validate(migrated, schema);
156
156
 
157
157
  if (errors) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,10 +39,10 @@
39
39
  "test:types": "tsd"
40
40
  },
41
41
  "dependencies": {
42
- "@percy/client": "1.0.4",
43
- "@percy/config": "1.0.4",
44
- "@percy/dom": "1.0.4",
45
- "@percy/logger": "1.0.4",
42
+ "@percy/client": "1.0.5",
43
+ "@percy/config": "1.0.5",
44
+ "@percy/dom": "1.0.5",
45
+ "@percy/logger": "1.0.5",
46
46
  "content-disposition": "^0.5.4",
47
47
  "cross-spawn": "^7.0.3",
48
48
  "extract-zip": "^2.0.1",
@@ -53,5 +53,5 @@
53
53
  "rimraf": "^3.0.2",
54
54
  "ws": "^8.0.0"
55
55
  },
56
- "gitHead": "db5b67f953f01c9a6d13b7a5a1d701ab983215cc"
56
+ "gitHead": "7cf12904abb316ab7348332e68c8c0ef68d78097"
57
57
  }