@bereasoftware/time-guard 2.5.4 → 2.6.0

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.
@@ -48,6 +48,14 @@ export declare class TemporalAdapter {
48
48
  static isZonedDateTime(obj: unknown): obj is TemporalZonedDateTime;
49
49
  static isPlainDate(obj: unknown): obj is any;
50
50
  static isPlainTime(obj: unknown): obj is any;
51
+ /**
52
+ * Convert a value to a finite integer for Temporal fields
53
+ */
54
+ private static toFiniteInteger;
55
+ /**
56
+ * Validate that a PlainDateTime has finite integer components
57
+ */
58
+ private static validatePlainDateTime;
51
59
  /**
52
60
  * Get current time as PlainDateTime
53
61
  */
@@ -124,6 +124,7 @@ export declare class TimeGuard implements ITimeGuard {
124
124
  valueOf(): number;
125
125
  unix(): number;
126
126
  toJSON(): string;
127
+ [Symbol.toPrimitive](hint: 'default' | 'string' | 'number'): string | number;
127
128
  toString(): string;
128
129
  locale(): string;
129
130
  locale(locale: string): TimeGuard;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bereasoftware/time-guard",
3
3
  "private": false,
4
- "version": "2.5.4",
4
+ "version": "2.6.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "main": "./dist/time-guard.cjs",