pmcf 1.23.0 → 1.23.1
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/base.mjs +1 -1
package/package.json
CHANGED
package/src/base.mjs
CHANGED
|
@@ -158,7 +158,7 @@ export function extractFrom(object, propertyNames) {
|
|
|
158
158
|
const value = object[p];
|
|
159
159
|
|
|
160
160
|
if (value !== undefined) {
|
|
161
|
-
if (value instanceof Base && value.name) {
|
|
161
|
+
if (value instanceof Base && value.name !== undefined) {
|
|
162
162
|
json[p] = { name: value.name };
|
|
163
163
|
} else {
|
|
164
164
|
json[p] = value;
|