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

@thi.ng/atom

Package Overview
Dependencies
Maintainers
1
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/atom - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0

event-bus.d.ts

17

api.d.ts

@@ -6,2 +6,7 @@ import * as api from "@thi.ng/api/api";

export declare type ViewTransform<T> = (x: any) => T;
export declare type InterceptorFn = (state: any, e: Event) => any;
export declare type InterceptorPredicate = (state: any, e: Event) => boolean;
export declare type SideEffect = (x: any) => void;
export declare type EventDef = Interceptor | Interceptor[] | InterceptorFn | InterceptorFn[];
export declare type EffectDef = [SideEffect, number];
export interface ReadonlyAtom<T> extends api.IDeref<T>, api.IWatch<T> {

@@ -27,1 +32,13 @@ }

}
export interface Event extends Array<any> {
[0]: string;
[1]?: any;
}
export interface Interceptor {
pre?: InterceptorFn;
post?: InterceptorFn;
}
export declare const FX_STATE = "state";
export declare const FX_DISPACH_NOW = "dispatch-now";
export declare const FX_DISPATCH = "dispatch";
export declare const FX_CANCEL = "cancel";

4

api.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
exports.FX_STATE = "state";
exports.FX_DISPACH_NOW = "dispatch-now";
exports.FX_DISPATCH = "dispatch";
exports.FX_CANCEL = "cancel";

@@ -6,2 +6,13 @@ # Change Log

<a name="0.9.0"></a>
# [0.9.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@0.8.0...@thi.ng/atom@0.9.0) (2018-03-07)
### Features
* **atom:** re-add refactored EventBus & interceptor handling ([e01bf73](https://github.com/thi-ng/umbrella/commit/e01bf73))
<a name="0.8.0"></a>

@@ -8,0 +19,0 @@ # [0.8.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@0.7.3...@thi.ng/atom@0.8.0) (2018-03-05)

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./api"));
__export(require("./atom"));

@@ -8,0 +9,0 @@ __export(require("./cursor"));

5

package.json
{
"name": "@thi.ng/atom",
"version": "0.8.0",
"version": "0.9.0",
"description": "Mutable wrapper for a immutable values",

@@ -29,3 +29,4 @@ "main": "./index.js",

"dependencies": {
"@thi.ng/api": "^2.0.3"
"@thi.ng/api": "^2.0.3",
"@thi.ng/dcons": "0.1.13"
},

@@ -32,0 +33,0 @@ "keywords": [

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