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.1.1 to 3.1.2

5

CHANGELOG.md

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

<a name="3.1.2"></a>
## [3.1.2](https://github.com/zerkalica/lom_atom/compare/v3.1.1...v3.1.2) (2017-12-25)
<a name="3.1.1"></a>

@@ -7,0 +12,0 @@ ## [3.1.1](https://github.com/zerkalica/lom_atom/compare/v3.1.0...v3.1.1) (2017-12-25)

75

dist/lom_atom.es.js

@@ -1,23 +0,1 @@

function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
return Constructor;
}
function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
var actionId = Symbol('lom_action');

@@ -36,23 +14,30 @@ var ATOM_STATUS_DESTROYED = 0;

var catchedId = Symbol('lom_cached');
var AtomWait =
/*#__PURE__*/
function (_Error) {
_inheritsLoose(AtomWait, _Error);
/**
* Babel generates garbage here, use old-style class to reduce bundle size
*/
function AtomWait(message) {
var _this;
function AtomWait(message) {
if (message === void 0) {
message = 'Wait...';
}
if (message === void 0) {
message = 'Wait...';
Error.call(this, message) // $FlowFixMe new.target
;
this['__proto__'] = new.target.prototype;
this[catchedId] = true;
return this;
}
AtomWait.prototype = Object.create(Error.prototype);
AtomWait.prototype.constructor = AtomWait;
/*
export class AtomWait extends Error {
constructor(message?: string = 'Wait...') {
super(message)
// $FlowFixMe new.target
;(this: Object)['__proto__'] = new.target.prototype
;(this: Object)[catchedId] = true
}
}
*/
_this = _Error.call(this, message) || this // $FlowFixMe new.target
;
_this['__proto__'] = new.target.prototype;
_this[catchedId] = true;
return _this;
}
return AtomWait;
}(Error);
function getId(t, hk) {

@@ -550,3 +535,3 @@ return (t.constructor.displayName || t.constructor.name) + "." + hk;

setFunctionName(fn, "atom(" + this.displayName + ").retry()");
setFunctionName(fn, "atom(" + this.toString() + ").retry()");
this._retry = fn;

@@ -558,8 +543,2 @@ }

_createClass(Atom, [{
key: "displayName",
get: function get() {
return this.toString();
}
}]);
return Atom;

@@ -911,3 +890,3 @@ }(), _class.deepReset = undefined, _temp);

_proto.onDestruct = function onDestruct(atom) {
console.debug(atom.displayName, 'destruct');
console.debug(atom.toString(), 'destruct');
};

@@ -918,3 +897,3 @@

_proto.newValue = function newValue(atom, from, to) {
var name = atom.displayName;
var name = atom.toString();
var filter = this._filter;

@@ -921,0 +900,0 @@ if (filter && !filter.test(name)) return;

@@ -5,24 +5,2 @@ 'use strict';

function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
return Constructor;
}
function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
var actionId = Symbol('lom_action');

@@ -41,23 +19,30 @@ var ATOM_STATUS_DESTROYED = 0;

var catchedId = Symbol('lom_cached');
var AtomWait =
/*#__PURE__*/
function (_Error) {
_inheritsLoose(AtomWait, _Error);
/**
* Babel generates garbage here, use old-style class to reduce bundle size
*/
function AtomWait(message) {
var _this;
function AtomWait(message) {
if (message === void 0) {
message = 'Wait...';
}
if (message === void 0) {
message = 'Wait...';
Error.call(this, message) // $FlowFixMe new.target
;
this['__proto__'] = new.target.prototype;
this[catchedId] = true;
return this;
}
AtomWait.prototype = Object.create(Error.prototype);
AtomWait.prototype.constructor = AtomWait;
/*
export class AtomWait extends Error {
constructor(message?: string = 'Wait...') {
super(message)
// $FlowFixMe new.target
;(this: Object)['__proto__'] = new.target.prototype
;(this: Object)[catchedId] = true
}
}
*/
_this = _Error.call(this, message) || this // $FlowFixMe new.target
;
_this['__proto__'] = new.target.prototype;
_this[catchedId] = true;
return _this;
}
return AtomWait;
}(Error);
function getId(t, hk) {

@@ -555,3 +540,3 @@ return (t.constructor.displayName || t.constructor.name) + "." + hk;

setFunctionName(fn, "atom(" + this.displayName + ").retry()");
setFunctionName(fn, "atom(" + this.toString() + ").retry()");
this._retry = fn;

@@ -563,8 +548,2 @@ }

_createClass(Atom, [{
key: "displayName",
get: function get() {
return this.toString();
}
}]);
return Atom;

@@ -916,3 +895,3 @@ }(), _class.deepReset = undefined, _temp);

_proto.onDestruct = function onDestruct(atom) {
console.debug(atom.displayName, 'destruct');
console.debug(atom.toString(), 'destruct');
};

@@ -923,3 +902,3 @@

