@kmamal/sdl 0.7.2 → 0.7.3

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,5 +1,5 @@
1
1
  {
2
- "version": "0.7.2",
2
+ "version": "0.7.3",
3
3
  "name": "@kmamal/sdl",
4
4
  "description": "SDL bindings for Node.js",
5
5
  "keywords": [
@@ -29,7 +29,7 @@ const mouse = {
29
29
  setCursor (cursor) {
30
30
  const _cursor = Enums.cursor[cursor]
31
31
  if (typeof cursor !== 'string') { throw Object.assign(new Error("cursor must be a string"), { cursor }) }
32
- if (!_cursor) { throw Object.assign(new Error("invalid cursor"), { cursor }) }
32
+ if (!Number.isFinite(_cursor)) { throw Object.assign(new Error("invalid cursor"), { cursor }) }
33
33
 
34
34
  Bindings.mouse_setCursor(_cursor)
35
35
  },