@lightningjs/blits 0.3.8 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightningjs/blits",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Blits: The Lightning 3 App Development Framework",
5
5
  "bin": "bin/index.cjs",
6
6
  "exports": {
@@ -39,7 +39,7 @@
39
39
  "tape": "^5.5.0"
40
40
  },
41
41
  "dependencies": {
42
- "@lightningjs/renderer": "^0.3.0",
42
+ "@lightningjs/renderer": "^0.3.3",
43
43
  "@lightningjs/vite-plugin-import-chunk-url": "^0.3.0"
44
44
  }
45
45
  }
@@ -141,12 +141,12 @@ declare namespace Component {
141
141
  /**
142
142
  * Set a timeout that is automatically cleaned upon component destroy
143
143
  */
144
- $setTimeout: (callback: (args: any) => void, ms?: number | undefined) => typeof setTimeout
144
+ $setTimeout: (callback: (args: any) => void, ms?: number | undefined) => ReturnType<typeof setTimeout>
145
145
 
146
146
  /**
147
147
  * Set an interval that is automatically cleaned upon component destroy
148
148
  */
149
- $setInterval: (callback: (args: any) => void, ms?: number | undefined) => typeof setInterval
149
+ $setInterval: (callback: (args: any) => void, ms?: number | undefined) => ReturnType<typeof setInterval>
150
150
 
151
151
  /**
152
152
  * Log to the console with prettier output and configurable debug levels in Settings
@@ -37,9 +37,10 @@ const reactiveProxy = (target) => {
37
37
  track(target, key)
38
38
 
39
39
  if (
40
- target[key] !== null &&
41
- typeof target[key] === 'object' &&
42
- Object.getPrototypeOf(target[key]) === Object.prototype
40
+ (target[key] !== null &&
41
+ typeof target[key] === 'object' &&
42
+ Object.getPrototypeOf(target[key]) === Object.prototype) ||
43
+ Array.isArray(target[key])
43
44
  ) {
44
45
  return reactiveProxy(target[key])
45
46
  }