@orpc/contract 0.36.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/src/client.d.ts +0 -1
- package/dist/src/index.d.ts +0 -1
- package/package.json +4 -4
- package/dist/src/types.d.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -161,7 +161,7 @@ var oc = new ContractBuilder({
|
|
|
161
161
|
});
|
|
162
162
|
|
|
163
163
|
// src/error-orpc.ts
|
|
164
|
-
import {
|
|
164
|
+
import { isObject } from "@orpc/shared";
|
|
165
165
|
var COMMON_ORPC_ERROR_DEFS = {
|
|
166
166
|
BAD_REQUEST: {
|
|
167
167
|
status: 400,
|
|
@@ -275,7 +275,7 @@ var ORPCError = class _ORPCError extends Error {
|
|
|
275
275
|
return new _ORPCError(json.code, json);
|
|
276
276
|
}
|
|
277
277
|
static isValidJSON(json) {
|
|
278
|
-
return
|
|
278
|
+
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";
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
281
|
|
package/dist/src/client.d.ts
CHANGED
package/dist/src/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/contract",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.37.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@standard-schema/spec": "1.0.0
|
|
33
|
-
"@orpc/shared": "0.
|
|
32
|
+
"@standard-schema/spec": "1.0.0",
|
|
33
|
+
"@orpc/shared": "0.37.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"arktype": "2.0.0-rc.26",
|
|
37
37
|
"valibot": "1.0.0-beta.9",
|
|
38
|
-
"zod": "3.24.1"
|
|
38
|
+
"zod": "^3.24.1"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsup --clean --sourcemap --entry.index=src/index.ts --format=esm --onSuccess='tsc -b --noCheck'",
|
package/dist/src/types.d.ts
DELETED