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.
Files changed (2) hide show
  1. package/halfcab.mjs +4 -0
  2. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "halfcab",
3
- "version": "16.0.1",
3
+ "version": "16.0.2",
4
4
  "type": "module",
5
5
  "description": "A simple universal JavaScript framework focused on making use of es2015 template strings to build components.",
6
6
  "main": "halfcab.mjs",