single-spa
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -21,2 +21,6 @@ 'use strict'; | ||
if (!window.Symbol) { | ||
window.Symbol = function () {}; | ||
} | ||
function prependUrl(prefix, url) { | ||
@@ -384,3 +388,3 @@ if (!url.startsWith('/')) { | ||
} | ||
if ((typeof lifecycles === 'undefined' ? 'undefined' : _typeof(lifecycles)) !== 'object' && typeof lifecycles !== 'function') { | ||
if ((typeof lifecycles === 'undefined' ? 'undefined' : _typeof(lifecycles)) !== 'object') { | ||
throw new Error('App ' + appLocation + ' must export a \'lifecycles\' object or array of objects'); | ||
@@ -387,0 +391,0 @@ } |
{ | ||
"name": "single-spa", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Multiple applications, one page", | ||
@@ -24,4 +24,4 @@ "main": "dist/single-spa.js", | ||
"devDependencies": { | ||
"babel-cli": "6.1.18", | ||
"babel-preset-es2015": "6.1.18" | ||
"babel-cli": "^6.3.15", | ||
"babel-preset-es2015": "^6.3.13" | ||
}, | ||
@@ -28,0 +28,0 @@ "ignore": [ |
@@ -10,2 +10,7 @@ let appLocationToApp = {}; | ||
if (!window.Symbol) { | ||
//babel uses Symbol in its _typeof function, and it breaks in IE unless we polyfill at least a little bit | ||
window.Symbol = function() {}; | ||
} | ||
function prependUrl(prefix, url) { | ||
@@ -355,3 +360,3 @@ if (!url.startsWith('/')) { | ||
} | ||
if (typeof lifecycles !== 'object' && typeof lifecycles !== 'function') { | ||
if (typeof lifecycles !== 'object') { | ||
throw new Error(`App ${appLocation} must export a 'lifecycles' object or array of objects`); | ||
@@ -358,0 +363,0 @@ } |
Sorry, the diff of this file is not supported yet
80861
888