vue-data-proxy
Advanced tools
Comparing version 1.0.3 to 1.0.4
function clone(obj){ | ||
if(obj === undefined) { | ||
return obj | ||
} | ||
return JSON.parse(JSON.stringify(obj)); | ||
@@ -96,3 +99,3 @@ } | ||
}, | ||
set: function set(oldVal, val) { | ||
set: function set(val) { | ||
p.commit.call(this, val); | ||
@@ -99,0 +102,0 @@ } |
@@ -5,2 +5,5 @@ var vueDataProxy = (function (exports) { | ||
function clone(obj){ | ||
if(obj === undefined) { | ||
return obj | ||
} | ||
return JSON.parse(JSON.stringify(obj)); | ||
@@ -100,3 +103,3 @@ } | ||
}, | ||
set: function set(oldVal, val) { | ||
set: function set(val) { | ||
p.commit.call(this, val); | ||
@@ -103,0 +106,0 @@ } |
@@ -8,2 +8,5 @@ (function (global, factory) { | ||
function clone(obj){ | ||
if(obj === undefined) { | ||
return obj | ||
} | ||
return JSON.parse(JSON.stringify(obj)); | ||
@@ -103,3 +106,3 @@ } | ||
}, | ||
set: function set(oldVal, val) { | ||
set: function set(val) { | ||
p.commit.call(this, val); | ||
@@ -106,0 +109,0 @@ } |
{ | ||
"name": "vue-data-proxy", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Easily create deep object proxy (mainly to map a Vuex nested sub-state to a computed property)", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
export function clone(obj){ | ||
if(obj === undefined) { | ||
return obj | ||
} | ||
return JSON.parse(JSON.stringify(obj)); | ||
@@ -4,0 +7,0 @@ } |
@@ -93,3 +93,3 @@ | ||
}, | ||
set(oldVal, val) { | ||
set(val) { | ||
p.commit.call(this, val); | ||
@@ -96,0 +96,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19636
460