@travetto/schema 8.0.0-alpha.20 → 8.0.0-alpha.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/package.json +1 -1
- package/src/bind-util.ts +1 -1
package/package.json
CHANGED
package/src/bind-util.ts
CHANGED
|
@@ -164,7 +164,7 @@ export class BindUtil {
|
|
|
164
164
|
|
|
165
165
|
for (const key of TypedObject.keys(instance)) { // Do not retain undefined fields
|
|
166
166
|
const descriptor = Object.getOwnPropertyDescriptor(instance, key);
|
|
167
|
-
if (descriptor?.
|
|
167
|
+
if (descriptor?.writable === false) {
|
|
168
168
|
continue;
|
|
169
169
|
}
|
|
170
170
|
if (instance[key] === undefined) {
|