Comparing version 1.0.1 to 1.0.2
@@ -83,3 +83,3 @@ /** Representation of a two-dimensional vector. */ | ||
class Keyboard { | ||
constructor({ doc = document }) { | ||
constructor({ doc = document } = {}) { | ||
this.pressedKeys = new Set(); | ||
@@ -114,3 +114,3 @@ this.queuedKeys = new Set(); | ||
class Gamepad { | ||
constructor({ win = window, nav = navigator }) { | ||
constructor({ win = window, nav = navigator } = {}) { | ||
this.pressedButtons = new Set(); | ||
@@ -117,0 +117,0 @@ this.window = win; |
@@ -89,3 +89,3 @@ (function (global, factory) { | ||
class Keyboard { | ||
constructor({ doc = document }) { | ||
constructor({ doc = document } = {}) { | ||
this.pressedKeys = new Set(); | ||
@@ -120,3 +120,3 @@ this.queuedKeys = new Set(); | ||
class Gamepad { | ||
constructor({ win = window, nav = navigator }) { | ||
constructor({ win = window, nav = navigator } = {}) { | ||
this.pressedButtons = new Set(); | ||
@@ -123,0 +123,0 @@ this.window = win; |
{ | ||
"name": "contro", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Game controls done right.", | ||
@@ -16,3 +16,3 @@ "main": "dist/contro.esm.js", | ||
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", | ||
"build": "rollup -c && uglifyjs build/contro.js -cm > build/contro.min.js", | ||
"build": "rollup -c && uglifyjs dist/contro.js -cm > dist/contro.min.js", | ||
"release": "semantic-release", | ||
@@ -19,0 +19,0 @@ "clean": "rimraf .nyc_output coverage dist" |
<h1 align="center"> | ||
<br> | ||
<br> | ||
<img width="320" src="/images/header.png" href="#"> | ||
<img width="320" src="/images/header.png"> | ||
<br> | ||
@@ -6,0 +6,0 @@ <br> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18220
5
320