@applitools/dom-snapshot
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.1.8 | ||
// @applitools/dom-snapshot@1.1.9 | ||
function __processPage() { | ||
@@ -3,0 +3,0 @@ var processPage = (function () { |
@@ -1,3 +0,3 @@ | ||
// @applitools/dom-snapshot@1.1.8 | ||
(function(){ | ||
// @applitools/dom-snapshot@1.1.9 | ||
function __processPageAndPoll() { | ||
var processPageAndPoll = (function () { | ||
@@ -567,4 +567,4 @@ 'use strict'; | ||
}()); | ||
return processPageAndPoll.apply(this, arguments); | ||
})() | ||
} |
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.1.8 | ||
// @applitools/dom-snapshot@1.1.9 | ||
function __processPageAndSerialize() { | ||
@@ -3,0 +3,0 @@ var processPageAndSerialize = (function () { |
{ | ||
"name": "@applitools/dom-snapshot", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
'use strict'; | ||
// type = 'function' : | ||
// This rollup plugin is meant to create a standalone function that can be consumed as a string and be sent to a remote browser for evaluation. | ||
@@ -7,3 +6,3 @@ // I couldn't find a way in rollup to create an iife that runs the actual code (instead of returning a function that runs the code) without polluting the global scope | ||
function wrapBundle(filename, type) { | ||
function wrapBundle(filename) { | ||
return { | ||
@@ -13,14 +12,7 @@ generateBundle: function(_outputOptions, bundle, _isWrite) { | ||
bundleFile.code = { | ||
iife: () => ` | ||
(function(){ | ||
${bundleFile.code} | ||
return ${filename}.apply(this, arguments); | ||
})()`, | ||
function: () => ` | ||
bundleFile.code = ` | ||
function __${filename}() { | ||
${bundleFile.code} | ||
return ${filename}.apply(this, arguments); | ||
}`, | ||
}[type](); | ||
}`; | ||
}, | ||
@@ -27,0 +19,0 @@ }; |
76342
1936