@postonus/cli 0.1.31 → 0.1.32

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.js CHANGED
@@ -226,6 +226,16 @@ var FILE_TYPE_EXTENSIONS = {
226
226
  var FILE_SCENARIOS = ["post_attachments", "user_avatar"];
227
227
  var MAX_FILE_SIZE_BYTES = Math.max(...Object.values(scenarios).map((s) => s.maxSize));
228
228
 
229
+ // ../../packages/app-config/src/timezone.ts
230
+ var isValidTimezone = (timezone) => {
231
+ try {
232
+ Intl.DateTimeFormat(void 0, { timeZone: timezone });
233
+ return true;
234
+ } catch {
235
+ return false;
236
+ }
237
+ };
238
+
229
239
  // src/index.ts
230
240
  import { Command, Option } from "commander";
231
241
 
@@ -9458,14 +9468,6 @@ var AnalyticsPreferences = object({
9458
9468
  dataRetentionDays: number2().min(30).max(365).default(90)
9459
9469
  });
9460
9470
  var TimezoneSource = _enum(["auto", "manual"]);
9461
- var isValidTimezone = (timezone) => {
9462
- try {
9463
- Intl.DateTimeFormat(void 0, { timeZone: timezone });
9464
- return true;
9465
- } catch {
9466
- return false;
9467
- }
9468
- };
9469
9471
  var TimezoneSchema = string2().refine(isValidTimezone, { error: "Invalid timezone identifier" });
9470
9472
  var UserPreferencesSchema = object({
9471
9473
  locale: string2().default("en"),
@@ -12334,7 +12336,7 @@ function formatTable(headers, rows) {
12334
12336
  }
12335
12337
 
12336
12338
  // src/version.ts
12337
- var CLI_VERSION = "0.1.31";
12339
+ var CLI_VERSION = "0.1.32";
12338
12340
 
12339
12341
  // src/client.ts
12340
12342
  var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";