@percy/cli-snapshot
Advanced tools
Comparing version 1.26.2 to 1.26.3-alpha.4
@@ -0,1 +1,4 @@ | ||
const _excluded = ["references"]; | ||
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
import fs from 'fs'; | ||
@@ -79,8 +82,9 @@ import path from 'path'; | ||
// remove any references and accept an array of snapshots instead of an config object | ||
let { | ||
references, | ||
...config | ||
} = Array.isArray(snapshots) ? { | ||
snapshots | ||
} : snapshots; | ||
let _ref = Array.isArray(snapshots) ? { | ||
snapshots | ||
} : snapshots, | ||
{ | ||
references | ||
} = _ref, | ||
config = _objectWithoutProperties(_ref, _excluded); | ||
options = merge(config, { | ||
@@ -134,3 +138,6 @@ baseUrl, | ||
return objs.reduce((target, obj) => { | ||
for (let k in obj) target[k] = obj[k] ?? target[k]; | ||
for (let k in obj) { | ||
var _obj$k; | ||
target[k] = (_obj$k = obj[k]) !== null && _obj$k !== void 0 ? _obj$k : target[k]; | ||
} | ||
return target; | ||
@@ -137,0 +144,0 @@ }, {}); |
{ | ||
"name": "@percy/cli-snapshot", | ||
"version": "1.26.2", | ||
"version": "1.26.3-alpha.4", | ||
"license": "MIT", | ||
@@ -12,3 +12,3 @@ "repository": { | ||
"access": "public", | ||
"tag": "latest" | ||
"tag": "alpha" | ||
}, | ||
@@ -37,6 +37,6 @@ "engines": { | ||
"dependencies": { | ||
"@percy/cli-command": "1.26.2", | ||
"@percy/cli-command": "1.26.3-alpha.4", | ||
"yaml": "^2.0.0" | ||
}, | ||
"gitHead": "f97b6c463109420a4045dc0396bf9d429c2dc77d" | ||
"gitHead": "d89ab97b8d5169eafd3eb42bdbbef41a2ac624ba" | ||
} |
@@ -211,3 +211,3 @@ # @percy/cli-snapshot | ||
rewrites: {} | ||
overrides: [] | ||
options: [] | ||
``` | ||
@@ -260,8 +260,8 @@ | ||
- **overrides** - An array of per-snapshot option overrides. | ||
- **options** - An array of per-snapshot options. | ||
Just like [page listing options](#page-options), static snapshots may also contain | ||
per-snapshot configuration options. However, since pages are matched against the `files` | ||
option, so are per-snapshot configuration options via an array of `overrides`. If multiple | ||
overrides match a snapshot, they will be merged with previously matched overrides. | ||
option, so are per-snapshot configuration options via an array of `options`. If multiple | ||
options match a snapshot, they will be merged with previously matched options. | ||
@@ -272,3 +272,3 @@ ``` yaml | ||
static: | ||
overrides: | ||
options: | ||
- files: /foo-bar.html | ||
@@ -283,3 +283,3 @@ waitForSelector: .is-ready | ||
When providing a sitemap URL, the document must be an XML document. For sitemap URLs the `--include` and | ||
`--exclude` flags can be used to filter snapshots. With a Percy config file, the `overrides` option | ||
`--exclude` flags can be used to filter snapshots. With a Percy config file, the `options` option | ||
is also accepted. | ||
@@ -315,6 +315,6 @@ | ||
exclude: [] | ||
overrides: [] | ||
options: [] | ||
``` | ||
See [the corresponding static options](#static-options) for details on `includes`, `excludes`, and | ||
`overrides` options. | ||
`options` options. |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
17758
201
2
+ Added@percy/cli-command@1.26.3-alpha.4(transitive)
+ Added@percy/client@1.26.3-alpha.4(transitive)
+ Added@percy/config@1.26.3-alpha.4(transitive)
+ Added@percy/core@1.26.3-alpha.4(transitive)
+ Added@percy/dom@1.26.3-alpha.4(transitive)
+ Added@percy/env@1.26.3-alpha.4(transitive)
+ Added@percy/logger@1.26.3-alpha.4(transitive)
- Removed@percy/cli-command@1.26.2(transitive)
- Removed@percy/client@1.26.2(transitive)
- Removed@percy/config@1.26.2(transitive)
- Removed@percy/core@1.26.2(transitive)
- Removed@percy/dom@1.26.2(transitive)
- Removed@percy/env@1.26.2(transitive)
- Removed@percy/logger@1.26.2(transitive)