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

vue-json-compare

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-json-compare - npm Package Compare versions

Comparing version

to
2.0.6

2

package.json
{
"name": "vue-json-compare",
"version": "2.0.5",
"version": "2.0.6",
"description": "A vue(2.x) components for compare JSON data",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -52,2 +52,3 @@ # vue-json-compare

注意:左边是使用了[vue-json](https://github.com/5SSS/vue-json)这个包,纯展示使用的。右边的才是vue-json-compare展示的结果。
(left: vue-json-cool component, right: vue-json-compare component)

@@ -54,0 +55,0 @@ ![示例](./img/compare.png)

@@ -22,3 +22,3 @@ import check from './typeof.js'

let newObj = Object.create(null)
newObj.type = check.type(obj[key])
newObj.type = check.getType(obj[key])
newObj.line = _line++

@@ -56,3 +56,3 @@ newObj.key = key

let newObj = Object.create(null)
newObj.type = check.type(arr[i])
newObj.type = check.getType(arr[i])
newObj.key = i

@@ -59,0 +59,0 @@ newObj.line = _line++

@@ -23,3 +23,3 @@ export default {

},
type (item) {
getType (item) {
let t = Object.prototype.toString.call(item)

@@ -26,0 +26,0 @@ let match = /(?!\[).+(?=\])/g

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet