data-shaper
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "data-shaper", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Utility for building meaningful data shapes from normalized, related data", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -29,2 +29,16 @@ # Data shaper | ||
var companyShape = { | ||
id: 'id', | ||
name: 'name' | ||
}; | ||
var personShape = { | ||
id: 'id', | ||
name: 'name', | ||
company: { | ||
reference: 'companyId', | ||
shape: companyShape | ||
} | ||
}; | ||
dataShaper( | ||
@@ -31,0 +45,0 @@ { id: 1, name: 'Kristoffer', companyId: 2 }, // data to shape |
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
29820
137