npm update

This commit is contained in:
Francisco Hodge 2019-04-18 10:15:51 -04:00
parent 2926b554a2
commit 06873ec0d2
3 changed files with 15 additions and 10 deletions

15
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "simple-keyboard",
"version": "2.20.7",
"version": "2.20.8",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -12524,7 +12524,8 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"aproba": {
"version": "1.2.0",
@ -12939,7 +12940,8 @@
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"safer-buffer": {
"version": "2.1.2",
@ -12995,6 +12997,7 @@
"version": "3.0.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
@ -13038,12 +13041,14 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
"dev": true
"dev": true,
"optional": true
}
}
},

View File

@ -1,6 +1,6 @@
{
"name": "simple-keyboard",
"version": "2.20.7",
"version": "2.20.8",
"description": "On-screen Javascript Virtual Keyboard",
"main": "build/index.js",
"types": "build/index.d.ts",

View File

@ -365,7 +365,7 @@ class SimpleKeyboard {
* Set new option or modify existing ones after initialization.
* @param {object} options The options to set
*/
setOptions(options){
setOptions(options) {
options = options || {};
this.options = Object.assign(this.options, options);
@ -378,14 +378,14 @@ class SimpleKeyboard {
* Rendering
*/
this.render();
};
}
/**
* Executing actions depending on changed options
* @param {object} options The options to set
*/
onSetOptions(options){
if(options.inputName){
onSetOptions(options) {
if (options.inputName) {
/**
* inputName changed. This requires a caretPosition reset
*/