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

lom_atom

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lom_atom - npm Package Compare versions

Comparing version 3.0.14 to 3.0.15

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Change Log

<a name="3.0.15"></a>
## [3.0.15](https://github.com/zerkalica/lom_atom/compare/v3.0.14...v3.0.15) (2017-12-08)
<a name="3.0.14"></a>

@@ -7,0 +12,0 @@ ## [3.0.14](https://github.com/zerkalica/lom_atom/compare/v3.0.13...v3.0.14) (2017-12-08)

30

dist/lom_atom.es.js

@@ -178,6 +178,2 @@ function _defineProperties(target, props) {

function deleteMaster(slave) {
slave.removeMaster(this);
}
var Atom = (_temp = _class =

@@ -221,13 +217,8 @@ /*#__PURE__*/

this._masters.forEach(deleteSlave, this);
this._masters = null;
}
if (this._slaves) {
this._slaves.forEach(deleteMaster, this);
if (this._slaves) this._slaves.forEach(checkSlave);
this._masters = null;
this._slaves = null;
this._slaves = null;
} // this._checkSlaves()
this._hostAtoms.delete(this._keyHash || this.owner);

@@ -345,4 +336,7 @@

_proto._pullPush = function _pullPush() {
if (this._masters) {
this._masters.forEach(deleteSlave, this);
var masters = this._masters;
if (masters) {
masters.forEach(deleteSlave, this);
this._masters = null;
}

@@ -378,3 +372,2 @@

slaves.delete(slave);
slave.removeMaster(this);

@@ -413,9 +406,2 @@ if (slaves.size === 0) {

_proto.removeMaster = function removeMaster(master) {
var masters = this._masters;
if (!masters) return;
masters.delete(master);
if (masters.size === 0) this._masters = null;
};
_proto.addMaster = function addMaster(master) {

@@ -422,0 +408,0 @@ if (!this._masters) {

@@ -182,6 +182,2 @@ 'use strict';

function deleteMaster(slave) {
slave.removeMaster(this);
}
var Atom = (_temp = _class =

@@ -225,13 +221,8 @@ /*#__PURE__*/

this._masters.forEach(deleteSlave, this);
this._masters = null;
}
if (this._slaves) {
this._slaves.forEach(deleteMaster, this);
if (this._slaves) this._slaves.forEach(checkSlave);
this._masters = null;
this._slaves = null;
this._slaves = null;
} // this._checkSlaves()
this._hostAtoms.delete(this._keyHash || this.owner);

@@ -349,4 +340,7 @@

_proto._pullPush = function _pullPush() {
if (this._masters) {
this._masters.forEach(deleteSlave, this);
var masters = this._masters;
if (masters) {
masters.forEach(deleteSlave, this);
this._masters = null;
}

@@ -382,3 +376,2 @@

slaves.delete(slave);
slave.removeMaster(this);

@@ -417,9 +410,2 @@ if (slaves.size === 0) {

_proto.removeMaster = function removeMaster(master) {
var masters = this._masters;
if (!masters) return;
masters.delete(master);
if (masters.size === 0) this._masters = null;
};
_proto.addMaster = function addMaster(master) {

@@ -426,0 +412,0 @@ if (!this._masters) {

@@ -184,6 +184,2 @@ (function (global, factory) {

function deleteMaster(slave) {
slave.removeMaster(this);
}
var Atom = (_temp = _class =

@@ -227,13 +223,8 @@ /*#__PURE__*/

this._masters.forEach(deleteSlave, this);
this._masters = null;
}
if (this._slaves) {
this._slaves.forEach(deleteMaster, this);
if (this._slaves) this._slaves.forEach(checkSlave);
this._masters = null;
this._slaves = null;
this._slaves = null;
} // this._checkSlaves()
this._hostAtoms.delete(this._keyHash || this.owner);

@@ -351,4 +342,7 @@

_proto._pullPush = function _pullPush() {
if (this._masters) {
this._masters.forEach(deleteSlave, this);
var masters = this._masters;
if (masters) {
masters.forEach(deleteSlave, this);
this._masters = null;
}

@@ -384,3 +378,2 @@

slaves.delete(slave);
slave.removeMaster(this);

@@ -419,9 +412,2 @@ if (slaves.size === 0) {

_proto.removeMaster = function removeMaster(master) {
var masters = this._masters;
if (!masters) return;
masters.delete(master);
if (masters.size === 0) this._masters = null;
};
_proto.addMaster = function addMaster(master) {

@@ -428,0 +414,0 @@ if (!this._masters) {

{
"name": "lom_atom",
"version": "3.0.14",
"version": "3.0.15",
"description": "Alternative implementation of eigenmethod mol_atom state management library",

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

@@ -42,6 +42,2 @@ // @flow

function deleteMaster(slave: IAtomInt) {
slave.removeMaster((this: IAtomInt))
}
export default class Atom<V> implements IAtom<V>, IAtomInt {

@@ -115,9 +111,6 @@ status: IAtomStatus

this._masters.forEach(deleteSlave, this)
this._masters = null
}
if (this._slaves) {
this._slaves.forEach(deleteMaster, this)
this._slaves = null
}
// this._checkSlaves()
if (this._slaves) this._slaves.forEach(checkSlave)
this._masters = null
this._slaves = null
this._hostAtoms.delete(((this._keyHash || this.owner): any))

@@ -229,5 +222,8 @@ this._context.destroyHost(this)

_pullPush(): void {
if (this._masters) {
this._masters.forEach(deleteSlave, this)
const masters = this._masters
if (masters) {
masters.forEach(deleteSlave, this)
this._masters = null
}
let newValue: V | Error

@@ -263,3 +259,2 @@ this.status = ATOM_STATUS_PULLING

slaves.delete(slave)
slave.removeMaster(this)
if (slaves.size === 0) {

@@ -294,9 +289,2 @@ this._slaves = null

removeMaster(master: IAtomInt) {
const masters = this._masters
if (!masters) return
masters.delete(master)
if (masters.size === 0) this._masters = null
}
addMaster(master: IAtomInt) {

@@ -303,0 +291,0 @@ if (!this._masters) {

@@ -74,3 +74,2 @@ // @flow

dislead(slave: IAtomInt): void;
removeMaster(master: IAtomInt): void;
addMaster(master: IAtomInt): void;

@@ -77,0 +76,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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