diff --git a/README.md b/README.md
index 6901810..c9c5535 100644
--- a/README.md
+++ b/README.md
@@ -19,8 +19,8 @@ const { Dialog, GlkOte, send } =
```js
send('open door', inputType, targetWindow)
```
-You can obtain `inputType` and `id` of `targetWindow` inside the `onUpdateInputs` handler.
-You can specify `targetWindow` by its `id` inside the `onUpdateWindows` handler.
+You can receive `inputType` and `id` of `targetWindow` in `onUpdateInputs` handler.
+You can receive `targetWindow` by its `is` in `onUpdateWindows` handler.
As I know, `inputType` can be `line` or `char`.
### Output and lifecycle
diff --git a/package-lock.json b/package-lock.json
index 1d8fe94..d6c5a27 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "cheap-glkote",
- "version": "0.5.1",
+ "version": "0.5.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "cheap-glkote",
- "version": "0.5.1",
+ "version": "0.5.0",
"license": "MIT",
"devDependencies": {
"ansi-escapes": "^4.0.0",
diff --git a/package.json b/package.json
index 94905ee..70f8144 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cheap-glkote",
- "version": "0.5.1",
+ "version": "0.5.0",
"description": "Abstract JavaScript implementation of GlkOte",
"author": "He4eT ",
"license": "MIT",
diff --git a/src/glkOte/glkote-term.js b/src/glkOte/glkote-term.js
index 878c5a5..5f16aa6 100644
--- a/src/glkOte/glkote-term.js
+++ b/src/glkOte/glkote-term.js
@@ -2,6 +2,8 @@
* @see: https://github.com/curiousdannii/glkote-term/blob/master/src/glkote-term.js
*/
+import packageJSON from '../../package.json' assert { type: 'json' }
+
class GlkOte {
constructor({width, height}) {
this.width = width
@@ -11,7 +13,7 @@ class GlkOte {
this.disabled = false
this.generation = 0
this.interface = null
- this.version = '0.5.1'
+ this.version = packageJSON.version
}
measure_window() {