halfcab 16.0.1 → 16.0.2
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/halfcab.mjs +4 -0
- package/package.json +1 -1
package/halfcab.mjs
CHANGED
|
@@ -81,6 +81,10 @@ function createState (target) {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
if (value !== null && typeof value === 'object') {
|
|
84
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop)
|
|
85
|
+
if (descriptor && descriptor.configurable === false && descriptor.writable === false) {
|
|
86
|
+
return value
|
|
87
|
+
}
|
|
84
88
|
return createState(value)
|
|
85
89
|
}
|
|
86
90
|
return value
|
package/package.json
CHANGED