core-dashboard-worona
Advanced tools
Comparing version 1.3.3 to 1.3.4
{ | ||
"name": "core-dashboard-worona", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Core Package of Worona Dashboard", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -20,5 +20,6 @@ /* eslint-disable no-constant-condition, no-undef, global-require, import/no-dynamic-require */ | ||
// having to recompile the core-dashboard-worona package, so we can't use Webpack here. | ||
export const requireRemotePackage = pkg => new Promise((resolve) => { | ||
export const requireRemotePackage = pkg => new Promise((resolve, reject) => { | ||
SystemJS.import(`https://cdn.worona.io/packages/${pkg.main}`) | ||
.then(module => resolve(module)); | ||
.then(module => resolve(module)) | ||
.catch(error => reject(error)); | ||
}); | ||
@@ -25,0 +26,0 @@ |
46007
1054