@orpc/swr 2.0.0-beta.20 → 2.0.0-beta.21

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { isPlainObject, resolveMaybeOptionalOptions, isAsyncIteratorObject, toArray, bindMethods, getOrBind, get, isTypescriptObject } from '@orpc/shared';
1
+ import { isPlainObject, resolveMaybeOptionalOptions, isAsyncIteratorObject, toArray, bindMethods, getOrBind, isTypescriptObject } from '@orpc/shared';
2
2
  import { RECURSIVE_CLIENT_UNWRAP_KEYS } from '@orpc/client';
3
3
 
4
4
  function generateOperationKey(path, options = {}) {
@@ -200,7 +200,7 @@ function createRouterUtils(client, options = {}) {
200
200
  const recursive = new Proxy(utils, {
201
201
  get(target, prop) {
202
202
  const value = getOrBind(target, prop);
203
- const nextClient = get(client, [prop]);
203
+ const nextClient = client[prop];
204
204
  if (typeof prop !== "string" || RECURSIVE_CLIENT_UNWRAP_KEYS.has(prop) || !isTypescriptObject(nextClient)) {
205
205
  return value;
206
206
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/swr",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.20",
4
+ "version": "2.0.0-beta.21",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.dev",
7
7
  "repository": {
@@ -30,8 +30,8 @@
30
30
  "swr": ">=2.4.2"
31
31
  },
32
32
  "dependencies": {
33
- "@orpc/client": "2.0.0-beta.20",
34
- "@orpc/shared": "2.0.0-beta.20"
33
+ "@orpc/client": "2.0.0-beta.21",
34
+ "@orpc/shared": "2.0.0-beta.21"
35
35
  },
36
36
  "devDependencies": {
37
37
  "swr": "^2.4.2",