Skip to content

Commit

Permalink
Rebuild and retest
Browse files Browse the repository at this point in the history
  • Loading branch information
SbDove committed Jun 11, 2024
1 parent 86190a0 commit f89c848
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"testEndToEnd": "ENVIRONMENT=testEndToEnd rollup --config rollup.config.js && open http://localhost:8082/node_modules/@mparticle/web-kit-wrapper/end-to-end-testapp/index.html && node node_modules/@mparticle/web-kit-wrapper/end-to-end-testapp/server"
},
"devDependencies": {
"@mparticle/web-kit-wrapper": "^1.0.6",
"@mparticle/web-kit-wrapper": "^1.0.5",
"mocha": "^5.2.0",
"chai": "^4.2.0",
"karma": "^3.1.1",
Expand Down
39 changes: 19 additions & 20 deletions test/end-to-end-testapp/build/compilation.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,32 +183,31 @@ var HeapKit = (function (exports) {
*/


if (!window.heap) {
if (!window.heap) {
window.heap = window.heap || [];
heap.load = function (e, t) {
window.heap.appid = e, window.heap.config = t = t || {};
var r = document.createElement("script");
r.type = "text/javascript", r.async = !0, r.src = "https://cdn.heapanalytics.com/js/heap-" + e + ".js";
var a = document.getElementsByTagName("script")[0]; a.parentNode.insertBefore(r, a);
for (var n = function (e) { return function () { heap.push([e].concat(Array.prototype.slice.call(arguments, 0))); } },
p = ["addEventProperties", "addUserProperties", "clearEventProperties", "identify", "resetIdentity", "removeEventProperty", "setEventProperties", "track", "unsetEventProperty"],
o = 0;
o < p.length; o++)heap[p[o]] = n(p[o]);
};
heap.load(forwarderSettings.appId);

heapScript.onload = function () {

if (window.heap && eventQueue.length > 0) {
// Process any events that may have been queued up while forwarder was being initialized.
for (var i = 0; i < eventQueue.length; i++) {
processEvent(eventQueue[i]);
var heapScript = document.createElement("script");
heapScript.type = "text/javascript";
heapScript.async = !0;
heapScript.src = "https://cdn.heapanalytics.com/js/heap-" + e + ".js";
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(heapScript);

heapScript.onload = function () {

if (window.heap && eventQueue.length > 0) {
// Process any events that may have been queued up while forwarder was being initialized.
for (var i = 0; i < eventQueue.length; i++) {
processEvent(eventQueue[i]);
}
// now that each queued event is processed, we empty the eventQueue
eventQueue = [];
}
// now that each queued event is processed, we empty the eventQueue
eventQueue = [];
}

};
};

window.heap.load(forwarderSettings.appId);
}


Expand Down

0 comments on commit f89c848

Please sign in to comment.