ag-reactive
Advanced tools
Comparing version 1.0.3 to 1.0.4
22
index.js
@@ -7,2 +7,24 @@ "use strict"; | ||
var ReactiveKey = '__reactive'; | ||
var consoleLog = console.log; | ||
function unwrap(value) { | ||
if (isRaw(value)) | ||
return value; | ||
if (Array.isArray(value)) { | ||
return value.map(unwrap); | ||
} | ||
else { | ||
var obj = {}; | ||
for (var key in value) { | ||
obj[key] = unwrap(value[key]); | ||
} | ||
return obj; | ||
} | ||
} | ||
console.log = function () { | ||
var d = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
d[_i] = arguments[_i]; | ||
} | ||
consoleLog.apply(void 0, unwrap(d)); | ||
}; | ||
function isRaw(value) { | ||
@@ -9,0 +31,0 @@ return typeof value === 'string' |
{ | ||
"name": "ag-reactive", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
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
9197
237