nhb-toolbox 3.9.20 → 3.9.25

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.
@@ -49,14 +49,14 @@ Object.getOwnPropertyNames(Chronos).forEach((method) => {
49
49
  }
50
50
  });
51
51
  // Add instance methods from Chronos prototype to chronos function
52
- Object.getOwnPropertyNames(Chronos.prototype).forEach((method) => {
53
- // Skip the constructor method
54
- if (method !== 'constructor') {
55
- chronos[method] = function (...args) {
56
- return this instanceof Chronos ?
57
- this[method](...args)
58
- : new Chronos()[method](...args); // Fallback to new Chronos instance
59
- };
60
- }
61
- });
52
+ // Object.getOwnPropertyNames(Chronos.prototype).forEach((method) => {
53
+ // // Skip the constructor method
54
+ // if (method !== 'constructor') {
55
+ // (chronos as Any)[method] = function (this: Chronos, ...args: Any[]) {
56
+ // return this instanceof Chronos ?
57
+ // (this as Any)[method](...args)
58
+ // : (new Chronos() as Any)[method](...args); // Fallback to new Chronos instance
59
+ // };
60
+ // }
61
+ // });
62
62
  export { chronos };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nhb-toolbox",
3
- "version": "3.9.20",
3
+ "version": "3.9.25",
4
4
  "description": "A versatile collection of smart, efficient, and reusable utility functions for everyday development needs.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",