divhunt 2.0.18 → 2.0.19

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.
@@ -15,7 +15,7 @@ class DivhuntAddonRender
15
15
  this.Callback = callback;
16
16
 
17
17
  this._updateTimeout = null;
18
- this.Data = {};
18
+ this.Data = { state: window.__STATE__ || {} };
19
19
  this.Attributes = {};
20
20
  this.Item = null;
21
21
  this.Slots = {};
@@ -18,7 +18,7 @@ const RenderCompile =
18
18
 
19
19
  const compile = {
20
20
  element,
21
- data: Object.assign({}, this.GetData(), { state: (window.__STATE__ || {}) }),
21
+ data: this.GetData(),
22
22
  nodes: {},
23
23
  time: 0,
24
24
  walk: true,
@@ -2,7 +2,7 @@ const RenderSet =
2
2
  {
3
3
  SetData(data)
4
4
  {
5
- this.Data = data;
5
+ this.Data = Object.assign({ state: window.__STATE__ || {} }, data);
6
6
  return this;
7
7
  },
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "divhunt",
3
- "version": "2.0.18",
3
+ "version": "2.0.19",
4
4
  "description": "Full-stack isomorphic JavaScript framework built from scratch. One addon abstraction powers databases, servers, commands, pages, directives, queues, and more.",
5
5
  "type": "module",
6
6
  "main": "lib/load.js",