Skip to content

Commit

Permalink
0.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceK33z committed Jul 23, 2017
1 parent 31674af commit 127bded
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 11 deletions.
18 changes: 13 additions & 5 deletions dist/mobx-spine.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
map,
mapKeys,
mapValues,
omit,
result,
sortBy,
uniq,
Expand Down Expand Up @@ -461,6 +462,7 @@ var Store = (
.fetchStore({
url: result(this, 'url'),
data: data,
requestOptions: omit(options, 'data'),
})
.then(
action(function(res) {
Expand Down Expand Up @@ -1814,7 +1816,11 @@ var Model = (
options.data
);
return this.__getApi()
.fetchModel({ url: this.url, data: data })
.fetchModel({
url: this.url,
data: data,
requestOptions: omit(options, 'data'),
})
.then(
action(function(res) {
_this14.fromBackend(res);
Expand Down Expand Up @@ -2154,9 +2160,10 @@ var BinderApi = (function() {
key: 'fetchModel',
value: function fetchModel(_ref) {
var url = _ref.url,
data = _ref.data;
data = _ref.data,
requestOptions = _ref.requestOptions;

return this.get(url, data).then(function(res) {
return this.get(url, data, requestOptions).then(function(res) {
return {
data: res.data,
repos: res.with,
Expand Down Expand Up @@ -2260,9 +2267,10 @@ var BinderApi = (function() {
key: 'fetchStore',
value: function fetchStore(_ref5) {
var url = _ref5.url,
data = _ref5.data;
data = _ref5.data,
requestOptions = _ref5.requestOptions;

return this.get(url, data).then(function(res) {
return this.get(url, data, requestOptions).then(function(res) {
return {
data: res.data,
repos: res.with,
Expand Down
27 changes: 22 additions & 5 deletions dist/mobx-spine.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,10 @@
.fetchStore({
url: lodash.result(this, 'url'),
data: data,
requestOptions: lodash.omit(
options,
'data'
),
})
.then(
mobx.action(function(res) {
Expand Down Expand Up @@ -1896,7 +1900,14 @@
options.data
);
return this.__getApi()
.fetchModel({ url: this.url, data: data })
.fetchModel({
url: this.url,
data: data,
requestOptions: lodash.omit(
options,
'data'
),
})
.then(
mobx.action(function(res) {
_this14.fromBackend(res);
Expand Down Expand Up @@ -2244,9 +2255,12 @@
key: 'fetchModel',
value: function fetchModel(_ref) {
var url = _ref.url,
data = _ref.data;
data = _ref.data,
requestOptions = _ref.requestOptions;

return this.get(url, data).then(function(res) {
return this.get(url, data, requestOptions).then(function(
res
) {
return {
data: res.data,
repos: res.with,
Expand Down Expand Up @@ -2352,9 +2366,12 @@
key: 'fetchStore',
value: function fetchStore(_ref5) {
var url = _ref5.url,
data = _ref5.data;
data = _ref5.data,
requestOptions = _ref5.requestOptions;

return this.get(url, data).then(function(res) {
return this.get(url, data, requestOptions).then(function(
res
) {
return {
data: res.data,
repos: res.with,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobx-spine",
"version": "0.16.0",
"version": "0.16.1",
"license": "ISC",
"author": "Kees Kluskens <[email protected]>",
"description": "MobX with support for models, relations and an API.",
Expand Down

0 comments on commit 127bded

Please sign in to comment.