@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.
- package/dist/index.mjs +1 -1
- 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];
|