@process-street/normalizr
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -539,3 +539,4 @@ define(['exports'], function (exports) { 'use strict'; | ||
if (object[referenceKey]) { | ||
var referencedValue = unvisit(object[referenceKey], schema[referenceKey]); | ||
var id = typeof object[referenceKey] === 'string' ? object[referenceKey] : object[referenceKey].id ? object[referenceKey].id : object[referenceKey]; | ||
var referencedValue = unvisit(id, schema[referenceKey]); | ||
object[referenceKey] = referencedValue || object[referenceKey]; | ||
@@ -542,0 +543,0 @@ } |
@@ -539,3 +539,4 @@ define(['exports'], function (exports) { 'use strict'; | ||
if (object[referenceKey]) { | ||
var referencedValue = unvisit(object[referenceKey], schema[referenceKey]); | ||
var id = typeof object[referenceKey] === 'string' ? object[referenceKey] : object[referenceKey].id ? object[referenceKey].id : object[referenceKey]; | ||
var referencedValue = unvisit(id, schema[referenceKey]); | ||
object[referenceKey] = referencedValue || object[referenceKey]; | ||
@@ -542,0 +543,0 @@ } |
@@ -540,3 +540,4 @@ (function (exports) { | ||
if (object[referenceKey]) { | ||
var referencedValue = unvisit(object[referenceKey], schema[referenceKey]); | ||
var id = typeof object[referenceKey] === 'string' ? object[referenceKey] : object[referenceKey].id ? object[referenceKey].id : object[referenceKey]; | ||
var referencedValue = unvisit(id, schema[referenceKey]); | ||
object[referenceKey] = referencedValue || object[referenceKey]; | ||
@@ -543,0 +544,0 @@ } |
@@ -540,3 +540,4 @@ (function (exports) { | ||
if (object[referenceKey]) { | ||
var referencedValue = unvisit(object[referenceKey], schema[referenceKey]); | ||
var id = typeof object[referenceKey] === 'string' ? object[referenceKey] : object[referenceKey].id ? object[referenceKey].id : object[referenceKey]; | ||
var referencedValue = unvisit(id, schema[referenceKey]); | ||
object[referenceKey] = referencedValue || object[referenceKey]; | ||
@@ -543,0 +544,0 @@ } |
@@ -537,3 +537,4 @@ function _typeof(obj) { | ||
if (object[referenceKey]) { | ||
var referencedValue = unvisit(object[referenceKey], schema[referenceKey]); | ||
var id = typeof object[referenceKey] === 'string' ? object[referenceKey] : object[referenceKey].id ? object[referenceKey].id : object[referenceKey]; | ||
var referencedValue = unvisit(id, schema[referenceKey]); | ||
object[referenceKey] = referencedValue || object[referenceKey]; | ||
@@ -540,0 +541,0 @@ } |
@@ -537,3 +537,4 @@ function _typeof(obj) { | ||
if (object[referenceKey]) { | ||
var referencedValue = unvisit(object[referenceKey], schema[referenceKey]); | ||
var id = typeof object[referenceKey] === 'string' ? object[referenceKey] : object[referenceKey].id ? object[referenceKey].id : object[referenceKey]; | ||
var referencedValue = unvisit(id, schema[referenceKey]); | ||
object[referenceKey] = referencedValue || object[referenceKey]; | ||
@@ -540,0 +541,0 @@ } |
@@ -541,3 +541,4 @@ 'use strict'; | ||
if (object[referenceKey]) { | ||
var referencedValue = unvisit(object[referenceKey], schema[referenceKey]); | ||
var id = typeof object[referenceKey] === 'string' ? object[referenceKey] : object[referenceKey].id ? object[referenceKey].id : object[referenceKey]; | ||
var referencedValue = unvisit(id, schema[referenceKey]); | ||
object[referenceKey] = referencedValue || object[referenceKey]; | ||
@@ -544,0 +545,0 @@ } |
@@ -541,3 +541,4 @@ 'use strict'; | ||
if (object[referenceKey]) { | ||
var referencedValue = unvisit(object[referenceKey], schema[referenceKey]); | ||
var id = typeof object[referenceKey] === 'string' ? object[referenceKey] : object[referenceKey].id ? object[referenceKey].id : object[referenceKey]; | ||
var referencedValue = unvisit(id, schema[referenceKey]); | ||
object[referenceKey] = referencedValue || object[referenceKey]; | ||
@@ -544,0 +545,0 @@ } |
@@ -543,3 +543,4 @@ (function (global, factory) { | ||
if (object[referenceKey]) { | ||
var referencedValue = unvisit(object[referenceKey], schema[referenceKey]); | ||
var id = typeof object[referenceKey] === 'string' ? object[referenceKey] : object[referenceKey].id ? object[referenceKey].id : object[referenceKey]; | ||
var referencedValue = unvisit(id, schema[referenceKey]); | ||
object[referenceKey] = referencedValue || object[referenceKey]; | ||
@@ -546,0 +547,0 @@ } |
@@ -543,3 +543,4 @@ (function (global, factory) { | ||
if (object[referenceKey]) { | ||
var referencedValue = unvisit(object[referenceKey], schema[referenceKey]); | ||
var id = typeof object[referenceKey] === 'string' ? object[referenceKey] : object[referenceKey].id ? object[referenceKey].id : object[referenceKey]; | ||
var referencedValue = unvisit(id, schema[referenceKey]); | ||
object[referenceKey] = referencedValue || object[referenceKey]; | ||
@@ -546,0 +547,0 @@ } |
{ | ||
"name": "@process-street/normalizr", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Normalizes and denormalizes JSON according to schema for Redux and Flux applications", | ||
@@ -5,0 +5,0 @@ "bugs": { |
234277
6141