@sealcode/sealgen 0.15.15 → 0.15.16

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.
@@ -128,7 +128,7 @@ class StatefulPage extends Mountable {
128
128
  state_overrides
129
129
  );
130
130
  let modified_state = deepmerge(original_state, state_overrides, {
131
- isMergeableObject: isPlainObject,
131
+ isMergeableObject: (v) => isPlainObject(v) || Array.isArray(v),
132
132
  arrayMerge: (target, source, options) => {
133
133
  const destination = target.slice();
134
134
  source.forEach((item, index) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealcode/sealgen",
3
- "version": "0.15.15",
3
+ "version": "0.15.16",
4
4
  "description": "Module to automate adding routes and collections to a sealious application",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -236,7 +236,7 @@ export abstract class StatefulPage<
236
236
  state_overrides
237
237
  );
238
238
  let modified_state = deepmerge(original_state, state_overrides, {
239
- isMergeableObject: isPlainObject,
239
+ isMergeableObject: (v) => isPlainObject(v) || Array.isArray(v),
240
240
  arrayMerge: (
241
241
  target: any[],
242
242
  source: any[],