Comparing version 2.1.2 to 2.1.3
/*! | ||
* Contro | ||
* (c) 2018 Niklas Higi | ||
* (c) 2019 Niklas Higi | ||
* Released under the MIT License. | ||
*/ | ||
const store = { | ||
preferGamepad: false, | ||
}; | ||
class Vector2 { | ||
@@ -162,3 +166,3 @@ constructor(x = 0, y = 0) { | ||
constructor( | ||
{ doc = document } = {}) { | ||
{ doc = document } = {}) { | ||
this.pressedKeys = new Set(); | ||
@@ -287,3 +291,3 @@ this.queuedKeys = new Set(); | ||
constructor( | ||
{ win = window, nav = navigator } = {}) { | ||
{ win = window, nav = navigator } = {}) { | ||
this.pressedButtons = new Set(); | ||
@@ -412,6 +416,2 @@ this.gamepadTimestamp = 0; | ||
let store = { | ||
preferGamepad: false, | ||
}; | ||
export { store, Mouse, Keyboard, Gamepad, and, or }; | ||
export { Gamepad, Keyboard, Mouse, and, or }; |
/*! | ||
* Contro | ||
* (c) 2018 Niklas Higi | ||
* (c) 2019 Niklas Higi | ||
* Released under the MIT License. | ||
@@ -9,5 +9,9 @@ */ | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(factory((global.Contro = {}))); | ||
}(this, (function (exports) { 'use strict'; | ||
(global = global || self, factory(global.Contro = {})); | ||
}(this, function (exports) { 'use strict'; | ||
const store = { | ||
preferGamepad: false, | ||
}; | ||
class Vector2 { | ||
@@ -169,3 +173,3 @@ constructor(x = 0, y = 0) { | ||
constructor( | ||
{ doc = document } = {}) { | ||
{ doc = document } = {}) { | ||
this.pressedKeys = new Set(); | ||
@@ -294,3 +298,3 @@ this.queuedKeys = new Set(); | ||
constructor( | ||
{ win = window, nav = navigator } = {}) { | ||
{ win = window, nav = navigator } = {}) { | ||
this.pressedButtons = new Set(); | ||
@@ -419,10 +423,5 @@ this.gamepadTimestamp = 0; | ||
let store = { | ||
preferGamepad: false, | ||
}; | ||
exports.store = store; | ||
exports.Gamepad = Gamepad; | ||
exports.Keyboard = Keyboard; | ||
exports.Mouse = Mouse; | ||
exports.Keyboard = Keyboard; | ||
exports.Gamepad = Gamepad; | ||
exports.and = and; | ||
@@ -433,2 +432,2 @@ exports.or = or; | ||
}))); | ||
})); |
{ | ||
"name": "contro", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Game controls done right.", | ||
"main": "dist/contro.js", | ||
"types": "dist/index.d.ts", | ||
"jsnext:main": "dist/contro.esm.js", | ||
@@ -11,6 +12,5 @@ "module": "dist/contro.esm.js", | ||
"dist/contro.js", | ||
"dist/contro.min.js" | ||
"dist/**/*.d.ts" | ||
], | ||
"scripts": { | ||
"precommit": "npm run verify", | ||
"verify": "run-s lint verify:test build", | ||
@@ -47,15 +47,15 @@ "verify:test": "npm run test -- --reporter progress --forbid-pending --forbid-only", | ||
"@types/chai": "^4.0.10", | ||
"@types/fs-extra": "^5.0.0", | ||
"@types/mocha": "^2.2.44", | ||
"@types/node": "^8.5.2", | ||
"@types/fs-extra": "^7.0.0", | ||
"@types/mocha": "^5.2.6", | ||
"@types/node": "^12.0.1", | ||
"chai": "^4.1.2", | ||
"codecov": "^3.0.0", | ||
"commitizen": "^2.9.6", | ||
"commitizen": "^3.1.1", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"fs-extra": "^5.0.0", | ||
"husky": "^0.14.3", | ||
"mocha": "^4.0.1", | ||
"fs-extra": "^8.0.1", | ||
"husky": "^2.3.0", | ||
"mocha": "^6.1.4", | ||
"npm-run-all": "^4.1.2", | ||
"nyc": "^11.4.1", | ||
"remark-cli": "^4.0.0", | ||
"nyc": "^14.1.1", | ||
"remark-cli": "^6.0.1", | ||
"remark-lint": "^6.0.1", | ||
@@ -66,8 +66,8 @@ "remark-lint-no-empty-url": "^1.0.2", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^0.53.0", | ||
"rollup-plugin-typescript": "^0.8.1", | ||
"semantic-release": "^11.0.2", | ||
"ts-node": "^4.1.0", | ||
"rollup": "^1.11.3", | ||
"rollup-plugin-typescript2": "^0.21.0", | ||
"semantic-release": "^15.13.12", | ||
"ts-node": "^8.1.0", | ||
"tslint": "^5.8.0", | ||
"typescript": "^2.6.2", | ||
"typescript": "^3.4.5", | ||
"uglify-es": "^3.2.2" | ||
@@ -80,3 +80,8 @@ }, | ||
} | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "npm run verify" | ||
} | ||
} | ||
} |
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
18
960
38612