🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

vue-json-to-html-table

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-json-to-html-table - npm Package Compare versions

Comparing version

to
0.0.7

4

dist/vue-json-to-html-table.es.js

@@ -33,3 +33,3 @@ import { resolveComponent, openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createVNode, pushScopeId, popScopeId } from "vue";

};
const _withScopeId = (n) => (pushScopeId("data-v-d7a2bcce"), n = n(), popScopeId(), n);
const _withScopeId = (n) => (pushScopeId("data-v-04d002cf"), n = n(), popScopeId(), n);
const _hoisted_1 = { class: "table-main" };

@@ -81,3 +81,3 @@ const _hoisted_2 = { class: "key p-2 d-inline-block" };

}
var VueJsonToHtmlTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d7a2bcce"]]);
var VueJsonToHtmlTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-04d002cf"]]);
export { VueJsonToHtmlTable as default };

@@ -1,1 +0,1 @@

(function(e,o){typeof exports=="object"&&typeof module!="undefined"?module.exports=o(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o):(e=typeof globalThis!="undefined"?globalThis:e||self,e.VueJsonToHtmlTable=o(e.Vue))})(this,function(e){"use strict";var o="",r=(t,d)=>{for(const[n,s]of d)t[n]=s;return t};const _={name:"VueJsonToHtmlTable",props:{data:{type:Object}},computed:{arrData(){return Object.keys(this.data)}},methods:{keyTitle(t){return t.split("_").join(" ")},checkValueType(t){return typeof t!="object"?typeof t:Array.isArray(t)?"array":"object"}}},k=t=>(e.pushScopeId("data-v-d7a2bcce"),t=t(),e.popScopeId(),t),m={class:"table-main"},y={class:"key p-2 d-inline-block"},p={class:"text-capitalize"},h={style:{"font-family":"monospace"}},f={key:0},T={class:"value p-2 d-inline-block"},B={key:1},V=k(()=>e.createElementVNode("div",{class:"mx-2"},"--",-1)),b={key:0},E={key:1},u={key:2};function g(t,d,n,s,N,a){const i=e.resolveComponent("VueJsonToHtmlTable",!0);return e.openBlock(),e.createElementBlock("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.arrData,(c,S)=>(e.openBlock(),e.createElementBlock("div",{key:S,class:"row-data m-2 d-flex"},[e.createElementVNode("div",y,[e.createElementVNode("div",p,e.toDisplayString(a.keyTitle(c))+" ("+e.toDisplayString(a.checkValueType(n.data[c]))+") ",1),e.createElementVNode("div",h,"key: "+e.toDisplayString(c),1)]),["string","number"].includes(a.checkValueType(n.data[c]))?(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",T,e.toDisplayString(n.data[c]),1)])):a.checkValueType(n.data[c])==="array"?(e.openBlock(),e.createElementBlock("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data[c],(l,D)=>(e.openBlock(),e.createElementBlock("div",{key:D,class:"d-flex"},[V,["string","number"].includes(a.checkValueType(l))?(e.openBlock(),e.createElementBlock("div",b,e.toDisplayString(l),1)):(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(i,{data:l},null,8,["data"])]))]))),128))])):(e.openBlock(),e.createElementBlock("div",u,[e.createVNode(i,{data:n.data[c]},null,8,["data"])]))]))),128))])}var x=r(_,[["render",g],["__scopeId","data-v-d7a2bcce"]]);return x});
(function(e,o){typeof exports=="object"&&typeof module!="undefined"?module.exports=o(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o):(e=typeof globalThis!="undefined"?globalThis:e||self,e.VueJsonToHtmlTable=o(e.Vue))})(this,function(e){"use strict";var o="",r=(t,d)=>{for(const[n,s]of d)t[n]=s;return t};const _={name:"VueJsonToHtmlTable",props:{data:{type:Object}},computed:{arrData(){return Object.keys(this.data)}},methods:{keyTitle(t){return t.split("_").join(" ")},checkValueType(t){return typeof t!="object"?typeof t:Array.isArray(t)?"array":"object"}}},k=t=>(e.pushScopeId("data-v-04d002cf"),t=t(),e.popScopeId(),t),m={class:"table-main"},y={class:"key p-2 d-inline-block"},p={class:"text-capitalize"},f={style:{"font-family":"monospace"}},h={key:0},T={class:"value p-2 d-inline-block"},B={key:1},V=k(()=>e.createElementVNode("div",{class:"mx-2"},"--",-1)),b={key:0},E={key:1},u={key:2};function g(t,d,n,s,N,a){const i=e.resolveComponent("VueJsonToHtmlTable",!0);return e.openBlock(),e.createElementBlock("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.arrData,(c,S)=>(e.openBlock(),e.createElementBlock("div",{key:S,class:"row-data m-2 d-flex"},[e.createElementVNode("div",y,[e.createElementVNode("div",p,e.toDisplayString(a.keyTitle(c))+" ("+e.toDisplayString(a.checkValueType(n.data[c]))+") ",1),e.createElementVNode("div",f,"key: "+e.toDisplayString(c),1)]),["string","number"].includes(a.checkValueType(n.data[c]))?(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",T,e.toDisplayString(n.data[c]),1)])):a.checkValueType(n.data[c])==="array"?(e.openBlock(),e.createElementBlock("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data[c],(l,D)=>(e.openBlock(),e.createElementBlock("div",{key:D,class:"d-flex"},[V,["string","number"].includes(a.checkValueType(l))?(e.openBlock(),e.createElementBlock("div",b,e.toDisplayString(l),1)):(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(i,{data:l},null,8,["data"])]))]))),128))])):(e.openBlock(),e.createElementBlock("div",u,[e.createVNode(i,{data:n.data[c]},null,8,["data"])]))]))),128))])}var x=r(_,[["render",g],["__scopeId","data-v-04d002cf"]]);return x});

@@ -6,2 +6,12 @@ {

],
"repository": {
"type": "git",
"url": "git+https://github.com/faaezahmd/vue-json-to-html-table.git"
},
"bugs": {
"url": "https://github.com/faaezahmd/vue-json-to-html-table/issues"
},
"author": "Faiz Ahmed",
"license": "ISC",
"homepage": "https://github.com/faaezahmd/vue-json-to-html-table#readme",
"main": "./dist/vue-json-to-html-table.umd.js",

@@ -16,3 +26,3 @@ "module": "./dist/vue-json-to-html-table.es.js",

},
"version": "0.0.6",
"version": "0.0.7",
"scripts": {

@@ -29,3 +39,12 @@ "dev": "vite",

"vite": "^2.6.4"
}
},
"keywords": [
"json",
"html",
"table",
"parser",
"debug",
"json",
"table"
]
}

@@ -0,0 +0,0 @@ # vue-json-to-html-table

Sorry, the diff of this file is not supported yet