@applitools/dom-snapshot
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.1.6 | ||
// @applitools/dom-snapshot@1.1.7 | ||
function __processPage() { | ||
@@ -3,0 +3,0 @@ var processPage = (function () { |
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.1.6 | ||
// @applitools/dom-snapshot@1.1.7 | ||
function __processPageAndPoll() { | ||
@@ -541,4 +541,9 @@ var processPageAndPoll = (function () { | ||
if (!window[EYES_NAME_SPACE]) { | ||
window[EYES_NAME_SPACE] = { | ||
processPageAndSerializeResult: {status: 'WIP', value: null, error: null}, | ||
window[EYES_NAME_SPACE] = {}; | ||
} | ||
if (!window[EYES_NAME_SPACE].processPageAndSerializeResult) { | ||
window[EYES_NAME_SPACE].processPageAndSerializeResult = { | ||
status: 'WIP', | ||
value: null, | ||
error: null, | ||
}; | ||
@@ -549,3 +554,8 @@ processPageAndSerialize_1(doc) | ||
} | ||
const resultObject = window[EYES_NAME_SPACE].processPageAndSerializeResult; | ||
if (resultObject.status === 'SUCCESS') { | ||
window[EYES_NAME_SPACE].processPageAndSerializeResult = null; | ||
} | ||
return Promise.resolve(JSON.stringify(resultObject)); | ||
@@ -552,0 +562,0 @@ } |
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.1.6 | ||
// @applitools/dom-snapshot@1.1.7 | ||
function __processPageAndSerialize() { | ||
@@ -3,0 +3,0 @@ var processPageAndSerialize = (function () { |
{ | ||
"name": "@applitools/dom-snapshot", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -8,4 +8,9 @@ 'use strict'; | ||
if (!window[EYES_NAME_SPACE]) { | ||
window[EYES_NAME_SPACE] = { | ||
processPageAndSerializeResult: {status: 'WIP', value: null, error: null}, | ||
window[EYES_NAME_SPACE] = {}; | ||
} | ||
if (!window[EYES_NAME_SPACE].processPageAndSerializeResult) { | ||
window[EYES_NAME_SPACE].processPageAndSerializeResult = { | ||
status: 'WIP', | ||
value: null, | ||
error: null, | ||
}; | ||
@@ -16,3 +21,8 @@ processPageAndSerialize(doc) | ||
} | ||
const resultObject = window[EYES_NAME_SPACE].processPageAndSerializeResult; | ||
if (resultObject.status === 'SUCCESS') { | ||
window[EYES_NAME_SPACE].processPageAndSerializeResult = null; | ||
} | ||
return Promise.resolve(JSON.stringify(resultObject)); | ||
@@ -19,0 +29,0 @@ } |
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
76376
1936