@orpc/client 0.0.0-next.03cefb3 → 0.0.0-next.057d007
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/adapters/fetch/index.mjs +2 -2
- package/dist/adapters/message-port/index.mjs +2 -2
- package/dist/adapters/standard/index.mjs +2 -2
- package/dist/adapters/websocket/index.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/plugins/index.d.mts +0 -1
- package/dist/plugins/index.d.ts +0 -1
- package/dist/plugins/index.mjs +3 -4
- package/dist/shared/{client.CFtO5eOy.mjs → client.DjEA-OoN.mjs} +1 -1
- package/dist/shared/{client.D3JZa_8o.mjs → client.DpvKkiQG.mjs} +1 -1
- package/package.json +6 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { toArray, intercept } from '@orpc/shared';
|
|
2
2
|
import { toFetchRequest, toStandardLazyResponse } from '@orpc/standard-server-fetch';
|
|
3
|
-
import { C as CompositeStandardLinkPlugin, c as StandardRPCLink } from '../../shared/client.
|
|
3
|
+
import { C as CompositeStandardLinkPlugin, c as StandardRPCLink } from '../../shared/client.DpvKkiQG.mjs';
|
|
4
4
|
import '@orpc/standard-server';
|
|
5
|
-
import '../../shared/client.
|
|
5
|
+
import '../../shared/client.DjEA-OoN.mjs';
|
|
6
6
|
|
|
7
7
|
class CompositeLinkFetchPlugin extends CompositeStandardLinkPlugin {
|
|
8
8
|
initRuntimeAdapter(options) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ClientPeer } from '@orpc/standard-server-peer';
|
|
2
2
|
import '@orpc/shared';
|
|
3
|
-
import { c as StandardRPCLink } from '../../shared/client.
|
|
3
|
+
import { c as StandardRPCLink } from '../../shared/client.DpvKkiQG.mjs';
|
|
4
4
|
import '@orpc/standard-server';
|
|
5
|
-
import '../../shared/client.
|
|
5
|
+
import '../../shared/client.DjEA-OoN.mjs';
|
|
6
6
|
import '@orpc/standard-server-fetch';
|
|
7
7
|
|
|
8
8
|
function postMessagePortMessage(port, data) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as CompositeStandardLinkPlugin, a as STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES, S as StandardLink, b as StandardRPCJsonSerializer, c as StandardRPCLink, d as StandardRPCLinkCodec, e as StandardRPCSerializer, g as getMalformedResponseErrorCode, t as toHttpPath, f as toStandardHeaders } from '../../shared/client.
|
|
1
|
+
export { C as CompositeStandardLinkPlugin, a as STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES, S as StandardLink, b as StandardRPCJsonSerializer, c as StandardRPCLink, d as StandardRPCLinkCodec, e as StandardRPCSerializer, g as getMalformedResponseErrorCode, t as toHttpPath, f as toStandardHeaders } from '../../shared/client.DpvKkiQG.mjs';
|
|
2
2
|
import '@orpc/shared';
|
|
3
3
|
import '@orpc/standard-server';
|
|
4
|
-
import '../../shared/client.
|
|
4
|
+
import '../../shared/client.DjEA-OoN.mjs';
|
|
5
5
|
import '@orpc/standard-server-fetch';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { readAsBuffer } from '@orpc/shared';
|
|
2
2
|
import { ClientPeer } from '@orpc/standard-server-peer';
|
|
3
|
-
import { c as StandardRPCLink } from '../../shared/client.
|
|
3
|
+
import { c as StandardRPCLink } from '../../shared/client.DpvKkiQG.mjs';
|
|
4
4
|
import '@orpc/standard-server';
|
|
5
|
-
import '../../shared/client.
|
|
5
|
+
import '../../shared/client.DjEA-OoN.mjs';
|
|
6
6
|
import '@orpc/standard-server-fetch';
|
|
7
7
|
|
|
8
8
|
const WEBSOCKET_CONNECTING = 0;
|
package/dist/index.d.mts
CHANGED
|
@@ -207,7 +207,7 @@ type SafeClient<T extends NestedClient<any>> = T extends Client<infer UContext,
|
|
|
207
207
|
declare function createSafeClient<T extends NestedClient<any>>(client: T): SafeClient<T>;
|
|
208
208
|
|
|
209
209
|
declare const ORPC_CLIENT_PACKAGE_NAME = "@orpc/client";
|
|
210
|
-
declare const ORPC_CLIENT_PACKAGE_VERSION = "0.0.0-next.
|
|
210
|
+
declare const ORPC_CLIENT_PACKAGE_VERSION = "0.0.0-next.057d007";
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
213
|
* DynamicLink provides a way to dynamically resolve and delegate calls to other ClientLinks
|
package/dist/index.d.ts
CHANGED
|
@@ -207,7 +207,7 @@ type SafeClient<T extends NestedClient<any>> = T extends Client<infer UContext,
|
|
|
207
207
|
declare function createSafeClient<T extends NestedClient<any>>(client: T): SafeClient<T>;
|
|
208
208
|
|
|
209
209
|
declare const ORPC_CLIENT_PACKAGE_NAME = "@orpc/client";
|
|
210
|
-
declare const ORPC_CLIENT_PACKAGE_VERSION = "0.0.0-next.
|
|
210
|
+
declare const ORPC_CLIENT_PACKAGE_VERSION = "0.0.0-next.057d007";
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
213
|
* DynamicLink provides a way to dynamically resolve and delegate calls to other ClientLinks
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { preventNativeAwait, isTypescriptObject } from '@orpc/shared';
|
|
2
2
|
export { AsyncIteratorClass, EventPublisher, asyncIteratorToStream as eventIteratorToStream, onError, onFinish, onStart, onSuccess, streamToAsyncIteratorClass as streamToEventIterator } from '@orpc/shared';
|
|
3
|
-
import { i as isDefinedError } from './shared/client.
|
|
4
|
-
export { C as COMMON_ORPC_ERROR_DEFS, c as ORPCError, O as ORPC_CLIENT_PACKAGE_NAME, a as ORPC_CLIENT_PACKAGE_VERSION, g as createORPCErrorFromJson, b as fallbackORPCErrorMessage, f as fallbackORPCErrorStatus, e as isORPCErrorJson, d as isORPCErrorStatus, m as mapEventIterator, t as toORPCError } from './shared/client.
|
|
3
|
+
import { i as isDefinedError } from './shared/client.DjEA-OoN.mjs';
|
|
4
|
+
export { C as COMMON_ORPC_ERROR_DEFS, c as ORPCError, O as ORPC_CLIENT_PACKAGE_NAME, a as ORPC_CLIENT_PACKAGE_VERSION, g as createORPCErrorFromJson, b as fallbackORPCErrorMessage, f as fallbackORPCErrorStatus, e as isORPCErrorJson, d as isORPCErrorStatus, m as mapEventIterator, t as toORPCError } from './shared/client.DjEA-OoN.mjs';
|
|
5
5
|
export { ErrorEvent } from '@orpc/standard-server';
|
|
6
6
|
|
|
7
7
|
async function safe(promise) {
|
package/dist/plugins/index.d.mts
CHANGED
|
@@ -157,7 +157,6 @@ declare class ClientRetryPlugin<T extends ClientRetryPluginContext> implements S
|
|
|
157
157
|
private readonly defaultRetryDelay;
|
|
158
158
|
private readonly defaultShouldRetry;
|
|
159
159
|
private readonly defaultOnRetry;
|
|
160
|
-
order: number;
|
|
161
160
|
constructor(options?: ClientRetryPluginOptions);
|
|
162
161
|
init(options: StandardLinkOptions<T>): void;
|
|
163
162
|
}
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -157,7 +157,6 @@ declare class ClientRetryPlugin<T extends ClientRetryPluginContext> implements S
|
|
|
157
157
|
private readonly defaultRetryDelay;
|
|
158
158
|
private readonly defaultShouldRetry;
|
|
159
159
|
private readonly defaultOnRetry;
|
|
160
|
-
order: number;
|
|
161
160
|
constructor(options?: ClientRetryPluginOptions);
|
|
162
161
|
init(options: StandardLinkOptions<T>): void;
|
|
163
162
|
}
|
package/dist/plugins/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isAsyncIteratorObject, defer, value, splitInHalf, toArray, stringifyJSON,
|
|
1
|
+
import { isAsyncIteratorObject, defer, value, splitInHalf, toArray, stringifyJSON, AsyncIteratorClass } from '@orpc/shared';
|
|
2
2
|
import { toBatchRequest, parseBatchResponse, toBatchAbortSignal } from '@orpc/standard-server/batch';
|
|
3
3
|
import { replicateStandardLazyResponse, getEventMeta } from '@orpc/standard-server';
|
|
4
4
|
|
|
@@ -263,7 +263,6 @@ class ClientRetryPlugin {
|
|
|
263
263
|
defaultRetryDelay;
|
|
264
264
|
defaultShouldRetry;
|
|
265
265
|
defaultOnRetry;
|
|
266
|
-
order = 18e5;
|
|
267
266
|
constructor(options = {}) {
|
|
268
267
|
this.defaultRetry = options.default?.retry ?? 0;
|
|
269
268
|
this.defaultRetryDelay = options.default?.retryDelay ?? ((o) => o.lastEventRetry ?? 2e3);
|
|
@@ -333,7 +332,7 @@ class ClientRetryPlugin {
|
|
|
333
332
|
}
|
|
334
333
|
let current = output;
|
|
335
334
|
let isIteratorAborted = false;
|
|
336
|
-
return
|
|
335
|
+
return new AsyncIteratorClass(
|
|
337
336
|
async () => {
|
|
338
337
|
while (true) {
|
|
339
338
|
try {
|
|
@@ -366,7 +365,7 @@ class ClientRetryPlugin {
|
|
|
366
365
|
await current.return?.();
|
|
367
366
|
}
|
|
368
367
|
}
|
|
369
|
-
)
|
|
368
|
+
);
|
|
370
369
|
});
|
|
371
370
|
}
|
|
372
371
|
}
|
|
@@ -2,7 +2,7 @@ import { resolveMaybeOptionalOptions, getConstructor, isObject, AsyncIteratorCla
|
|
|
2
2
|
import { getEventMeta, withEventMeta } from '@orpc/standard-server';
|
|
3
3
|
|
|
4
4
|
const ORPC_CLIENT_PACKAGE_NAME = "@orpc/client";
|
|
5
|
-
const ORPC_CLIENT_PACKAGE_VERSION = "0.0.0-next.
|
|
5
|
+
const ORPC_CLIENT_PACKAGE_VERSION = "0.0.0-next.057d007";
|
|
6
6
|
|
|
7
7
|
const COMMON_ORPC_ERROR_DEFS = {
|
|
8
8
|
BAD_REQUEST: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toArray, runWithSpan, ORPC_NAME, isAsyncIteratorObject, asyncIteratorWithSpan, intercept, getGlobalOtelConfig, isObject, value, stringifyJSON } from '@orpc/shared';
|
|
2
2
|
import { mergeStandardHeaders, ErrorEvent } from '@orpc/standard-server';
|
|
3
|
-
import { C as COMMON_ORPC_ERROR_DEFS, d as isORPCErrorStatus, e as isORPCErrorJson, g as createORPCErrorFromJson, c as ORPCError, m as mapEventIterator, t as toORPCError } from './client.
|
|
3
|
+
import { C as COMMON_ORPC_ERROR_DEFS, d as isORPCErrorStatus, e as isORPCErrorJson, g as createORPCErrorFromJson, c as ORPCError, m as mapEventIterator, t as toORPCError } from './client.DjEA-OoN.mjs';
|
|
4
4
|
import { toStandardHeaders as toStandardHeaders$1 } from '@orpc/standard-server-fetch';
|
|
5
5
|
|
|
6
6
|
class CompositeStandardLinkPlugin {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/client",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-next.
|
|
4
|
+
"version": "0.0.0-next.057d007",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"dist"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@orpc/
|
|
53
|
-
"@orpc/standard-server-
|
|
54
|
-
"@orpc/standard-server-
|
|
55
|
-
"@orpc/
|
|
52
|
+
"@orpc/shared": "0.0.0-next.057d007",
|
|
53
|
+
"@orpc/standard-server-fetch": "0.0.0-next.057d007",
|
|
54
|
+
"@orpc/standard-server-peer": "0.0.0-next.057d007",
|
|
55
|
+
"@orpc/standard-server": "0.0.0-next.057d007"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"zod": "^4.1.
|
|
58
|
+
"zod": "^4.1.5"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "unbuild",
|