json-magic
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -232,4 +232,14 @@ const $check=require('check-types'); | ||
static convertDateTOISOString(object){ | ||
Magic.walk(object,function(value,path){ | ||
if ($check.date(value)){ | ||
Magic.set(object,path,value.toISOString()); | ||
} | ||
}); | ||
return object; | ||
} | ||
} | ||
module.exports=Magic; |
{ | ||
"name": "json-magic", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Utilities for manipulating JSON objects.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/filepounder/json-magic", |
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
7913
202