_proto.newValue = function newValue(atom, from, to) {
var name = atom.displayName;
var name = atom.toString();
var filter = this._filter;

@@ -926,0 +905,0 @@ if (filter && !filter.test(name)) return;

@@ -7,24 +7,2 @@ (function (global, factory) {

function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
return Constructor;
}
function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
var actionId = Symbol('lom_action');

@@ -43,23 +21,30 @@ var ATOM_STATUS_DESTROYED = 0;

var catchedId = Symbol('lom_cached');
var AtomWait =
/*#__PURE__*/
function (_Error) {
_inheritsLoose(AtomWait, _Error);
/**
* Babel generates garbage here, use old-style class to reduce bundle size
*/
function AtomWait(message) {
var _this;
function AtomWait(message) {
if (message === void 0) {
message = 'Wait...';
}
if (message === void 0) {
message = 'Wait...';
Error.call(this, message) // $FlowFixMe new.target
;
this['__proto__'] = new.target.prototype;
this[catchedId] = true;
return this;
}
AtomWait.prototype = Object.create(Error.prototype);
AtomWait.prototype.constructor = AtomWait;
/*
export class AtomWait extends Error {
constructor(message?: string = 'Wait...') {
super(message)
// $FlowFixMe new.target
;(this: Object)['__proto__'] = new.target.prototype
;(this: Object)[catchedId] = true
}
}
*/
_this = _Error.call(this, message) || this // $FlowFixMe new.target
;
_this['__proto__'] = new.target.prototype;
_this[catchedId] = true;
return _this;
}
return AtomWait;
}(Error);
function getId(t, hk) {

@@ -557,3 +542,3 @@ return (t.constructor.displayName || t.constructor.name) + "." + hk;

setFunctionName(fn, "atom(" + this.displayName + ").retry()");
setFunctionName(fn, "atom(" + this.toString() + ").retry()");
this._retry = fn;

@@ -565,8 +550,2 @@ }

_createClass(Atom, [{
key: "displayName",
get: function get() {
return this.toString();
}
}]);
return Atom;

@@ -918,3 +897,3 @@ }(), _class.deepReset = undefined, _temp);

_proto.onDestruct = function onDestruct(atom) {
console.debug(atom.displayName, 'destruct');
console.debug(atom.toString(), 'destruct');
};

@@ -925,3 +904,3 @@

_proto.newValue = function newValue(atom, from, to) {
var name = atom.displayName;
var name = atom.toString();
var filter = this._filter;

@@ -928,0 +907,0 @@ if (filter && !filter.test(name)) return;

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

@@ -54,9 +54,9 @@ "publishConfig": {

"devDependencies": {
"@babel/core": "^7.0.0-beta.34",
"@babel/plugin-external-helpers": "^7.0.0-beta.34",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.34",
"@babel/plugin-proposal-decorators": "^7.0.0-beta.34",
"@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.34",
"@babel/preset-es2015": "^7.0.0-beta.34",
"@babel/register": "^7.0.0-beta.34",
"@babel/core": "=7.0.0-beta.34",
"@babel/plugin-external-helpers": "=7.0.0-beta.34",
"@babel/plugin-proposal-class-properties": "=7.0.0-beta.34",
"@babel/plugin-proposal-decorators": "=7.0.0-beta.34",
"@babel/plugin-transform-flow-strip-types": "=7.0.0-beta.34",
"@babel/preset-es2015": "=7.0.0-beta.34",
"@babel/register": "=7.0.0-beta.34",
"chokidar-cli": "^1.2.0",

@@ -66,8 +66,8 @@ "flow-bin": "^0.61.0",

"rimraf": "^2.6.2",
"rollup": "^0.52.2",
"rollup": "^0.53.0",
"rollup-plugin-babel": "^4.0.0-beta.0",
"rollup-plugin-uglify": "^2.0.1",
"standard-version": "^4.2.0",
"uglify-es": "^3.2.2"
"uglify-es": "^3.3.1"
}
}

@@ -31,6 +31,6 @@ import babel from 'rollup-plugin-babel'

}
//console.log(JSON.stringify(babelrc,0,' '))
const commonConf = {
input: 'src/index.js',
sourcemap: true,
plugins: [

@@ -40,3 +40,3 @@ babel(babelrc)

output: [
{file: pkg.module, format: 'es'},
{sourcemap: true, file: pkg.module, format: 'es'},
]

@@ -49,6 +49,6 @@ }

output: [
{file: pkg.main, format: 'cjs'},
{file: pkg['umd:main'], format: 'umd', name: pkg.name}
{sourcemap: true, file: pkg.main, format: 'cjs'},
{sourcemap: true, file: pkg['umd:main'], format: 'umd', name: pkg.name}
]
})
]

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

get displayName(): string {
return this.toString()
}
toString() {

@@ -308,3 +304,3 @@ const k = this.key

const fn = () => this.refresh()
setFunctionName(fn, `atom(${this.displayName}).retry()`)
setFunctionName(fn, `atom(${this.toString()}).retry()`)
this._retry = fn

@@ -311,0 +307,0 @@ }

@@ -37,3 +37,3 @@ // @flow

onDestruct<V>(atom: IAtom<V>): void {
console.debug(atom.displayName, 'destruct')
console.debug(atom.toString(), 'destruct')
}

@@ -44,3 +44,3 @@

newValue<V>(atom: IAtom<V>, from?: V | Error, to: V | Error): void {
const name = atom.displayName
const name = atom.toString()
const filter = this._filter

@@ -47,0 +47,0 @@ if (filter && !filter.test(name)) return

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

+field: string;
+displayName: string;
value(v?: V | Error, forceCache?: IAtomForce): V;

@@ -50,0 +49,0 @@ refresh(): void;

@@ -7,2 +7,18 @@ // @flow

export const catchedId = Symbol('lom_cached')
/**
* Babel generates garbage here, use old-style class to reduce bundle size
*/
export function AtomWait(message?: string = 'Wait...') {
Error.call(this, message)
// $FlowFixMe new.target
;(this: Object)['__proto__'] = new.target.prototype
;(this: Object)[catchedId] = true
return this
}
AtomWait.prototype = Object.create(Error.prototype)
AtomWait.prototype.constructor = AtomWait
/*
export class AtomWait extends Error {

@@ -16,2 +32,3 @@ constructor(message?: string = 'Wait...') {

}
*/

@@ -31,3 +48,2 @@ export function getId(t: Object, hk: string): string {

export const origId = Symbol('lom_error_orig')

@@ -34,0 +50,0 @@ const throwOnAccess = {

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