js-data-adapter
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -0,1 +1,5 @@ | ||
##### 0.2.2 - 12 March 2016 | ||
Added support for filtering on "with" sub queries | ||
##### 0.2.1 - 10 March 2016 | ||
@@ -2,0 +6,0 @@ |
@@ -70,2 +70,3 @@ (function (global, factory) { | ||
var addHiddenPropsToTarget = jsData.utils.addHiddenPropsToTarget; | ||
var deepFillIn = jsData.utils.deepFillIn; | ||
var extend = jsData.utils.extend; | ||
@@ -1164,2 +1165,13 @@ var fillIn = jsData.utils.fillIn; | ||
var op = void 0; | ||
var activeWith = opts._activeWith; | ||
if (isObject(activeWith)) { | ||
var activeQuery = activeWith.query || {}; | ||
if (activeWith.replace) { | ||
query = activeQuery; | ||
} else { | ||
deepFillIn(query, activeQuery); | ||
} | ||
} | ||
// beforeFindAll lifecycle hook | ||
@@ -1166,0 +1178,0 @@ op = opts.op = 'beforeFindAll'; |
{ | ||
"name": "js-data-adapter", | ||
"description": "Base adapter class that all other js-data adapters extend.", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"homepage": "https://github.com/js-data/js-data-adapter", | ||
@@ -34,7 +34,7 @@ "repository": { | ||
"peerDependencies": { | ||
"js-data": "^3.0.0-alpha.16" | ||
"js-data": "^3.0.0-alpha.18" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "6.7.0", | ||
"babel-polyfill": "6.6.1", | ||
"babel-core": "6.7.2", | ||
"babel-polyfill": "6.7.2", | ||
"babel-preset-es2015-rollup": "1.1.1", | ||
@@ -44,3 +44,3 @@ "chai": "3.5.0", | ||
"istanbul": "0.4.2", | ||
"js-data-adapter-tests": "^2.0.0-alpha.14", | ||
"js-data-adapter-tests": "^2.0.0-alpha.15", | ||
"js-data-repo-tools": "0.2.0", | ||
@@ -47,0 +47,0 @@ "mocha": "2.4.5", |
@@ -5,2 +5,3 @@ import {utils} from 'js-data' | ||
addHiddenPropsToTarget, | ||
deepFillIn, | ||
extend, | ||
@@ -1055,2 +1056,13 @@ fillIn, | ||
let op | ||
const activeWith = opts._activeWith | ||
if (isObject(activeWith)) { | ||
const activeQuery = activeWith.query || {} | ||
if (activeWith.replace) { | ||
query = activeQuery | ||
} else { | ||
deepFillIn(query, activeQuery) | ||
} | ||
} | ||
// beforeFindAll lifecycle hook | ||
@@ -1057,0 +1069,0 @@ op = opts.op = 'beforeFindAll' |
Sorry, the diff of this file is not supported yet
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
188146
2668