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.
- package/dist/date/chronos-fn.js +10 -10
- package/package.json +1 -1
package/dist/date/chronos-fn.js
CHANGED
|
@@ -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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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