Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mobx-rest

Package Overview
Dependencies
Maintainers
3
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-rest - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

11

lib/index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc