🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@prpc/core

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prpc/core - npm Package Compare versions

Comparing version
0.3.8
to
0.3.9
+4
-4
dist/index.d.ts

@@ -9,3 +9,3 @@ import * as zod from 'zod';

} : T;
type ExpectedInput<T, Ctx = any> = {
type ExpectedInput<T = void | undefined, Ctx = any> = {
payload: T;

@@ -29,3 +29,3 @@ request$: Request;

}) => any;
type ObjectParams<ZObj extends zod__default.ZodSchema | undefined, Mw extends IMiddleware[], Fn extends ExpectedFn<ZObj extends zod__default.ZodSchema ? zod__default.infer<ZObj> : undefined, Mw>, isMutation extends boolean = false> = {
type ObjectParams<ZObj extends zod__default.ZodSchema | undefined | void, Mw extends IMiddleware[], Fn extends ExpectedFn<ZObj extends void | undefined ? void | undefined : ZObj extends zod__default.ZodSchema ? zod__default.infer<ZObj> : void, Mw>, isMutation extends boolean = false> = {
key: string;

@@ -46,3 +46,3 @@ schema?: ZObj;

declare function figureOutMessageError(err: any): any;
declare function tryAndWrap<Fn extends ExpectedFn>(queryFn: Fn, input: AsParam<Fn, false | true>): Promise<any>;
declare function tryAndWrap<Fn extends ExpectedFn<any>>(queryFn: Fn, input: AsParam<Fn, false | true>): Promise<any>;
declare const middleware$: <Mw extends IMiddleware<CurrentContext>, CurrentContext = unknown>(mw: Mw) => Mw;

@@ -56,3 +56,3 @@ type Flattened<T> = T extends Array<infer U> ? Flattened<U> : T;

declare const getParams: (isMutation: boolean, ...args: any[]) => {
queryFn: ExpectedFn;
queryFn: ExpectedFn<any>;
key: string;

@@ -59,0 +59,0 @@ };

{
"name": "@prpc/core",
"description": "Package for easily creating server rpc functions in solid-start with goodies baked in",
"version": "0.3.8",
"version": "0.3.9",
"type": "module",

@@ -6,0 +6,0 @@ "exports": {