@builttocreate/engine-utils 2.8.0-beta.10 → 2.8.0-beta.12

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.
@@ -221,7 +221,7 @@ var removeOrphanedFieldsFromJoydoc = exports.removeOrphanedFieldsFromJoydoc = fu
221
221
  * Primary view
222
222
  */
223
223
  file.pages.forEach(function (page) {
224
- page.fieldPositions.forEach(function (fieldPosition) {
224
+ page === null || page === void 0 ? void 0 : page.fieldPositions.forEach(function (fieldPosition) {
225
225
  return associatedFieldIdLookup[fieldPosition.field] = true;
226
226
  });
227
227
  });
@@ -249,9 +249,7 @@ var removeOrphanedFieldsFromJoydoc = exports.removeOrphanedFieldsFromJoydoc = fu
249
249
  });
250
250
  nextDoc.fields = validFields;
251
251
  nextDoc.deletedFields = deletedFields;
252
- return {
253
- doc: nextDoc
254
- };
252
+ return nextDoc;
255
253
  };
256
254
 
257
255
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "2.8.0-beta.10",
3
+ "version": "2.8.0-beta.12",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [