@micro-zoe/micro-app 0.7.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micro-zoe/micro-app",
3
- "version": "0.7.0",
3
+ "version": "0.8.2",
4
4
  "description": "A lightweight, efficient and powerful micro front-end framework",
5
5
  "private": false,
6
6
  "main": "lib/index.min.js",
@@ -8,7 +8,7 @@ declare module '@micro-app/types' {
8
8
  interface SandBoxInterface {
9
9
  proxyWindow: WindowProxy
10
10
  microAppWindow: Window // Proxy target
11
- start (baseroute: string): void
11
+ start (baseRoute: string): void
12
12
  stop (): void
13
13
  // record umd snapshot before the first execution of umdHookMount
14
14
  recordUmdSnapshot (): void
@@ -42,6 +42,7 @@ declare module '@micro-app/types' {
42
42
  // app instance
43
43
  interface AppInterface {
44
44
  isPrefetch: boolean // whether prefetch app, default is false
45
+ prefetchResolve: (() => void) | null // prefetch callback
45
46
  name: string // app name
46
47
  url: string // app url
47
48
  ssrUrl: string // html path in ssr mode
@@ -51,7 +52,7 @@ declare module '@micro-app/types' {
51
52
  useSandbox: boolean // whether use js sandbox, default is true
52
53
  baseroute: string // route prefix, default is ''
53
54
  source: sourceType // sources of css, js, html
54
- sandBox: SandBoxInterface | null // sanxbox
55
+ sandBox: SandBoxInterface | null // sandbox
55
56
  umdMode: boolean // is umd mode
56
57
 
57
58
  // Load resources