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

mobx-rest

Package Overview
Dependencies
Maintainers
1
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 0.0.10 to 0.0.11

11

lib/Model.js

@@ -103,4 +103,5 @@ 'use strict';

var data = Object.assign({}, attributes);
var originalAttributes = this.attributes.toJS();
var newAttributes = void 0;
var data = void 0;

@@ -114,5 +115,7 @@ if (!this.get('id')) {

if (patch) {
newAttributes = Object.assign({}, originalAttributes, attributes);
data = Object.assign({}, attributes);
} else {
newAttributes = Object.assign({}, attributes);
data = Object.assign({}, originalAttributes, attributes);
} else {
data = attributes;
}

@@ -128,3 +131,3 @@

if (optimistic) this.attributes = (0, _mobx.asMap)(data);
if (optimistic) this.attributes = (0, _mobx.asMap)(newAttributes);

@@ -131,0 +134,0 @@ this.request = { label: label, abort: abort };

{
"name": "mobx-rest",
"version": "0.0.10",
"version": "0.0.11",
"description": "REST conventions for mobx.",

@@ -5,0 +5,0 @@ "repository": {

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