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

realar

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

realar - npm Package Compare versions

Comparing version 0.4.8 to 0.4.9

4

build/index.d.ts
import { FC } from 'react';
import { expr, box, sel, transaction } from 'reactive-box';
export { prop, cache, action, on, cycle, effect, shared, initial, observe, useValue, useLocal, useShared, free, mock, box, sel, expr, transaction, boxProperty, selProperty, Ensurable, };
export { prop, cache, action, on, cycle, effect, shared, initial, observe, useValue, useLocal, useShared, free, mock, box, sel, expr, transaction, boxProperty, selProperty, boxProperties, Ensurable, };
declare type Ensurable<T> = T | void;

@@ -33,3 +33,5 @@ declare function action<T = undefined>(init?: T): {

declare function selProperty(o: any, p: string | number | symbol, selector: () => any): any;
declare function boxProperties<T extends {}>(props: T): T;
declare function boxProperties<O extends Object, T extends {}>(o: O, props: T): O & T;
declare function prop(_proto: any, key: any, descriptor?: any): any;
declare function cache(_proto: any, key: any, descriptor: any): any;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.selProperty = exports.boxProperty = exports.transaction = exports.expr = exports.sel = exports.box = exports.mock = exports.free = exports.useShared = exports.useLocal = exports.useValue = exports.observe = exports.initial = exports.shared = exports.effect = exports.cycle = exports.on = exports.action = exports.cache = exports.prop = void 0;
exports.boxProperties = exports.selProperty = exports.boxProperty = exports.transaction = exports.expr = exports.sel = exports.box = exports.mock = exports.free = exports.useShared = exports.useLocal = exports.useValue = exports.observe = exports.initial = exports.shared = exports.effect = exports.cycle = exports.on = exports.action = exports.cache = exports.prop = void 0;
const react_1 = require("react");

@@ -189,2 +189,13 @@ const reactive_box_1 = require("reactive-box");

exports.selProperty = selProperty;
function boxProperties(o, props) {
if (!props) {
props = o;
o = {};
}
Object.keys(props).forEach(key => {
boxProperty(o, key, props[key]);
});
return o;
}
exports.boxProperties = boxProperties;
function prop(_proto, key, descriptor) {

@@ -191,0 +202,0 @@ const initializer = descriptor === null || descriptor === void 0 ? void 0 : descriptor.initializer;

{
"name": "realar",
"version": "0.4.8",
"version": "0.4.9",
"description": "React state manager",

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

},
"gitHead": "f23db327e49eb65f11243386a1124379e06e7531"
"gitHead": "3140a940386b5da7b970b7409f625d3ccad0608f"
}

@@ -69,3 +69,3 @@ # Realar

_Documentation not ready yet for `action`, `cache`, `on`, `cycle`, `effect`, `shared`, `initial`, `mock`, `free`, `useLocal`, `observe`, `useValue`, `useShared`, `transaction`, `box`, `sel`, `boxProperty`, `selProperty` functions. It's coming soon._
_Documentation not ready yet for `action`, `cache`, `on`, `cycle`, `effect`, `shared`, `initial`, `mock`, `free`, `useLocal`, `observe`, `useValue`, `useShared`, `transaction`, `box`, `sel`, `boxProperty`, `selProperty`, `boxProperties` functions. It's coming soon._

@@ -72,0 +72,0 @@ ### Demos

@@ -31,2 +31,3 @@ import { useRef, useReducer, useEffect, useMemo, FC } from 'react';

selProperty,
boxProperties,
Ensurable,

@@ -232,2 +233,15 @@ };

function boxProperties<T extends {}>(props: T): T;
function boxProperties<O extends Object, T extends {}>(o: O, props: T): O & T;
function boxProperties(o: any, props?: any) {
if (!props) {
props = o;
o = {};
}
Object.keys(props).forEach(key => {
boxProperty(o, key, props[key]);
});
return o;
}
function prop(_proto: any, key: any, descriptor?: any): any {

@@ -234,0 +248,0 @@ const initializer = descriptor?.initializer;

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