@percy/core 1.0.6 → 1.1.0
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.
- package/dist/install.js +6 -6
- package/dist/snapshot.js +3 -17
- package/package.json +6 -6
package/dist/install.js
CHANGED
|
@@ -143,14 +143,14 @@ export function chromium({
|
|
|
143
143
|
directory,
|
|
144
144
|
executable
|
|
145
145
|
});
|
|
146
|
-
} // default chromium revisions corresponds to
|
|
146
|
+
} // default chromium revisions corresponds to v96.0.4664.0
|
|
147
147
|
|
|
148
148
|
chromium.revisions = {
|
|
149
|
-
linux: '
|
|
150
|
-
win64: '
|
|
151
|
-
win32: '
|
|
152
|
-
darwin: '
|
|
153
|
-
darwinArm: '
|
|
149
|
+
linux: '929511',
|
|
150
|
+
win64: '929483',
|
|
151
|
+
win32: '929483',
|
|
152
|
+
darwin: '929475',
|
|
153
|
+
darwinArm: '929475'
|
|
154
154
|
}; // export the namespace by default
|
|
155
155
|
|
|
156
156
|
export * as default from './install.js';
|
package/dist/snapshot.js
CHANGED
|
@@ -120,24 +120,10 @@ export async function gatherSnapshots(percy, options) {
|
|
|
120
120
|
// other invalid options which are also scrubbed from the returned migrated options.
|
|
121
121
|
|
|
122
122
|
export function validateSnapshotOptions(options) {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
if ('domSnapshot' in options) {
|
|
126
|
-
schema = '/snapshot/dom';
|
|
127
|
-
} else if ('url' in options) {
|
|
128
|
-
schema = '/snapshot';
|
|
129
|
-
} else if ('sitemap' in options) {
|
|
130
|
-
schema = '/snapshot/sitemap';
|
|
131
|
-
} else if ('serve' in options) {
|
|
132
|
-
schema = '/snapshot/server';
|
|
133
|
-
} else if ('snapshots' in options) {
|
|
134
|
-
schema = '/snapshot/list';
|
|
135
|
-
} else {
|
|
136
|
-
schema = '/snapshot';
|
|
137
|
-
}
|
|
138
|
-
|
|
123
|
+
// decide which schema to validate against
|
|
124
|
+
let schema = ['domSnapshot', 'dom-snapshot', 'dom_snapshot'].some(k => k in options) && '/snapshot/dom' || 'url' in options && '/snapshot' || 'sitemap' in options && '/snapshot/sitemap' || 'serve' in options && '/snapshot/server' || 'snapshots' in options && '/snapshot/list' || '/snapshot';
|
|
139
125
|
let {
|
|
140
|
-
// migrate and remove certain properties from validating
|
|
126
|
+
// normalize, migrate, and remove certain properties from validating
|
|
141
127
|
clientInfo,
|
|
142
128
|
environmentInfo,
|
|
143
129
|
snapshots,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/core",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
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
|
|
43
|
-
"@percy/config": "1.0
|
|
44
|
-
"@percy/dom": "1.0
|
|
45
|
-
"@percy/logger": "1.0
|
|
42
|
+
"@percy/client": "1.1.0",
|
|
43
|
+
"@percy/config": "1.1.0",
|
|
44
|
+
"@percy/dom": "1.1.0",
|
|
45
|
+
"@percy/logger": "1.1.0",
|
|
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": "
|
|
56
|
+
"gitHead": "bf551295a8a618502bb2db92ff302e19dc956b51"
|
|
57
57
|
}
|