Comparing version 0.0.4 to 0.0.6
@@ -51,2 +51,6 @@ var getChainEvaluator = function (chain) { | ||
var queryFields = query.getChildKeys(); | ||
if (!queryFields.length) { | ||
return sourceObj; | ||
} | ||
for (i = 0; i < queryFields.length; i++) { | ||
@@ -71,3 +75,3 @@ var pairs = []; | ||
} else if (typeof sourceObj !== 'object'){ | ||
} else { | ||
// handle primitive types | ||
@@ -74,0 +78,0 @@ return sourceObj; |
{ | ||
"name": "metastore", | ||
"description": "data metastore", | ||
"version": "0.0.4", | ||
"version": "0.0.6", | ||
"homepage": "https://github.com/azulus/metastore", | ||
@@ -6,0 +6,0 @@ "authors": [ |
@@ -7,3 +7,7 @@ var MetaStore = require('../index').MetaStore; | ||
id: 'Pin', | ||
view_types: ['summary', 'detailed'] | ||
view_types: ['summary', 'detailed'], | ||
cache: { | ||
file1: 123, | ||
file2: 456 | ||
} | ||
} | ||
@@ -54,2 +58,6 @@ ]; | ||
test.deepEqual(store.query('Module.id(Pin){cache}'), [{ | ||
cache: data1[0].cache | ||
}]); | ||
test.deepEqual(store.query('Module.id(Header){view_types}'), [{ | ||
@@ -56,0 +64,0 @@ view_types: data3[0].view_types |
22292
706