Comparing version 3.0.3 to 3.0.4
@@ -385,3 +385,4 @@ 'use strict'; | ||
_this.commitChanges(); | ||
}); | ||
}) | ||
.catch(function (_error) { }); // do nothing | ||
return this.withRequest('fetching', promise, abort); | ||
@@ -625,3 +626,3 @@ }; | ||
if (!model && required) { | ||
throw Error("Invariant: Model must be found with id: " + id); | ||
throw new Error("Invariant: Model must be found with id: " + id); | ||
} | ||
@@ -657,3 +658,3 @@ return model; | ||
if (!model && required) { | ||
throw Error("Invariant: Model must be found"); | ||
throw new Error("Invariant: Model must be found"); | ||
} | ||
@@ -783,3 +784,5 @@ return model; | ||
var _b = apiClient().get(this.url(), data, otherOptions), abort = _b.abort, promise = _b.promise; | ||
promise.then(function (data) { return _this.set(data, otherOptions); }); | ||
promise | ||
.then(function (data) { return _this.set(data, otherOptions); }) | ||
.catch(function (_error) { }); // do nothing | ||
return this.withRequest('fetching', promise, abort); | ||
@@ -786,0 +789,0 @@ }; |
{ | ||
"name": "mobx-rest", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "REST conventions for mobx.", | ||
@@ -5,0 +5,0 @@ "jest": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
62160
1122
0