@orpc/openapi-client 0.0.0-next.00fb0f4 → 0.0.0-next.05a8f88
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LinkFetchClient } from '@orpc/client/fetch';
|
|
2
2
|
import { StandardLink } from '@orpc/client/standard';
|
|
3
|
-
import { a as StandardOpenAPIJsonSerializer, b as StandardOpenapiLinkCodec, c as StandardOpenAPISerializer, S as StandardBracketNotationSerializer } from '../../shared/openapi-client.
|
|
3
|
+
import { a as StandardOpenAPIJsonSerializer, b as StandardOpenapiLinkCodec, c as StandardOpenAPISerializer, S as StandardBracketNotationSerializer } from '../../shared/openapi-client.C6BK9Q71.mjs';
|
|
4
4
|
import '@orpc/shared';
|
|
5
5
|
import '@orpc/client';
|
|
6
6
|
import '@orpc/contract';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as StandardBracketNotationSerializer, a as StandardOpenAPIJsonSerializer, c as StandardOpenAPISerializer, b as StandardOpenapiLinkCodec, g as getDynamicParams, s as standardizeHTTPPath } from '../../shared/openapi-client.
|
|
1
|
+
export { S as StandardBracketNotationSerializer, a as StandardOpenAPIJsonSerializer, c as StandardOpenAPISerializer, b as StandardOpenapiLinkCodec, g as getDynamicParams, s as standardizeHTTPPath } from '../../shared/openapi-client.C6BK9Q71.mjs';
|
|
2
2
|
import '@orpc/shared';
|
|
3
3
|
import '@orpc/client';
|
|
4
4
|
import '@orpc/client/standard';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isObject, value, get, isAsyncIteratorObject } from '@orpc/shared';
|
|
2
2
|
import { isORPCErrorStatus, mapEventIterator, toORPCError, ORPCError as ORPCError$1 } from '@orpc/client';
|
|
3
|
-
import { toHttpPath } from '@orpc/client/standard';
|
|
3
|
+
import { toHttpPath, getMalformedResponseErrorCode } from '@orpc/client/standard';
|
|
4
4
|
import { isContractProcedure, fallbackContractConfig, ORPCError } from '@orpc/contract';
|
|
5
5
|
import { mergeStandardHeaders, ErrorEvent } from '@orpc/standard-server';
|
|
6
6
|
|
|
@@ -313,7 +313,7 @@ class StandardOpenapiLinkCodec {
|
|
|
313
313
|
if (ORPCError.isValidJSON(deserialized)) {
|
|
314
314
|
throw ORPCError.fromJSON(deserialized);
|
|
315
315
|
}
|
|
316
|
-
throw new ORPCError(
|
|
316
|
+
throw new ORPCError(getMalformedResponseErrorCode(response.status), {
|
|
317
317
|
status: response.status,
|
|
318
318
|
data: deserialized
|
|
319
319
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/openapi-client",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-next.
|
|
4
|
+
"version": "0.0.0-next.05a8f88",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@orpc/client": "0.0.0-next.
|
|
38
|
-
"@orpc/contract": "0.0.0-next.
|
|
39
|
-
"@orpc/shared": "0.0.0-next.
|
|
40
|
-
"@orpc/standard-server": "0.0.0-next.
|
|
37
|
+
"@orpc/client": "0.0.0-next.05a8f88",
|
|
38
|
+
"@orpc/contract": "0.0.0-next.05a8f88",
|
|
39
|
+
"@orpc/shared": "0.0.0-next.05a8f88",
|
|
40
|
+
"@orpc/standard-server": "0.0.0-next.05a8f88"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@orpc/server": "0.0.0-next.
|
|
43
|
+
"@orpc/server": "0.0.0-next.05a8f88"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "unbuild",
|