Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

data-shaper

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-shaper - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

package.json
{
"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)]);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc