@orpc/contract
Advanced tools
Comparing version 0.0.0-next.bc564a6 to 0.0.0-next.bc9d3dd
@@ -322,2 +322,8 @@ // src/error-map.ts | ||
} | ||
function toORPCError(error) { | ||
return error instanceof ORPCError ? error : new ORPCError("INTERNAL_SERVER_ERROR", { | ||
message: "Internal server error", | ||
cause: error | ||
}); | ||
} | ||
@@ -399,2 +405,3 @@ // src/client-utils.ts | ||
safe, | ||
toORPCError, | ||
type, | ||
@@ -401,0 +408,0 @@ unshiftTagRoute, |
@@ -14,2 +14,3 @@ import type { ErrorMap, ErrorMapItem } from './error-map'; | ||
export declare function validateORPCError(map: ErrorMap, error: ORPCError<any, any>): Promise<ORPCError<string, unknown>>; | ||
export declare function toORPCError(error: unknown): ORPCError<any, any>; | ||
//# sourceMappingURL=error-utils.d.ts.map |
{ | ||
"name": "@orpc/contract", | ||
"type": "module", | ||
"version": "0.0.0-next.bc564a6", | ||
"version": "0.0.0-next.bc9d3dd", | ||
"license": "MIT", | ||
@@ -32,4 +32,4 @@ "homepage": "https://orpc.unnoq.com", | ||
"dependencies": { | ||
"@standard-schema/spec": "1.0.0-rc.0", | ||
"@orpc/shared": "0.0.0-next.bc564a6" | ||
"@standard-schema/spec": "1.0.0", | ||
"@orpc/shared": "0.0.0-next.bc9d3dd" | ||
}, | ||
@@ -39,3 +39,3 @@ "devDependencies": { | ||
"valibot": "1.0.0-beta.9", | ||
"zod": "3.24.1" | ||
"zod": "^3.24.1" | ||
}, | ||
@@ -42,0 +42,0 @@ "scripts": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
35208
810
0
+ Added@orpc/shared@0.0.0-next.bc9d3dd(transitive)
+ Added@standard-schema/spec@1.0.0(transitive)
- Removed@orpc/shared@0.0.0-next.bc564a6(transitive)
- Removed@standard-schema/spec@1.0.0-rc.0(transitive)
Updated@standard-schema/spec@1.0.0