typescript
Advanced tools
@@ -78,4 +78,18 @@ /*! ***************************************************************************** | ||
| type DateUnit = "year" | "month" | "week" | "day" | "years" | "months" | "weeks" | "days"; | ||
| type TimeUnit = "hour" | "minute" | "second" | "millisecond" | "microsecond" | "nanosecond" | "hours" | "minutes" | "seconds" | "milliseconds" | "microseconds" | "nanoseconds"; | ||
| type DateUnit = "year" | "month" | "week" | "day"; | ||
| type TimeUnit = "hour" | "minute" | "second" | "millisecond" | "microsecond" | "nanosecond"; | ||
| type PluralizeUnit<T extends DateUnit | TimeUnit> = | ||
| | T | ||
| | { | ||
| year: "years"; | ||
| month: "months"; | ||
| week: "weeks"; | ||
| day: "days"; | ||
| hour: "hours"; | ||
| minute: "minutes"; | ||
| second: "seconds"; | ||
| millisecond: "milliseconds"; | ||
| microsecond: "microseconds"; | ||
| nanosecond: "nanoseconds"; | ||
| }[T]; | ||
@@ -95,3 +109,3 @@ interface DisambiguationOptions { | ||
| interface RoundingOptions<Units extends DateUnit | TimeUnit> { | ||
| smallestUnit?: Units | undefined; | ||
| smallestUnit?: PluralizeUnit<Units> | undefined; | ||
| roundingIncrement?: number | undefined; | ||
@@ -102,3 +116,3 @@ roundingMode?: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined; | ||
| interface RoundingOptionsWithLargestUnit<Units extends DateUnit | TimeUnit> extends RoundingOptions<Units> { | ||
| largestUnit?: "auto" | Units | undefined; | ||
| largestUnit?: "auto" | PluralizeUnit<Units> | undefined; | ||
| } | ||
@@ -174,3 +188,3 @@ | ||
| interface PlainTimeToStringOptions extends ToStringRoundingOptionsWithFractionalSeconds<Exclude<TimeUnit, "hour" | "hours">> {} | ||
| interface PlainTimeToStringOptions extends ToStringRoundingOptionsWithFractionalSeconds<Exclude<TimeUnit, "hour">> {} | ||
@@ -190,3 +204,3 @@ interface PlainTime { | ||
| equals(other: PlainTimeLike): boolean; | ||
| round(roundTo: TimeUnit): PlainTime; | ||
| round(roundTo: PluralizeUnit<TimeUnit>): PlainTime; | ||
| round(roundTo: RoundingOptions<TimeUnit>): PlainTime; | ||
@@ -240,4 +254,4 @@ toString(options?: PlainTimeToStringOptions): string; | ||
| since(other: PlainDateTimeLike, options?: RoundingOptionsWithLargestUnit<DateUnit | TimeUnit>): Duration; | ||
| round(roundTo: "day" | "days" | TimeUnit): PlainDateTime; | ||
| round(roundTo: RoundingOptions<"day" | "days" | TimeUnit>): PlainDateTime; | ||
| round(roundTo: PluralizeUnit<"day" | TimeUnit>): PlainDateTime; | ||
| round(roundTo: RoundingOptions<"day" | TimeUnit>): PlainDateTime; | ||
| equals(other: PlainDateTimeLike): boolean; | ||
@@ -308,4 +322,4 @@ toString(options?: PlainDateTimeToStringOptions): string; | ||
| since(other: ZonedDateTimeLike, options?: RoundingOptionsWithLargestUnit<DateUnit | TimeUnit>): Duration; | ||
| round(roundTo: "day" | "days" | TimeUnit): ZonedDateTime; | ||
| round(roundTo: RoundingOptions<"day" | "days" | TimeUnit>): ZonedDateTime; | ||
| round(roundTo: PluralizeUnit<"day" | TimeUnit>): ZonedDateTime; | ||
| round(roundTo: RoundingOptions<"day" | TimeUnit>): ZonedDateTime; | ||
| equals(other: ZonedDateTimeLike): boolean; | ||
@@ -340,6 +354,6 @@ toString(options?: ZonedDateTimeToStringOptions): string; | ||
| interface DurationToStringOptions extends ToStringRoundingOptionsWithFractionalSeconds<Exclude<TimeUnit, "hour" | "minute" | "hours" | "minutes">> {} | ||
| interface DurationToStringOptions extends ToStringRoundingOptionsWithFractionalSeconds<Exclude<TimeUnit, "hour" | "minute">> {} | ||
| interface DurationTotalOptions extends DurationRelativeToOptions { | ||
| unit: DateUnit | TimeUnit; | ||
| unit: PluralizeUnit<DateUnit | TimeUnit>; | ||
| } | ||
@@ -365,5 +379,5 @@ | ||
| subtract(other: DurationLike): Duration; | ||
| round(roundTo: "day" | "days" | TimeUnit): Duration; | ||
| round(roundTo: PluralizeUnit<"day" | TimeUnit>): Duration; | ||
| round(roundTo: DurationRoundingOptions): Duration; | ||
| total(totalOf: "day" | "days" | TimeUnit): number; | ||
| total(totalOf: PluralizeUnit<"day" | TimeUnit>): number; | ||
| total(totalOf: DurationTotalOptions): number; | ||
@@ -396,3 +410,3 @@ toString(options?: DurationToStringOptions): string; | ||
| since(other: InstantLike, options?: RoundingOptionsWithLargestUnit<TimeUnit>): Duration; | ||
| round(roundTo: TimeUnit): Instant; | ||
| round(roundTo: PluralizeUnit<TimeUnit>): Instant; | ||
| round(roundTo: RoundingOptions<TimeUnit>): Instant; | ||
@@ -436,4 +450,4 @@ equals(other: InstantLike): boolean; | ||
| subtract(duration: DurationLike, options?: OverflowOptions): PlainYearMonth; | ||
| until(other: PlainYearMonthLike, options?: RoundingOptionsWithLargestUnit<"year" | "month" | "years" | "months">): Duration; | ||
| since(other: PlainYearMonthLike, options?: RoundingOptionsWithLargestUnit<"year" | "month" | "years" | "months">): Duration; | ||
| until(other: PlainYearMonthLike, options?: RoundingOptionsWithLargestUnit<"year" | "month">): Duration; | ||
| since(other: PlainYearMonthLike, options?: RoundingOptionsWithLargestUnit<"year" | "month">): Duration; | ||
| equals(other: PlainYearMonthLike): boolean; | ||
@@ -440,0 +454,0 @@ toString(options?: PlainDateToStringOptions): string; |
+2
-2
@@ -5,3 +5,3 @@ { | ||
| "homepage": "https://www.typescriptlang.org/", | ||
| "version": "6.0.0-dev.20260225", | ||
| "version": "6.0.0-dev.20260226", | ||
| "license": "Apache-2.0", | ||
@@ -119,3 +119,3 @@ "description": "TypeScript is a language for application scale JavaScript development", | ||
| }, | ||
| "gitHead": "b24015058ae060de249acf5ea09e15dd92a55587" | ||
| "gitHead": "6cf81701bc9666957064dad013e938c9c5af2c33" | ||
| } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 11 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 11 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
24341864
0115400
0.01%