@fmfe/genesis-remote
Advanced tools
Comparing version 2.0.1-alpha.16 to 2.0.1-alpha.17
@@ -327,3 +327,3 @@ "use strict"; | ||
clientLoad() { | ||
const haveFlase = (arr) => { | ||
const haveFalse = (arr) => { | ||
for (let i = 0; i < arr.length; i++) { | ||
@@ -342,7 +342,7 @@ if (arr[i] === false) { | ||
this.localData = { ...data }; | ||
return !haveFlase(arr); | ||
return !haveFalse(arr); | ||
}), | ||
(0, exports.loadScript)(data.script).then((arr) => { | ||
window[data.id] = data.state; | ||
return !haveFlase(arr); | ||
return !haveFalse(arr); | ||
}) | ||
@@ -352,3 +352,3 @@ ]).then((arr) => { | ||
this.install(); | ||
if (haveFlase(arr)) { | ||
if (haveFalse(arr)) { | ||
this.$emit('error'); | ||
@@ -355,0 +355,0 @@ } |
@@ -319,3 +319,3 @@ import Vue from 'vue'; | ||
clientLoad() { | ||
const haveFlase = (arr) => { | ||
const haveFalse = (arr) => { | ||
for (let i = 0; i < arr.length; i++) { | ||
@@ -334,7 +334,7 @@ if (arr[i] === false) { | ||
this.localData = { ...data }; | ||
return !haveFlase(arr); | ||
return !haveFalse(arr); | ||
}), | ||
loadScript(data.script).then((arr) => { | ||
window[data.id] = data.state; | ||
return !haveFlase(arr); | ||
return !haveFalse(arr); | ||
}) | ||
@@ -344,3 +344,3 @@ ]).then((arr) => { | ||
this.install(); | ||
if (haveFlase(arr)) { | ||
if (haveFalse(arr)) { | ||
this.$emit('error'); | ||
@@ -347,0 +347,0 @@ } |
{ | ||
"name": "@fmfe/genesis-remote", | ||
"version": "2.0.1-alpha.16", | ||
"version": "2.0.1-alpha.17", | ||
"description": "Vue SSR Microfront", | ||
@@ -19,3 +19,3 @@ "keywords": [ | ||
"license": "MIT", | ||
"gitHead": "ef7f19ca9d7c1e7601cbe266ae407491156bbd0b", | ||
"gitHead": "a303f7d672a037087298b28ff00455b40b8557a9", | ||
"homepage": "https://fmfe.github.io/genesis-docs/", | ||
@@ -22,0 +22,0 @@ "repository": { |
@@ -346,3 +346,3 @@ /* eslint-disable @typescript-eslint/prefer-for-of */ | ||
clientLoad() { | ||
const haveFlase = (arr: boolean[]) => { | ||
const haveFalse = (arr: boolean[]) => { | ||
for (let i = 0; i < arr.length; i++) { | ||
@@ -360,7 +360,7 @@ if (arr[i] === false) { | ||
this.localData = { ...data }; | ||
return !haveFlase(arr); | ||
return !haveFalse(arr); | ||
}), | ||
loadScript(data.script).then((arr) => { | ||
(window as any)[data.id] = data.state; | ||
return !haveFlase(arr); | ||
return !haveFalse(arr); | ||
}) | ||
@@ -370,3 +370,3 @@ ]).then((arr) => { | ||
this.install(); | ||
if (haveFlase(arr)) { | ||
if (haveFalse(arr)) { | ||
this.$emit('error'); | ||
@@ -373,0 +373,0 @@ } |