@equinor/echo-base
Advanced tools
Comparing version 0.6.7 to 0.6.8
@@ -74,5 +74,3 @@ import { __awaiter, __generator } from "tslib"; | ||
script.onload = function () { return resolve(verifyAppWithModule(name, script.module)); }; | ||
script.onerror = function () { | ||
reject("Could not load module ".concat(name)); | ||
}; | ||
script.onerror = function () { return reject("Could not load module ".concat(name)); }; | ||
document.head.appendChild(script); | ||
@@ -128,3 +126,2 @@ })]; | ||
return __generator(this, function (_b) { | ||
appendScriptTagToDom(name, link, requireRef, dependencies, crossOrigin, integrity).catch(function () { return console.error; }); | ||
return [2 /*return*/, appendScriptTagToDom(name, link, requireRef, dependencies, crossOrigin, integrity)]; | ||
@@ -131,0 +128,0 @@ }); |
@@ -77,5 +77,3 @@ "use strict"; | ||
script.onload = function () { return resolve(verifyAppWithModule(name, script.module)); }; | ||
script.onerror = function () { | ||
reject("Could not load module ".concat(name)); | ||
}; | ||
script.onerror = function () { return reject("Could not load module ".concat(name)); }; | ||
document.head.appendChild(script); | ||
@@ -134,3 +132,2 @@ })]; | ||
return tslib_1.__generator(this, function (_b) { | ||
appendScriptTagToDom(name, link, requireRef, dependencies, crossOrigin, integrity).catch(function () { return console.error; }); | ||
return [2 /*return*/, appendScriptTagToDom(name, link, requireRef, dependencies, crossOrigin, integrity)]; | ||
@@ -137,0 +134,0 @@ }); |
{ | ||
"name": "@equinor/echo-base", | ||
"version": "0.6.7", | ||
"version": "0.6.8", | ||
"module": "esm/index.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -88,5 +88,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
script.onload = (): void => resolve(verifyAppWithModule(name, script.module)); | ||
script.onerror = (): void => { | ||
reject(`Could not load module ${name}`); | ||
}; | ||
script.onerror = (): void => reject(`Could not load module ${name}`); | ||
@@ -136,4 +134,3 @@ document.head.appendChild(script); | ||
): Promise<ModuleData> { | ||
appendScriptTagToDom(name, link, requireRef, dependencies, crossOrigin, integrity).catch(() => console.error); | ||
return appendScriptTagToDom(name, link, requireRef, dependencies, crossOrigin, integrity); | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
272387
5508