@orpc/shared
Advanced tools
Comparing version 0.0.0-next.9306271 to 0.0.0-next.10945d3
@@ -5,3 +5,3 @@ import { | ||
convertToStandardError | ||
} from "./chunk-4KZEIATV.js"; | ||
} from "./chunk-CCTAECMC.js"; | ||
export { | ||
@@ -8,0 +8,0 @@ ORPCError, |
import { | ||
convertToStandardError | ||
} from "./chunk-4KZEIATV.js"; | ||
} from "./chunk-CCTAECMC.js"; | ||
// src/constants.ts | ||
var ORPC_PROTOCOL_HEADER = "x-orpc-protocol"; | ||
var ORPC_PROTOCOL_VALUE = "orpc"; | ||
// src/hook.ts | ||
@@ -131,2 +135,4 @@ async function executeWithHooks(options) { | ||
export { | ||
ORPC_PROTOCOL_HEADER, | ||
ORPC_PROTOCOL_VALUE, | ||
convertToArray, | ||
@@ -133,0 +139,0 @@ executeWithHooks, |
@@ -1,2 +0,2 @@ | ||
import { type ZodIssue } from 'zod'; | ||
import type { StandardSchemaV1 } from '@standard-schema/spec'; | ||
export declare const ORPC_ERROR_CODE_STATUSES: { | ||
@@ -29,3 +29,3 @@ readonly BAD_REQUEST: 400; | ||
data: TData; | ||
issues?: ZodIssue[]; | ||
issues?: readonly StandardSchemaV1.Issue[]; | ||
} | ||
@@ -40,2 +40,3 @@ export type ANY_ORPC_ERROR_JSON = ORPCErrorJSON<any, any>; | ||
cause?: unknown; | ||
issues?: readonly StandardSchemaV1.Issue[]; | ||
} & (undefined extends TData ? { | ||
@@ -51,2 +52,3 @@ data?: TData; | ||
cause?: unknown; | ||
issues?: readonly StandardSchemaV1.Issue[]; | ||
} & (undefined extends TData ? { | ||
@@ -60,3 +62,3 @@ data?: TData; | ||
get data(): TData; | ||
get issues(): ZodIssue[] | undefined; | ||
get issues(): readonly StandardSchemaV1.Issue[] | undefined; | ||
toJSON(): ORPCErrorJSON<TCode, TData>; | ||
@@ -63,0 +65,0 @@ static fromJSON(json: unknown): ORPCError<ORPCErrorCode, any> | undefined; |
@@ -0,1 +1,2 @@ | ||
export * from './constants'; | ||
export * from './function'; | ||
@@ -2,0 +3,0 @@ export * from './hook'; |
{ | ||
"name": "@orpc/shared", | ||
"type": "module", | ||
"version": "0.0.0-next.9306271", | ||
"version": "0.0.0-next.10945d3", | ||
"license": "MIT", | ||
@@ -37,6 +37,6 @@ "homepage": "https://orpc.unnoq.com", | ||
"dependencies": { | ||
"@standard-schema/spec": "1.0.0-beta.4", | ||
"is-what": "^5.0.2", | ||
"radash": "^12.1.0", | ||
"type-fest": "^4.26.1", | ||
"zod": "^3.24.1" | ||
"type-fest": "^4.26.1" | ||
}, | ||
@@ -43,0 +43,0 @@ "scripts": { |
14536
13
369
243
243
+ Added@standard-schema/spec@1.0.0-beta.4(transitive)
- Removedzod@^3.24.1
- Removedzod@3.24.2(transitive)