@kmamal/sdl 0.6.1 → 0.6.2

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.6.1",
2
+ "version": "0.6.2",
3
3
  "name": "@kmamal/sdl",
4
4
  "description": "SDL bindings for Node.js",
5
5
  "keywords": [
@@ -50,5 +50,8 @@
50
50
  "owner": "kmamal",
51
51
  "repo": "build-sdl",
52
52
  "version": "2.24.1"
53
+ },
54
+ "devDependencies": {
55
+ "@types/node": "^18.11.10"
53
56
  }
54
57
  }
@@ -164,7 +164,7 @@ const handleEvents = () => {
164
164
  if (!window) { continue }
165
165
 
166
166
  const { key } = event
167
- event.key = mapping[key] ?? key?.length === 1 ? key : null
167
+ event.key = mapping[key] ?? (key?.length === 1 ? key : null)
168
168
 
169
169
  if (Object.keys(event).length > 0) {
170
170
  window.emit(Enums.eventTypeNames[type], event)