restruct-data
Advanced tools
Comparing version 0.2.7 to 0.2.8
{ | ||
"name": "restruct-data", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "ERROR: No README data found!", | ||
@@ -5,0 +5,0 @@ "main": "restruct.js", |
@@ -70,2 +70,4 @@ | ||
result[k] = fill(v, data); | ||
else if(typeof v === 'number') | ||
result[k] = v; | ||
else if(Array.isArray(v)) { | ||
@@ -72,0 +74,0 @@ if (typeof v[0] === 'string') |
12
tests.js
@@ -169,1 +169,13 @@ | ||
console.log(json(data,true)) | ||
/* test if restruct handles integers */ | ||
var struct = { | ||
"< test": { | ||
"integer_test": 1 | ||
} | ||
} | ||
var data = restruct({ | ||
"test": "Test", | ||
}, struct); | ||
console.log(json(data,true)) |
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
7426
283