@orpc/shared
Advanced tools
Comparing version 0.0.0-next.b42ba03 to 0.0.0-next.b4e6d3a
@@ -53,3 +53,3 @@ // src/constants.ts | ||
const proto = Object.getPrototypeOf(value2); | ||
return proto === Object.prototype || proto === null; | ||
return proto === Object.prototype || !proto || !proto.constructor; | ||
} | ||
@@ -56,0 +56,0 @@ |
@@ -9,6 +9,5 @@ export type Segment = string | number; | ||
/** | ||
* Check if the value is an object. | ||
* Even object created by Object.create(null) is considered an object. | ||
* Check if the value is an object even it created by `Object.create(null)` or more tricky way. | ||
*/ | ||
export declare function isObject(value: unknown): value is Record<PropertyKey, unknown>; | ||
//# sourceMappingURL=object.d.ts.map |
{ | ||
"name": "@orpc/shared", | ||
"type": "module", | ||
"version": "0.0.0-next.b42ba03", | ||
"version": "0.0.0-next.b4e6d3a", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "homepage": "https://orpc.unnoq.com", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12362
0
292