malinajs 0.7.14 → 0.7.15

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.
Files changed (3) hide show
  1. package/malina.js +1 -1
  2. package/package.json +1 -1
  3. package/runtime.js +3 -1
package/malina.js CHANGED
@@ -6887,7 +6887,7 @@
6887
6887
  });
6888
6888
  }
6889
6889
 
6890
- const version = '0.7.14';
6890
+ const version = '0.7.15';
6891
6891
 
6892
6892
 
6893
6893
  async function compile(source, config = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "malinajs",
3
- "version": "0.7.14",
3
+ "version": "0.7.15",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "build": "npm run build_runtime && rollup -c",
package/runtime.js CHANGED
@@ -120,11 +120,13 @@ const _compareDeep = (a, b, lvl) => {
120
120
  let a1 = isArray(b);
121
121
  if(a0 !== a1) return true;
122
122
 
123
- if(a0) {
123
+ if (a0) {
124
124
  if(a.length !== b.length) return true;
125
125
  for(let i = 0; i < a.length; i++) {
126
126
  if(_compareDeep(a[i], b[i], lvl - 1)) return true;
127
127
  }
128
+ } else if (a instanceof Date) {
129
+ if(b instanceof Date) return a.getTime() !== b.getTime();
128
130
  } else {
129
131
  let set = {};
130
132
  for(let k in a) {