Socket
Socket
Sign inDemoInstall

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.21 to 0.4.22

12

build/index.d.ts

@@ -26,6 +26,14 @@ import { FC } from 'react';

declare function shared<M>(target: (new (init?: any) => M) | ((init?: any) => M)): M;
declare const useScoped: <M>(target: (new (init?: any) => M) | ((init?: any) => M)) => M;
declare const useScoped: <M>(target: (new (init?: any) => M | {
0: () => M;
} | [() => M] | (() => M)) | ((init?: any) => M | {
0: () => M;
} | [() => M] | (() => M))) => M;
declare const Scope: FC;
declare function observe<T extends FC>(FunctionComponent: T): T;
declare function useLocal<T extends unknown[], M>(target: (new (...args: T) => M) | ((...args: T) => M), deps?: T): M;
declare function useLocal<T extends unknown[], M>(target: (new (...args: T) => M | (() => M) | {
0: () => M;
} | [() => M]) | ((...args: T) => M | (() => M) | {
0: () => M;
} | [() => M]), deps?: T): M;
declare function useValue<T>(target: (() => T) | {

@@ -32,0 +40,0 @@ 0: () => T;

4

package.json
{
"name": "realar",
"version": "0.4.21",
"version": "0.4.22",
"description": "React state manager",

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

},
"gitHead": "d4be49dc08dc7d5d0abe1f0d080c7086a86f4a0a"
"gitHead": "21164c6243f93353ded26494c6f6a6b1325805ac"
}

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

const useScoped = <M>(target: (new (init?: any) => M) | ((init?: any) => M)): M => {
const useScoped = <M>(
target:
| (new (init?: any) => M | (() => M) | { 0: () => M } | [() => M])
| ((init?: any) => M | (() => M) | { 0: () => M } | [() => M])
): M => {
const context_data = useContext(get_scope_context());

@@ -263,3 +267,5 @@ if (!context_data) {

function useLocal<T extends unknown[], M>(
target: (new (...args: T) => M) | ((...args: T) => M),
target:
| (new (...args: T) => M | (() => M) | { 0: () => M } | [() => M])
| ((...args: T) => M | (() => M) | { 0: () => M } | [() => M]),
deps = [] as T

@@ -266,0 +272,0 @@ ): M {

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