@percy/dom
Advanced tools
Comparing version 1.0.0-beta.41 to 1.0.0-beta.42
@@ -7,4 +7,3 @@ (function (global, factory) { | ||
let process = {}; | ||
try { process = globalThis.process || {}; } catch (e) {} | ||
const process = (typeof globalThis !== "undefined" && globalThis.process) || {}; | ||
process.env = process.env || {}; | ||
@@ -364,12 +363,6 @@ process.env.__PERCY_BROWSERIFIED__ = true; | ||
/* istanbul ignore next */ | ||
// works around instances where the context has an incorrect global scope | ||
// https://github.com/mozilla/geckodriver/issues/1798 | ||
// works around instances where the context has an incorrect scope | ||
try { | ||
if (globalThis !== window) { | ||
window.PercyDOM = { | ||
serialize: serializeDOM | ||
}; | ||
} | ||
} catch (error) {// `globalThis` is probably not defined | ||
if (typeof window !== 'undefined') { | ||
window.PercyDOM = exports; | ||
} | ||
@@ -376,0 +369,0 @@ |
{ | ||
"name": "@percy/dom", | ||
"version": "1.0.0-beta.41", | ||
"version": "1.0.0-beta.42", | ||
"license": "MIT", | ||
@@ -27,3 +27,3 @@ "main": "dist/bundle.js", | ||
}, | ||
"gitHead": "2f6817c5d319f139e410affb132af268fc9f1d35" | ||
"gitHead": "1feffb5149eff71114ea583e10c098f75f497544" | ||
} |
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
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
16568
305