@orpc/client 0.0.0-next.d17ef5e → 0.0.0-next.d3b4900

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,5 +1,5 @@
1
1
  import { toFetchRequest, toStandardLazyResponse } from '@orpc/standard-server-fetch';
2
- import { b as StandardRPCJsonSerializer, c as StandardRPCLinkCodec, d as StandardRPCSerializer, S as StandardLink } from '../../shared/client.B1XjLWRe.mjs';
2
+ import { b as StandardRPCJsonSerializer, c as StandardRPCLinkCodec, d as StandardRPCSerializer, S as StandardLink } from '../../shared/client.CAwgYDwB.mjs';
3
3
  import '@orpc/shared';
4
4
  import '../../shared/client.BacCdg3F.mjs';
5
5
  import '@orpc/standard-server';
@@ -1,4 +1,4 @@
1
- export { I as InvalidEventIteratorRetryResponse, a as STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES, S as StandardLink, b as StandardRPCJsonSerializer, c as StandardRPCLinkCodec, d as StandardRPCSerializer } from '../../shared/client.B1XjLWRe.mjs';
1
+ export { I as InvalidEventIteratorRetryResponse, a as STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES, S as StandardLink, b as StandardRPCJsonSerializer, c as StandardRPCLinkCodec, d as StandardRPCSerializer } from '../../shared/client.CAwgYDwB.mjs';
2
2
  import '@orpc/shared';
3
3
  import '../../shared/client.BacCdg3F.mjs';
4
4
  import '@orpc/standard-server';
@@ -1,4 +1,4 @@
1
- import { toArray, intercept, isObject, value, trim, isAsyncIteratorObject, stringifyJSON } from '@orpc/shared';
1
+ import { toArray, intercept, isObject, value, isAsyncIteratorObject, stringifyJSON } from '@orpc/shared';
2
2
  import { O as ORPCError, m as mapEventIterator, t as toORPCError } from './client.BacCdg3F.mjs';
3
3
  import { ErrorEvent } from '@orpc/standard-server';
4
4
 
@@ -198,7 +198,7 @@ class StandardRPCLinkCodec {
198
198
  const expectedMethod = await value(this.expectedMethod, options, path, input);
199
199
  const headers = { ...await value(this.headers, options, path, input) };
200
200
  const baseUrl = await value(this.baseUrl, options, path, input);
201
- const url = new URL(`${trim(baseUrl.toString(), "/")}/${path.map(encodeURIComponent).join("/")}`);
201
+ const url = new URL(`${baseUrl.toString().replace(/\/$/, "")}/${path.map(encodeURIComponent).join("/")}`);
202
202
  if (options.lastEventId !== void 0) {
203
203
  if (Array.isArray(headers["last-event-id"])) {
204
204
  headers["last-event-id"] = [...headers["last-event-id"], options.lastEventId];
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.d17ef5e",
4
+ "version": "0.0.0-next.d3b4900",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.unnoq.com",
7
7
  "repository": {
@@ -39,9 +39,9 @@
39
39
  "dist"
40
40
  ],
41
41
  "dependencies": {
42
- "@orpc/shared": "0.0.0-next.d17ef5e",
43
- "@orpc/standard-server": "0.0.0-next.d17ef5e",
44
- "@orpc/standard-server-fetch": "0.0.0-next.d17ef5e"
42
+ "@orpc/standard-server": "0.0.0-next.d3b4900",
43
+ "@orpc/standard-server-fetch": "0.0.0-next.d3b4900",
44
+ "@orpc/shared": "0.0.0-next.d3b4900"
45
45
  },
46
46
  "devDependencies": {
47
47
  "zod": "^3.24.2"