@digione/node-custom-api 0.2.0-beta3 → 0.2.0-beta4
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/utils/stream.js +4 -2
package/package.json
CHANGED
package/utils/stream.js
CHANGED
|
@@ -486,8 +486,10 @@ class StreamUtil {
|
|
|
486
486
|
}
|
|
487
487
|
return Object.assign({ field_slug: i['lang_code'], field_name: `${convert_option ? (0, i18n_1.__)({ phrase: item['field_name'], locale: lang_code }) : item['field_name']} (${i['lang_code']})`, field_type: item['field_type'], field_name_raw: item['field_name'] ? item['field_name'] : "", is_required: item['is_required'] }, include);
|
|
488
488
|
});
|
|
489
|
-
|
|
490
|
-
|
|
489
|
+
if (item['field_type'] != "stream") {
|
|
490
|
+
fields.push(Object.assign(Object.assign({}, item), { field_data }));
|
|
491
|
+
continue;
|
|
492
|
+
}
|
|
491
493
|
}
|
|
492
494
|
if (convert_option) {
|
|
493
495
|
let obj_value = {};
|