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

@dappworks/urpc

Package Overview
Dependencies
Maintainers
0
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.64 to 0.0.65

30

dist/index.d.ts

@@ -41,3 +41,3 @@ // Generated by dts-bundle-generator v9.5.1

};
export type URPC_Action<T extends Object = {}, R extends any = any, V extends URPC_Variable = any> = {
export type URPC_Action<T extends any = any, R extends any = any, V extends URPC_Variable = any> = {
type?: "action";

@@ -61,3 +61,3 @@ input: T | ((args: V) => T);

}
export interface URPC_Function<T extends Object = {}, VarValue extends any = any, I extends any = any, Var extends URPC_Variable = any> {
export interface URPC_Function<T extends any = any, VarValue extends any = any, I extends any = any, Var extends URPC_Variable = any> {
uid: string;

@@ -91,3 +91,3 @@ type?: "func";

export type URPC_Input<T> = {
[K in keyof T]: T[K] extends () => URPC_Class<infer G> ? G : T[K];
[K in keyof T]: T[K] extends (() => URPC_Class<infer G>) ? G : T[K];
};

@@ -97,3 +97,3 @@ export type InferSchema<Get extends () => any, VarValue extends UnwrapPromise<ReturnType<Get>>, S = ReturnType<URPC_SchemaField<Item<VarValue>, URPC_Variable<Get, VarValue>>>> = Required<{

}>;
export type URPC_SchemaField<R extends any = any, V extends URPC_Variable = any, T extends Object = {}> = (args: {
export type URPC_SchemaField<R extends any = any, V extends URPC_Variable = any> = (args: {
v: V;

@@ -105,3 +105,3 @@ val: R;

} & {
[key: string]: (() => URPC_Class<any>) | URPC_Action<T, R, V> | URPC_Function<any, R, any, V>;
[key: string]: (() => URPC_Class<any>) | URPC_Action<any, R, V> | URPC_Function<any, R, any, V>;
};

@@ -123,4 +123,4 @@ export type URPC_Middleware<C extends any = any> = {

static Var<G extends () => any, R extends UnwrapPromise<ReturnType<G>> = UnwrapPromise<ReturnType<G>>>(args: Partial<URPC_Variable<G, R>>): URPC_Variable<G, R>;
static Func<T extends Object = {}, R extends any = any, I extends any = any, V extends URPC_Variable = any>(args: Partial<URPC_Function<T, R, I, V>>): URPC_Function<T, R, I, V>;
static Action<T extends Object = {}, R extends any = any, V extends URPC_Variable = any>(args: Partial<URPC_Action<T, R, V>>): URPC_Action<T, R, V>;
static Func<T extends any = any, R extends any = any, I extends any = any, V extends URPC_Variable = any>(args: Partial<URPC_Function<T, R, I, V>>): URPC_Function<T, R, I, V>;
static Action<T extends any = any, R extends any = any, V extends URPC_Variable = any>(args: Partial<URPC_Action<T, R, V>>): URPC_Action<T, R, V>;
constructor(args?: Partial<URPC<T>>);

@@ -137,7 +137,7 @@ static utils: {

} & {
[key: string]: (() => URPC_Class<any>) | URPC_Action<{}, any, URPC_Variable<() => any, any, any>> | URPC_Function<any, any, any, URPC_Variable<() => any, any, any>>;
[key: string]: (() => URPC_Class<any>) | URPC_Action<any, any, URPC_Variable<() => any, any, any>> | URPC_Function<any, any, any, URPC_Variable<() => any, any, any>>;
};
meta: URPC_Meta<any> | undefined;
}>;
formatFunc(f: URPC_Function, v?: URPC_Variable): Promise<Partial<URPC_Function<{}, any, any, any>>>;
formatFunc(f: URPC_Function, v?: URPC_Variable): Promise<Partial<URPC_Function<any, any, any, any>>>;
formatSchema(data: URPC_Variable, ctx: any): Promise<void>;

@@ -148,3 +148,3 @@ };

ctx: any;
}): Promise<(Partial<URPC_Function<{}, any, any, any>> | {
}): Promise<(Partial<URPC_Function<any, any, any, any>> | {
uid: string;

@@ -158,3 +158,3 @@ type: "var" | undefined;

} & {
[key: string]: (() => URPC_Class<any>) | URPC_Action<{}, any, URPC_Variable<() => any, any, any>> | URPC_Function<any, any, any, URPC_Variable<() => any, any, any>>;
[key: string]: (() => URPC_Class<any>) | URPC_Action<any, any, URPC_Variable<() => any, any, any>> | URPC_Function<any, any, any, URPC_Variable<() => any, any, any>>;
};

@@ -183,3 +183,3 @@ meta: URPC_Meta<any> | undefined;

method: R;
input: Partial<T[R] extends URPC_Function<infer Z extends Object, any, any, any> ? Z : never>;
input: Partial<T[R] extends URPC_Function<infer Z extends unknown, any, any, any> ? Z : never>;
}): Promise<T[R] extends URPC_Function<any, infer Z_1 extends unknown, any, any> ? Z_1 : never>;

@@ -201,3 +201,3 @@ };

method: R_2;
input: Partial<T[R_2] extends URPC_Function<infer Z_3 extends Object, any, any, any> ? Z_3 : never>;
input: Partial<T[R_2] extends URPC_Function<infer Z_3 extends unknown, any, any, any> ? Z_3 : never>;
}): Promise<T[R_2] extends URPC_Function<any, infer Z_4 extends unknown, any, any> ? Z_4 : never>;

@@ -215,3 +215,3 @@ };

schema: {
loadFull(params: Parameters<URPC<T>["loadFull"]>[0]): Promise<(Partial<URPC_Function<{}, any, any, any>> | {
loadFull(params: Parameters<URPC<T>["loadFull"]>[0]): Promise<(Partial<URPC_Function<any, any, any, any>> | {
uid: string;

@@ -225,3 +225,3 @@ type: "var" | undefined;

} & {
[key: string]: (() => URPC_Class<any>) | URPC_Action<{}, any, URPC_Variable<() => any, any, any>> | URPC_Function<any, any, any, URPC_Variable<() => any, any, any>>;
[key: string]: (() => URPC_Class<any>) | URPC_Action<any, any, URPC_Variable<() => any, any, any>> | URPC_Function<any, any, any, URPC_Variable<() => any, any, any>>;
};

@@ -228,0 +228,0 @@ meta: URPC_Meta<any> | undefined;

{
"name": "@dappworks/urpc",
"version": "0.0.64",
"version": "0.0.65",
"module": "index.ts",

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

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