@orpc/shared 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 +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -545,7 +545,7 @@ function isPlainObject(value) {
545
545
  function get(object, path) {
546
546
  let current = object;
547
547
  for (const key of path) {
548
- if (!isTypescriptObject(current)) {
548
+ if (!isTypescriptObject(current) || !Object.hasOwn(current, key)) {
549
549
  return void 0;
550
550
  }
551
551
  current = current[key];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/shared",
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": {