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

mobx-rest

Package Overview
Dependencies
Maintainers
4
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 9.0.1 to 9.0.2

4

CHANGELOG.md
# Changelog
## `9.0.2`
- Add missing fromEntries polyfill (second try)
## `9.0.1`

@@ -4,0 +8,0 @@

16

lib/index.js

@@ -8,2 +8,3 @@ 'use strict';

var isObject = require('lodash/isObject');
var fromEntries = require('object.fromentries');
var debounce = require('lodash/debounce');

@@ -22,2 +23,3 @@ var isEqual = require('lodash/isEqual');

var isObject__default = /*#__PURE__*/_interopDefaultLegacy(isObject);
var fromEntries__default = /*#__PURE__*/_interopDefaultLegacy(fromEntries);
var debounce__default = /*#__PURE__*/_interopDefaultLegacy(debounce);

@@ -264,8 +266,2 @@ var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);

require('../../modules/es.array.iterator');
require('../../modules/es.object.from-entries');
var path = require('../../internals/path');
module.exports = path.Object.fromEntries;
var dontMergeArrays = function (_oldArray, newArray) { return newArray; };

@@ -305,3 +301,3 @@ var DEFAULT_PRIMARY = 'id';

Model.prototype.toJS = function () {
return Object.fromEntries(this.attributes);
return fromEntries__default['default'](this.attributes);
};

@@ -404,3 +400,3 @@ Object.defineProperty(Model.prototype, "primaryKey", {

get: function () {
return getChangedAttributesBetween(Object.fromEntries(this.committedAttributes), this.toJS());
return getChangedAttributesBetween(fromEntries__default['default'](this.committedAttributes), this.toJS());
},

@@ -415,3 +411,3 @@ enumerable: false,

get: function () {
return getChangesBetween(Object.fromEntries(this.committedAttributes), this.toJS());
return getChangesBetween(fromEntries__default['default'](this.committedAttributes), this.toJS());
},

@@ -435,3 +431,3 @@ enumerable: false,

Model.prototype.discardChanges = function () {
this.attributes.replace(Object.fromEntries(this.committedAttributes));
this.attributes.replace(fromEntries__default['default'](this.committedAttributes));
};

@@ -438,0 +434,0 @@ /**

{
"name": "mobx-rest",
"version": "9.0.1",
"version": "9.0.2",
"description": "REST conventions for mobx.",

@@ -38,3 +38,2 @@ "jest": {

"tslib": "2.3.0",
"core-js": "3.14.0",
"typescript": "4.3.2"

@@ -64,2 +63,3 @@ },

"deepmerge": "4.2.2",
"object.fromentries": "2.0.4",
"lodash": "4.17.21",

@@ -66,0 +66,0 @@ "mobx": "^6.3.2",

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