divhunt 2.0.16 → 2.0.17

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.
@@ -18,7 +18,7 @@ const RenderCompile =
18
18
 
19
19
  const compile = {
20
20
  element,
21
- data: this.GetData(),
21
+ data: Object.assign({}, this.GetData(), { state: (window.__STATE__ || {}) }),
22
22
  nodes: {},
23
23
  time: 0,
24
24
  walk: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "divhunt",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
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",
@@ -12,7 +12,7 @@ pages.Item({
12
12
  {
13
13
  return `
14
14
  1
15
- {{ global.user.name }}
15
+ {{ state.user }}
16
16
 
17
17
  <h1>dh-command test</h1>
18
18
  <dh-command-submit command="test" :api="true" bind="test" :data='{"name": "dejan"}'>
@@ -1,12 +0,0 @@
1
- divhunt.EmitOn('addon.render.compile.before', (item, compile) =>
2
- {
3
- const global = {};
4
- const items = variables.Items();
5
-
6
- for(const id in items)
7
- {
8
- global[id] = items[id].Get('value');
9
- }
10
-
11
- compile.data.global = global;
12
- });