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

@dappworks/urpc

Package Overview
Dependencies
Maintainers
4
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dappworks/urpc - npm Package Compare versions

Comparing version 0.0.39 to 0.0.40

69

dist/index.d.ts

@@ -28,14 +28,2 @@ // Generated by dts-bundle-generator v9.5.1

export type Item<T> = T extends (infer U)[] ? U : T;
export interface URPC_Function<T extends Object = {}, R extends any = any, V = any> {
uid: string;
type?: "func";
name?: string;
path?: string;
input: T;
func: (args: {
input: T;
val?: R;
}) => V;
uiConfig?: (() => FormConfigType<T>) | FormConfigType<T>;
}
export type UnwrapPromise<T> = T extends Promise<infer U> ? U : T;

@@ -54,3 +42,22 @@ export type SchemaItem<T extends Object = {}, R extends any = any> = {

uiConfig?: FormConfigItem;
schema?: URPC_SchemaField<R>;
};
export interface URPC_Function<T extends Object = {}, R extends any = any, V = any> {
uid: string;
type?: "func";
name?: string;
path?: string;
input: T;
func: (args: {
input: T;
val?: R;
}) => V;
uiConfig?: (() => FormConfigType<T>) | FormConfigType<T>;
schema?: URPC_SchemaField<R>;
}
export type URPC_SchemaField<R extends any = any> = (val?: R) => {
[F in keyof Item<R>]?: SchemaItem<any, R>;
} & {
[key: string]: SchemaItem<any, R>;
};
export interface URPC_Variable<G extends () => any = () => any, R extends UnwrapPromise<ReturnType<G>> = UnwrapPromise<ReturnType<G>>> {

@@ -63,7 +70,3 @@ uid: string;

value: R;
schema?: (val: R) => {
[F in keyof Item<R>]?: SchemaItem<any, R>;
} & {
[key: string]: SchemaItem<any, R>;
};
schema?: URPC_SchemaField<R>;
_schema?: ReturnType<Required<URPC_Variable<R>>["schema"]>;

@@ -105,7 +108,10 @@ patch?: {

uiConfig: FormConfigType<any> | undefined;
schema: ({
[x: string]: SchemaItem<any, any> | undefined;
} & {
[key: string]: SchemaItem<any, any>;
}) | null;
value?: undefined;
actions?: undefined;
set?: undefined;
patch?: undefined;
schema?: undefined;
} | {

@@ -116,4 +122,2 @@ uid: string;

value: any;
actions: string[];
uiConfig: FormConfigType<any>;
set: boolean;

@@ -139,2 +143,3 @@ patch: {

input?: undefined;
uiConfig?: undefined;
} | {

@@ -146,7 +151,6 @@ type: string;

uiConfig?: undefined;
schema?: undefined;
value?: undefined;
actions?: undefined;
set?: undefined;
patch?: undefined;
schema?: undefined;
})[]>;

@@ -209,7 +213,16 @@ loadVars(params?: {

uiConfig: FormConfigType<any> | undefined;
schema: ({
[x: string]: ({
type?: string | undefined;
uiConfig?: FormConfigItem | undefined;
} | URPC_Function<any, any, any> | URPC_Action<any, any>) | undefined;
} & {
[key: string]: {
type?: string | undefined;
uiConfig?: FormConfigItem | undefined;
} | URPC_Function<any, any, any> | URPC_Action<any, any>;
}) | null;
value?: undefined;
actions?: undefined;
set?: undefined;
patch?: undefined;
schema?: undefined;
} | {

@@ -220,4 +233,2 @@ uid: string;

value: any;
actions: string[];
uiConfig: FormConfigType<any>;
set: boolean;

@@ -249,2 +260,3 @@ patch: {

input?: undefined;
uiConfig?: undefined;
} | {

@@ -256,7 +268,6 @@ type: string;

uiConfig?: undefined;
schema?: undefined;
value?: undefined;
actions?: undefined;
set?: undefined;
patch?: undefined;
schema?: undefined;
})[]>;

@@ -263,0 +274,0 @@ loadVars(params?: Parameters<URPC<T>["loadFull"]>[0]): Promise<{

{
"name": "@dappworks/urpc",
"version": "0.0.39",
"version": "0.0.40",
"module": "index.ts",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

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