@kawalir/extension-node 0.6.2 → 0.6.4

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 CHANGED
@@ -1 +1 @@
1
- Support for creating a window in Process.command.pwsh
1
+ Better object extension
@@ -1,8 +1,11 @@
1
1
  import { ReadLine } from "@kawalir/extension-node/External";
2
+ import { ObjectExtender } from "@kawalir/extension/Core";
2
3
 
3
- console.ReadLine = async (prompt?: string) => {
4
- const int = ReadLine.createInterface(process.stdin, process.stdout);
5
- const answer = await int.question(prompt ?? "");
6
- int.close();
7
- return answer;
8
- };
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
+ });
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "Node",
8
8
  "Node Extension"
9
9
  ],
10
- "version": "0.6.2",
10
+ "version": "0.6.4",
11
11
  "author": "Denis Mijatovic",
12
12
  "license": "MIT",
13
13
  "type": "commonjs",
@@ -26,15 +26,11 @@
26
26
  "CHANGELOG.md"
27
27
  ],
28
28
  "scripts": {
29
- "major": "npm run script Publish major",
30
- "minor": "npm run script Publish minor",
31
- "patch": "npm run script Publish patch",
32
- "script": "cd Scripts && npm start",
33
29
  "test": "cd Test && npm run once",
34
30
  "watch-test": "cd Test && npm start"
35
31
  },
36
32
  "dependencies": {
37
- "@kawalir/extension": "^0.8.0"
33
+ "@kawalir/extension": "^0.8.2"
38
34
  },
39
35
  "devDependencies": {
40
36
  "@types/node": "^25.3.0"