Comparing version 9.0.1 to 9.0.2
# Changelog | ||
## `9.0.2` | ||
- Add missing fromEntries polyfill (second try) | ||
## `9.0.1` | ||
@@ -4,0 +8,0 @@ |
@@ -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", |
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
71936
16
6
1265
+ Addedobject.fromentries@2.0.4
+ Addedarray-buffer-byte-length@1.0.2(transitive)
+ Addedarraybuffer.prototype.slice@1.0.4(transitive)
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedcall-bind@1.0.8(transitive)
+ Addedcall-bind-apply-helpers@1.0.1(transitive)
+ Addedcall-bound@1.0.3(transitive)
+ Addeddata-view-buffer@1.0.2(transitive)
+ Addeddata-view-byte-length@1.0.2(transitive)
+ Addeddata-view-byte-offset@1.0.1(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addeddunder-proto@1.0.1(transitive)
+ Addedes-abstract@1.23.7(transitive)
+ Addedes-define-property@1.0.1(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.0.0(transitive)
+ Addedes-set-tostringtag@2.0.3(transitive)
+ Addedes-to-primitive@1.3.0(transitive)
+ Addedfor-each@0.3.3(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedfunction.prototype.name@1.1.8(transitive)
+ Addedfunctions-have-names@1.2.3(transitive)
+ Addedget-intrinsic@1.2.6(transitive)
+ Addedget-symbol-description@1.1.0(transitive)
+ Addedglobalthis@1.0.4(transitive)
+ Addedgopd@1.2.0(transitive)
+ Addedhas@1.0.4(transitive)
+ Addedhas-bigints@1.1.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.2.0(transitive)
+ Addedhas-symbols@1.1.0(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinternal-slot@1.1.0(transitive)
+ Addedis-array-buffer@3.0.5(transitive)
+ Addedis-async-function@2.0.0(transitive)
+ Addedis-bigint@1.1.0(transitive)
+ Addedis-boolean-object@1.2.1(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-data-view@1.0.2(transitive)
+ Addedis-date-object@1.1.0(transitive)
+ Addedis-finalizationregistry@1.1.1(transitive)
+ Addedis-generator-function@1.0.10(transitive)
+ Addedis-map@2.0.3(transitive)
+ Addedis-number-object@1.1.1(transitive)
+ Addedis-regex@1.2.1(transitive)
+ Addedis-set@2.0.3(transitive)
+ Addedis-shared-array-buffer@1.0.4(transitive)
+ Addedis-string@1.1.1(transitive)
+ Addedis-symbol@1.1.1(transitive)
+ Addedis-typed-array@1.1.15(transitive)
+ Addedis-weakmap@2.0.2(transitive)
+ Addedis-weakref@1.1.0(transitive)
+ Addedis-weakset@2.0.4(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedmath-intrinsics@1.1.0(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedobject.assign@4.1.7(transitive)
+ Addedobject.fromentries@2.0.4(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
+ Addedreflect.getprototypeof@1.0.9(transitive)
+ Addedregexp.prototype.flags@1.5.3(transitive)
+ Addedsafe-array-concat@1.1.3(transitive)
+ Addedsafe-regex-test@1.1.0(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedset-function-name@2.0.2(transitive)
+ Addedside-channel@1.1.0(transitive)
+ Addedside-channel-list@1.0.0(transitive)
+ Addedside-channel-map@1.0.1(transitive)
+ Addedside-channel-weakmap@1.0.2(transitive)
+ Addedstring.prototype.trim@1.2.10(transitive)
+ Addedstring.prototype.trimend@1.0.9(transitive)
+ Addedstring.prototype.trimstart@1.0.8(transitive)
+ Addedtyped-array-buffer@1.0.3(transitive)
+ Addedtyped-array-byte-length@1.0.3(transitive)
+ Addedtyped-array-byte-offset@1.0.4(transitive)
+ Addedtyped-array-length@1.0.7(transitive)
+ Addedunbox-primitive@1.1.0(transitive)
+ Addedwhich-boxed-primitive@1.1.1(transitive)
+ Addedwhich-builtin-type@1.2.1(transitive)
+ Addedwhich-collection@1.0.2(transitive)
+ Addedwhich-typed-array@1.1.18(transitive)