hron-ts 0.4.2 → 0.5.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.
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
- # hron-js (TypeScript)
1
+ # hron-ts (TypeScript)
2
2
 
3
3
  Native TypeScript implementation of [hron](https://github.com/prasrvenkat/hron) — human-readable cron expressions.
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```sh
8
- npm install hron-js
8
+ npm install hron-ts
9
9
  ```
10
10
 
11
11
  ## Usage
12
12
 
13
13
  ```typescript
14
- import { Schedule, Temporal } from "hron-js";
14
+ import { Schedule, Temporal } from "hron-ts";
15
15
 
16
16
  // Parse an expression
17
17
  const schedule = Schedule.parse("every weekday at 9:00 in America/New_York");
package/dist/index.cjs CHANGED
@@ -584,12 +584,7 @@ function unitDisplay(interval, unit) {
584
584
  // src/eval.ts
585
585
  var import_polyfill = require("@js-temporal/polyfill");
586
586
  function resolveTz(tz) {
587
- if (tz) return tz;
588
- try {
589
- return import_polyfill.Temporal.Now.timeZoneId();
590
- } catch {
591
- return "UTC";
592
- }
587
+ return tz ?? "UTC";
593
588
  }
594
589
  function toPlainTime(tod) {
595
590
  return import_polyfill.Temporal.PlainTime.from({ hour: tod.hour, minute: tod.minute });