single-spa
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -30,3 +30,9 @@ 'use strict'; | ||
} else { | ||
var err = new Error(obj || 'An error has occurred within a ChildApp of single-spa'); | ||
var msg = void 0; | ||
try { | ||
msg = JSON.stringify(obj); | ||
} catch (ex) { | ||
msg = obj || 'An error has occurred within a child app of single-spa'; | ||
} | ||
var err = new Error(msg); | ||
this.message = createMessage(childApp, err.message); | ||
@@ -33,0 +39,0 @@ this.stack = err.stack; |
@@ -135,2 +135,3 @@ 'use strict'; | ||
var originalReplaceState = window.history.replaceState; | ||
window.history.replaceState = function () { | ||
@@ -137,0 +138,0 @@ var result = originalReplaceState.apply(this, arguments); |
{ | ||
"name": "single-spa", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Multiple applications, one page", | ||
@@ -11,3 +11,3 @@ "main": "lib/single-spa.js", | ||
"test": "jasmine", | ||
"build:canopy": "npm run build && rm -rf ../spalpatine/jspm_packages/npm/single-spa@2.1.1 && rsync -av . ../spalpatine/jspm_packages/npm/single-spa@2.1.1 --exclude node_modules --exclude .git --exclude --spec --exclude examples && cd ../spalpatine && npm run build-common-deps && cd ../single-spa" | ||
"build:canopy": "npm run build && rm -rf ../spalpatine/jspm_packages/npm/single-spa@2.1.2 && rsync -av . ../spalpatine/jspm_packages/npm/single-spa@2.1.2 --exclude node_modules --exclude .git --exclude --spec --exclude examples && cd ../spalpatine && npm run build-common-deps && cd ../single-spa" | ||
}, | ||
@@ -14,0 +14,0 @@ "repository": "https://github.com/CanopyTax/single-spa", |
@@ -24,3 +24,9 @@ const window = typeof window !== 'undefined' ? window : (typeof global !== 'undefined' ? global : self); | ||
} else { | ||
const err = new Error(obj || 'An error has occurred within a ChildApp of single-spa'); | ||
let msg; | ||
try { | ||
msg = JSON.stringify(obj); | ||
} catch(ex) { | ||
msg = obj || 'An error has occurred within a child app of single-spa'; | ||
} | ||
const err = new Error(msg); | ||
this.message = createMessage(childApp, err.message); | ||
@@ -27,0 +33,0 @@ this.stack = err.stack; |
@@ -96,2 +96,3 @@ import { handleChildAppError } from './single-spa-child-app-error.js'; | ||
const originalReplaceState = window.history.replaceState; | ||
window.history.replaceState = function() { | ||
@@ -98,0 +99,0 @@ const result = originalReplaceState.apply(this, arguments); |
61217
1091