data-shaper
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "data-shaper", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Utility for building meaningful data shapes from normalized, related data", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -9,6 +9,5 @@ 'use strict'; | ||
var mockError = require('./mock/error'); | ||
var fetchData = require('./mock/fetch-data'); | ||
var defaultOptions = { | ||
resolveValue: resolveValue, | ||
resolveValue: resolveValue | ||
}; | ||
@@ -30,4 +29,4 @@ | ||
companyId: { '2': { id: 2, name: 'VG', municipalId: 1 } }, | ||
municipalId: { '1' : { id: 1, name: 'Oslo', countryId: 4 }}, | ||
countryId: { '4' : { id: 4, name: 'Norway' }} | ||
municipalId: { '1': { id: 1, name: 'Oslo', countryId: 4 }}, | ||
countryId: { '4': { id: 4, name: 'Norway' }} | ||
}; | ||
@@ -37,3 +36,3 @@ | ||
// mock data for a few different collections | ||
var customFetchData = function(id, reference, callback) { | ||
function customFetchData(id, reference, callback) { | ||
process.nextTick(function() { | ||
@@ -40,0 +39,0 @@ callback(null, customData[reference][String(id)]); |
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
33172
758