single-spa
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -440,2 +440,7 @@ 'use strict'; | ||
fns = Array.isArray(fns) ? fns : [fns]; | ||
if (fns.length === 0) { | ||
fns = [function () { | ||
return Promise.resolve(); | ||
}]; | ||
} | ||
@@ -442,0 +447,0 @@ return function () { |
{ | ||
"name": "single-spa", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"description": "Multiple applications, one page", | ||
@@ -5,0 +5,0 @@ "main": "lib/single-spa.js", |
@@ -401,2 +401,5 @@ import { handleChildAppError } from './single-spa-child-app-error.js'; | ||
fns = Array.isArray(fns) ? fns : [fns]; | ||
if (fns.length === 0) { | ||
fns = [() => Promise.resolve()]; | ||
} | ||
@@ -403,0 +406,0 @@ return function() { |
63876
1162