neo.mjs 4.0.45 → 4.0.46

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.
@@ -174,7 +174,7 @@ if (programOpts.info) {
174
174
  appPath : `${insideNeo ? '' : '../../'}${appPath}app.mjs`,
175
175
  basePath : '../../',
176
176
  environment: 'development',
177
- mainPath : './Main.mjs'
177
+ mainPath : `${insideNeo ? './' : '../node_modules/neo.mjs/src/'}Main.mjs`
178
178
  };
179
179
 
180
180
  if (!(mainThreadAddons.includes('DragDrop') && mainThreadAddons.includes('Stylesheet') && mainThreadAddons.length === 2)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "4.0.45",
3
+ "version": "4.0.46",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -65,15 +65,16 @@ class HashHistory extends Base {
65
65
  * @param {String} data.hashString
66
66
  */
67
67
  push(data) {
68
- let me = this;
68
+ let me = this,
69
+ stack = me.stack;
69
70
 
70
- me.stack.unshift(data);
71
+ stack.unshift(data);
71
72
 
72
- if (me.stack.length > me.maxItems) {
73
- me.stack.length = me.maxItems;
73
+ if (stack.length > me.maxItems) {
74
+ stack.length = me.maxItems;
74
75
  }
75
76
 
76
- me.fire('change', data, me.stack[1]);
77
+ me.fire('change', data, stack[1]);
77
78
  }
78
79
  }
79
80