@orpc/contract 0.36.1 → 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 CHANGED
@@ -161,7 +161,7 @@ var oc = new ContractBuilder({
161
161
  });
162
162
 
163
163
  // src/error-orpc.ts
164
- import { isPlainObject } from "@orpc/shared";
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 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";
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
 
@@ -1,4 +1,3 @@
1
- import type { AbortSignal } from './types';
2
1
  export type ClientOptions<TClientContext> = {
3
2
  signal?: AbortSignal;
4
3
  } & (undefined extends TClientContext ? {
@@ -15,5 +15,4 @@ export * from './route';
15
15
  export * from './router';
16
16
  export * from './router-client';
17
17
  export * from './schema';
18
- export * from './types';
19
18
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/contract",
3
3
  "type": "module",
4
- "version": "0.36.1",
4
+ "version": "0.37.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.unnoq.com",
7
7
  "repository": {
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@standard-schema/spec": "1.0.0",
33
- "@orpc/shared": "0.36.1"
33
+ "@orpc/shared": "0.37.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "arktype": "2.0.0-rc.26",
@@ -1,3 +0,0 @@
1
- import type { FindGlobalInstanceType } from '@orpc/shared';
2
- export type AbortSignal = FindGlobalInstanceType<'AbortSignal'>;
3
- //# sourceMappingURL=types.d.ts.map