chore: update dependencies and configurations across multiple packages
Publish to NPM / Check version changes and publish (push) Failing after 10m44s
Publish to NPM / Check version changes and publish (push) Failing after 10m44s
This commit is contained in:
@@ -44,15 +44,15 @@ export type UseDateFormatReturn = ComputedRef<string>;
|
||||
|
||||
// Matches a token, or a `[literal]` escape that is emitted verbatim.
|
||||
const REGEX_FORMAT
|
||||
= /* #__PURE__ */ /[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|z{1,4}|SSS/g;
|
||||
= /[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|z{1,4}|SSS/g;
|
||||
|
||||
// Loose ISO-ish parser used for date strings without a trailing `Z`. The optional
|
||||
// separators make adjacent digit groups technically "misleading" to the linter,
|
||||
// but this is the deliberate lenient dayjs parser (accepts `2024-01-01` and
|
||||
// `20240101`); JS lacks possessive quantifiers to disambiguate it.
|
||||
// eslint-disable-next-line regexp/no-misleading-capturing-group
|
||||
const REGEX_PARSE = /* #__PURE__ */ /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i;
|
||||
const REGEX_ISO_SUFFIX = /* #__PURE__ */ /z$/i;
|
||||
const REGEX_PARSE = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i;
|
||||
const REGEX_ISO_SUFFIX = /z$/i;
|
||||
|
||||
const ORDINAL_SUFFIXES = ['th', 'st', 'nd', 'rd'] as const;
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@ const DEFAULT_UNITS: Array<UseTimeAgoUnit<UseTimeAgoUnitName>> = [
|
||||
{ max: Number.POSITIVE_INFINITY, value: 31536000000, name: 'year' },
|
||||
];
|
||||
|
||||
const REGEX_DIGIT = /* #__PURE__ */ /\d/;
|
||||
const REGEX_DIGIT = /\d/;
|
||||
|
||||
const DEFAULT_MESSAGES: UseTimeAgoMessages<UseTimeAgoUnitName> = {
|
||||
justNow: 'just now',
|
||||
|
||||
@@ -7,7 +7,7 @@ import { defaultWindow } from '@/types';
|
||||
|
||||
// Combo separator (`ctrl+a`, `ctrl_a`, `ctrl-a`). Non-global so it is safe to
|
||||
// reuse for both `.test()` (no lastIndex state) and `.split()`.
|
||||
const COMBO_SEPARATOR_RE = /* #__PURE__ */ /[+_-]/;
|
||||
const COMBO_SEPARATOR_RE = /[+_-]/;
|
||||
|
||||
export type UseMagicKeysAliasMap = Readonly<Record<string, string>>;
|
||||
|
||||
@@ -15,7 +15,7 @@ export type UseMagicKeysAliasMap = Readonly<Record<string, string>>;
|
||||
* Default lowercase alias map: maps common shorthand key names to their
|
||||
* canonical `KeyboardEvent.key` (lowercased) equivalents.
|
||||
*/
|
||||
export const DefaultMagicKeysAliasMap: UseMagicKeysAliasMap = /* #__PURE__ */ {
|
||||
export const DefaultMagicKeysAliasMap: UseMagicKeysAliasMap = {
|
||||
ctrl: 'control',
|
||||
command: 'meta',
|
||||
cmd: 'meta',
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { isClient } from '@robonen/platform/multi';
|
||||
|
||||
export const defaultWindow = /* #__PURE__ */ isClient ? globalThis as Window & typeof globalThis : undefined;
|
||||
export const defaultDocument = /* #__PURE__ */ isClient ? globalThis.document : undefined;
|
||||
export const defaultNavigator = /* #__PURE__ */ isClient ? globalThis.navigator : undefined;
|
||||
export const defaultWindow = isClient ? globalThis as Window & typeof globalThis : undefined;
|
||||
export const defaultDocument = isClient ? globalThis.document : undefined;
|
||||
export const defaultNavigator = isClient ? globalThis.navigator : undefined;
|
||||
|
||||
export interface ConfigurableWindow {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user