Socket
Socket
Sign inDemoInstall

mobx-utils

Package Overview
Dependencies
Maintainers
4
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-utils - npm Package Compare versions

Comparing version 5.6.1 to 5.6.2

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 5.6.2
* [#289](https://github.com/mobxjs/mobx-utils/pull/289) ObservableGroupMap.ts: remove console.log
# 5.6.1

@@ -2,0 +6,0 @@

3

lib/now.js

@@ -47,2 +47,3 @@ import { _isComputingDerivation } from "mobx";

return fromResource(function (sink) {
sink(Date.now());
subscriptionHandle = setInterval(function () { return sink(Date.now()); }, interval);

@@ -54,4 +55,4 @@ }, function () {

function createAnimationFrameTicker() {
var subscriptionHandle;
var frameBasedTicker = fromResource(function (sink) {
sink(Date.now());
function scheduleTick() {

@@ -58,0 +59,0 @@ window.requestAnimationFrame(function () {

@@ -15,2 +15,5 @@ import { IObservableArray, ObservableMap } from "mobx";

*
* NB: ObservableGroupMap relies on `Symbol`s. If you are targeting a platform which doesn't
* support these natively, you will need to provide a polyfill.
*
* @param {array} base The array to sort into groups.

@@ -17,0 +20,0 @@ * @param {function} groupBy The function used for grouping.

@@ -28,2 +28,5 @@ var __extends = (this && this.__extends) || (function () {

*
* NB: ObservableGroupMap relies on `Symbol`s. If you are targeting a platform which doesn't
* support these natively, you will need to provide a polyfill.
*
* @param {array} base The array to sort into groups.

@@ -53,5 +56,3 @@ * @param {function} groupBy The function used for grouping.

_this._groupBy = groupBy;
_this._ogmInfoKey = ("function" == typeof Symbol
? Symbol("ogmInfo" + name)
: "__ogmInfo" + name);
_this._ogmInfoKey = Symbol("ogmInfo" + name);
_this._base = base;

@@ -111,3 +112,3 @@ for (var i = 0; i < base.length; i++) {

if (undefined === result) {
result = observable([], { name: "GroupArray[" + this._keyToName(key) + "]" });
result = observable([], { name: "GroupArray[" + this._keyToName(key) + "]", deep: false });
_super.prototype.set.call(this, key, result);

@@ -140,3 +141,2 @@ }

reaction: reaction(function () { return _this._groupBy(item); }, function (newGroupByValue, _r) {
console.log("new group by value ", newGroupByValue);
var grouperItemInfo = item[_this._ogmInfoKey];

@@ -143,0 +143,0 @@ _this._removeFromGroupArr(grouperItemInfo.groupByValue, grouperItemInfo.groupArrIndex);

{
"name": "mobx-utils",
"version": "5.6.1",
"version": "5.6.2",
"description": "Utility functions and common patterns for MobX",

@@ -96,2 +96,2 @@ "main": "mobx-utils.umd.js",

}
}
}

@@ -735,2 +735,5 @@ # MobX-utils

NB: ObservableGroupMap relies on `Symbol`s. If you are targeting a platform which doesn't
support these natively, you will need to provide a polyfill.
### Parameters

@@ -737,0 +740,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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