@fmfe/genesis-remote
Advanced tools
Comparing version 1.0.9 to 1.0.10-alpha.0
@@ -280,3 +280,3 @@ "use strict"; | ||
if (options.el && window.genesis && !this.destroyed) { | ||
this.$emit('beforeInstall', options); | ||
this.$emit('before-install', options); | ||
this.appId = window.genesis.install(options); | ||
@@ -310,4 +310,3 @@ } | ||
initClient() { | ||
const clientOptions = this.$root.$options | ||
.clientOptions; | ||
const clientOptions = this.$root.$options.clientOptions; | ||
const state = clientOptions.state; | ||
@@ -314,0 +313,0 @@ // 热更新可能会不存在数组,或者数组已经被清空了。 |
@@ -272,3 +272,3 @@ import Vue from 'vue'; | ||
if (options.el && window.genesis && !this.destroyed) { | ||
this.$emit('beforeInstall', options); | ||
this.$emit('before-install', options); | ||
this.appId = window.genesis.install(options); | ||
@@ -302,4 +302,3 @@ } | ||
initClient() { | ||
const clientOptions = this.$root.$options | ||
.clientOptions; | ||
const clientOptions = this.$root.$options.clientOptions; | ||
const state = clientOptions.state; | ||
@@ -306,0 +305,0 @@ // 热更新可能会不存在数组,或者数组已经被清空了。 |
{ | ||
"name": "@fmfe/genesis-remote", | ||
"version": "1.0.9", | ||
"version": "1.0.10-alpha.0", | ||
"description": "Vue SSR Microfront", | ||
@@ -19,3 +19,3 @@ "keywords": [ | ||
"license": "MIT", | ||
"gitHead": "6b3eaa0e5e5df0319b16d411b985d0d6d1f41486", | ||
"gitHead": "9da727a4acf22862739c6438707cdba141aedf08", | ||
"homepage": "https://fmfe.github.io/genesis-docs/", | ||
@@ -28,6 +28,3 @@ "repository": { | ||
"url": "https://github.com/fmfe/genesis/issues" | ||
}, | ||
"devDependencies": { | ||
"@fmfe/genesis-core": "1.0.9" | ||
} | ||
} |
@@ -74,5 +74,5 @@ /* eslint-disable @typescript-eslint/prefer-for-of */ | ||
const arr: Promise<boolean>[] = []; | ||
const linkArr = (document.querySelectorAll( | ||
const linkArr = document.querySelectorAll( | ||
'link[rel=stylesheet][href]' | ||
) as any) as HTMLLinkElement[]; | ||
) as any as HTMLLinkElement[]; | ||
const findOne = (href: string): HTMLLinkElement | null => { | ||
@@ -121,5 +121,5 @@ for (let i = 0; i < linkArr.length; i++) { | ||
const arr: Promise<boolean>[] = []; | ||
const scriptArr = (document.querySelectorAll( | ||
const scriptArr = document.querySelectorAll( | ||
'script[src]' | ||
) as any) as HTMLScriptElement[]; | ||
) as any as HTMLScriptElement[]; | ||
const findOne = (src: string): HTMLScriptElement | null => { | ||
@@ -299,3 +299,3 @@ for (let i = 0; i < scriptArr.length; i++) { | ||
if (options.el && (window as any).genesis && !this.destroyed) { | ||
this.$emit('beforeInstall', options); | ||
this.$emit('before-install', options); | ||
this.appId = (window as any).genesis.install(options); | ||
@@ -330,4 +330,4 @@ } | ||
initClient() { | ||
const clientOptions: ClientOptions = this.$root.$options | ||
.clientOptions; | ||
const clientOptions: ClientOptions = | ||
this.$root.$options.clientOptions; | ||
const state = clientOptions.state; | ||
@@ -334,0 +334,0 @@ // 热更新可能会不存在数组,或者数组已经被清空了。 |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
45308
1344
2