Socket
Socket
Sign inDemoInstall

realar

Package Overview
Dependencies
1
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.15 to 0.5.16

3

build/index.d.ts

@@ -64,6 +64,7 @@ import { FC } from 'react';

declare function sync<T>(target: Reactionable<T>, listener: (value: T, prev?: T) => void): () => void;
declare function effect(fn: () => void): void;
declare function effect(fn: () => void): () => void;
declare function effect(fn: () => () => any): () => any;
declare function cycle(body: () => void): () => void;
declare function isolate(): () => () => void;
declare function isolate(fn: () => void): () => void;
declare function initial(data: any): void;

@@ -70,0 +71,0 @@ declare function mock<M>(target: (new (init?: any) => M) | ((init?: any) => M), mocked: M): M;

@@ -130,3 +130,3 @@ "use strict";

function stop_signal() {
return wrap(ready(false), () => true);
return ready(false, true);
}

@@ -310,3 +310,7 @@ function wrap(target, set, get) {

exports.cycle = cycle;
function isolate() {
function isolate(fn) {
if (fn) {
context_unsubs = context_unsubs.filter((i) => i !== fn);
return fn;
}
const stack = context_unsubs;

@@ -466,3 +470,3 @@ context_unsubs = [];

function box_property(o, p, init) {
const b = reactive_box_1.box(init);
const b = reactive_box_1.box(init && init());
def_prop(o, p, { get: b[0], set: b[1] });

@@ -474,7 +478,7 @@ }

get() {
box_property(this, key, initializer && initializer());
box_property(this, key, initializer);
return this[key];
},
set(value) {
box_property(this, key, initializer && initializer());
box_property(this, key, initializer);
this[key] = value;

@@ -481,0 +485,0 @@ },

{
"name": "realar",
"version": "0.5.15",
"version": "0.5.16",
"description": "React state manager",

@@ -88,3 +88,3 @@ "repository": {

},
"gitHead": "c5e61a00b00f6e1bebfd9e0cea37d95f71be3d29"
"gitHead": "1dad41014509b85c278dcb7c388de2abd5d3d598"
}

@@ -9,3 +9,3 @@ # Realar

Realar targeted to clean code, modulable architecture, and time of delivery user experience.
Realar targeted to clean code, modulable architecture, and time to delivery user experience.

@@ -12,0 +12,0 @@ Transparent functional reactive programming with classes, decorators and [babel jsx wrapper](https://github.com/betula/babel-plugin-realar)

@@ -206,3 +206,3 @@ import React, { Context, FC } from 'react';

function stop_signal() {
return wrap(ready(false), () => true);
return ready(false, true);
}

@@ -415,3 +415,3 @@

function effect(fn: () => void): void;
function effect(fn: () => void): () => void;
function effect(fn: () => () => any): () => any;

@@ -431,3 +431,9 @@ function effect(fn: any) {

function isolate() {
function isolate(): () => () => void;
function isolate(fn: () => void): () => void;
function isolate(fn?: any) {
if (fn) {
context_unsubs = context_unsubs.filter((i: any) => i !== fn);
return fn;
}
const stack = context_unsubs;

@@ -600,3 +606,3 @@ context_unsubs = [];

function box_property(o: any, p: string | number | symbol, init?: any): any {
const b = box(init);
const b = box(init && init());
def_prop(o, p, { get: b[0], set: b[1] });

@@ -609,7 +615,7 @@ }

get() {
box_property(this, key, initializer && initializer());
box_property(this, key, initializer);
return this[key];
},
set(value: any) {
box_property(this, key, initializer && initializer());
box_property(this, key, initializer);
this[key] = value;

@@ -616,0 +622,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc