@percy/dom 1.28.4-alpha.0 → 1.28.4-beta.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.
- package/dist/bundle.js +2 -3
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -55,12 +55,11 @@
|
|
|
55
55
|
// Adds a `<base>` element to the serialized iframe's `<head>`. This is necessary when
|
|
56
56
|
// embedded documents are serialized and their contents become root-relative.
|
|
57
57
|
function setBaseURI(dom) {
|
|
58
|
-
var _dom$querySelector;
|
|
59
58
|
/* istanbul ignore if: sanity check */
|
|
60
59
|
if (!new URL(dom.baseURI).hostname) return;
|
|
61
60
|
let $base = document.createElement('base');
|
|
62
61
|
$base.href = dom.baseURI;
|
|
63
|
-
|
|
62
|
+
dom.querySelector('head').prepend($base);
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
// Recursively serializes iframe documents into srcdoc attributes.
|
|
@@ -536,7 +535,7 @@
|
|
|
536
535
|
`.replace(/(\n|\s{2}|\t)/g, '');
|
|
537
536
|
|
|
538
537
|
// run polyfill as first thing post dom content is loaded
|
|
539
|
-
|
|
538
|
+
clone.head.prepend(scriptEl);
|
|
540
539
|
}
|
|
541
540
|
|
|
542
541
|
// Returns a copy or new doctype for a document.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/dom",
|
|
3
|
-
"version": "1.28.4-
|
|
3
|
+
"version": "1.28.4-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public",
|
|
12
|
-
"tag": "
|
|
12
|
+
"tag": "beta"
|
|
13
13
|
},
|
|
14
14
|
"main": "dist/bundle.js",
|
|
15
15
|
"browser": "dist/bundle.js",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"interactor.js": "^2.0.0-beta.10"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "6f2c2bdf17f844b1add5f0c675163573893d301e"
|
|
39
39
|
}
|