@percy/dom 1.0.0-beta.68 → 1.0.0-beta.71
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 +7 -5
- package/package.json +2 -2
package/dist/bundle.js
CHANGED
|
@@ -69,9 +69,11 @@
|
|
|
69
69
|
} // Recursively serializes iframe documents into srcdoc attributes.
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
function serializeFrames(dom, clone, {
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
function serializeFrames(dom, clone, _ref) {
|
|
73
|
+
let {
|
|
74
|
+
enableJavaScript
|
|
75
|
+
} = _ref;
|
|
76
|
+
|
|
75
77
|
for (let frame of dom.querySelectorAll('iframe')) {
|
|
76
78
|
let percyElementId = frame.getAttribute('data-percy-element-id');
|
|
77
79
|
let cloneEl = clone.querySelector(`[data-percy-element-id="${percyElementId}"]`);
|
|
@@ -209,12 +211,12 @@
|
|
|
209
211
|
return doctype(dom) + doc.outerHTML;
|
|
210
212
|
}
|
|
211
213
|
|
|
212
|
-
exports[
|
|
214
|
+
exports["default"] = serializeDOM;
|
|
213
215
|
exports.serialize = serializeDOM;
|
|
214
216
|
|
|
215
217
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
216
218
|
|
|
217
|
-
}(this.PercyDOM = this.PercyDOM || {})
|
|
219
|
+
})(this.PercyDOM = this.PercyDOM || {});
|
|
218
220
|
}).call(window);
|
|
219
221
|
|
|
220
222
|
if (typeof define === "function" && define.amd) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/dom",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.71",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/bundle.js",
|
|
6
6
|
"browser": "dist/bundle.js",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"url": "https://github.com/percy/cli",
|
|
35
35
|
"directory": "packages/dom"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "364d1df717fb19a26ccb024458df6e78a9c11f99"
|
|
38
38
|
}
|