@trpc/client 10.0.0-proxy-beta.10 → 10.0.0-proxy-beta.12

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
@@ -229,7 +229,7 @@ const clientCallTypeMap = {
229
229
  * @deprecated use `createTRPCProxyClient` instead
230
230
  * @internal
231
231
  */ function createTRPCClientProxy(client) {
232
- const proxy = shared.createProxy(({ path , args })=>{
232
+ const proxy = shared.createRecursiveProxy(({ path , args })=>{
233
233
  const pathCopy = [
234
234
  ...path
235
235
  ];
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import { c as createChain } from './splitLink-ad44a55d.mjs';
5
5
  export { s as splitLink } from './splitLink-ad44a55d.mjs';
6
6
  import { httpBatchLink } from './links/httpBatchLink.mjs';
7
7
  export { httpBatchLink } from './links/httpBatchLink.mjs';
8
- import { createProxy } from '@trpc/server/shared';
8
+ import { createRecursiveProxy } from '@trpc/server/shared';
9
9
  export { g as getFetch } from './httpUtils-d1885508.mjs';
10
10
  export { httpLink } from './links/httpLink.mjs';
11
11
  export { loggerLink } from './links/loggerLink.mjs';
@@ -228,7 +228,7 @@ const clientCallTypeMap = {
228
228
  * @deprecated use `createTRPCProxyClient` instead
229
229
  * @internal
230
230
  */ function createTRPCClientProxy(client) {
231
- const proxy = createProxy(({ path , args })=>{
231
+ const proxy = createRecursiveProxy(({ path , args })=>{
232
232
  const pathCopy = [
233
233
  ...path
234
234
  ];
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var TRPCClientError = require('../../../dist/TRPCClientError-bfee2bf5.cjs.dev.js');
6
- var httpRequest = require('../../../dist/httpRequest-6b1f0c6f.cjs.dev.js');
5
+ var TRPCClientError = require('../../../dist/TRPCClientError-679c4492.cjs.dev.js');
6
+ var httpRequest = require('../../../dist/httpRequest-90b85a7e.cjs.dev.js');
7
7
  var _createForOfIteratorHelper = require('@babel/runtime/helpers/createForOfIteratorHelper');
8
8
  require('@babel/runtime/helpers/objectSpread2');
9
9
  require('@babel/runtime/helpers/classCallCheck');
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var TRPCClientError = require('../../../dist/TRPCClientError-e9bf96e9.cjs.prod.js');
6
- var httpRequest = require('../../../dist/httpRequest-66400297.cjs.prod.js');
5
+ var TRPCClientError = require('../../../dist/TRPCClientError-11a0a976.cjs.prod.js');
6
+ var httpRequest = require('../../../dist/httpRequest-01d5047c.cjs.prod.js');
7
7
  var _createForOfIteratorHelper = require('@babel/runtime/helpers/createForOfIteratorHelper');
8
8
  require('@babel/runtime/helpers/objectSpread2');
9
9
  require('@babel/runtime/helpers/classCallCheck');
@@ -1,5 +1,5 @@
1
- import { T as TRPCClientError } from '../../../dist/TRPCClientError-09b8a26b.esm.js';
2
- import { T as TRPCAbortError, t as transformRPCResponse, h as httpRequest } from '../../../dist/httpRequest-62c5cce4.esm.js';
1
+ import { T as TRPCClientError } from '../../../dist/TRPCClientError-9fed9b4d.esm.js';
2
+ import { T as TRPCAbortError, t as transformRPCResponse, h as httpRequest } from '../../../dist/httpRequest-b3cc7014.esm.js';
3
3
  import _createForOfIteratorHelper from '@babel/runtime/helpers/esm/createForOfIteratorHelper';
4
4
  import '@babel/runtime/helpers/objectSpread2';
5
5
  import '@babel/runtime/helpers/classCallCheck';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var TRPCClientError = require('../../../dist/TRPCClientError-bfee2bf5.cjs.dev.js');
6
- var httpRequest = require('../../../dist/httpRequest-6b1f0c6f.cjs.dev.js');
5
+ var TRPCClientError = require('../../../dist/TRPCClientError-679c4492.cjs.dev.js');
6
+ var httpRequest = require('../../../dist/httpRequest-90b85a7e.cjs.dev.js');
7
7
  require('@babel/runtime/helpers/objectSpread2');
8
8
  require('@babel/runtime/helpers/classCallCheck');
9
9
  require('@babel/runtime/helpers/createClass');
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var TRPCClientError = require('../../../dist/TRPCClientError-e9bf96e9.cjs.prod.js');
6
- var httpRequest = require('../../../dist/httpRequest-66400297.cjs.prod.js');
5
+ var TRPCClientError = require('../../../dist/TRPCClientError-11a0a976.cjs.prod.js');
6
+ var httpRequest = require('../../../dist/httpRequest-01d5047c.cjs.prod.js');
7
7
  require('@babel/runtime/helpers/objectSpread2');
8
8
  require('@babel/runtime/helpers/classCallCheck');
9
9
  require('@babel/runtime/helpers/createClass');
@@ -1,5 +1,5 @@
1
- import { T as TRPCClientError } from '../../../dist/TRPCClientError-09b8a26b.esm.js';
2
- import { h as httpRequest, T as TRPCAbortError, t as transformRPCResponse } from '../../../dist/httpRequest-62c5cce4.esm.js';
1
+ import { T as TRPCClientError } from '../../../dist/TRPCClientError-9fed9b4d.esm.js';
2
+ import { h as httpRequest, T as TRPCAbortError, t as transformRPCResponse } from '../../../dist/httpRequest-b3cc7014.esm.js';
3
3
  import '@babel/runtime/helpers/objectSpread2';
4
4
  import '@babel/runtime/helpers/classCallCheck';
5
5
  import '@babel/runtime/helpers/createClass';
@@ -9,7 +9,7 @@ var _assertThisInitialized = require('@babel/runtime/helpers/assertThisInitializ
9
9
  var _inherits = require('@babel/runtime/helpers/inherits');
10
10
  var _createSuper = require('@babel/runtime/helpers/createSuper');
11
11
  var _wrapNativeSuper = require('@babel/runtime/helpers/wrapNativeSuper');
12
- var TRPCClientError = require('../../../dist/TRPCClientError-bfee2bf5.cjs.dev.js');
12
+ var TRPCClientError = require('../../../dist/TRPCClientError-679c4492.cjs.dev.js');
13
13
 
14
14
  /* istanbul ignore next */
15
15
  var retryDelay = function retryDelay(attemptIndex) {
@@ -9,7 +9,7 @@ var _assertThisInitialized = require('@babel/runtime/helpers/assertThisInitializ
9
9
  var _inherits = require('@babel/runtime/helpers/inherits');
10
10
  var _createSuper = require('@babel/runtime/helpers/createSuper');
11
11
  var _wrapNativeSuper = require('@babel/runtime/helpers/wrapNativeSuper');
12
- var TRPCClientError = require('../../../dist/TRPCClientError-e9bf96e9.cjs.prod.js');
12
+ var TRPCClientError = require('../../../dist/TRPCClientError-11a0a976.cjs.prod.js');
13
13
 
14
14
  /* istanbul ignore next */
15
15
  var retryDelay = function retryDelay(attemptIndex) {
@@ -5,7 +5,7 @@ import _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitial
5
5
  import _inherits from '@babel/runtime/helpers/esm/inherits';
6
6
  import _createSuper from '@babel/runtime/helpers/esm/createSuper';
7
7
  import _wrapNativeSuper from '@babel/runtime/helpers/esm/wrapNativeSuper';
8
- import { T as TRPCClientError } from '../../../dist/TRPCClientError-09b8a26b.esm.js';
8
+ import { T as TRPCClientError } from '../../../dist/TRPCClientError-9fed9b4d.esm.js';
9
9
 
10
10
  /* istanbul ignore next */
11
11
  var retryDelay = function retryDelay(attemptIndex) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/client",
3
- "version": "10.0.0-proxy-beta.10",
3
+ "version": "10.0.0-proxy-beta.12",
4
4
  "description": "tRPC Client lib",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -63,15 +63,15 @@
63
63
  "ts-watch": "tsc --project tsconfig.watch.json"
64
64
  },
65
65
  "peerDependencies": {
66
- "@trpc/server": "10.0.0-proxy-beta.10"
66
+ "@trpc/server": "10.0.0-proxy-beta.12"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@testing-library/dom": "^8.18.1",
70
- "@trpc/server": "10.0.0-proxy-beta.10",
70
+ "@trpc/server": "10.0.0-proxy-beta.12",
71
71
  "@types/node": "^18.7.20"
72
72
  },
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "f380ecc219d93521a645de690fde69fa2b8fc664"
76
+ "gitHead": "5b25e9483cdd7d3c58e0843232acef790eeaf425"
77
77
  }
@@ -16,7 +16,7 @@ import type {
16
16
  Unsubscribable,
17
17
  inferObservableValue,
18
18
  } from '@trpc/server/observable';
19
- import { createProxy } from '@trpc/server/shared';
19
+ import { createRecursiveProxy } from '@trpc/server/shared';
20
20
  import { TRPCClientError } from './TRPCClientError';
21
21
  import { CreateTRPCClientOptions } from './createTRPCClient';
22
22
  import {
@@ -98,7 +98,7 @@ const clientCallTypeMap: Record<
98
98
  export function createTRPCClientProxy<TRouter extends AnyRouter>(
99
99
  client: Client<TRouter>,
100
100
  ) {
101
- const proxy = createProxy(({ path, args }) => {
101
+ const proxy = createRecursiveProxy(({ path, args }) => {
102
102
  const pathCopy = [...path];
103
103
  const clientCallType = pathCopy.pop()! as keyof DecorateProcedure<any, any>;
104
104