@rwh/keystrokes
Advanced tools
Comparing version 1.0.0-alpha.9 to 1.0.0-alpha.10
{ | ||
"name": "@rwh/keystrokes", | ||
"version": "1.0.0-alpha.9", | ||
"version": "1.0.0-alpha.10", | ||
"description": "", | ||
"types": "dist/cjs/index.d.ts", | ||
"main": "dist/cjs/index.js", | ||
"source": "./src/index.ts", | ||
"main": "./dist/index.js", | ||
"module": "./dist/module.js", | ||
"types": "./dist/types.d.ts", | ||
"global": "./keystrokes.js", | ||
"targets": { | ||
"main": {}, | ||
"module": {}, | ||
"global": { | ||
"outputFormat": "global", | ||
"includeNodeModules": true, | ||
"source": "./src/global.ts", | ||
"engines": { | ||
"browsers": [ | ||
"defaults" | ||
] | ||
} | ||
} | ||
}, | ||
"files": [ | ||
"dist/cjs/*.js", | ||
"dist/cjs/*.d.ts", | ||
"keystrokes.js", | ||
"keystrokes.js.map", | ||
"dist/*.js", | ||
"dist/*.map", | ||
"dist/*.d.ts", | ||
"logo.png", | ||
@@ -31,3 +47,6 @@ "readme.md" | ||
"devDependencies": { | ||
"@rollup/plugin-typescript": "^9.0.2", | ||
"@parcel/core": "^2.8.3", | ||
"@parcel/packager-ts": "^2.8.3", | ||
"@parcel/transformer-typescript-types": "^2.8.3", | ||
"@swc/helpers": "^0.4.14", | ||
"@types/mocha": "^10.0.1", | ||
@@ -38,3 +57,2 @@ "@types/node": "^18.11.11", | ||
"@typescript-eslint/parser": "^5.36.0", | ||
"concurrently": "^7.6.0", | ||
"eslint": "^8.23.0", | ||
@@ -45,19 +63,14 @@ "eslint-config-prettier": "^8.5.0", | ||
"node-static": "^0.7.11", | ||
"parcel": "^2.8.3", | ||
"prettier": "^2.7.1", | ||
"rollup": "^3.6.0", | ||
"sinon": "^14.0.2", | ||
"source-map-support": "^0.5.21", | ||
"tslib": "^2.4.1", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.3" | ||
}, | ||
"scripts": { | ||
"build": "concurrently \"npm:build:*\"", | ||
"lint": "eslint ./src", | ||
"test": "tsc --project ./tsconfig.test.json && mocha -r source-map-support/register dist/test/test/*.spec.js", | ||
"build:cjs": "tsc --project ./tsconfig.cjs.json", | ||
"build:test": "tsc --project ./tsconfig.test.json", | ||
"build:script": "rollup --config ./rollup.script.config.js && cp ./dist/script/keystrokes.js ./keystrokes.js && cp ./dist/script/keystrokes.js.map ./keystrokes.js.map", | ||
"build:example": "cp ./src/example/index.* ./dist/example/ && rollup --config ./rollup.example.config.js", | ||
"example": "static ./dist/example" | ||
"test": "mocha -r ts-node/register ./src/test/**/*.spec.ts", | ||
"build": "rm -rf dist/ && parcel build", | ||
"dev": "parcel build --watch" | ||
} | ||
} |
<p align="center"> | ||
<img src="https://raw.githubusercontent.com/RobertWHurst/Keystrokes/master/src/example/logo.png"> | ||
<img src="https://raw.githubusercontent.com/RobertWHurst/Keystrokes/master/logo.png"> | ||
</p> | ||
@@ -18,2 +18,5 @@ | ||
</a> | ||
<a href="https://openbase.com/js/@rwh/keystrokes?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge"> | ||
<img src="https://badges.openbase.com/js/featured/@rwh/keystrokes.svg?token=Y+3F66I/0u7k7QF6s0YDhURC3LhUD7QLYjH//vNr8qg="> | ||
</a> | ||
</p> | ||
@@ -248,8 +251,7 @@ | ||
keyRemap | An object of key value pairs with the key being the key to rename, and the value being the new name. | ||
onActive | A binder to track viewport focus. See [Non Browser Environments](#Non-Browser-Environments) for details. | ||
onInactive | A binder to track viewport blur. See [Non Browser Environments](#Non-Browser-Environments) for details. | ||
onKeyPressed | A binder to track when keys are pressed. See [Non Browser Environments](#Non-Browser-Environments) for details. | ||
onKeyReleased | A binder to track when keys are released. See [Non Browser Environments](#Non-Browser-Environments) for details. | ||
onActive | A binder to track viewport focus. See [Non Browser Environments](#non-browser-environments) for details. | ||
onInactive | A binder to track viewport blur. See [Non Browser Environments](#non-browser-environments) for details. | ||
onKeyPressed | A binder to track when keys are pressed. See [Non Browser Environments](#non-browser-environments) for details. | ||
onKeyReleased | A binder to track when keys are released. See [Non Browser Environments](#non-browser-environments) for details. | ||
Here is an example where we are configuring the global instance. | ||
@@ -337,3 +339,3 @@ | ||
[![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/RobertWHurst) | ||
[![sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/RobertWHurst) | ||
@@ -357,2 +359,2 @@ If your interested in providing feedback or would like to contribute please feel | ||
[bug-report]: https://github.com/RobertWHurst/Keystrokes/issues/new?template=bug_report.md | ||
[feature-request]: https://github.com/RobertWHurst/Keystrokes/issues/new?template=feature_request.md | ||
[feature-request]: https://github.com/RobertWHurst/Keystrokes/issues/new?template=feature_request.md |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
173449
357
19
10
854
1