@kawalir/extension-node 0.6.3 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/Global/Methods/Console/index.ts +8 -8
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Update dependencies
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReadLine } from "@kawalir/extension-node/External";
|
|
2
|
-
import {
|
|
2
|
+
import { ObjectExtender } from "@kawalir/extension/Core";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
new ObjectExtender(console).add({
|
|
5
|
+
ReadLine: async (prompt) => {
|
|
6
|
+
const int = ReadLine.createInterface(process.stdin, process.stdout);
|
|
7
|
+
const answer = await int.question(prompt ?? "");
|
|
8
|
+
int.close();
|
|
9
|
+
return answer;
|
|
10
|
+
},
|
|
11
11
|
});
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"Node",
|
|
8
8
|
"Node Extension"
|
|
9
9
|
],
|
|
10
|
-
"version": "0.6.
|
|
10
|
+
"version": "0.6.5",
|
|
11
11
|
"author": "Denis Mijatovic",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"type": "commonjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"watch-test": "cd Test && npm start"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@kawalir/extension": "^0.8.
|
|
33
|
+
"@kawalir/extension": "^0.8.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^25.3.0"
|