@sprucelabs/heartwood-view-controllers 118.0.8 → 118.0.9

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.
@@ -41,13 +41,18 @@ function renderItem(thisItem, options) {
41
41
  }
42
42
  return item;
43
43
  }
44
- else if (isObjectLike(thisItem)) {
44
+ else if (isPlainObject(thisItem)) {
45
45
  return renderItems(thisItem, options);
46
46
  }
47
47
  else {
48
48
  return thisItem;
49
49
  }
50
50
  }
51
+ function isPlainObject(value) {
52
+ return (typeof value === 'object' &&
53
+ value !== null &&
54
+ value.constructor === Object);
55
+ }
51
56
  const renderUtil = {
52
57
  render(vc, options) {
53
58
  if (!vc) {
@@ -63,7 +68,4 @@ const renderUtil = {
63
68
  },
64
69
  };
65
70
  export default renderUtil;
66
- function isObjectLike(value) {
67
- return typeof value === 'object' && value !== null;
68
- }
69
71
  const RENDER_ITEMS_IGNORE_KEYS = ['controller', 'schema'];
@@ -46,13 +46,18 @@ function renderItem(thisItem, options) {
46
46
  }
47
47
  return item;
48
48
  }
49
- else if (isObjectLike(thisItem)) {
49
+ else if (isPlainObject(thisItem)) {
50
50
  return renderItems(thisItem, options);
51
51
  }
52
52
  else {
53
53
  return thisItem;
54
54
  }
55
55
  }
56
+ function isPlainObject(value) {
57
+ return (typeof value === 'object' &&
58
+ value !== null &&
59
+ value.constructor === Object);
60
+ }
56
61
  const renderUtil = {
57
62
  render(vc, options) {
58
63
  if (!vc) {
@@ -68,7 +73,4 @@ const renderUtil = {
68
73
  },
69
74
  };
70
75
  exports.default = renderUtil;
71
- function isObjectLike(value) {
72
- return typeof value === 'object' && value !== null;
73
- }
74
76
  const RENDER_ITEMS_IGNORE_KEYS = ['controller', 'schema'];
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "sideEffects": false,
14
14
  "license": "MIT",
15
15
  "description": "All the power of Heartwood in one, convenient package.",
16
- "version": "118.0.8",
16
+ "version": "118.0.9",
17
17
  "skill": {
18
18
  "namespace": "HeartwoodViewControllers",
19
19
  "commandOverrides": {