Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

contro

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contro - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

dist/contro.min.js

4

dist/contro.esm.js

@@ -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>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc