Skip to content

Commit

Permalink
[Release] 0.31.9
Browse files Browse the repository at this point in the history
  • Loading branch information
kiaking committed Apr 16, 2019
1 parent d531786 commit 2bc95bc
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 8 deletions.
11 changes: 9 additions & 2 deletions dist/vuex-orm.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -2939,13 +2939,20 @@ var Loader = /** @class */ (function () {
* Set the relationships that should be eager loaded with the query.
*/
Loader.with = function (query, name, constraint) {
var _this = this;
// If the name of the relation is `*`, we'll load all relationships.
if (name === '*') {
this.withAll(query);
return;
}
// Else parse relations and set appropriate constraints.
this.parseWithRelations(query, name.split('.'), constraint);
// If we passed an array, we dispatch the bits to with queries
if (name instanceof Array) {
name.forEach(function (relationName) { return _this.with(query, relationName, constraint); });
}
else {
// Else parse relations and set appropriate constraints.
this.parseWithRelations(query, name.split('.'), constraint);
}
};
/**
* Set all relationships to be eager loaded with the query.
Expand Down
11 changes: 9 additions & 2 deletions dist/vuex-orm.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2937,13 +2937,20 @@ var Loader = /** @class */ (function () {
* Set the relationships that should be eager loaded with the query.
*/
Loader.with = function (query, name, constraint) {
var _this = this;
// If the name of the relation is `*`, we'll load all relationships.
if (name === '*') {
this.withAll(query);
return;
}
// Else parse relations and set appropriate constraints.
this.parseWithRelations(query, name.split('.'), constraint);
// If we passed an array, we dispatch the bits to with queries
if (name instanceof Array) {
name.forEach(function (relationName) { return _this.with(query, relationName, constraint); });
}
else {
// Else parse relations and set appropriate constraints.
this.parseWithRelations(query, name.split('.'), constraint);
}
};
/**
* Set all relationships to be eager loaded with the query.
Expand Down
11 changes: 9 additions & 2 deletions dist/vuex-orm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2943,13 +2943,20 @@
* Set the relationships that should be eager loaded with the query.
*/
Loader.with = function (query, name, constraint) {
var _this = this;
// If the name of the relation is `*`, we'll load all relationships.
if (name === '*') {
this.withAll(query);
return;
}
// Else parse relations and set appropriate constraints.
this.parseWithRelations(query, name.split('.'), constraint);
// If we passed an array, we dispatch the bits to with queries
if (name instanceof Array) {
name.forEach(function (relationName) { return _this.with(query, relationName, constraint); });
}
else {
// Else parse relations and set appropriate constraints.
this.parseWithRelations(query, name.split('.'), constraint);
}
};
/**
* Set all relationships to be eager loaded with the query.
Expand Down
2 changes: 1 addition & 1 deletion dist/vuex-orm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vuex-orm/core",
"version": "0.31.8",
"version": "0.31.9",
"description": "The Vuex plugin to enable Object-Relational Mapping access to the Vuex Store.",
"main": "dist/vuex-orm.common.js",
"module": "dist/vuex-orm.esm.js",
Expand Down

0 comments on commit 2bc95bc

Please sign in to comment.