@optique/temporal 1.0.0-dev.1116 → 1.0.0-dev.1129

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
@@ -308,8 +308,8 @@ function plainYearMonth(options = {}) {
308
308
  *
309
309
  * Accepts strings like:
310
310
  *
311
- * - `"--01-23"`
312
- * - `"--12-31"`
311
+ * - `"01-23"`
312
+ * - `"12-31"`
313
313
  *
314
314
  * @param options Configuration options for the plain month-day parser.
315
315
  * @returns A ValueParser that parses strings into Temporal.PlainMonthDay values.
@@ -317,7 +317,7 @@ function plainYearMonth(options = {}) {
317
317
  * at runtime.
318
318
  */
319
319
  function plainMonthDay(options = {}) {
320
- const metavar = options.metavar ?? "--MONTH-DAY";
320
+ const metavar = options.metavar ?? "MONTH-DAY";
321
321
  (0, __optique_core_nonempty.ensureNonEmptyString)(metavar);
322
322
  return {
323
323
  $mode: "sync",
@@ -333,7 +333,7 @@ function plainMonthDay(options = {}) {
333
333
  } catch {
334
334
  return {
335
335
  success: false,
336
- error: options.errors?.invalidFormat ? typeof options.errors.invalidFormat === "function" ? options.errors.invalidFormat(input) : options.errors.invalidFormat : __optique_core_message.message`Invalid month-day: ${input}. Expected ISO 8601 format like ${"--01-23"}.`
336
+ error: options.errors?.invalidFormat ? typeof options.errors.invalidFormat === "function" ? options.errors.invalidFormat(input) : options.errors.invalidFormat : __optique_core_message.message`Invalid month-day: ${input}. Expected ISO 8601 format like ${"01-23"}.`
337
337
  };
338
338
  }
339
339
  },
package/dist/index.d.cts CHANGED
@@ -201,8 +201,8 @@ interface PlainMonthDayOptions {
201
201
  /**
202
202
  * The metavariable name for this parser. This is used in help messages to
203
203
  * indicate what kind of value this parser expects. Usually a single
204
- * word in uppercase, like `--MONTH-DAY`.
205
- * @default `"--MONTH-DAY"`
204
+ * word in uppercase, like `MONTH-DAY`.
205
+ * @default `"MONTH-DAY"`
206
206
  */
207
207
  readonly metavar?: NonEmptyString;
208
208
  /**
@@ -346,8 +346,8 @@ declare function plainYearMonth(options?: PlainYearMonthOptions): ValueParser<"s
346
346
  *
347
347
  * Accepts strings like:
348
348
  *
349
- * - `"--01-23"`
350
- * - `"--12-31"`
349
+ * - `"01-23"`
350
+ * - `"12-31"`
351
351
  *
352
352
  * @param options Configuration options for the plain month-day parser.
353
353
  * @returns A ValueParser that parses strings into Temporal.PlainMonthDay values.
package/dist/index.d.ts CHANGED
@@ -202,8 +202,8 @@ interface PlainMonthDayOptions {
202
202
  /**
203
203
  * The metavariable name for this parser. This is used in help messages to
204
204
  * indicate what kind of value this parser expects. Usually a single
205
- * word in uppercase, like `--MONTH-DAY`.
206
- * @default `"--MONTH-DAY"`
205
+ * word in uppercase, like `MONTH-DAY`.
206
+ * @default `"MONTH-DAY"`
207
207
  */
208
208
  readonly metavar?: NonEmptyString;
209
209
  /**
@@ -347,8 +347,8 @@ declare function plainYearMonth(options?: PlainYearMonthOptions): ValueParser<"s
347
347
  *
348
348
  * Accepts strings like:
349
349
  *
350
- * - `"--01-23"`
351
- * - `"--12-31"`
350
+ * - `"01-23"`
351
+ * - `"12-31"`
352
352
  *
353
353
  * @param options Configuration options for the plain month-day parser.
354
354
  * @returns A ValueParser that parses strings into Temporal.PlainMonthDay values.
package/dist/index.js CHANGED
@@ -285,8 +285,8 @@ function plainYearMonth(options = {}) {
285
285
  *
286
286
  * Accepts strings like:
287
287
  *
288
- * - `"--01-23"`
289
- * - `"--12-31"`
288
+ * - `"01-23"`
289
+ * - `"12-31"`
290
290
  *
291
291
  * @param options Configuration options for the plain month-day parser.
292
292
  * @returns A ValueParser that parses strings into Temporal.PlainMonthDay values.
@@ -294,7 +294,7 @@ function plainYearMonth(options = {}) {
294
294
  * at runtime.
295
295
  */
296
296
  function plainMonthDay(options = {}) {
297
- const metavar = options.metavar ?? "--MONTH-DAY";
297
+ const metavar = options.metavar ?? "MONTH-DAY";
298
298
  ensureNonEmptyString(metavar);
299
299
  return {
300
300
  $mode: "sync",
@@ -310,7 +310,7 @@ function plainMonthDay(options = {}) {
310
310
  } catch {
311
311
  return {
312
312
  success: false,
313
- error: options.errors?.invalidFormat ? typeof options.errors.invalidFormat === "function" ? options.errors.invalidFormat(input) : options.errors.invalidFormat : message`Invalid month-day: ${input}. Expected ISO 8601 format like ${"--01-23"}.`
313
+ error: options.errors?.invalidFormat ? typeof options.errors.invalidFormat === "function" ? options.errors.invalidFormat(input) : options.errors.invalidFormat : message`Invalid month-day: ${input}. Expected ISO 8601 format like ${"01-23"}.`
314
314
  };
315
315
  }
316
316
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/temporal",
3
- "version": "1.0.0-dev.1116+6084dd3a",
3
+ "version": "1.0.0-dev.1129+30064af5",
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.0.0-dev.1116+6084dd3a"
59
+ "@optique/core": "1.0.0-dev.1129+30064af5"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "^20.19.9",