@orpc/contract
Advanced tools
Comparing version 0.36.1 to 0.37.0
@@ -164,3 +164,3 @@ // src/error-map.ts | ||
// src/error-orpc.ts | ||
import { isPlainObject } from "@orpc/shared"; | ||
import { isObject } from "@orpc/shared"; | ||
var COMMON_ORPC_ERROR_DEFS = { | ||
@@ -279,3 +279,3 @@ BAD_REQUEST: { | ||
static isValidJSON(json) { | ||
return isPlainObject(json) && "defined" in json && typeof json.defined === "boolean" && "code" in json && typeof json.code === "string" && "status" in json && typeof json.status === "number" && "message" in json && typeof json.message === "string"; | ||
return isObject(json) && "defined" in json && typeof json.defined === "boolean" && "code" in json && typeof json.code === "string" && "status" in json && typeof json.status === "number" && "message" in json && typeof json.message === "string"; | ||
} | ||
@@ -282,0 +282,0 @@ }; |
@@ -1,2 +0,1 @@ | ||
import type { AbortSignal } from './types'; | ||
export type ClientOptions<TClientContext> = { | ||
@@ -3,0 +2,0 @@ signal?: AbortSignal; |
@@ -18,3 +18,2 @@ /** unnoq */ | ||
export * from './schema'; | ||
export * from './types'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@orpc/contract", | ||
"type": "module", | ||
"version": "0.36.1", | ||
"version": "0.37.0", | ||
"license": "MIT", | ||
@@ -33,3 +33,3 @@ "homepage": "https://orpc.unnoq.com", | ||
"@standard-schema/spec": "1.0.0", | ||
"@orpc/shared": "0.36.1" | ||
"@orpc/shared": "0.37.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "devDependencies": { |
34945
20
806
+ Added@orpc/shared@0.37.0(transitive)
- Removed@orpc/shared@0.36.1(transitive)
- Removedis-what@5.2.0(transitive)
Updated@orpc/shared@0.37.0