🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a 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.0

src/parsing.js

2

index.js
'use strict'
module.exports = require('./jsonCompare.vue')
module.exports = require('./src/vuejsoncompare.vue')
{
"name": "vue-json-compare",
"version": "1.0.2",
"version": "2.0.0",
"description": "A vue(2.x) components for compare JSON data",

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

@@ -30,3 +30,6 @@ export const isArray = (item) => {

export const type = (item) => {
return Object.prototype.toString.call(item)
let type = Object.prototype.toString.call(item)
let match = /(?!\[).+(?=\])/g
type = type.match(match)[0].split(' ')[1]
return type
}

Sorry, the diff of this file is not supported yet