@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 CHANGED
@@ -1 +1 @@
1
- Patch for making extension methods safe
1
+ Update dependencies
@@ -1,11 +1,11 @@
1
1
  import { ReadLine } from "@kawalir/extension-node/External";
2
- import { ObjectFunctions } from "@kawalir/extension/Core";
2
+ import { ObjectExtender } from "@kawalir/extension/Core";
3
3
 
4
- const MET = ObjectFunctions.extension.addMethod;
5
-
6
- MET(console, "ReadLine", async (prompt) => {
7
- const int = ReadLine.createInterface(process.stdin, process.stdout);
8
- const answer = await int.question(prompt ?? "");
9
- int.close();
10
- return answer;
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.3",
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.1"
33
+ "@kawalir/extension": "^0.8.3"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^25.3.0"