@fmfe/genesis-remote
Advanced tools
Comparing version 0.0.47-alpha.0 to 0.0.47
@@ -122,3 +122,3 @@ "use strict"; | ||
axios_1.default.get(this.url).then(function (res) { | ||
if (res.status !== 200) | ||
if (res.status !== 200 || typeof res.data !== 'object') | ||
return; | ||
@@ -185,3 +185,7 @@ return _this.$nextTick().then(function () { | ||
res.data.script + res.data.scriptState; | ||
console.log(res.data); | ||
var scripts = nodeListToArr(temp.childNodes).map(function (script) { | ||
if (!(script instanceof HTMLScriptElement)) { | ||
return script; | ||
} | ||
var attrs = script.getAttributeNames(); | ||
@@ -188,0 +192,0 @@ var values = []; |
{ | ||
"name": "@fmfe/genesis-remote", | ||
"version": "0.0.47-alpha.0", | ||
"version": "0.0.47", | ||
"description": "", | ||
@@ -12,4 +12,4 @@ "main": "dist/index.js", | ||
"license": "MIT", | ||
"gitHead": "d2d2359ca3c274b3fc5b03be9ead147553348290", | ||
"gitHead": "508b1f9a033ebd100fd90c529dd1e4628772b87a", | ||
"sideEffects": false | ||
} |
@@ -114,3 +114,4 @@ import Vue from 'vue'; | ||
axios.get(this.url).then((res) => { | ||
if (res.status !== 200) return; | ||
if (res.status !== 200 || typeof res.data !== 'object') | ||
return; | ||
@@ -207,5 +208,10 @@ return this.$nextTick().then(() => { | ||
res.data.script + res.data.scriptState; | ||
console.log(res.data); | ||
const scripts = nodeListToArr(temp.childNodes).map( | ||
(script: HTMLScriptElement) => { | ||
if ( | ||
!(script instanceof HTMLScriptElement) | ||
) { | ||
return script; | ||
} | ||
const attrs = script.getAttributeNames(); | ||
@@ -212,0 +218,0 @@ const values: string[] = []; |
33556
656