@optique/temporal 1.1.0-dev.2077 → 1.1.0-dev.2084

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/index.cjs CHANGED
@@ -541,12 +541,6 @@ function timeZone(options = {}) {
541
541
  parse(input) {
542
542
  ensureTemporal();
543
543
  try {
544
- Temporal.ZonedDateTime.from({
545
- year: 2020,
546
- month: 1,
547
- day: 1,
548
- timeZone: input
549
- });
550
544
  if (!input.includes("/")) {
551
545
  const canonical = singleSegmentTimeZoneLookup.get(input.toLowerCase());
552
546
  if (canonical == null) throw new RangeError();
@@ -555,6 +549,12 @@ function timeZone(options = {}) {
555
549
  value: canonical
556
550
  };
557
551
  }
552
+ Temporal.ZonedDateTime.from({
553
+ year: 2020,
554
+ month: 1,
555
+ day: 1,
556
+ timeZone: input
557
+ });
558
558
  return {
559
559
  success: true,
560
560
  value: input
package/dist/index.js CHANGED
@@ -518,12 +518,6 @@ function timeZone(options = {}) {
518
518
  parse(input) {
519
519
  ensureTemporal();
520
520
  try {
521
- Temporal.ZonedDateTime.from({
522
- year: 2020,
523
- month: 1,
524
- day: 1,
525
- timeZone: input
526
- });
527
521
  if (!input.includes("/")) {
528
522
  const canonical = singleSegmentTimeZoneLookup.get(input.toLowerCase());
529
523
  if (canonical == null) throw new RangeError();
@@ -532,6 +526,12 @@ function timeZone(options = {}) {
532
526
  value: canonical
533
527
  };
534
528
  }
529
+ Temporal.ZonedDateTime.from({
530
+ year: 2020,
531
+ month: 1,
532
+ day: 1,
533
+ timeZone: input
534
+ });
535
535
  return {
536
536
  success: true,
537
537
  value: input
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/temporal",
3
- "version": "1.1.0-dev.2077",
3
+ "version": "1.1.0-dev.2084",
4
4
  "description": "Temporal value parsers for Optique",
5
5
  "keywords": [
6
6
  "CLI",
@@ -56,7 +56,7 @@
56
56
  "sideEffects": false,
57
57
  "dependencies": {
58
58
  "@js-temporal/polyfill": "^0.5.1",
59
- "@optique/core": "1.1.0-dev.2077+f8fe70c2"
59
+ "@optique/core": "1.1.0-dev.2084+bc0135da"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "^20.19.9",