diff --git a/.env b/.env index c58a6e2b..c7686305 100644 --- a/.env +++ b/.env @@ -45,4 +45,9 @@ NEXT_PUBLIC_IFRAME_AI_ASSISTANT_URL=https://alma.slm-lab.net ROCKET_CHAT_TOKEN=w91TYgkH-Z67Oz72usYdkW5TZLLRwnre7qyAhp7aHJB ROCKET_CHAT_USER_ID=Tpuww59PJKsrGNQJB LEANTIME_TOKEN=lt_lsdShQdoYHaPUWuL07XZR1Rf3GeySsIs_UDlll3VJPk5EwAuILpMC4BwzJ9MZFRrb -LEANTIME_API_URL=https://agilite.slm-lab.net \ No newline at end of file +LEANTIME_API_URL=https://agilite.slm-lab.net + +DB_USER=alma +DB_PASSWORD=Sict33711### +DB_NAME=rivacube +DB_HOST=@https://cube.governance-labs.com \ No newline at end of file diff --git a/app/api/news/route.ts b/app/api/news/route.ts new file mode 100644 index 00000000..97c7a601 --- /dev/null +++ b/app/api/news/route.ts @@ -0,0 +1,69 @@ +import { NextResponse } from 'next/server'; +import { Pool } from 'pg'; + +// Create a new pool using the environment variables +const pool = new Pool({ + user: process.env.DB_USER, + password: process.env.DB_PASSWORD, + host: process.env.DB_HOST?.replace('@https://', ''), + database: process.env.DB_NAME, + ssl: { + rejectUnauthorized: false // Required for some cloud databases + } +}); + +export async function GET() { + try { + // Connect to the database + const client = await pool.connect(); + + try { + // Query the news table for the latest 10 news items + const result = await client.query(` + SELECT + id, + title, + url, + date, + source, + description, + category, + sentiment_score, + sentiment, + symbols, + symbol + FROM news + ORDER BY date DESC + LIMIT 10 + `); + + // Format the response + const news = result.rows.map(row => ({ + id: row.id, + title: row.title, + url: row.url, + date: row.date, + source: row.source, + description: row.description, + category: row.category, + sentiment: { + score: row.sentiment_score, + label: row.sentiment + }, + symbols: row.symbols, + symbol: row.symbol + })); + + return NextResponse.json({ news }); + } finally { + // Release the client back to the pool + client.release(); + } + } catch (error) { + console.error('Database connection error:', error); + return NextResponse.json( + { error: 'Failed to fetch news' }, + { status: 500 } + ); + } +} \ No newline at end of file diff --git a/components/news.tsx b/components/news.tsx index e51ef7b5..3561c460 100644 --- a/components/news.tsx +++ b/components/news.tsx @@ -2,15 +2,26 @@ import { useEffect, useState } from "react"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; -import { Button } from "@/components/ui/button"; -import { RefreshCw } from "lucide-react"; -import { useSession } from "next-auth/react"; +import { formatDistanceToNow } from 'date-fns'; +import { fr } from 'date-fns/locale'; +import Link from 'next/link'; +import { Button } from '@/components/ui/button'; +import { RefreshCw } from 'lucide-react'; interface NewsItem { - id: string; + id: number; title: string; + url: string; date: string; + source: string; + description: string; category: string; + sentiment: { + score: number | null; + label: string | null; + }; + symbols: string[] | null; + symbol: string | null; } export function News() { @@ -18,26 +29,30 @@ export function News() { const [loading, setLoading] = useState(true); const [error, setError] = useState(null); const [refreshing, setRefreshing] = useState(false); - const { status } = useSession(); + const [dbStatus, setDbStatus] = useState<'connecting' | 'connected' | 'error'>('connecting'); const fetchNews = async (isRefresh = false) => { if (isRefresh) setRefreshing(true); setLoading(true); - - // Placeholder data - replace with actual API call - const mockNews = [ - { id: '1', title: 'New Project Management Features Released', date: '2024-03-20', category: 'Product Update' }, - { id: '2', title: 'Team Meeting Schedule Changes', date: '2024-03-19', category: 'Announcement' }, - { id: '3', title: 'Upcoming Training Sessions', date: '2024-03-18', category: 'Training' }, - ]; + setDbStatus('connecting'); try { - // Simulate API call - await new Promise(resolve => setTimeout(resolve, 1000)); - setNews(mockNews); + const response = await fetch('/api/news'); + if (!response.ok) { + throw new Error('Failed to fetch news'); + } + const data = await response.json(); + + if (data.error) { + throw new Error(data.error); + } + + setNews(data.news); setError(null); + setDbStatus('connected'); } catch (err) { - setError('Failed to fetch news'); + setError('Failed to load news. Please try again later.'); + setDbStatus('error'); console.error('Error fetching news:', err); } finally { setLoading(false); @@ -46,63 +61,124 @@ export function News() { }; useEffect(() => { - if (status === 'authenticated') { - fetchNews(); - } - }, [status]); + fetchNews(); + }, []); - if (status === 'loading' || loading) { + if (loading && !refreshing) { return ( - - - News + + + News - -

Loading...

+ +
+
+

+ {dbStatus === 'connecting' ? 'Connecting to database...' : 'Loading news...'} +

+
+
+
+ ); + } + + if (error) { + return ( + + + News + + + +
+

{error}

+

+ {dbStatus === 'error' ? 'Database connection error' : 'Failed to fetch news'} +

+
); } return ( - - - News + + + News - - {error ? ( -

{error}

- ) : ( -
- {news.length === 0 ? ( -

No news available

- ) : ( - news.map((item) => ( -
-
- {item.date} - - {item.category} - + +
+ {news.length === 0 ? ( +
+ No news available +
+ ) : ( + news.map((item) => ( +
+
+
+ + {item.title} + +

+ {item.source} • {formatDistanceToNow(new Date(item.date), { addSuffix: true, locale: fr })} +

+ {item.description && ( +

+ {item.description.replace(/<[^>]*>/g, '')} +

+ )}
-

{item.title}

+ {item.sentiment.score !== null && ( +
0 ? 'bg-green-100 text-green-800' : + item.sentiment.score < 0 ? 'bg-red-100 text-red-800' : + 'bg-gray-100 text-gray-800' + }`}> + {item.sentiment.label || 'Neutral'} +
+ )}
- )) - )} -
- )} + {(item.symbols?.length || item.symbol) && ( +
+ {item.symbols?.map((symbol, index) => ( + + {symbol} + + ))} + {item.symbol && !item.symbols?.includes(item.symbol) && ( + + {item.symbol} + + )} +
+ )} +
+ )) + )} +
); diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 25e2c3e9..82b7cb5b 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -2185,11 +2185,21 @@ "version": "22.10.5", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.5.tgz", "integrity": "sha512-F8Q+SeGimwOo86fiovQh8qiXfFEh2/ocYv7tU5pJ3EXMSSxk1Joj5wefpFK2fHTf/N6HKGSxIDBT9f3gCxXPkQ==", - "dev": true, "dependencies": { "undici-types": "~6.20.0" } }, + "node_modules/@types/pg": { + "version": "8.11.12", + "resolved": "https://registry.npmjs.org/@types/pg/-/pg-8.11.12.tgz", + "integrity": "sha512-D8qPxnq0rgpvZPYwMxAZffxvlk2mtgimLC5kos8uM7+3wPKfTESxtpD49cfB5w1UnodZL7oYnjFHT5+cB3Gw9Q==", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "pg-protocol": "*", + "pg-types": "^4.0.1" + } + }, "node_modules/@types/prop-types": { "version": "15.7.14", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.14.tgz", @@ -2215,16 +2225,6 @@ "date-fns": "^3.3.1" } }, - "node_modules/@types/react-datepicker/node_modules/date-fns": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.6.0.tgz", - "integrity": "sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/kossnocorp" - } - }, "node_modules/@types/react-dom": { "version": "18.3.5", "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.5.tgz", @@ -2675,9 +2675,9 @@ } }, "node_modules/date-fns": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.0.0.tgz", - "integrity": "sha512-xjDz3rNN9jp+Lh3P/4MeY4E5HkaRnEnrJCcrdRZnKdn42gJlIe6hwrrwVXePRwVR2kh1UcMnz00erYBnHF8PFA==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.6.0.tgz", + "integrity": "sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==", "license": "MIT", "funding": { "type": "github", @@ -3407,6 +3407,12 @@ "node": ">= 6" } }, + "node_modules/obuf": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", + "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", + "license": "MIT" + }, "node_modules/oidc-token-hash": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/oidc-token-hash/-/oidc-token-hash-5.0.3.tgz", @@ -3485,6 +3491,161 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/pg": { + "version": "8.14.1", + "resolved": "https://registry.npmjs.org/pg/-/pg-8.14.1.tgz", + "integrity": "sha512-0TdbqfjwIun9Fm/r89oB7RFQ0bLgduAhiIqIXOsyKoiC/L54DbuAAzIEN/9Op0f1Po9X7iCPXGoa/Ah+2aI8Xw==", + "license": "MIT", + "dependencies": { + "pg-connection-string": "^2.7.0", + "pg-pool": "^3.8.0", + "pg-protocol": "^1.8.0", + "pg-types": "^2.1.0", + "pgpass": "1.x" + }, + "engines": { + "node": ">= 8.0.0" + }, + "optionalDependencies": { + "pg-cloudflare": "^1.1.1" + }, + "peerDependencies": { + "pg-native": ">=3.0.1" + }, + "peerDependenciesMeta": { + "pg-native": { + "optional": true + } + } + }, + "node_modules/pg-cloudflare": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.1.1.tgz", + "integrity": "sha512-xWPagP/4B6BgFO+EKz3JONXv3YDgvkbVrGw2mTo3D6tVDQRh1e7cqVGvyR3BE+eQgAvx1XhW/iEASj4/jCWl3Q==", + "license": "MIT", + "optional": true + }, + "node_modules/pg-connection-string": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.7.0.tgz", + "integrity": "sha512-PI2W9mv53rXJQEOb8xNR8lH7Hr+EKa6oJa38zsK0S/ky2er16ios1wLKhZyxzD7jUReiWokc9WK5nxSnC7W1TA==", + "license": "MIT" + }, + "node_modules/pg-int8": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", + "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==", + "license": "ISC", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/pg-numeric": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pg-numeric/-/pg-numeric-1.0.2.tgz", + "integrity": "sha512-BM/Thnrw5jm2kKLE5uJkXqqExRUY/toLHda65XgFTBTFYZyopbKjBe29Ii3RbkvlsMoFwD+tHeGaCjjv0gHlyw==", + "license": "ISC", + "engines": { + "node": ">=4" + } + }, + "node_modules/pg-pool": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.8.0.tgz", + "integrity": "sha512-VBw3jiVm6ZOdLBTIcXLNdSotb6Iy3uOCwDGFAksZCXmi10nyRvnP2v3jl4d+IsLYRyXf6o9hIm/ZtUzlByNUdw==", + "license": "MIT", + "peerDependencies": { + "pg": ">=8.0" + } + }, + "node_modules/pg-protocol": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.8.0.tgz", + "integrity": "sha512-jvuYlEkL03NRvOoyoRktBK7+qU5kOvlAwvmrH8sr3wbLrOdVWsRxQfz8mMy9sZFsqJ1hEWNfdWKI4SAmoL+j7g==", + "license": "MIT" + }, + "node_modules/pg-types": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-4.0.2.tgz", + "integrity": "sha512-cRL3JpS3lKMGsKaWndugWQoLOCoP+Cic8oseVcbr0qhPzYD5DWXK+RZ9LY9wxRf7RQia4SCwQlXk0q6FCPrVng==", + "license": "MIT", + "dependencies": { + "pg-int8": "1.0.1", + "pg-numeric": "1.0.2", + "postgres-array": "~3.0.1", + "postgres-bytea": "~3.0.0", + "postgres-date": "~2.1.0", + "postgres-interval": "^3.0.0", + "postgres-range": "^1.1.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/pg/node_modules/pg-types": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", + "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", + "license": "MIT", + "dependencies": { + "pg-int8": "1.0.1", + "postgres-array": "~2.0.0", + "postgres-bytea": "~1.0.0", + "postgres-date": "~1.0.4", + "postgres-interval": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pg/node_modules/postgres-array": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", + "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/pg/node_modules/postgres-bytea": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.0.tgz", + "integrity": "sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pg/node_modules/postgres-date": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", + "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pg/node_modules/postgres-interval": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", + "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", + "license": "MIT", + "dependencies": { + "xtend": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pgpass": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz", + "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==", + "license": "MIT", + "dependencies": { + "split2": "^4.1.0" + } + }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -3653,6 +3814,51 @@ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" }, + "node_modules/postgres-array": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-3.0.4.tgz", + "integrity": "sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ==", + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/postgres-bytea": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-3.0.0.tgz", + "integrity": "sha512-CNd4jim9RFPkObHSjVHlVrxoVQXz7quwNFpz7RY1okNNme49+sVyiTvTRobiLV548Hx/hb1BG+iE7h9493WzFw==", + "license": "MIT", + "dependencies": { + "obuf": "~1.1.2" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/postgres-date": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-2.1.0.tgz", + "integrity": "sha512-K7Juri8gtgXVcDfZttFKVmhglp7epKb1K4pgrkLxehjqkrgPhfG6OO8LHLkfaqkbpjNRnra018XwAr1yQFWGcA==", + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/postgres-interval": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-3.0.0.tgz", + "integrity": "sha512-BSNDnbyZCXSxgA+1f5UU2GmwhoI0aU5yMxRGO8CdFEcY2BQF9xm/7MqKnYoM1nJDk8nONNWDk9WeSmePFhQdlw==", + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/postgres-range": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/postgres-range/-/postgres-range-1.1.4.tgz", + "integrity": "sha512-i/hbxIE9803Alj/6ytL7UHQxRvZkI9O4Sy+J3HGc4F4oo/2eQAjTSNJ0bfxyse3bH0nuVesCk+3IRLaMtG3H6w==", + "license": "MIT" + }, "node_modules/preact": { "version": "10.26.2", "resolved": "https://registry.npmjs.org/preact/-/preact-10.26.2.tgz", @@ -4112,6 +4318,15 @@ "node": ">=0.10.0" } }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "license": "ISC", + "engines": { + "node": ">= 10.x" + } + }, "node_modules/streamsearch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", @@ -4382,8 +4597,7 @@ "node_modules/undici-types": { "version": "6.20.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", - "dev": true + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==" }, "node_modules/update-browserslist-db": { "version": "1.1.2", @@ -4608,6 +4822,15 @@ "node": ">=8" } }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "license": "MIT", + "engines": { + "node": ">=0.4" + } + }, "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", diff --git a/node_modules/date-fns/CHANGELOG.md b/node_modules/date-fns/CHANGELOG.md index 4985b549..af29c1de 100644 --- a/node_modules/date-fns/CHANGELOG.md +++ b/node_modules/date-fns/CHANGELOG.md @@ -8,11 +8,159 @@ This change log follows the format documented in [Keep a CHANGELOG]. [semantic versioning]: http://semver.org/ [keep a changelog]: http://keepachangelog.com/ -Kudos to @kossnocorp, @maximtop, @leshakoss and @tan75 for working on the release. +## v3.6.0 - 2024-03-18 -## v3.0.0 - 2023-12-03 +On this release worked @kossnocorp and @world1dan. Also, thanks to [@seated](https://github.com/seated) [for sponsoring me](https://github.com/sponsors/kossnocorp). -## Changed +### Fixed + +- [Fixed weeks in the Belarisuan locale's `formatDistance`.](https://github.com/date-fns/date-fns/pull/3720) + +### Added + +- [Added CDN versions of modules compatible with older browsers.](https://github.com/date-fns/date-fns/pull/3737) [See the CDN guide.](https://date-fns.org/docs/CDN) + +## v3.5.0 - 2024-03-15 + +Kudos to @fturmel, @kossnocorp, @makstyle119, @tan75, @marcreichel, @tareknatsheh and @audunru for working on the release. Also, thanks to [@seated](https://github.com/seated) [for sponsoring me](https://github.com/sponsors/kossnocorp). + +### Fixed + +- [Fixed functions that use current date internally and made them work with date extensions like `UTCDate`.](https://github.com/date-fns/date-fns/issues/3730) + +- [Fixed `daysToWeeks` returning negative 0.](https://github.com/date-fns/date-fns/commit/882ced61c692c7c4a79eaaec6eb07cb9c8c9195b) + +- [Fixed German grammar for the "half a minute" string.](https://github.com/date-fns/date-fns/pull/3715) + +### Added + +- [Added the Northern Sámi (`se`) locale.](https://github.com/date-fns/date-fns/pull/3724) + +- Added the `constructNow` function that creates the current date using the passed reference date's constructor. + +## v3.4.0 - 2024-03-11 + +Kudos to @kossnocorp, @sakamossan and @Revan99 for working on the release. Also, thanks to [@seated](https://github.com/seated) [for sponsoring me](https://github.com/sponsors/kossnocorp). + +### Added + +- [Added `roundToNearestHours` function.](https://github.com/date-fns/date-fns/pull/2752) + +- [Added Central Kurdish (`ckb`) locale.](https://github.com/date-fns/date-fns/pull/3421) + +## v3.3.1 - 2024-01-22 + +Kudos to @kossnocorp and @fturmel for working on the release. + +### Fixed + +- Fixed DST issue in `getOverlappingDaysInIntervals`, resulting in an inconsistent number of days returned for intervals starting and ending in different DST periods. + +- Fixed functions incorrectly using `trunc` instead of `round`. The bug was introduced in v3.3.0. The affected functions: `differenceInCalendarDays`, `differenceInCalendarISOWeeks`, `differenceInCalendarWeeks`, `getISOWeek`, `getWeek`, and `getISOWeeksInYear`. + +## v3.3.0 - 2024-01-20 + +On this release worked @kossnocorp, @TheKvikk, @fturmel and @ckcherry23. + +### Fixed + +- Fixed the bug in `getOverlappingDaysInIntervals` caused by incorrect sorting of interval components that led to 0 for timestamps of different lengths. + +- Fixed bugs when working with negative numbers caused by using `Math.floor` (`-1.1` → `-2`) instead of `Math.trunc` (`-1.1` → `-1`). Most of the conversion functions (i.e., `hoursToMinutes`) were affected when passing some negative fractional input. Also, some other functions that could be possibly affected by unfortunate timezone/date combinations were fixed. + + The functions that were affected: `format`, `parse`, `getUnixTime`, `daysToWeeks`, `hoursToMilliseconds`, `hoursToMinutes`, `hoursToSeconds`, `milliseconds`, `minutesToMilliseconds`, `millisecondsToMinutes`, `monthsToYears`, `millisecondsToHours`, `millisecondsToSeconds`, `minutesToHours`, `minutesToSeconds`, `yearsToQuarters`, `yearsToMonths`, `yearsToDays`, `weeksToDays`, `secondsToMinutes`, `secondsToHours`, `quartersToYears`, `quartersToMonths` and `monthsToQuarters`. + +- [Fixed the Czech locale's `formatDistance` to include `1` in `formatDistance`.](https://github.com/date-fns/date-fns/pull/3269) + +- Fixed `differenceInSeconds` and other functions relying on rounding options that can produce a negative 0. + +- [Added a preprocessor to the locales API, enabling fixing a long-standing bug in the French locale.](https://github.com/date-fns/date-fns/pull/3662) ([#1391](https://github.com/date-fns/date-fns/issues/1391)) + +- Added missing `yearsToDays` to the FP submodule. + +- Made functions using rounding methods always return `0` instead of `-0`. + +### Added + +- [Added `format` alias `formatDate` with corresponding `FormatDateOptions` interface](https://github.com/date-fns/date-fns/pull/3653). + +## v3.2.0 - 2024-01-09 + +This release is brought to you by @kossnocorp, @fturmel, @grossbart, @MelvinVermeer, and @jcarstairs-scottlogic. + +### Fixed + +- Fixed types compatability with Lodash's `flow` and fp-ts's `pipe`. ([#3641](https://github.com/date-fns/date-fns/issues/3641)) + +- [Fixed inconsistent behavior of `roundToNearestMinutes`.](https://github.com/date-fns/date-fns/pull/3132) + +### Added + +- Added exports of `format`, `lightFormat`, and `parse` internals that enable 3rd-parties to consume those. + +## v3.1.0 - 2024-01-05 + +This release is brought to you by @kossnocorp, @makstyle119 and @dmgawel. + +### Fixed + +- [Fixed the plural form of weeks in Swedish](https://github.com/date-fns/date-fns/pull/3448). + +### Added + +- [Added `yearsToDays` function](https://github.com/date-fns/date-fns/pull/3540). + +- Added warning about using protected tokens like `Y` or `D` without passing a corresponding option. [See #2950](https://github.com/date-fns/date-fns/issues/2950). + +## v3.0.6 - 2023-12-22 + +On this release worked @imwh0im, @jamcry and @tyrw. + +### Fixed + +- [Fixed bug in `areIntervalsOverlapping` caused by incorrect sorting](https://github.com/date-fns/date-fns/pull/3628) ([#3614](https://github.com/date-fns/date-fns/issues/3614)) + +## v3.0.5 - 2023-12-21 + +This release is brought to you by @goku4199. + +### Fixed + +- [Fixed internal `toDate` not processing string arguments properly](https://github.com/date-fns/date-fns/pull/3626) + +## v3.0.4 - 2023-12-21 + +This release is brought to you by @kossnocorp. + +### Fixed + +- Fixed isWithinInterval bug caused by incorrectly sorting dates ([#3623](https://github.com/date-fns/date-fns/issues/3623)). + +## v3.0.3 - 2023-12-21 + +### Fixed + +- Rolled back pointing ESM types to the same `d.ts` files. Instead now it copies the content to avoid [the Masquerading as CJS problem](https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseCJS.md) reported by "Are the types wrong?". + +## v3.0.2 - 2023-12-21 + +### Fixed + +- Fixed [yet another issue caused by ESM types](https://github.com/date-fns/date-fns/issues/3620) by pointing to the same `d.ts` files. + +- [Added `package.json` to exports](https://github.com/date-fns/date-fns/pull/3601) to provide access to tooling. + +- [Fixed TypeScript 5.4 build break](https://github.com/date-fns/date-fns/pull/3598) by using the latest type names. + +## v3.0.1 - 2023-12-20 + +### Fixed + +- [Fixed an error](https://github.com/date-fns/date-fns/pull/3618) in certain environments caused by `d.mts` files exporting only types. + +## v3.0.0 - 2023-12-18 + +### Changed - **BREAKING**: date-fns is now a dual-package with the support of both ESM and CommonJS. The files exports are now explicitly in the `package.json`. The ESM files now have `.mjs` extension. diff --git a/node_modules/date-fns/README.md b/node_modules/date-fns/README.md index 3258edf7..cb128d66 100644 --- a/node_modules/date-fns/README.md +++ b/node_modules/date-fns/README.md @@ -1,36 +1,22 @@ -⚠️ **Warning**: the current `main` represents v3 pre-release version of the library. [See `v2` branch](https://github.com/date-fns/date-fns/tree/v2). +🎉️ **NEW**: [date-fns v3 is out!](https://blog.date-fns.org/v3-is-out/) -If you're participating in hacktoberfest, please send your PRs to `main`. +date-fns + +date-fns provides the most comprehensive, yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js + +👉 [Documentation](https://date-fns.org/) + +👉 [Blog](https://blog.date-fns.org/)
-

- - date-fns - -

- -

- date-fns provides the most comprehensive, yet simple and consistent toolset -
- for manipulating JavaScript dates in a browser & Node.js. -

- -
- -[📖  Documentation](https://date-fns.org/docs/Getting-Started/)   |   [🧑‍💻  JavaScript Jobs](https://jobs.date-fns.org/) - -
- -
- -# It's like [Lodash](https://lodash.com) for dates +It's like [Lodash](https://lodash.com) for dates - It has [**200+ functions** for all occasions](https://date-fns.org/docs/Getting-Started/). - **Modular**: Pick what you need. Works with webpack, Browserify, or Rollup and also supports tree-shaking. - **Native dates**: Uses existing native type. It doesn't extend core objects for safety's sake. - **Immutable & Pure**: Built using pure functions and always returns a new date instance. -- **TypeScript & Flow**: Supports both Flow and TypeScript +- **TypeScript**: The library is 100% TypeScript with brand-new handcrafted types. - **I18n**: Dozens of locales. Include only what you need. - [and many more benefits](https://date-fns.org/) @@ -58,8 +44,6 @@ To install the package run: ```bash npm install date-fns --save -# or with yarn -yarn add date-fns ``` ## Docs diff --git a/node_modules/date-fns/_lib/addLeadingZeros.d.mts b/node_modules/date-fns/_lib/addLeadingZeros.d.mts index f949fb86..812d8c65 100644 --- a/node_modules/date-fns/_lib/addLeadingZeros.d.mts +++ b/node_modules/date-fns/_lib/addLeadingZeros.d.mts @@ -1 +1,4 @@ -export type * from "./addLeadingZeros.d.ts"; +export declare function addLeadingZeros( + number: number, + targetLength: number, +): string; diff --git a/node_modules/date-fns/_lib/defaultLocale.d.mts b/node_modules/date-fns/_lib/defaultLocale.d.mts index d5529112..016e184d 100644 --- a/node_modules/date-fns/_lib/defaultLocale.d.mts +++ b/node_modules/date-fns/_lib/defaultLocale.d.mts @@ -1 +1 @@ -export type * from "./defaultLocale.d.ts"; +export { enUS as defaultLocale } from "../locale/en-US.js"; diff --git a/node_modules/date-fns/_lib/defaultOptions.d.mts b/node_modules/date-fns/_lib/defaultOptions.d.mts index ac236f12..f766bd03 100644 --- a/node_modules/date-fns/_lib/defaultOptions.d.mts +++ b/node_modules/date-fns/_lib/defaultOptions.d.mts @@ -1 +1,11 @@ -export type * from "./defaultOptions.d.ts"; +import type { + FirstWeekContainsDateOptions, + Locale, + LocalizedOptions, + WeekOptions, +} from "../types.js"; +export type DefaultOptions = LocalizedOptions & + WeekOptions & + FirstWeekContainsDateOptions; +export declare function getDefaultOptions(): DefaultOptions; +export declare function setDefaultOptions(newOptions: DefaultOptions): void; diff --git a/node_modules/date-fns/_lib/format/formatters.d.mts b/node_modules/date-fns/_lib/format/formatters.d.mts index 37811a5b..074f682c 100644 --- a/node_modules/date-fns/_lib/format/formatters.d.mts +++ b/node_modules/date-fns/_lib/format/formatters.d.mts @@ -1 +1,18 @@ -export type * from "./formatters.d.ts"; +import type { Localize } from "../../locale/types.js"; +import type { + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "../../types.js"; +type Formatter = ( + date: Date, + token: string, + localize: Localize, + options: Required< + LocalizedOptions<"options"> & WeekOptions & FirstWeekContainsDateOptions + >, +) => string; +export declare const formatters: { + [token: string]: Formatter; +}; +export {}; diff --git a/node_modules/date-fns/_lib/format/formatters.d.ts b/node_modules/date-fns/_lib/format/formatters.d.ts index 05ceca65..074f682c 100644 --- a/node_modules/date-fns/_lib/format/formatters.d.ts +++ b/node_modules/date-fns/_lib/format/formatters.d.ts @@ -10,9 +10,7 @@ type Formatter = ( localize: Localize, options: Required< LocalizedOptions<"options"> & WeekOptions & FirstWeekContainsDateOptions - > & { - _originalDate: Date; - }, + >, ) => string; export declare const formatters: { [token: string]: Formatter; diff --git a/node_modules/date-fns/_lib/format/formatters.js b/node_modules/date-fns/_lib/format/formatters.js index f9ec9cd2..df75cb61 100644 --- a/node_modules/date-fns/_lib/format/formatters.js +++ b/node_modules/date-fns/_lib/format/formatters.js @@ -649,9 +649,8 @@ const formatters = (exports.formatters = { }, // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) - X: function (date, token, _localize, options) { - const originalDate = options._originalDate || date; - const timezoneOffset = originalDate.getTimezoneOffset(); + X: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); if (timezoneOffset === 0) { return "Z"; @@ -680,9 +679,8 @@ const formatters = (exports.formatters = { }, // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) - x: function (date, token, _localize, options) { - const originalDate = options._originalDate || date; - const timezoneOffset = originalDate.getTimezoneOffset(); + x: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); switch (token) { // Hours and optional minutes @@ -707,9 +705,8 @@ const formatters = (exports.formatters = { }, // Timezone (GMT) - O: function (date, token, _localize, options) { - const originalDate = options._originalDate || date; - const timezoneOffset = originalDate.getTimezoneOffset(); + O: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); switch (token) { // Short @@ -725,9 +722,8 @@ const formatters = (exports.formatters = { }, // Timezone (specific non-location) - z: function (date, token, _localize, options) { - const originalDate = options._originalDate || date; - const timezoneOffset = originalDate.getTimezoneOffset(); + z: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); switch (token) { // Short @@ -743,16 +739,14 @@ const formatters = (exports.formatters = { }, // Seconds timestamp - t: function (date, token, _localize, options) { - const originalDate = options._originalDate || date; - const timestamp = Math.floor(originalDate.getTime() / 1000); + t: function (date, token, _localize) { + const timestamp = Math.trunc(date.getTime() / 1000); return (0, _index6.addLeadingZeros)(timestamp, token.length); }, // Milliseconds timestamp - T: function (date, token, _localize, options) { - const originalDate = options._originalDate || date; - const timestamp = originalDate.getTime(); + T: function (date, token, _localize) { + const timestamp = date.getTime(); return (0, _index6.addLeadingZeros)(timestamp, token.length); }, }); @@ -760,7 +754,7 @@ const formatters = (exports.formatters = { function formatTimezoneShort(offset, delimiter = "") { const sign = offset > 0 ? "-" : "+"; const absOffset = Math.abs(offset); - const hours = Math.floor(absOffset / 60); + const hours = Math.trunc(absOffset / 60); const minutes = absOffset % 60; if (minutes === 0) { return sign + String(hours); @@ -781,7 +775,7 @@ function formatTimezoneWithOptionalMinutes(offset, delimiter) { function formatTimezone(offset, delimiter = "") { const sign = offset > 0 ? "-" : "+"; const absOffset = Math.abs(offset); - const hours = (0, _index6.addLeadingZeros)(Math.floor(absOffset / 60), 2); + const hours = (0, _index6.addLeadingZeros)(Math.trunc(absOffset / 60), 2); const minutes = (0, _index6.addLeadingZeros)(absOffset % 60, 2); return sign + hours + delimiter + minutes; } diff --git a/node_modules/date-fns/_lib/format/formatters.mjs b/node_modules/date-fns/_lib/format/formatters.mjs index e73990d3..525ba587 100644 --- a/node_modules/date-fns/_lib/format/formatters.mjs +++ b/node_modules/date-fns/_lib/format/formatters.mjs @@ -646,9 +646,8 @@ export const formatters = { }, // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) - X: function (date, token, _localize, options) { - const originalDate = options._originalDate || date; - const timezoneOffset = originalDate.getTimezoneOffset(); + X: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); if (timezoneOffset === 0) { return "Z"; @@ -677,9 +676,8 @@ export const formatters = { }, // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) - x: function (date, token, _localize, options) { - const originalDate = options._originalDate || date; - const timezoneOffset = originalDate.getTimezoneOffset(); + x: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); switch (token) { // Hours and optional minutes @@ -704,9 +702,8 @@ export const formatters = { }, // Timezone (GMT) - O: function (date, token, _localize, options) { - const originalDate = options._originalDate || date; - const timezoneOffset = originalDate.getTimezoneOffset(); + O: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); switch (token) { // Short @@ -722,9 +719,8 @@ export const formatters = { }, // Timezone (specific non-location) - z: function (date, token, _localize, options) { - const originalDate = options._originalDate || date; - const timezoneOffset = originalDate.getTimezoneOffset(); + z: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); switch (token) { // Short @@ -740,16 +736,14 @@ export const formatters = { }, // Seconds timestamp - t: function (date, token, _localize, options) { - const originalDate = options._originalDate || date; - const timestamp = Math.floor(originalDate.getTime() / 1000); + t: function (date, token, _localize) { + const timestamp = Math.trunc(date.getTime() / 1000); return addLeadingZeros(timestamp, token.length); }, // Milliseconds timestamp - T: function (date, token, _localize, options) { - const originalDate = options._originalDate || date; - const timestamp = originalDate.getTime(); + T: function (date, token, _localize) { + const timestamp = date.getTime(); return addLeadingZeros(timestamp, token.length); }, }; @@ -757,7 +751,7 @@ export const formatters = { function formatTimezoneShort(offset, delimiter = "") { const sign = offset > 0 ? "-" : "+"; const absOffset = Math.abs(offset); - const hours = Math.floor(absOffset / 60); + const hours = Math.trunc(absOffset / 60); const minutes = absOffset % 60; if (minutes === 0) { return sign + String(hours); @@ -776,7 +770,7 @@ function formatTimezoneWithOptionalMinutes(offset, delimiter) { function formatTimezone(offset, delimiter = "") { const sign = offset > 0 ? "-" : "+"; const absOffset = Math.abs(offset); - const hours = addLeadingZeros(Math.floor(absOffset / 60), 2); + const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2); const minutes = addLeadingZeros(absOffset % 60, 2); return sign + hours + delimiter + minutes; } diff --git a/node_modules/date-fns/_lib/format/lightFormatters.d.mts b/node_modules/date-fns/_lib/format/lightFormatters.d.mts index 5e3eb814..602bbf62 100644 --- a/node_modules/date-fns/_lib/format/lightFormatters.d.mts +++ b/node_modules/date-fns/_lib/format/lightFormatters.d.mts @@ -1 +1,11 @@ -export type * from "./lightFormatters.d.ts"; +export declare const lightFormatters: { + y(date: Date, token: string): string; + M(date: Date, token: string): string; + d(date: Date, token: string): string; + a(date: Date, token: string): string; + h(date: Date, token: string): string; + H(date: Date, token: string): string; + m(date: Date, token: string): string; + s(date: Date, token: string): string; + S(date: Date, token: string): string; +}; diff --git a/node_modules/date-fns/_lib/format/lightFormatters.js b/node_modules/date-fns/_lib/format/lightFormatters.js index 4dfadf28..64ccde61 100644 --- a/node_modules/date-fns/_lib/format/lightFormatters.js +++ b/node_modules/date-fns/_lib/format/lightFormatters.js @@ -94,7 +94,7 @@ const lightFormatters = (exports.lightFormatters = { S(date, token) { const numberOfDigits = token.length; const milliseconds = date.getMilliseconds(); - const fractionalSeconds = Math.floor( + const fractionalSeconds = Math.trunc( milliseconds * Math.pow(10, numberOfDigits - 3), ); return (0, _index.addLeadingZeros)(fractionalSeconds, token.length); diff --git a/node_modules/date-fns/_lib/format/lightFormatters.mjs b/node_modules/date-fns/_lib/format/lightFormatters.mjs index 89627efa..49d6f497 100644 --- a/node_modules/date-fns/_lib/format/lightFormatters.mjs +++ b/node_modules/date-fns/_lib/format/lightFormatters.mjs @@ -84,7 +84,7 @@ export const lightFormatters = { S(date, token) { const numberOfDigits = token.length; const milliseconds = date.getMilliseconds(); - const fractionalSeconds = Math.floor( + const fractionalSeconds = Math.trunc( milliseconds * Math.pow(10, numberOfDigits - 3), ); return addLeadingZeros(fractionalSeconds, token.length); diff --git a/node_modules/date-fns/_lib/format/longFormatters.d.mts b/node_modules/date-fns/_lib/format/longFormatters.d.mts index ab656213..db801d5b 100644 --- a/node_modules/date-fns/_lib/format/longFormatters.d.mts +++ b/node_modules/date-fns/_lib/format/longFormatters.d.mts @@ -1 +1,4 @@ -export type * from "./longFormatters.d.ts"; +import type { FormatLong } from "../../locale/types.js"; +type LongFormatter = (pattern: string, formatLong: FormatLong) => string; +export declare const longFormatters: Record; +export {}; diff --git a/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.mts b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.mts index 632f2243..fc0b9def 100644 --- a/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.mts +++ b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.mts @@ -1 +1,14 @@ -export type * from "./getTimezoneOffsetInMilliseconds.d.ts"; +/** + * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. + * They usually appear for dates that denote time before the timezones were introduced + * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 + * and GMT+01:00:00 after that date) + * + * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, + * which would lead to incorrect calculations. + * + * This function returns the timezone offset in milliseconds that takes seconds in account. + */ +export declare function getTimezoneOffsetInMilliseconds( + date: Date | number | string, +): number; diff --git a/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.ts b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.ts index 47a7764b..fc0b9def 100644 --- a/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.ts +++ b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.ts @@ -9,4 +9,6 @@ * * This function returns the timezone offset in milliseconds that takes seconds in account. */ -export declare function getTimezoneOffsetInMilliseconds(date: Date): number; +export declare function getTimezoneOffsetInMilliseconds( + date: Date | number | string, +): number; diff --git a/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js index b0b04b51..26f0160f 100644 --- a/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +++ b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js @@ -1,5 +1,8 @@ "use strict"; -exports.getTimezoneOffsetInMilliseconds = getTimezoneOffsetInMilliseconds; /** +exports.getTimezoneOffsetInMilliseconds = getTimezoneOffsetInMilliseconds; +var _index = require("../toDate.js"); + +/** * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. * They usually appear for dates that denote time before the timezones were introduced * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 @@ -11,17 +14,18 @@ exports.getTimezoneOffsetInMilliseconds = getTimezoneOffsetInMilliseconds; /** * This function returns the timezone offset in milliseconds that takes seconds in account. */ function getTimezoneOffsetInMilliseconds(date) { + const _date = (0, _index.toDate)(date); const utcDate = new Date( Date.UTC( - date.getFullYear(), - date.getMonth(), - date.getDate(), - date.getHours(), - date.getMinutes(), - date.getSeconds(), - date.getMilliseconds(), + _date.getFullYear(), + _date.getMonth(), + _date.getDate(), + _date.getHours(), + _date.getMinutes(), + _date.getSeconds(), + _date.getMilliseconds(), ), ); - utcDate.setUTCFullYear(date.getFullYear()); - return date.getTime() - utcDate.getTime(); + utcDate.setUTCFullYear(_date.getFullYear()); + return +date - +utcDate; } diff --git a/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs index 0c79580d..1cb5776f 100644 --- a/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs +++ b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs @@ -1,3 +1,5 @@ +import { toDate } from "../toDate.mjs"; + /** * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. * They usually appear for dates that denote time before the timezones were introduced @@ -10,17 +12,18 @@ * This function returns the timezone offset in milliseconds that takes seconds in account. */ export function getTimezoneOffsetInMilliseconds(date) { + const _date = toDate(date); const utcDate = new Date( Date.UTC( - date.getFullYear(), - date.getMonth(), - date.getDate(), - date.getHours(), - date.getMinutes(), - date.getSeconds(), - date.getMilliseconds(), + _date.getFullYear(), + _date.getMonth(), + _date.getDate(), + _date.getHours(), + _date.getMinutes(), + _date.getSeconds(), + _date.getMilliseconds(), ), ); - utcDate.setUTCFullYear(date.getFullYear()); - return date.getTime() - utcDate.getTime(); + utcDate.setUTCFullYear(_date.getFullYear()); + return +date - +utcDate; } diff --git a/node_modules/date-fns/_lib/protectedTokens.d.mts b/node_modules/date-fns/_lib/protectedTokens.d.mts index f751c33d..ba5feba8 100644 --- a/node_modules/date-fns/_lib/protectedTokens.d.mts +++ b/node_modules/date-fns/_lib/protectedTokens.d.mts @@ -1 +1,7 @@ -export type * from "./protectedTokens.d.ts"; +export declare function isProtectedDayOfYearToken(token: string): boolean; +export declare function isProtectedWeekYearToken(token: string): boolean; +export declare function warnOrThrowProtectedError( + token: string, + format: string, + input: string, +): void; diff --git a/node_modules/date-fns/_lib/protectedTokens.d.ts b/node_modules/date-fns/_lib/protectedTokens.d.ts index 2b54f9a8..ba5feba8 100644 --- a/node_modules/date-fns/_lib/protectedTokens.d.ts +++ b/node_modules/date-fns/_lib/protectedTokens.d.ts @@ -1,6 +1,6 @@ export declare function isProtectedDayOfYearToken(token: string): boolean; export declare function isProtectedWeekYearToken(token: string): boolean; -export declare function throwProtectedError( +export declare function warnOrThrowProtectedError( token: string, format: string, input: string, diff --git a/node_modules/date-fns/_lib/protectedTokens.js b/node_modules/date-fns/_lib/protectedTokens.js index 0b728994..64b6090c 100644 --- a/node_modules/date-fns/_lib/protectedTokens.js +++ b/node_modules/date-fns/_lib/protectedTokens.js @@ -1,34 +1,27 @@ "use strict"; exports.isProtectedDayOfYearToken = isProtectedDayOfYearToken; exports.isProtectedWeekYearToken = isProtectedWeekYearToken; -exports.throwProtectedError = throwProtectedError; -const protectedDayOfYearTokens = ["D", "DD"]; -const protectedWeekYearTokens = ["YY", "YYYY"]; +exports.warnOrThrowProtectedError = warnOrThrowProtectedError; +const dayOfYearTokenRE = /^D+$/; +const weekYearTokenRE = /^Y+$/; + +const throwTokens = ["D", "DD", "YY", "YYYY"]; function isProtectedDayOfYearToken(token) { - return protectedDayOfYearTokens.indexOf(token) !== -1; + return dayOfYearTokenRE.test(token); } function isProtectedWeekYearToken(token) { - return protectedWeekYearTokens.indexOf(token) !== -1; + return weekYearTokenRE.test(token); } -function throwProtectedError(token, format, input) { - if (token === "YYYY") { - throw new RangeError( - `Use \`yyyy\` instead of \`YYYY\` (in \`${format}\`) for formatting years to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`, - ); - } else if (token === "YY") { - throw new RangeError( - `Use \`yy\` instead of \`YY\` (in \`${format}\`) for formatting years to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`, - ); - } else if (token === "D") { - throw new RangeError( - `Use \`d\` instead of \`D\` (in \`${format}\`) for formatting days of the month to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`, - ); - } else if (token === "DD") { - throw new RangeError( - `Use \`dd\` instead of \`DD\` (in \`${format}\`) for formatting days of the month to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`, - ); - } +function warnOrThrowProtectedError(token, format, input) { + const _message = message(token, format, input); + console.warn(_message); + if (throwTokens.includes(token)) throw new RangeError(_message); +} + +function message(token, format, input) { + const subject = token[0] === "Y" ? "years" : "days of the month"; + return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`; } diff --git a/node_modules/date-fns/_lib/protectedTokens.mjs b/node_modules/date-fns/_lib/protectedTokens.mjs index f99f2e30..38a13fa4 100644 --- a/node_modules/date-fns/_lib/protectedTokens.mjs +++ b/node_modules/date-fns/_lib/protectedTokens.mjs @@ -1,30 +1,23 @@ -const protectedDayOfYearTokens = ["D", "DD"]; -const protectedWeekYearTokens = ["YY", "YYYY"]; +const dayOfYearTokenRE = /^D+$/; +const weekYearTokenRE = /^Y+$/; + +const throwTokens = ["D", "DD", "YY", "YYYY"]; export function isProtectedDayOfYearToken(token) { - return protectedDayOfYearTokens.indexOf(token) !== -1; + return dayOfYearTokenRE.test(token); } export function isProtectedWeekYearToken(token) { - return protectedWeekYearTokens.indexOf(token) !== -1; + return weekYearTokenRE.test(token); } -export function throwProtectedError(token, format, input) { - if (token === "YYYY") { - throw new RangeError( - `Use \`yyyy\` instead of \`YYYY\` (in \`${format}\`) for formatting years to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`, - ); - } else if (token === "YY") { - throw new RangeError( - `Use \`yy\` instead of \`YY\` (in \`${format}\`) for formatting years to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`, - ); - } else if (token === "D") { - throw new RangeError( - `Use \`d\` instead of \`D\` (in \`${format}\`) for formatting days of the month to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`, - ); - } else if (token === "DD") { - throw new RangeError( - `Use \`dd\` instead of \`DD\` (in \`${format}\`) for formatting days of the month to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`, - ); - } +export function warnOrThrowProtectedError(token, format, input) { + const _message = message(token, format, input); + console.warn(_message); + if (throwTokens.includes(token)) throw new RangeError(_message); +} + +function message(token, format, input) { + const subject = token[0] === "Y" ? "years" : "days of the month"; + return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`; } diff --git a/node_modules/date-fns/_lib/roundingMethods.d.mts b/node_modules/date-fns/_lib/roundingMethods.d.mts deleted file mode 100644 index fcf27f3e..00000000 --- a/node_modules/date-fns/_lib/roundingMethods.d.mts +++ /dev/null @@ -1 +0,0 @@ -export type * from "./roundingMethods.d.ts"; diff --git a/node_modules/date-fns/_lib/roundingMethods.d.ts b/node_modules/date-fns/_lib/roundingMethods.d.ts deleted file mode 100644 index 49c7d0ea..00000000 --- a/node_modules/date-fns/_lib/roundingMethods.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { RoundingMethod } from "../types.js"; -export declare function getRoundingMethod( - method: RoundingMethod | undefined, -): (x: number) => number; diff --git a/node_modules/date-fns/_lib/roundingMethods.js b/node_modules/date-fns/_lib/roundingMethods.js deleted file mode 100644 index ce733dcb..00000000 --- a/node_modules/date-fns/_lib/roundingMethods.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -exports.getRoundingMethod = getRoundingMethod; - -function getRoundingMethod(method) { - return method ? Math[method] : Math.trunc; -} diff --git a/node_modules/date-fns/_lib/roundingMethods.mjs b/node_modules/date-fns/_lib/roundingMethods.mjs deleted file mode 100644 index 24cda5fe..00000000 --- a/node_modules/date-fns/_lib/roundingMethods.mjs +++ /dev/null @@ -1,3 +0,0 @@ -export function getRoundingMethod(method) { - return method ? Math[method] : Math.trunc; -} diff --git a/node_modules/date-fns/_lib/test.d.mts b/node_modules/date-fns/_lib/test.d.mts index 04a96a09..6245167f 100644 --- a/node_modules/date-fns/_lib/test.d.mts +++ b/node_modules/date-fns/_lib/test.d.mts @@ -1 +1,3 @@ -export type * from "./test.d.ts"; +export declare function assertType(_: T): void; +export declare function resetDefaultOptions(): void; +export declare function generateOffset(originalDate: Date): string; diff --git a/node_modules/date-fns/_lib/test.js b/node_modules/date-fns/_lib/test.js index 40051ecb..661d850c 100644 --- a/node_modules/date-fns/_lib/test.js +++ b/node_modules/date-fns/_lib/test.js @@ -20,7 +20,7 @@ function generateOffset(originalDate) { if (tzOffset !== 0) { const absoluteOffset = Math.abs(tzOffset); const hourOffset = (0, _index.addLeadingZeros)( - Math.floor(absoluteOffset / 60), + Math.trunc(absoluteOffset / 60), 2, ); const minuteOffset = (0, _index.addLeadingZeros)(absoluteOffset % 60, 2); diff --git a/node_modules/date-fns/_lib/test.mjs b/node_modules/date-fns/_lib/test.mjs index c5375503..e92dd369 100644 --- a/node_modules/date-fns/_lib/test.mjs +++ b/node_modules/date-fns/_lib/test.mjs @@ -15,7 +15,7 @@ export function generateOffset(originalDate) { if (tzOffset !== 0) { const absoluteOffset = Math.abs(tzOffset); - const hourOffset = addLeadingZeros(Math.floor(absoluteOffset / 60), 2); + const hourOffset = addLeadingZeros(Math.trunc(absoluteOffset / 60), 2); const minuteOffset = addLeadingZeros(absoluteOffset % 60, 2); // If less than 0, the sign is +, because it is ahead of time. const sign = tzOffset < 0 ? "+" : "-"; diff --git a/node_modules/date-fns/add.d.mts b/node_modules/date-fns/add.d.mts index bda88384..4e950653 100644 --- a/node_modules/date-fns/add.d.mts +++ b/node_modules/date-fns/add.d.mts @@ -1 +1,45 @@ -export type * from "./add.d.ts"; +import type { Duration } from "./types.js"; +/** + * @name add + * @category Common Helpers + * @summary Add the specified years, months, weeks, days, hours, minutes and seconds to the given date. + * + * @description + * Add the specified years, months, weeks, days, hours, minutes and seconds to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param duration - The object with years, months, weeks, days, hours, minutes and seconds to be added. + * + * | Key | Description | + * |----------------|------------------------------------| + * | years | Amount of years to be added | + * | months | Amount of months to be added | + * | weeks | Amount of weeks to be added | + * | days | Amount of days to be added | + * | hours | Amount of hours to be added | + * | minutes | Amount of minutes to be added | + * | seconds | Amount of seconds to be added | + * + * All values default to 0 + * + * @returns The new date with the seconds added + * + * @example + * // Add the following duration to 1 September 2014, 10:19:50 + * const result = add(new Date(2014, 8, 1, 10, 19, 50), { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5,\\-7 + * minutes: 9, + * seconds: 30, + * }) + * //=> Thu Jun 15 2017 15:29:20 + */ +export declare function add( + date: DateType | number | string, + duration: Duration, +): DateType; diff --git a/node_modules/date-fns/add.d.ts b/node_modules/date-fns/add.d.ts index a9030157..4e950653 100644 --- a/node_modules/date-fns/add.d.ts +++ b/node_modules/date-fns/add.d.ts @@ -10,7 +10,7 @@ import type { Duration } from "./types.js"; * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param duration - The object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param duration - The object with years, months, weeks, days, hours, minutes and seconds to be added. * * | Key | Description | * |----------------|------------------------------------| diff --git a/node_modules/date-fns/add.js b/node_modules/date-fns/add.js index ad1532e4..801a7681 100644 --- a/node_modules/date-fns/add.js +++ b/node_modules/date-fns/add.js @@ -16,7 +16,7 @@ var _index4 = require("./toDate.js"); * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param duration - The object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param duration - The object with years, months, weeks, days, hours, minutes and seconds to be added. * * | Key | Description | * |----------------|------------------------------------| diff --git a/node_modules/date-fns/add.mjs b/node_modules/date-fns/add.mjs index 86edb496..b5d91997 100644 --- a/node_modules/date-fns/add.mjs +++ b/node_modules/date-fns/add.mjs @@ -14,7 +14,7 @@ import { toDate } from "./toDate.mjs"; * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param duration - The object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param duration - The object with years, months, weeks, days, hours, minutes and seconds to be added. * * | Key | Description | * |----------------|------------------------------------| diff --git a/node_modules/date-fns/addBusinessDays.d.mts b/node_modules/date-fns/addBusinessDays.d.mts index 4f030532..ea521fa1 100644 --- a/node_modules/date-fns/addBusinessDays.d.mts +++ b/node_modules/date-fns/addBusinessDays.d.mts @@ -1 +1,24 @@ -export type * from "./addBusinessDays.d.ts"; +/** + * @name addBusinessDays + * @category Date Extension Helpers + * @summary Add the specified number of business days (mon - fri) to the given date. + * + * @description + * Add the specified number of business days (mon - fri) to the given date, ignoring weekends. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of business days to be added. + * + * @returns The new date with the business days added + * + * @example + * // Add 10 business days to 1 September 2014: + * const result = addBusinessDays(new Date(2014, 8, 1), 10) + * //=> Mon Sep 15 2014 00:00:00 (skipped weekend days) + */ +export declare function addBusinessDays( + date: DateType | number | string, + amount: number, +): DateType; diff --git a/node_modules/date-fns/addBusinessDays.d.ts b/node_modules/date-fns/addBusinessDays.d.ts index 6a1ee82d..ea521fa1 100644 --- a/node_modules/date-fns/addBusinessDays.d.ts +++ b/node_modules/date-fns/addBusinessDays.d.ts @@ -9,7 +9,7 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of business days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of business days to be added. * * @returns The new date with the business days added * diff --git a/node_modules/date-fns/addBusinessDays.js b/node_modules/date-fns/addBusinessDays.js index 1cb75918..6c309e38 100644 --- a/node_modules/date-fns/addBusinessDays.js +++ b/node_modules/date-fns/addBusinessDays.js @@ -17,7 +17,7 @@ var _index5 = require("./toDate.js"); * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of business days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of business days to be added. * * @returns The new date with the business days added * diff --git a/node_modules/date-fns/addBusinessDays.mjs b/node_modules/date-fns/addBusinessDays.mjs index c98a1376..c7d7d711 100644 --- a/node_modules/date-fns/addBusinessDays.mjs +++ b/node_modules/date-fns/addBusinessDays.mjs @@ -15,7 +15,7 @@ import { toDate } from "./toDate.mjs"; * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of business days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of business days to be added. * * @returns The new date with the business days added * diff --git a/node_modules/date-fns/addDays.d.mts b/node_modules/date-fns/addDays.d.mts index 2d495582..22ba50b0 100644 --- a/node_modules/date-fns/addDays.d.mts +++ b/node_modules/date-fns/addDays.d.mts @@ -1 +1,24 @@ -export type * from "./addDays.d.ts"; +/** + * @name addDays + * @category Day Helpers + * @summary Add the specified number of days to the given date. + * + * @description + * Add the specified number of days to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of days to be added. + * + * @returns The new date with the days added + * + * @example + * // Add 10 days to 1 September 2014: + * const result = addDays(new Date(2014, 8, 1), 10) + * //=> Thu Sep 11 2014 00:00:00 + */ +export declare function addDays( + date: DateType | number | string, + amount: number, +): DateType; diff --git a/node_modules/date-fns/addDays.d.ts b/node_modules/date-fns/addDays.d.ts index 6164869b..22ba50b0 100644 --- a/node_modules/date-fns/addDays.d.ts +++ b/node_modules/date-fns/addDays.d.ts @@ -9,7 +9,7 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of days to be added. * * @returns The new date with the days added * diff --git a/node_modules/date-fns/addDays.js b/node_modules/date-fns/addDays.js index 6fc0cac5..bb179159 100644 --- a/node_modules/date-fns/addDays.js +++ b/node_modules/date-fns/addDays.js @@ -14,7 +14,7 @@ var _index2 = require("./constructFrom.js"); * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of days to be added. * * @returns The new date with the days added * diff --git a/node_modules/date-fns/addDays.mjs b/node_modules/date-fns/addDays.mjs index b92b2d82..624370a3 100644 --- a/node_modules/date-fns/addDays.mjs +++ b/node_modules/date-fns/addDays.mjs @@ -12,7 +12,7 @@ import { constructFrom } from "./constructFrom.mjs"; * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of days to be added. * * @returns The new date with the days added * diff --git a/node_modules/date-fns/addHours.d.mts b/node_modules/date-fns/addHours.d.mts index 5ba99f57..e353a6e4 100644 --- a/node_modules/date-fns/addHours.d.mts +++ b/node_modules/date-fns/addHours.d.mts @@ -1 +1,24 @@ -export type * from "./addHours.d.ts"; +/** + * @name addHours + * @category Hour Helpers + * @summary Add the specified number of hours to the given date. + * + * @description + * Add the specified number of hours to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of hours to be added. + * + * @returns The new date with the hours added + * + * @example + * // Add 2 hours to 10 July 2014 23:00:00: + * const result = addHours(new Date(2014, 6, 10, 23, 0), 2) + * //=> Fri Jul 11 2014 01:00:00 + */ +export declare function addHours( + date: DateType | number | string, + amount: number, +): DateType; diff --git a/node_modules/date-fns/addHours.d.ts b/node_modules/date-fns/addHours.d.ts index c24e373e..e353a6e4 100644 --- a/node_modules/date-fns/addHours.d.ts +++ b/node_modules/date-fns/addHours.d.ts @@ -9,7 +9,7 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of hours to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of hours to be added. * * @returns The new date with the hours added * diff --git a/node_modules/date-fns/addHours.js b/node_modules/date-fns/addHours.js index 6de9b7c4..ae8f918f 100644 --- a/node_modules/date-fns/addHours.js +++ b/node_modules/date-fns/addHours.js @@ -14,7 +14,7 @@ var _index2 = require("./constants.js"); * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of hours to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of hours to be added. * * @returns The new date with the hours added * diff --git a/node_modules/date-fns/addHours.mjs b/node_modules/date-fns/addHours.mjs index 27d0049e..33d64b0e 100644 --- a/node_modules/date-fns/addHours.mjs +++ b/node_modules/date-fns/addHours.mjs @@ -12,7 +12,7 @@ import { millisecondsInHour } from "./constants.mjs"; * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of hours to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of hours to be added. * * @returns The new date with the hours added * diff --git a/node_modules/date-fns/addISOWeekYears.d.mts b/node_modules/date-fns/addISOWeekYears.d.mts index 01cd85ff..504a4aaf 100644 --- a/node_modules/date-fns/addISOWeekYears.d.mts +++ b/node_modules/date-fns/addISOWeekYears.d.mts @@ -1 +1,26 @@ -export type * from "./addISOWeekYears.d.ts"; +/** + * @name addISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Add the specified number of ISO week-numbering years to the given date. + * + * @description + * Add the specified number of ISO week-numbering years to the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of ISO week-numbering years to be added. + * + * @returns The new date with the ISO week-numbering years added + * + * @example + * // Add 5 ISO week-numbering years to 2 July 2010: + * const result = addISOWeekYears(new Date(2010, 6, 2), 5) + * //=> Fri Jn 26 2015 00:00:00 + */ +export declare function addISOWeekYears( + date: DateType | number | string, + amount: number, +): DateType; diff --git a/node_modules/date-fns/addISOWeekYears.d.ts b/node_modules/date-fns/addISOWeekYears.d.ts index a13603f0..504a4aaf 100644 --- a/node_modules/date-fns/addISOWeekYears.d.ts +++ b/node_modules/date-fns/addISOWeekYears.d.ts @@ -11,7 +11,7 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of ISO week-numbering years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of ISO week-numbering years to be added. * * @returns The new date with the ISO week-numbering years added * diff --git a/node_modules/date-fns/addISOWeekYears.js b/node_modules/date-fns/addISOWeekYears.js index d9279bb7..f804203e 100644 --- a/node_modules/date-fns/addISOWeekYears.js +++ b/node_modules/date-fns/addISOWeekYears.js @@ -16,7 +16,7 @@ var _index2 = require("./setISOWeekYear.js"); * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of ISO week-numbering years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of ISO week-numbering years to be added. * * @returns The new date with the ISO week-numbering years added * diff --git a/node_modules/date-fns/addISOWeekYears.mjs b/node_modules/date-fns/addISOWeekYears.mjs index 1fd6eb52..f3c3991b 100644 --- a/node_modules/date-fns/addISOWeekYears.mjs +++ b/node_modules/date-fns/addISOWeekYears.mjs @@ -14,7 +14,7 @@ import { setISOWeekYear } from "./setISOWeekYear.mjs"; * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of ISO week-numbering years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of ISO week-numbering years to be added. * * @returns The new date with the ISO week-numbering years added * diff --git a/node_modules/date-fns/addMilliseconds.d.mts b/node_modules/date-fns/addMilliseconds.d.mts index 070250a1..2e3050c2 100644 --- a/node_modules/date-fns/addMilliseconds.d.mts +++ b/node_modules/date-fns/addMilliseconds.d.mts @@ -1 +1,24 @@ -export type * from "./addMilliseconds.d.ts"; +/** + * @name addMilliseconds + * @category Millisecond Helpers + * @summary Add the specified number of milliseconds to the given date. + * + * @description + * Add the specified number of milliseconds to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of milliseconds to be added. + * + * @returns The new date with the milliseconds added + * + * @example + * // Add 750 milliseconds to 10 July 2014 12:45:30.000: + * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) + * //=> Thu Jul 10 2014 12:45:30.750 + */ +export declare function addMilliseconds( + date: DateType | number | string, + amount: number, +): DateType; diff --git a/node_modules/date-fns/addMilliseconds.d.ts b/node_modules/date-fns/addMilliseconds.d.ts index 10d69b5e..2e3050c2 100644 --- a/node_modules/date-fns/addMilliseconds.d.ts +++ b/node_modules/date-fns/addMilliseconds.d.ts @@ -9,7 +9,7 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of milliseconds to be added. * * @returns The new date with the milliseconds added * diff --git a/node_modules/date-fns/addMilliseconds.js b/node_modules/date-fns/addMilliseconds.js index 9e9e1bcd..37e70c95 100644 --- a/node_modules/date-fns/addMilliseconds.js +++ b/node_modules/date-fns/addMilliseconds.js @@ -14,7 +14,7 @@ var _index2 = require("./constructFrom.js"); * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of milliseconds to be added. * * @returns The new date with the milliseconds added * diff --git a/node_modules/date-fns/addMilliseconds.mjs b/node_modules/date-fns/addMilliseconds.mjs index 5701520d..6be563b0 100644 --- a/node_modules/date-fns/addMilliseconds.mjs +++ b/node_modules/date-fns/addMilliseconds.mjs @@ -12,7 +12,7 @@ import { constructFrom } from "./constructFrom.mjs"; * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of milliseconds to be added. * * @returns The new date with the milliseconds added * diff --git a/node_modules/date-fns/addMinutes.d.mts b/node_modules/date-fns/addMinutes.d.mts index ef093f8b..8d9e169c 100644 --- a/node_modules/date-fns/addMinutes.d.mts +++ b/node_modules/date-fns/addMinutes.d.mts @@ -1 +1,24 @@ -export type * from "./addMinutes.d.ts"; +/** + * @name addMinutes + * @category Minute Helpers + * @summary Add the specified number of minutes to the given date. + * + * @description + * Add the specified number of minutes to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of minutes to be added. + * + * @returns The new date with the minutes added + * + * @example + * // Add 30 minutes to 10 July 2014 12:00:00: + * const result = addMinutes(new Date(2014, 6, 10, 12, 0), 30) + * //=> Thu Jul 10 2014 12:30:00 + */ +export declare function addMinutes( + date: DateType | number | string, + amount: number, +): DateType; diff --git a/node_modules/date-fns/addMinutes.d.ts b/node_modules/date-fns/addMinutes.d.ts index cfe36c5d..8d9e169c 100644 --- a/node_modules/date-fns/addMinutes.d.ts +++ b/node_modules/date-fns/addMinutes.d.ts @@ -9,7 +9,7 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of minutes to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of minutes to be added. * * @returns The new date with the minutes added * diff --git a/node_modules/date-fns/addMinutes.js b/node_modules/date-fns/addMinutes.js index cde360df..935bd8eb 100644 --- a/node_modules/date-fns/addMinutes.js +++ b/node_modules/date-fns/addMinutes.js @@ -14,7 +14,7 @@ var _index2 = require("./constants.js"); * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of minutes to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of minutes to be added. * * @returns The new date with the minutes added * diff --git a/node_modules/date-fns/addMinutes.mjs b/node_modules/date-fns/addMinutes.mjs index f3e7b85e..9fbbb71a 100644 --- a/node_modules/date-fns/addMinutes.mjs +++ b/node_modules/date-fns/addMinutes.mjs @@ -12,7 +12,7 @@ import { millisecondsInMinute } from "./constants.mjs"; * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of minutes to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of minutes to be added. * * @returns The new date with the minutes added * diff --git a/node_modules/date-fns/addMonths.d.mts b/node_modules/date-fns/addMonths.d.mts index 6e7bae79..5fab8413 100644 --- a/node_modules/date-fns/addMonths.d.mts +++ b/node_modules/date-fns/addMonths.d.mts @@ -1 +1,28 @@ -export type * from "./addMonths.d.ts"; +/** + * @name addMonths + * @category Month Helpers + * @summary Add the specified number of months to the given date. + * + * @description + * Add the specified number of months to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of months to be added. + * + * @returns The new date with the months added + * + * @example + * // Add 5 months to 1 September 2014: + * const result = addMonths(new Date(2014, 8, 1), 5) + * //=> Sun Feb 01 2015 00:00:00 + * + * // Add one month to 30 January 2023: + * const result = addMonths(new Date(2023, 0, 30), 1) + * //=> Tue Feb 28 2023 00:00:00 + */ +export declare function addMonths( + date: DateType | number | string, + amount: number, +): DateType; diff --git a/node_modules/date-fns/addMonths.d.ts b/node_modules/date-fns/addMonths.d.ts index 53bc3148..5fab8413 100644 --- a/node_modules/date-fns/addMonths.d.ts +++ b/node_modules/date-fns/addMonths.d.ts @@ -9,7 +9,7 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of months to be added. * * @returns The new date with the months added * diff --git a/node_modules/date-fns/addMonths.js b/node_modules/date-fns/addMonths.js index ebec8e3d..4963712d 100644 --- a/node_modules/date-fns/addMonths.js +++ b/node_modules/date-fns/addMonths.js @@ -14,7 +14,7 @@ var _index2 = require("./constructFrom.js"); * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of months to be added. * * @returns The new date with the months added * diff --git a/node_modules/date-fns/addMonths.mjs b/node_modules/date-fns/addMonths.mjs index 4e98b24a..16f03e79 100644 --- a/node_modules/date-fns/addMonths.mjs +++ b/node_modules/date-fns/addMonths.mjs @@ -12,7 +12,7 @@ import { constructFrom } from "./constructFrom.mjs"; * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of months to be added. * * @returns The new date with the months added * diff --git a/node_modules/date-fns/addQuarters.d.mts b/node_modules/date-fns/addQuarters.d.mts index 16c9c50d..c1fb99b4 100644 --- a/node_modules/date-fns/addQuarters.d.mts +++ b/node_modules/date-fns/addQuarters.d.mts @@ -1 +1,24 @@ -export type * from "./addQuarters.d.ts"; +/** + * @name addQuarters + * @category Quarter Helpers + * @summary Add the specified number of year quarters to the given date. + * + * @description + * Add the specified number of year quarters to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of quarters to be added. + * + * @returns The new date with the quarters added + * + * @example + * // Add 1 quarter to 1 September 2014: + * const result = addQuarters(new Date(2014, 8, 1), 1) + * //=> Mon Dec 01 2014 00:00:00 + */ +export declare function addQuarters( + date: DateType | number | string, + amount: number, +): DateType; diff --git a/node_modules/date-fns/addQuarters.d.ts b/node_modules/date-fns/addQuarters.d.ts index 0e0e3212..c1fb99b4 100644 --- a/node_modules/date-fns/addQuarters.d.ts +++ b/node_modules/date-fns/addQuarters.d.ts @@ -9,7 +9,7 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of quarters to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of quarters to be added. * * @returns The new date with the quarters added * diff --git a/node_modules/date-fns/addQuarters.js b/node_modules/date-fns/addQuarters.js index 1698b725..35ac95f4 100644 --- a/node_modules/date-fns/addQuarters.js +++ b/node_modules/date-fns/addQuarters.js @@ -13,7 +13,7 @@ var _index = require("./addMonths.js"); * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of quarters to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of quarters to be added. * * @returns The new date with the quarters added * diff --git a/node_modules/date-fns/addQuarters.mjs b/node_modules/date-fns/addQuarters.mjs index 02dab835..b6de2d7a 100644 --- a/node_modules/date-fns/addQuarters.mjs +++ b/node_modules/date-fns/addQuarters.mjs @@ -11,7 +11,7 @@ import { addMonths } from "./addMonths.mjs"; * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of quarters to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of quarters to be added. * * @returns The new date with the quarters added * diff --git a/node_modules/date-fns/addSeconds.d.mts b/node_modules/date-fns/addSeconds.d.mts index 3948faff..2e8aece6 100644 --- a/node_modules/date-fns/addSeconds.d.mts +++ b/node_modules/date-fns/addSeconds.d.mts @@ -1 +1,24 @@ -export type * from "./addSeconds.d.ts"; +/** + * @name addSeconds + * @category Second Helpers + * @summary Add the specified number of seconds to the given date. + * + * @description + * Add the specified number of seconds to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of seconds to be added. + * + * @returns The new date with the seconds added + * + * @example + * // Add 30 seconds to 10 July 2014 12:45:00: + * const result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) + * //=> Thu Jul 10 2014 12:45:30 + */ +export declare function addSeconds( + date: DateType | number | string, + amount: number, +): DateType; diff --git a/node_modules/date-fns/addSeconds.d.ts b/node_modules/date-fns/addSeconds.d.ts index 69ede522..2e8aece6 100644 --- a/node_modules/date-fns/addSeconds.d.ts +++ b/node_modules/date-fns/addSeconds.d.ts @@ -9,7 +9,7 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of seconds to be added. * * @returns The new date with the seconds added * diff --git a/node_modules/date-fns/addSeconds.js b/node_modules/date-fns/addSeconds.js index 5dc97173..15d24eb5 100644 --- a/node_modules/date-fns/addSeconds.js +++ b/node_modules/date-fns/addSeconds.js @@ -13,7 +13,7 @@ var _index = require("./addMilliseconds.js"); * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of seconds to be added. * * @returns The new date with the seconds added * diff --git a/node_modules/date-fns/addSeconds.mjs b/node_modules/date-fns/addSeconds.mjs index 21414f2c..19bbe80b 100644 --- a/node_modules/date-fns/addSeconds.mjs +++ b/node_modules/date-fns/addSeconds.mjs @@ -11,7 +11,7 @@ import { addMilliseconds } from "./addMilliseconds.mjs"; * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of seconds to be added. * * @returns The new date with the seconds added * diff --git a/node_modules/date-fns/addWeeks.d.mts b/node_modules/date-fns/addWeeks.d.mts index 4b34f4bd..fb9d8dfb 100644 --- a/node_modules/date-fns/addWeeks.d.mts +++ b/node_modules/date-fns/addWeeks.d.mts @@ -1 +1,24 @@ -export type * from "./addWeeks.d.ts"; +/** + * @name addWeeks + * @category Week Helpers + * @summary Add the specified number of weeks to the given date. + * + * @description + * Add the specified number of week to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of weeks to be added. + * + * @returns The new date with the weeks added + * + * @example + * // Add 4 weeks to 1 September 2014: + * const result = addWeeks(new Date(2014, 8, 1), 4) + * //=> Mon Sep 29 2014 00:00:00 + */ +export declare function addWeeks( + date: DateType | number | string, + amount: number, +): DateType; diff --git a/node_modules/date-fns/addWeeks.d.ts b/node_modules/date-fns/addWeeks.d.ts index dcdfb88d..fb9d8dfb 100644 --- a/node_modules/date-fns/addWeeks.d.ts +++ b/node_modules/date-fns/addWeeks.d.ts @@ -9,7 +9,7 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of weeks to be added. * * @returns The new date with the weeks added * diff --git a/node_modules/date-fns/addWeeks.js b/node_modules/date-fns/addWeeks.js index 39ad193e..3c52044f 100644 --- a/node_modules/date-fns/addWeeks.js +++ b/node_modules/date-fns/addWeeks.js @@ -13,7 +13,7 @@ var _index = require("./addDays.js"); * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of weeks to be added. * * @returns The new date with the weeks added * diff --git a/node_modules/date-fns/addWeeks.mjs b/node_modules/date-fns/addWeeks.mjs index 86783d57..b4856e53 100644 --- a/node_modules/date-fns/addWeeks.mjs +++ b/node_modules/date-fns/addWeeks.mjs @@ -11,7 +11,7 @@ import { addDays } from "./addDays.mjs"; * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of weeks to be added. * * @returns The new date with the weeks added * diff --git a/node_modules/date-fns/addYears.d.mts b/node_modules/date-fns/addYears.d.mts index 034eb188..92362062 100644 --- a/node_modules/date-fns/addYears.d.mts +++ b/node_modules/date-fns/addYears.d.mts @@ -1 +1,24 @@ -export type * from "./addYears.d.ts"; +/** + * @name addYears + * @category Year Helpers + * @summary Add the specified number of years to the given date. + * + * @description + * Add the specified number of years to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of years to be added. + * + * @returns The new date with the years added + * + * @example + * // Add 5 years to 1 September 2014: + * const result = addYears(new Date(2014, 8, 1), 5) + * //=> Sun Sep 01 2019 00:00:00 + */ +export declare function addYears( + date: DateType | number | string, + amount: number, +): DateType; diff --git a/node_modules/date-fns/addYears.d.ts b/node_modules/date-fns/addYears.d.ts index 246707fc..92362062 100644 --- a/node_modules/date-fns/addYears.d.ts +++ b/node_modules/date-fns/addYears.d.ts @@ -9,7 +9,7 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of years to be added. * * @returns The new date with the years added * diff --git a/node_modules/date-fns/addYears.js b/node_modules/date-fns/addYears.js index f57689d6..abfb88ce 100644 --- a/node_modules/date-fns/addYears.js +++ b/node_modules/date-fns/addYears.js @@ -13,7 +13,7 @@ var _index = require("./addMonths.js"); * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of years to be added. * * @returns The new date with the years added * diff --git a/node_modules/date-fns/addYears.mjs b/node_modules/date-fns/addYears.mjs index af6b0fc6..f7a5f9e6 100644 --- a/node_modules/date-fns/addYears.mjs +++ b/node_modules/date-fns/addYears.mjs @@ -11,7 +11,7 @@ import { addMonths } from "./addMonths.mjs"; * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to be changed - * @param amount - The amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @param amount - The amount of years to be added. * * @returns The new date with the years added * diff --git a/node_modules/date-fns/areIntervalsOverlapping.d.mts b/node_modules/date-fns/areIntervalsOverlapping.d.mts index f7b77378..922b1180 100644 --- a/node_modules/date-fns/areIntervalsOverlapping.d.mts +++ b/node_modules/date-fns/areIntervalsOverlapping.d.mts @@ -1 +1,67 @@ -export type * from "./areIntervalsOverlapping.d.ts"; +import type { Interval } from "./types.js"; +/** + * The {@link areIntervalsOverlapping} function options. + */ +export interface AreIntervalsOverlappingOptions { + /** Whether the comparison is inclusive or not */ + inclusive?: boolean; +} +/** + * @name areIntervalsOverlapping + * @category Interval Helpers + * @summary Is the given time interval overlapping with another time interval? + * + * @description + * Is the given time interval overlapping with another time interval? Adjacent intervals do not count as overlapping unless `inclusive` is set to `true`. + * + * @param intervalLeft - The first interval to compare. + * @param intervalRight - The second interval to compare. + * @param options - The object with options + * + * @returns Whether the time intervals are overlapping + * + * @example + * // For overlapping time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + * ) + * //=> true + * + * @example + * // For non-overlapping time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } + * ) + * //=> false + * + * @example + * // For adjacent time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 30) } + * ) + * //=> false + * + * @example + * // Using the inclusive option: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) } + * ) + * //=> false + * + * @example + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) }, + * { inclusive: true } + * ) + * //=> true + */ +export declare function areIntervalsOverlapping( + intervalLeft: Interval, + intervalRight: Interval, + options?: AreIntervalsOverlappingOptions, +): boolean; diff --git a/node_modules/date-fns/areIntervalsOverlapping.js b/node_modules/date-fns/areIntervalsOverlapping.js index 3a9e7e1a..9de0ccb6 100644 --- a/node_modules/date-fns/areIntervalsOverlapping.js +++ b/node_modules/date-fns/areIntervalsOverlapping.js @@ -64,11 +64,11 @@ function areIntervalsOverlapping(intervalLeft, intervalRight, options) { const [leftStartTime, leftEndTime] = [ +(0, _index.toDate)(intervalLeft.start), +(0, _index.toDate)(intervalLeft.end), - ].sort(); + ].sort((a, b) => a - b); const [rightStartTime, rightEndTime] = [ +(0, _index.toDate)(intervalRight.start), +(0, _index.toDate)(intervalRight.end), - ].sort(); + ].sort((a, b) => a - b); if (options?.inclusive) return leftStartTime <= rightEndTime && rightStartTime <= leftEndTime; diff --git a/node_modules/date-fns/areIntervalsOverlapping.mjs b/node_modules/date-fns/areIntervalsOverlapping.mjs index f0521e92..faff8b0d 100644 --- a/node_modules/date-fns/areIntervalsOverlapping.mjs +++ b/node_modules/date-fns/areIntervalsOverlapping.mjs @@ -62,11 +62,11 @@ export function areIntervalsOverlapping(intervalLeft, intervalRight, options) { const [leftStartTime, leftEndTime] = [ +toDate(intervalLeft.start), +toDate(intervalLeft.end), - ].sort(); + ].sort((a, b) => a - b); const [rightStartTime, rightEndTime] = [ +toDate(intervalRight.start), +toDate(intervalRight.end), - ].sort(); + ].sort((a, b) => a - b); if (options?.inclusive) return leftStartTime <= rightEndTime && rightStartTime <= leftEndTime; diff --git a/node_modules/date-fns/clamp.d.mts b/node_modules/date-fns/clamp.d.mts index f6f6d76b..73214590 100644 --- a/node_modules/date-fns/clamp.d.mts +++ b/node_modules/date-fns/clamp.d.mts @@ -1 +1,33 @@ -export type * from "./clamp.d.ts"; +import type { Interval } from "./types.js"; +/** + * @name clamp + * @category Interval Helpers + * @summary Return a date bounded by the start and the end of the given interval + * + * @description + * Clamps a date to the lower bound with the start of the interval and the upper + * bound with the end of the interval. + * + * - When the date is less than the start of the interval, the start is returned. + * - When the date is greater than the end of the interval, the end is returned. + * - Otherwise the date is returned. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be bounded + * @param interval - The interval to bound to + * + * @returns The date bounded by the start and the end of the interval + * + * @example + * // What is Mar, 21, 2021 bounded to an interval starting at Mar, 22, 2021 and ending at Apr, 01, 2021 + * const result = clamp(new Date(2021, 2, 21), { + * start: new Date(2021, 2, 22), + * end: new Date(2021, 3, 1), + * }) + * //=> Mon Mar 22 2021 00:00:00 + */ +export declare function clamp( + date: DateType | number | string, + interval: Interval, +): DateType | Date; diff --git a/node_modules/date-fns/closestIndexTo.d.mts b/node_modules/date-fns/closestIndexTo.d.mts index 6d82ca8f..ccb40d2b 100644 --- a/node_modules/date-fns/closestIndexTo.d.mts +++ b/node_modules/date-fns/closestIndexTo.d.mts @@ -1 +1,30 @@ -export type * from "./closestIndexTo.d.ts"; +/** + * @name closestIndexTo + * @category Common Helpers + * @summary Return an index of the closest date from the array comparing to the given date. + * + * @description + * Return an index of the closest date from the array comparing to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateToCompare - The date to compare with + * @param dates - The array to search + * + * @returns An index of the date closest to the given date or undefined if no valid value is given + * + * @example + * // Which date is closer to 6 September 2015? + * const dateToCompare = new Date(2015, 8, 6) + * const datesArray = [ + * new Date(2015, 0, 1), + * new Date(2016, 0, 1), + * new Date(2017, 0, 1) + * ] + * const result = closestIndexTo(dateToCompare, datesArray) + * //=> 1 + */ +export declare function closestIndexTo( + dateToCompare: DateType | number | string, + dates: Array, +): number | undefined; diff --git a/node_modules/date-fns/closestTo.d.mts b/node_modules/date-fns/closestTo.d.mts index 60ee316b..90387d40 100644 --- a/node_modules/date-fns/closestTo.d.mts +++ b/node_modules/date-fns/closestTo.d.mts @@ -1 +1,28 @@ -export type * from "./closestTo.d.ts"; +/** + * @name closestTo + * @category Common Helpers + * @summary Return a date from the array closest to the given date. + * + * @description + * Return a date from the array closest to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateToCompare - The date to compare with + * @param dates - The array to search + * + * @returns The date from the array closest to the given date or undefined if no valid value is given + * + * @example + * // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030? + * const dateToCompare = new Date(2015, 8, 6) + * const result = closestTo(dateToCompare, [ + * new Date(2000, 0, 1), + * new Date(2030, 0, 1) + * ]) + * //=> Tue Jan 01 2030 00:00:00 + */ +export declare function closestTo( + dateToCompare: DateType | number | string, + dates: Array, +): DateType | undefined; diff --git a/node_modules/date-fns/compareAsc.d.mts b/node_modules/date-fns/compareAsc.d.mts index 2f69d00d..8c504898 100644 --- a/node_modules/date-fns/compareAsc.d.mts +++ b/node_modules/date-fns/compareAsc.d.mts @@ -1 +1,38 @@ -export type * from "./compareAsc.d.ts"; +/** + * @name compareAsc + * @category Common Helpers + * @summary Compare the two dates and return -1, 0 or 1. + * + * @description + * Compare the two dates and return 1 if the first date is after the second, + * -1 if the first date is before the second or 0 if dates are equal. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The result of the comparison + * + * @example + * // Compare 11 February 1987 and 10 July 1989: + * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10)) + * //=> -1 + * + * @example + * // Sort the array of dates: + * const result = [ + * new Date(1995, 6, 2), + * new Date(1987, 1, 11), + * new Date(1989, 6, 10) + * ].sort(compareAsc) + * //=> [ + * // Wed Feb 11 1987 00:00:00, + * // Mon Jul 10 1989 00:00:00, + * // Sun Jul 02 1995 00:00:00 + * // ] + */ +export declare function compareAsc( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): number; diff --git a/node_modules/date-fns/compareDesc.d.mts b/node_modules/date-fns/compareDesc.d.mts index 381e00e1..3633588a 100644 --- a/node_modules/date-fns/compareDesc.d.mts +++ b/node_modules/date-fns/compareDesc.d.mts @@ -1 +1,38 @@ -export type * from "./compareDesc.d.ts"; +/** + * @name compareDesc + * @category Common Helpers + * @summary Compare the two dates reverse chronologically and return -1, 0 or 1. + * + * @description + * Compare the two dates and return -1 if the first date is after the second, + * 1 if the first date is before the second or 0 if dates are equal. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The result of the comparison + * + * @example + * // Compare 11 February 1987 and 10 July 1989 reverse chronologically: + * const result = compareDesc(new Date(1987, 1, 11), new Date(1989, 6, 10)) + * //=> 1 + * + * @example + * // Sort the array of dates in reverse chronological order: + * const result = [ + * new Date(1995, 6, 2), + * new Date(1987, 1, 11), + * new Date(1989, 6, 10) + * ].sort(compareDesc) + * //=> [ + * // Sun Jul 02 1995 00:00:00, + * // Mon Jul 10 1989 00:00:00, + * // Wed Feb 11 1987 00:00:00 + * // ] + */ +export declare function compareDesc( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): number; diff --git a/node_modules/date-fns/constants.d.mts b/node_modules/date-fns/constants.d.mts index c8c7c179..dfcb3d92 100644 --- a/node_modules/date-fns/constants.d.mts +++ b/node_modules/date-fns/constants.d.mts @@ -1 +1,180 @@ -export type * from "./constants.d.ts"; +/** + * @module constants + * @summary Useful constants + * @description + * Collection of useful date constants. + * + * The constants could be imported from `date-fns/constants`: + * + * ```ts + * import { maxTime, minTime } from "./constants/date-fns/constants"; + * + * function isAllowedTime(time) { + * return time <= maxTime && time >= minTime; + * } + * ``` + */ +/** + * @constant + * @name daysInWeek + * @summary Days in 1 week. + */ +export declare const daysInWeek = 7; +/** + * @constant + * @name daysInYear + * @summary Days in 1 year. + * + * @description + * How many days in a year. + * + * One years equals 365.2425 days according to the formula: + * + * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400. + * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days + */ +export declare const daysInYear = 365.2425; +/** + * @constant + * @name maxTime + * @summary Maximum allowed time. + * + * @example + * import { maxTime } from "./constants/date-fns/constants"; + * + * const isValid = 8640000000000001 <= maxTime; + * //=> false + * + * new Date(8640000000000001); + * //=> Invalid Date + */ +export declare const maxTime: number; +/** + * @constant + * @name minTime + * @summary Minimum allowed time. + * + * @example + * import { minTime } from "./constants/date-fns/constants"; + * + * const isValid = -8640000000000001 >= minTime; + * //=> false + * + * new Date(-8640000000000001) + * //=> Invalid Date + */ +export declare const minTime: number; +/** + * @constant + * @name millisecondsInWeek + * @summary Milliseconds in 1 week. + */ +export declare const millisecondsInWeek = 604800000; +/** + * @constant + * @name millisecondsInDay + * @summary Milliseconds in 1 day. + */ +export declare const millisecondsInDay = 86400000; +/** + * @constant + * @name millisecondsInMinute + * @summary Milliseconds in 1 minute + */ +export declare const millisecondsInMinute = 60000; +/** + * @constant + * @name millisecondsInHour + * @summary Milliseconds in 1 hour + */ +export declare const millisecondsInHour = 3600000; +/** + * @constant + * @name millisecondsInSecond + * @summary Milliseconds in 1 second + */ +export declare const millisecondsInSecond = 1000; +/** + * @constant + * @name minutesInYear + * @summary Minutes in 1 year. + */ +export declare const minutesInYear = 525600; +/** + * @constant + * @name minutesInMonth + * @summary Minutes in 1 month. + */ +export declare const minutesInMonth = 43200; +/** + * @constant + * @name minutesInDay + * @summary Minutes in 1 day. + */ +export declare const minutesInDay = 1440; +/** + * @constant + * @name minutesInHour + * @summary Minutes in 1 hour. + */ +export declare const minutesInHour = 60; +/** + * @constant + * @name monthsInQuarter + * @summary Months in 1 quarter. + */ +export declare const monthsInQuarter = 3; +/** + * @constant + * @name monthsInYear + * @summary Months in 1 year. + */ +export declare const monthsInYear = 12; +/** + * @constant + * @name quartersInYear + * @summary Quarters in 1 year + */ +export declare const quartersInYear = 4; +/** + * @constant + * @name secondsInHour + * @summary Seconds in 1 hour. + */ +export declare const secondsInHour = 3600; +/** + * @constant + * @name secondsInMinute + * @summary Seconds in 1 minute. + */ +export declare const secondsInMinute = 60; +/** + * @constant + * @name secondsInDay + * @summary Seconds in 1 day. + */ +export declare const secondsInDay: number; +/** + * @constant + * @name secondsInWeek + * @summary Seconds in 1 week. + */ +export declare const secondsInWeek: number; +/** + * @constant + * @name secondsInYear + * @summary Seconds in 1 year. + */ +export declare const secondsInYear: number; +/** + * @constant + * @name secondsInMonth + * @summary Seconds in 1 month + */ +export declare const secondsInMonth: number; +/** + * @constant + * @name secondsInQuarter + * @summary Seconds in 1 quarter. + */ +export declare const secondsInQuarter: number; diff --git a/node_modules/date-fns/constructFrom.d.mts b/node_modules/date-fns/constructFrom.d.mts index c3ae6a2f..839fb7db 100644 --- a/node_modules/date-fns/constructFrom.d.mts +++ b/node_modules/date-fns/constructFrom.d.mts @@ -1 +1,34 @@ -export type * from "./constructFrom.d.ts"; +/** + * @name constructFrom + * @category Generic Helpers + * @summary Constructs a date using the reference date and the value + * + * @description + * The function constructs a new date using the constructor from the reference + * date and the given value. It helps to build generic functions that accept + * date extensions. + * + * It defaults to `Date` if the passed reference date is a number or a string. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The reference date to take constructor from + * @param value - The value to create the date + * + * @returns Date initialized using the given date and value + * + * @example + * import { constructFrom } from 'date-fns' + * + * // A function that clones a date preserving the original type + * function cloneDate( + date: DateType | number | string, + value: Date | number | string, +): DateType; diff --git a/node_modules/date-fns/constructFrom.d.ts b/node_modules/date-fns/constructFrom.d.ts index 282bad7b..839fb7db 100644 --- a/node_modules/date-fns/constructFrom.d.ts +++ b/node_modules/date-fns/constructFrom.d.ts @@ -8,6 +8,8 @@ * date and the given value. It helps to build generic functions that accept * date extensions. * + * It defaults to `Date` if the passed reference date is a number or a string. + * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The reference date to take constructor from diff --git a/node_modules/date-fns/constructFrom.js b/node_modules/date-fns/constructFrom.js index d581517c..baf7761a 100644 --- a/node_modules/date-fns/constructFrom.js +++ b/node_modules/date-fns/constructFrom.js @@ -11,6 +11,8 @@ exports.constructFrom = constructFrom; * date and the given value. It helps to build generic functions that accept * date extensions. * + * It defaults to `Date` if the passed reference date is a number or a string. + * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The reference date to take constructor from diff --git a/node_modules/date-fns/constructFrom.mjs b/node_modules/date-fns/constructFrom.mjs index 8ed02256..9134b929 100644 --- a/node_modules/date-fns/constructFrom.mjs +++ b/node_modules/date-fns/constructFrom.mjs @@ -8,6 +8,8 @@ * date and the given value. It helps to build generic functions that accept * date extensions. * + * It defaults to `Date` if the passed reference date is a number or a string. + * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The reference date to take constructor from diff --git a/node_modules/date-fns/daysToWeeks.d.mts b/node_modules/date-fns/daysToWeeks.d.mts index f6ade69c..0d26b3de 100644 --- a/node_modules/date-fns/daysToWeeks.d.mts +++ b/node_modules/date-fns/daysToWeeks.d.mts @@ -1 +1,25 @@ -export type * from "./daysToWeeks.d.ts"; +/** + * @name daysToWeeks + * @category Conversion Helpers + * @summary Convert days to weeks. + * + * @description + * Convert a number of days to a full number of weeks. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param days - The number of days to be converted + * + * @returns The number of days converted in weeks + * + * @example + * // Convert 14 days to weeks: + * const result = daysToWeeks(14) + * //=> 2 + * + * @example + * // It uses trunc rounding: + * const result = daysToWeeks(13) + * //=> 1 + */ +export declare function daysToWeeks(days: number): number; diff --git a/node_modules/date-fns/daysToWeeks.d.ts b/node_modules/date-fns/daysToWeeks.d.ts index 3a18b5e3..0d26b3de 100644 --- a/node_modules/date-fns/daysToWeeks.d.ts +++ b/node_modules/date-fns/daysToWeeks.d.ts @@ -18,7 +18,7 @@ * //=> 2 * * @example - * // It uses floor rounding: + * // It uses trunc rounding: * const result = daysToWeeks(13) * //=> 1 */ diff --git a/node_modules/date-fns/daysToWeeks.js b/node_modules/date-fns/daysToWeeks.js index 49deb005..46c078f2 100644 --- a/node_modules/date-fns/daysToWeeks.js +++ b/node_modules/date-fns/daysToWeeks.js @@ -22,11 +22,13 @@ var _index = require("./constants.js"); * //=> 2 * * @example - * // It uses floor rounding: + * // It uses trunc rounding: * const result = daysToWeeks(13) * //=> 1 */ function daysToWeeks(days) { const weeks = days / _index.daysInWeek; - return Math.floor(weeks); + const result = Math.trunc(weeks); + // Prevent negative zero + return result === 0 ? 0 : result; } diff --git a/node_modules/date-fns/daysToWeeks.mjs b/node_modules/date-fns/daysToWeeks.mjs index cc1e5b2c..b9859660 100644 --- a/node_modules/date-fns/daysToWeeks.mjs +++ b/node_modules/date-fns/daysToWeeks.mjs @@ -20,13 +20,15 @@ import { daysInWeek } from "./constants.mjs"; * //=> 2 * * @example - * // It uses floor rounding: + * // It uses trunc rounding: * const result = daysToWeeks(13) * //=> 1 */ export function daysToWeeks(days) { const weeks = days / daysInWeek; - return Math.floor(weeks); + const result = Math.trunc(weeks); + // Prevent negative zero + return result === 0 ? 0 : result; } // Fallback for modularized imports: diff --git a/node_modules/date-fns/differenceInBusinessDays.d.mts b/node_modules/date-fns/differenceInBusinessDays.d.mts index 50b54f67..f25b5531 100644 --- a/node_modules/date-fns/differenceInBusinessDays.d.mts +++ b/node_modules/date-fns/differenceInBusinessDays.d.mts @@ -1 +1,55 @@ -export type * from "./differenceInBusinessDays.d.ts"; +/** + * @name differenceInBusinessDays + * @category Day Helpers + * @summary Get the number of business days between the given dates. + * + * @description + * Get the number of business day periods between the given dates. + * Business days being days that arent in the weekend. + * Like `differenceInCalendarDays`, the function removes the times from + * the dates before calculating the difference. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * + * @returns The number of business days + * + * @example + * // How many business days are between + * // 10 January 2014 and 20 July 2014? + * const result = differenceInBusinessDays( + * new Date(2014, 6, 20), + * new Date(2014, 0, 10) + * ) + * //=> 136 + * + * // How many business days are between + * // 30 November 2021 and 1 November 2021? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 30), + * new Date(2021, 10, 1) + * ) + * //=> 21 + * + * // How many business days are between + * // 1 November 2021 and 1 December 2021? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 1), + * new Date(2021, 11, 1) + * ) + * //=> -22 + * + * // How many business days are between + * // 1 November 2021 and 1 November 2021 ? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 1), + * new Date(2021, 10, 1) + * ) + * //=> 0 + */ +export declare function differenceInBusinessDays( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): number; diff --git a/node_modules/date-fns/differenceInCalendarDays.d.mts b/node_modules/date-fns/differenceInCalendarDays.d.mts index bde807a4..306212b4 100644 --- a/node_modules/date-fns/differenceInCalendarDays.d.mts +++ b/node_modules/date-fns/differenceInCalendarDays.d.mts @@ -1 +1,36 @@ -export type * from "./differenceInCalendarDays.d.ts"; +/** + * @name differenceInCalendarDays + * @category Day Helpers + * @summary Get the number of calendar days between the given dates. + * + * @description + * Get the number of calendar days between the given dates. This means that the times are removed + * from the dates and then the difference in days is calculated. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * + * @returns The number of calendar days + * + * @example + * // How many calendar days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * const result = differenceInCalendarDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 366 + * // How many calendar days are between + * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? + * const result = differenceInCalendarDays( + * new Date(2011, 6, 3, 0, 1), + * new Date(2011, 6, 2, 23, 59) + * ) + * //=> 1 + */ +export declare function differenceInCalendarDays( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): number; diff --git a/node_modules/date-fns/differenceInCalendarDays.js b/node_modules/date-fns/differenceInCalendarDays.js index 9b1b4103..1782a25a 100644 --- a/node_modules/date-fns/differenceInCalendarDays.js +++ b/node_modules/date-fns/differenceInCalendarDays.js @@ -41,15 +41,15 @@ function differenceInCalendarDays(dateLeft, dateRight) { const startOfDayRight = (0, _index2.startOfDay)(dateRight); const timestampLeft = - startOfDayLeft.getTime() - + +startOfDayLeft - (0, _index3.getTimezoneOffsetInMilliseconds)(startOfDayLeft); const timestampRight = - startOfDayRight.getTime() - + +startOfDayRight - (0, _index3.getTimezoneOffsetInMilliseconds)(startOfDayRight); - // Round the number of days to the nearest integer - // because the number of milliseconds in a day is not constant - // (e.g. it's different in the day of the daylight saving time clock shift) + // Round the number of days to the nearest integer because the number of + // milliseconds in a day is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). return Math.round( (timestampLeft - timestampRight) / _index.millisecondsInDay, ); diff --git a/node_modules/date-fns/differenceInCalendarDays.mjs b/node_modules/date-fns/differenceInCalendarDays.mjs index 194abdfd..2833e9bb 100644 --- a/node_modules/date-fns/differenceInCalendarDays.mjs +++ b/node_modules/date-fns/differenceInCalendarDays.mjs @@ -39,14 +39,13 @@ export function differenceInCalendarDays(dateLeft, dateRight) { const startOfDayRight = startOfDay(dateRight); const timestampLeft = - startOfDayLeft.getTime() - getTimezoneOffsetInMilliseconds(startOfDayLeft); + +startOfDayLeft - getTimezoneOffsetInMilliseconds(startOfDayLeft); const timestampRight = - startOfDayRight.getTime() - - getTimezoneOffsetInMilliseconds(startOfDayRight); + +startOfDayRight - getTimezoneOffsetInMilliseconds(startOfDayRight); - // Round the number of days to the nearest integer - // because the number of milliseconds in a day is not constant - // (e.g. it's different in the day of the daylight saving time clock shift) + // Round the number of days to the nearest integer because the number of + // milliseconds in a day is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). return Math.round((timestampLeft - timestampRight) / millisecondsInDay); } diff --git a/node_modules/date-fns/differenceInCalendarISOWeekYears.d.mts b/node_modules/date-fns/differenceInCalendarISOWeekYears.d.mts index b58dfe2d..67a33276 100644 --- a/node_modules/date-fns/differenceInCalendarISOWeekYears.d.mts +++ b/node_modules/date-fns/differenceInCalendarISOWeekYears.d.mts @@ -1 +1,29 @@ -export type * from "./differenceInCalendarISOWeekYears.d.ts"; +/** + * @name differenceInCalendarISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of calendar ISO week-numbering years between the given dates. + * + * @description + * Get the number of calendar ISO week-numbering years between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * + * @returns The number of calendar ISO week-numbering years + * + * @example + * // How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012? + * const result = differenceInCalendarISOWeekYears( + * new Date(2012, 0, 1), + * new Date(2010, 0, 1) + * ) + * //=> 2 + */ +export declare function differenceInCalendarISOWeekYears( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): number; diff --git a/node_modules/date-fns/differenceInCalendarISOWeeks.d.mts b/node_modules/date-fns/differenceInCalendarISOWeeks.d.mts index 40b575b9..0ac85724 100644 --- a/node_modules/date-fns/differenceInCalendarISOWeeks.d.mts +++ b/node_modules/date-fns/differenceInCalendarISOWeeks.d.mts @@ -1 +1,29 @@ -export type * from "./differenceInCalendarISOWeeks.d.ts"; +/** + * @name differenceInCalendarISOWeeks + * @category ISO Week Helpers + * @summary Get the number of calendar ISO weeks between the given dates. + * + * @description + * Get the number of calendar ISO weeks between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * + * @returns The number of calendar ISO weeks + * + * @example + * // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014? + * const result = differenceInCalendarISOWeeks( + * new Date(2014, 6, 21), + * new Date(2014, 6, 6) + * ) + * //=> 3 + */ +export declare function differenceInCalendarISOWeeks( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): number; diff --git a/node_modules/date-fns/differenceInCalendarISOWeeks.js b/node_modules/date-fns/differenceInCalendarISOWeeks.js index 1e2c96ef..1b57eba4 100644 --- a/node_modules/date-fns/differenceInCalendarISOWeeks.js +++ b/node_modules/date-fns/differenceInCalendarISOWeeks.js @@ -34,15 +34,15 @@ function differenceInCalendarISOWeeks(dateLeft, dateRight) { const startOfISOWeekRight = (0, _index2.startOfISOWeek)(dateRight); const timestampLeft = - startOfISOWeekLeft.getTime() - + +startOfISOWeekLeft - (0, _index3.getTimezoneOffsetInMilliseconds)(startOfISOWeekLeft); const timestampRight = - startOfISOWeekRight.getTime() - + +startOfISOWeekRight - (0, _index3.getTimezoneOffsetInMilliseconds)(startOfISOWeekRight); - // Round the number of days to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). return Math.round( (timestampLeft - timestampRight) / _index.millisecondsInWeek, ); diff --git a/node_modules/date-fns/differenceInCalendarISOWeeks.mjs b/node_modules/date-fns/differenceInCalendarISOWeeks.mjs index ddcd97d4..ddd925bd 100644 --- a/node_modules/date-fns/differenceInCalendarISOWeeks.mjs +++ b/node_modules/date-fns/differenceInCalendarISOWeeks.mjs @@ -32,15 +32,13 @@ export function differenceInCalendarISOWeeks(dateLeft, dateRight) { const startOfISOWeekRight = startOfISOWeek(dateRight); const timestampLeft = - startOfISOWeekLeft.getTime() - - getTimezoneOffsetInMilliseconds(startOfISOWeekLeft); + +startOfISOWeekLeft - getTimezoneOffsetInMilliseconds(startOfISOWeekLeft); const timestampRight = - startOfISOWeekRight.getTime() - - getTimezoneOffsetInMilliseconds(startOfISOWeekRight); + +startOfISOWeekRight - getTimezoneOffsetInMilliseconds(startOfISOWeekRight); - // Round the number of days to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). return Math.round((timestampLeft - timestampRight) / millisecondsInWeek); } diff --git a/node_modules/date-fns/differenceInCalendarMonths.d.mts b/node_modules/date-fns/differenceInCalendarMonths.d.mts index bbebf932..8d8987b8 100644 --- a/node_modules/date-fns/differenceInCalendarMonths.d.mts +++ b/node_modules/date-fns/differenceInCalendarMonths.d.mts @@ -1 +1,27 @@ -export type * from "./differenceInCalendarMonths.d.ts"; +/** + * @name differenceInCalendarMonths + * @category Month Helpers + * @summary Get the number of calendar months between the given dates. + * + * @description + * Get the number of calendar months between the given dates. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * + * @returns The number of calendar months + * + * @example + * // How many calendar months are between 31 January 2014 and 1 September 2014? + * const result = differenceInCalendarMonths( + * new Date(2014, 8, 1), + * new Date(2014, 0, 31) + * ) + * //=> 8 + */ +export declare function differenceInCalendarMonths( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): number; diff --git a/node_modules/date-fns/differenceInCalendarQuarters.d.mts b/node_modules/date-fns/differenceInCalendarQuarters.d.mts index 773a159a..b8740257 100644 --- a/node_modules/date-fns/differenceInCalendarQuarters.d.mts +++ b/node_modules/date-fns/differenceInCalendarQuarters.d.mts @@ -1 +1,27 @@ -export type * from "./differenceInCalendarQuarters.d.ts"; +/** + * @name differenceInCalendarQuarters + * @category Quarter Helpers + * @summary Get the number of calendar quarters between the given dates. + * + * @description + * Get the number of calendar quarters between the given dates. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + + * @returns The number of calendar quarters + * + * @example + * // How many calendar quarters are between 31 December 2013 and 2 July 2014? + * const result = differenceInCalendarQuarters( + * new Date(2014, 6, 2), + * new Date(2013, 11, 31) + * ) + * //=> 3 + */ +export declare function differenceInCalendarQuarters( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): number; diff --git a/node_modules/date-fns/differenceInCalendarWeeks.d.mts b/node_modules/date-fns/differenceInCalendarWeeks.d.mts index 7aa42210..26a97553 100644 --- a/node_modules/date-fns/differenceInCalendarWeeks.d.mts +++ b/node_modules/date-fns/differenceInCalendarWeeks.d.mts @@ -1 +1,46 @@ -export type * from "./differenceInCalendarWeeks.d.ts"; +import type { LocalizedOptions, WeekOptions } from "./types.js"; +/** + * The {@link differenceInCalendarWeeks} function options. + */ +export interface DifferenceInCalendarWeeksOptions + extends LocalizedOptions<"options">, + WeekOptions {} +/** + * @name differenceInCalendarWeeks + * @category Week Helpers + * @summary Get the number of calendar weeks between the given dates. + * + * @description + * Get the number of calendar weeks between the given dates. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * @param options - An object with options. + * + * @returns The number of calendar weeks + * + * @example + * // How many calendar weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5) + * ) + * //=> 3 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5), + * { weekStartsOn: 1 } + * ) + * //=> 2 + */ +export declare function differenceInCalendarWeeks( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, + options?: DifferenceInCalendarWeeksOptions, +): number; diff --git a/node_modules/date-fns/differenceInCalendarWeeks.js b/node_modules/date-fns/differenceInCalendarWeeks.js index 79cf2a7e..214cf29c 100644 --- a/node_modules/date-fns/differenceInCalendarWeeks.js +++ b/node_modules/date-fns/differenceInCalendarWeeks.js @@ -48,15 +48,15 @@ function differenceInCalendarWeeks(dateLeft, dateRight, options) { const startOfWeekRight = (0, _index2.startOfWeek)(dateRight, options); const timestampLeft = - startOfWeekLeft.getTime() - + +startOfWeekLeft - (0, _index3.getTimezoneOffsetInMilliseconds)(startOfWeekLeft); const timestampRight = - startOfWeekRight.getTime() - + +startOfWeekRight - (0, _index3.getTimezoneOffsetInMilliseconds)(startOfWeekRight); - // Round the number of days to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) + // Round the number of days to the nearest integer because the number of + // milliseconds in a days is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). return Math.round( (timestampLeft - timestampRight) / _index.millisecondsInWeek, ); diff --git a/node_modules/date-fns/differenceInCalendarWeeks.mjs b/node_modules/date-fns/differenceInCalendarWeeks.mjs index 3d526fc6..9c4025a6 100644 --- a/node_modules/date-fns/differenceInCalendarWeeks.mjs +++ b/node_modules/date-fns/differenceInCalendarWeeks.mjs @@ -45,15 +45,13 @@ export function differenceInCalendarWeeks(dateLeft, dateRight, options) { const startOfWeekRight = startOfWeek(dateRight, options); const timestampLeft = - startOfWeekLeft.getTime() - - getTimezoneOffsetInMilliseconds(startOfWeekLeft); + +startOfWeekLeft - getTimezoneOffsetInMilliseconds(startOfWeekLeft); const timestampRight = - startOfWeekRight.getTime() - - getTimezoneOffsetInMilliseconds(startOfWeekRight); + +startOfWeekRight - getTimezoneOffsetInMilliseconds(startOfWeekRight); - // Round the number of days to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) + // Round the number of days to the nearest integer because the number of + // milliseconds in a days is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). return Math.round((timestampLeft - timestampRight) / millisecondsInWeek); } diff --git a/node_modules/date-fns/differenceInCalendarYears.d.mts b/node_modules/date-fns/differenceInCalendarYears.d.mts index 105f70fc..f6965bde 100644 --- a/node_modules/date-fns/differenceInCalendarYears.d.mts +++ b/node_modules/date-fns/differenceInCalendarYears.d.mts @@ -1 +1,27 @@ -export type * from "./differenceInCalendarYears.d.ts"; +/** + * @name differenceInCalendarYears + * @category Year Helpers + * @summary Get the number of calendar years between the given dates. + * + * @description + * Get the number of calendar years between the given dates. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + + * @returns The number of calendar years + * + * @example + * // How many calendar years are between 31 December 2013 and 11 February 2015? + * const result = differenceInCalendarYears( + * new Date(2015, 1, 11), + * new Date(2013, 11, 31) + * ) + * //=> 2 + */ +export declare function differenceInCalendarYears( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): number; diff --git a/node_modules/date-fns/differenceInDays.d.mts b/node_modules/date-fns/differenceInDays.d.mts index 3f2b3ca8..6c539df7 100644 --- a/node_modules/date-fns/differenceInDays.d.mts +++ b/node_modules/date-fns/differenceInDays.d.mts @@ -1 +1,58 @@ -export type * from "./differenceInDays.d.ts"; +/** + * @name differenceInDays + * @category Day Helpers + * @summary Get the number of full days between the given dates. + * + * @description + * Get the number of full day periods between two dates. Fractional days are + * truncated towards zero. + * + * One "full day" is the distance between a local time in one day to the same + * local time on the next or previous day. A full day can sometimes be less than + * or more than 24 hours if a daylight savings change happens between two dates. + * + * To ignore DST and only measure exact 24-hour periods, use this instead: + * `Math.trunc(differenceInHours(dateLeft, dateRight)/24)|0`. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * + * @returns The number of full days according to the local timezone + * + * @example + * // How many full days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * const result = differenceInDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 365 + * + * @example + * // How many full days are between + * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? + * const result = differenceInDays( + * new Date(2011, 6, 3, 0, 1), + * new Date(2011, 6, 2, 23, 59) + * ) + * //=> 0 + * + * @example + * // How many full days are between + * // 1 March 2020 0:00 and 1 June 2020 0:00 ? + * // Note: because local time is used, the + * // result will always be 92 days, even in + * // time zones where DST starts and the + * // period has only 92*24-1 hours. + * const result = differenceInDays( + * new Date(2020, 5, 1), + * new Date(2020, 2, 1) + * ) + * //=> 92 + */ +export declare function differenceInDays( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): number; diff --git a/node_modules/date-fns/differenceInDays.d.ts b/node_modules/date-fns/differenceInDays.d.ts index 57764633..6c539df7 100644 --- a/node_modules/date-fns/differenceInDays.d.ts +++ b/node_modules/date-fns/differenceInDays.d.ts @@ -12,7 +12,7 @@ * or more than 24 hours if a daylight savings change happens between two dates. * * To ignore DST and only measure exact 24-hour periods, use this instead: - * `Math.floor(differenceInHours(dateLeft, dateRight)/24)|0`. + * `Math.trunc(differenceInHours(dateLeft, dateRight)/24)|0`. * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * diff --git a/node_modules/date-fns/differenceInDays.js b/node_modules/date-fns/differenceInDays.js index bb9e43ac..1eb1c2e2 100644 --- a/node_modules/date-fns/differenceInDays.js +++ b/node_modules/date-fns/differenceInDays.js @@ -17,7 +17,7 @@ var _index2 = require("./toDate.js"); * or more than 24 hours if a daylight savings change happens between two dates. * * To ignore DST and only measure exact 24-hour periods, use this instead: - * `Math.floor(differenceInHours(dateLeft, dateRight)/24)|0`. + * `Math.trunc(differenceInHours(dateLeft, dateRight)/24)|0`. * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * diff --git a/node_modules/date-fns/differenceInDays.mjs b/node_modules/date-fns/differenceInDays.mjs index e6c5a181..e1b3d427 100644 --- a/node_modules/date-fns/differenceInDays.mjs +++ b/node_modules/date-fns/differenceInDays.mjs @@ -15,7 +15,7 @@ import { toDate } from "./toDate.mjs"; * or more than 24 hours if a daylight savings change happens between two dates. * * To ignore DST and only measure exact 24-hour periods, use this instead: - * `Math.floor(differenceInHours(dateLeft, dateRight)/24)|0`. + * `Math.trunc(differenceInHours(dateLeft, dateRight)/24)|0`. * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * diff --git a/node_modules/date-fns/differenceInHours.d.mts b/node_modules/date-fns/differenceInHours.d.mts index e98c7a28..7f27befa 100644 --- a/node_modules/date-fns/differenceInHours.d.mts +++ b/node_modules/date-fns/differenceInHours.d.mts @@ -1 +1,34 @@ -export type * from "./differenceInHours.d.ts"; +import type { RoundingOptions } from "./types.js"; +/** + * The {@link differenceInHours} function options. + */ +export interface DifferenceInHoursOptions extends RoundingOptions {} +/** + * @name differenceInHours + * @category Hour Helpers + * @summary Get the number of hours between the given dates. + * + * @description + * Get the number of hours between the given dates. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * @param options - An object with options. + * + * @returns The number of hours + * + * @example + * // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00? + * const result = differenceInHours( + * new Date(2014, 6, 2, 19, 0), + * new Date(2014, 6, 2, 6, 50) + * ) + * //=> 12 + */ +export declare function differenceInHours( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, + options?: DifferenceInHoursOptions, +): number; diff --git a/node_modules/date-fns/differenceInHours.js b/node_modules/date-fns/differenceInHours.js index b6b732cf..fa13cd97 100644 --- a/node_modules/date-fns/differenceInHours.js +++ b/node_modules/date-fns/differenceInHours.js @@ -1,9 +1,8 @@ "use strict"; exports.differenceInHours = differenceInHours; -var _index = require("./constants.js"); -var _index2 = require("./differenceInMilliseconds.js"); - -var _index3 = require("./_lib/roundingMethods.js"); +var _index = require("./_lib/getRoundingMethod.js"); +var _index2 = require("./constants.js"); +var _index3 = require("./differenceInMilliseconds.js"); /** * The {@link differenceInHours} function options. @@ -35,7 +34,7 @@ var _index3 = require("./_lib/roundingMethods.js"); */ function differenceInHours(dateLeft, dateRight, options) { const diff = - (0, _index2.differenceInMilliseconds)(dateLeft, dateRight) / - _index.millisecondsInHour; - return (0, _index3.getRoundingMethod)(options?.roundingMethod)(diff); + (0, _index3.differenceInMilliseconds)(dateLeft, dateRight) / + _index2.millisecondsInHour; + return (0, _index.getRoundingMethod)(options?.roundingMethod)(diff); } diff --git a/node_modules/date-fns/differenceInHours.mjs b/node_modules/date-fns/differenceInHours.mjs index 4aa6b3bc..0df7ea54 100644 --- a/node_modules/date-fns/differenceInHours.mjs +++ b/node_modules/date-fns/differenceInHours.mjs @@ -1,6 +1,6 @@ +import { getRoundingMethod } from "./_lib/getRoundingMethod.mjs"; import { millisecondsInHour } from "./constants.mjs"; import { differenceInMilliseconds } from "./differenceInMilliseconds.mjs"; -import { getRoundingMethod } from "./_lib/roundingMethods.mjs"; /** * The {@link differenceInHours} function options. diff --git a/node_modules/date-fns/differenceInISOWeekYears.d.mts b/node_modules/date-fns/differenceInISOWeekYears.d.mts index f2ac2994..b415e524 100644 --- a/node_modules/date-fns/differenceInISOWeekYears.d.mts +++ b/node_modules/date-fns/differenceInISOWeekYears.d.mts @@ -1 +1,29 @@ -export type * from "./differenceInISOWeekYears.d.ts"; +/** + * @name differenceInISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of full ISO week-numbering years between the given dates. + * + * @description + * Get the number of full ISO week-numbering years between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * + * @returns The number of full ISO week-numbering years + * + * @example + * // How many full ISO week-numbering years are between 1 January 2010 and 1 January 2012? + * const result = differenceInISOWeekYears( + * new Date(2012, 0, 1), + * new Date(2010, 0, 1) + * ) + * //=> 1 + */ +export declare function differenceInISOWeekYears( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): number; diff --git a/node_modules/date-fns/differenceInMilliseconds.d.mts b/node_modules/date-fns/differenceInMilliseconds.d.mts index 1689e11a..8fadda6b 100644 --- a/node_modules/date-fns/differenceInMilliseconds.d.mts +++ b/node_modules/date-fns/differenceInMilliseconds.d.mts @@ -1 +1,28 @@ -export type * from "./differenceInMilliseconds.d.ts"; +/** + * @name differenceInMilliseconds + * @category Millisecond Helpers + * @summary Get the number of milliseconds between the given dates. + * + * @description + * Get the number of milliseconds between the given dates. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * + * @returns The number of milliseconds + * + * @example + * // How many milliseconds are between + * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700? + * const result = differenceInMilliseconds( + * new Date(2014, 6, 2, 12, 30, 21, 700), + * new Date(2014, 6, 2, 12, 30, 20, 600) + * ) + * //=> 1100 + */ +export declare function differenceInMilliseconds( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): number; diff --git a/node_modules/date-fns/differenceInMilliseconds.js b/node_modules/date-fns/differenceInMilliseconds.js index edd9d022..d815c5a1 100644 --- a/node_modules/date-fns/differenceInMilliseconds.js +++ b/node_modules/date-fns/differenceInMilliseconds.js @@ -27,8 +27,5 @@ var _index = require("./toDate.js"); * //=> 1100 */ function differenceInMilliseconds(dateLeft, dateRight) { - return ( - (0, _index.toDate)(dateLeft).getTime() - - (0, _index.toDate)(dateRight).getTime() - ); + return +(0, _index.toDate)(dateLeft) - +(0, _index.toDate)(dateRight); } diff --git a/node_modules/date-fns/differenceInMilliseconds.mjs b/node_modules/date-fns/differenceInMilliseconds.mjs index 85d478ac..86f38dcf 100644 --- a/node_modules/date-fns/differenceInMilliseconds.mjs +++ b/node_modules/date-fns/differenceInMilliseconds.mjs @@ -25,7 +25,7 @@ import { toDate } from "./toDate.mjs"; * //=> 1100 */ export function differenceInMilliseconds(dateLeft, dateRight) { - return toDate(dateLeft).getTime() - toDate(dateRight).getTime(); + return +toDate(dateLeft) - +toDate(dateRight); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/differenceInMinutes.d.mts b/node_modules/date-fns/differenceInMinutes.d.mts index 17f048e8..ebb5d638 100644 --- a/node_modules/date-fns/differenceInMinutes.d.mts +++ b/node_modules/date-fns/differenceInMinutes.d.mts @@ -1 +1,42 @@ -export type * from "./differenceInMinutes.d.ts"; +import type { RoundingOptions } from "./types.js"; +/** + * The {@link differenceInMinutes} function options. + */ +export interface DifferenceInMinutesOptions extends RoundingOptions {} +/** + * @name differenceInMinutes + * @category Minute Helpers + * @summary Get the number of minutes between the given dates. + * + * @description + * Get the signed number of full (rounded towards 0) minutes between the given dates. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * @param options - An object with options. + * + * @returns The number of minutes + * + * @example + * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00? + * const result = differenceInMinutes( + * new Date(2014, 6, 2, 12, 20, 0), + * new Date(2014, 6, 2, 12, 7, 59) + * ) + * //=> 12 + * + * @example + * // How many minutes are between 10:01:59 and 10:00:00 + * const result = differenceInMinutes( + * new Date(2000, 0, 1, 10, 0, 0), + * new Date(2000, 0, 1, 10, 1, 59) + * ) + * //=> -1 + */ +export declare function differenceInMinutes( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, + options?: DifferenceInMinutesOptions, +): number; diff --git a/node_modules/date-fns/differenceInMinutes.js b/node_modules/date-fns/differenceInMinutes.js index eba8af36..fd1124c6 100644 --- a/node_modules/date-fns/differenceInMinutes.js +++ b/node_modules/date-fns/differenceInMinutes.js @@ -1,9 +1,8 @@ "use strict"; exports.differenceInMinutes = differenceInMinutes; -var _index = require("./constants.js"); -var _index2 = require("./differenceInMilliseconds.js"); - -var _index3 = require("./_lib/roundingMethods.js"); +var _index = require("./_lib/getRoundingMethod.js"); +var _index2 = require("./constants.js"); +var _index3 = require("./differenceInMilliseconds.js"); /** * The {@link differenceInMinutes} function options. @@ -43,7 +42,7 @@ var _index3 = require("./_lib/roundingMethods.js"); */ function differenceInMinutes(dateLeft, dateRight, options) { const diff = - (0, _index2.differenceInMilliseconds)(dateLeft, dateRight) / - _index.millisecondsInMinute; - return (0, _index3.getRoundingMethod)(options?.roundingMethod)(diff); + (0, _index3.differenceInMilliseconds)(dateLeft, dateRight) / + _index2.millisecondsInMinute; + return (0, _index.getRoundingMethod)(options?.roundingMethod)(diff); } diff --git a/node_modules/date-fns/differenceInMinutes.mjs b/node_modules/date-fns/differenceInMinutes.mjs index b83936cd..2469c4d4 100644 --- a/node_modules/date-fns/differenceInMinutes.mjs +++ b/node_modules/date-fns/differenceInMinutes.mjs @@ -1,6 +1,6 @@ +import { getRoundingMethod } from "./_lib/getRoundingMethod.mjs"; import { millisecondsInMinute } from "./constants.mjs"; import { differenceInMilliseconds } from "./differenceInMilliseconds.mjs"; -import { getRoundingMethod } from "./_lib/roundingMethods.mjs"; /** * The {@link differenceInMinutes} function options. diff --git a/node_modules/date-fns/differenceInMonths.d.mts b/node_modules/date-fns/differenceInMonths.d.mts index e7a2da1e..cda1b802 100644 --- a/node_modules/date-fns/differenceInMonths.d.mts +++ b/node_modules/date-fns/differenceInMonths.d.mts @@ -1 +1,24 @@ -export type * from "./differenceInMonths.d.ts"; +/** + * @name differenceInMonths + * @category Month Helpers + * @summary Get the number of full months between the given dates. + * + * @description + * Get the number of full months between the given dates using trunc as a default rounding method. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * + * @returns The number of full months + * + * @example + * // How many full months are between 31 January 2014 and 1 September 2014? + * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31)) + * //=> 7 + */ +export declare function differenceInMonths( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): number; diff --git a/node_modules/date-fns/differenceInQuarters.d.mts b/node_modules/date-fns/differenceInQuarters.d.mts index 8bed0a28..e5042e45 100644 --- a/node_modules/date-fns/differenceInQuarters.d.mts +++ b/node_modules/date-fns/differenceInQuarters.d.mts @@ -1 +1,31 @@ -export type * from "./differenceInQuarters.d.ts"; +import type { RoundingOptions } from "./types.js"; +/** + * The {@link differenceInQuarters} function options. + */ +export interface DifferenceInQuartersOptions extends RoundingOptions {} +/** + * @name differenceInQuarters + * @category Quarter Helpers + * @summary Get the number of quarters between the given dates. + * + * @description + * Get the number of quarters between the given dates. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * @param options - An object with options. + * + * @returns The number of full quarters + * + * @example + * // How many full quarters are between 31 December 2013 and 2 July 2014? + * const result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31)) + * //=> 2 + */ +export declare function differenceInQuarters( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, + options?: DifferenceInQuartersOptions, +): number; diff --git a/node_modules/date-fns/differenceInQuarters.js b/node_modules/date-fns/differenceInQuarters.js index 997aa103..669fea8a 100644 --- a/node_modules/date-fns/differenceInQuarters.js +++ b/node_modules/date-fns/differenceInQuarters.js @@ -1,8 +1,7 @@ "use strict"; exports.differenceInQuarters = differenceInQuarters; -var _index = require("./differenceInMonths.js"); - -var _index2 = require("./_lib/roundingMethods.js"); +var _index = require("./_lib/getRoundingMethod.js"); +var _index2 = require("./differenceInMonths.js"); /** * The {@link differenceInQuarters} function options. @@ -30,6 +29,6 @@ var _index2 = require("./_lib/roundingMethods.js"); * //=> 2 */ function differenceInQuarters(dateLeft, dateRight, options) { - const diff = (0, _index.differenceInMonths)(dateLeft, dateRight) / 3; - return (0, _index2.getRoundingMethod)(options?.roundingMethod)(diff); + const diff = (0, _index2.differenceInMonths)(dateLeft, dateRight) / 3; + return (0, _index.getRoundingMethod)(options?.roundingMethod)(diff); } diff --git a/node_modules/date-fns/differenceInQuarters.mjs b/node_modules/date-fns/differenceInQuarters.mjs index c9035dc5..685ee61b 100644 --- a/node_modules/date-fns/differenceInQuarters.mjs +++ b/node_modules/date-fns/differenceInQuarters.mjs @@ -1,5 +1,5 @@ +import { getRoundingMethod } from "./_lib/getRoundingMethod.mjs"; import { differenceInMonths } from "./differenceInMonths.mjs"; -import { getRoundingMethod } from "./_lib/roundingMethods.mjs"; /** * The {@link differenceInQuarters} function options. diff --git a/node_modules/date-fns/differenceInSeconds.d.mts b/node_modules/date-fns/differenceInSeconds.d.mts index d2cdf5e5..99b40136 100644 --- a/node_modules/date-fns/differenceInSeconds.d.mts +++ b/node_modules/date-fns/differenceInSeconds.d.mts @@ -1 +1,35 @@ -export type * from "./differenceInSeconds.d.ts"; +import type { RoundingOptions } from "./types.js"; +/** + * The {@link differenceInSeconds} function options. + */ +export interface DifferenceInSecondsOptions extends RoundingOptions {} +/** + * @name differenceInSeconds + * @category Second Helpers + * @summary Get the number of seconds between the given dates. + * + * @description + * Get the number of seconds between the given dates. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * @param options - An object with options. + * + * @returns The number of seconds + * + * @example + * // How many seconds are between + * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000? + * const result = differenceInSeconds( + * new Date(2014, 6, 2, 12, 30, 20, 0), + * new Date(2014, 6, 2, 12, 30, 7, 999) + * ) + * //=> 12 + */ +export declare function differenceInSeconds( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, + options?: DifferenceInSecondsOptions, +): number; diff --git a/node_modules/date-fns/differenceInSeconds.js b/node_modules/date-fns/differenceInSeconds.js index 90fc0d3b..fc39f2fc 100644 --- a/node_modules/date-fns/differenceInSeconds.js +++ b/node_modules/date-fns/differenceInSeconds.js @@ -1,8 +1,7 @@ "use strict"; exports.differenceInSeconds = differenceInSeconds; -var _index = require("./differenceInMilliseconds.js"); - -var _index2 = require("./_lib/roundingMethods.js"); +var _index = require("./_lib/getRoundingMethod.js"); +var _index2 = require("./differenceInMilliseconds.js"); /** * The {@link differenceInSeconds} function options. @@ -34,6 +33,7 @@ var _index2 = require("./_lib/roundingMethods.js"); * //=> 12 */ function differenceInSeconds(dateLeft, dateRight, options) { - const diff = (0, _index.differenceInMilliseconds)(dateLeft, dateRight) / 1000; - return (0, _index2.getRoundingMethod)(options?.roundingMethod)(diff); + const diff = + (0, _index2.differenceInMilliseconds)(dateLeft, dateRight) / 1000; + return (0, _index.getRoundingMethod)(options?.roundingMethod)(diff); } diff --git a/node_modules/date-fns/differenceInSeconds.mjs b/node_modules/date-fns/differenceInSeconds.mjs index 108e6d36..1aab07e2 100644 --- a/node_modules/date-fns/differenceInSeconds.mjs +++ b/node_modules/date-fns/differenceInSeconds.mjs @@ -1,5 +1,5 @@ +import { getRoundingMethod } from "./_lib/getRoundingMethod.mjs"; import { differenceInMilliseconds } from "./differenceInMilliseconds.mjs"; -import { getRoundingMethod } from "./_lib/roundingMethods.mjs"; /** * The {@link differenceInSeconds} function options. diff --git a/node_modules/date-fns/differenceInWeeks.d.mts b/node_modules/date-fns/differenceInWeeks.d.mts index 93047199..1acdad5c 100644 --- a/node_modules/date-fns/differenceInWeeks.d.mts +++ b/node_modules/date-fns/differenceInWeeks.d.mts @@ -1 +1,52 @@ -export type * from "./differenceInWeeks.d.ts"; +import type { RoundingOptions } from "./types.js"; +/** + * The {@link differenceInWeeks} function options. + */ +export interface DifferenceInWeeksOptions extends RoundingOptions {} +/** + * @name differenceInWeeks + * @category Week Helpers + * @summary Get the number of full weeks between the given dates. + * + * @description + * Get the number of full weeks between two dates. Fractional weeks are + * truncated towards zero by default. + * + * One "full week" is the distance between a local time in one day to the same + * local time 7 days earlier or later. A full week can sometimes be less than + * or more than 7*24 hours if a daylight savings change happens between two dates. + * + * To ignore DST and only measure exact 7*24-hour periods, use this instead: + * `Math.trunc(differenceInHours(dateLeft, dateRight)/(7*24))|0`. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * @param options - An object with options + * + * @returns The number of full weeks + * + * @example + * // How many full weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInWeeks(new Date(2014, 6, 20), new Date(2014, 6, 5)) + * //=> 2 + * + * @example + * // How many full weeks are between + * // 1 March 2020 0:00 and 6 June 2020 0:00 ? + * // Note: because local time is used, the + * // result will always be 8 weeks (54 days), + * // even if DST starts and the period has + * // only 54*24-1 hours. + * const result = differenceInWeeks( + * new Date(2020, 5, 1), + * new Date(2020, 2, 6) + * ) + * //=> 8 + */ +export declare function differenceInWeeks( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, + options?: DifferenceInWeeksOptions, +): number; diff --git a/node_modules/date-fns/differenceInWeeks.d.ts b/node_modules/date-fns/differenceInWeeks.d.ts index 92978fdb..1acdad5c 100644 --- a/node_modules/date-fns/differenceInWeeks.d.ts +++ b/node_modules/date-fns/differenceInWeeks.d.ts @@ -17,7 +17,7 @@ export interface DifferenceInWeeksOptions extends RoundingOptions {} * or more than 7*24 hours if a daylight savings change happens between two dates. * * To ignore DST and only measure exact 7*24-hour periods, use this instead: - * `Math.floor(differenceInHours(dateLeft, dateRight)/(7*24))|0`. + * `Math.trunc(differenceInHours(dateLeft, dateRight)/(7*24))|0`. * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * diff --git a/node_modules/date-fns/differenceInWeeks.js b/node_modules/date-fns/differenceInWeeks.js index 4bec673e..15c12c81 100644 --- a/node_modules/date-fns/differenceInWeeks.js +++ b/node_modules/date-fns/differenceInWeeks.js @@ -1,8 +1,7 @@ "use strict"; exports.differenceInWeeks = differenceInWeeks; -var _index = require("./differenceInDays.js"); - -var _index2 = require("./_lib/roundingMethods.js"); +var _index = require("./_lib/getRoundingMethod.js"); +var _index2 = require("./differenceInDays.js"); /** * The {@link differenceInWeeks} function options. @@ -22,7 +21,7 @@ var _index2 = require("./_lib/roundingMethods.js"); * or more than 7*24 hours if a daylight savings change happens between two dates. * * To ignore DST and only measure exact 7*24-hour periods, use this instead: - * `Math.floor(differenceInHours(dateLeft, dateRight)/(7*24))|0`. + * `Math.trunc(differenceInHours(dateLeft, dateRight)/(7*24))|0`. * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * @@ -51,6 +50,6 @@ var _index2 = require("./_lib/roundingMethods.js"); * //=> 8 */ function differenceInWeeks(dateLeft, dateRight, options) { - const diff = (0, _index.differenceInDays)(dateLeft, dateRight) / 7; - return (0, _index2.getRoundingMethod)(options?.roundingMethod)(diff); + const diff = (0, _index2.differenceInDays)(dateLeft, dateRight) / 7; + return (0, _index.getRoundingMethod)(options?.roundingMethod)(diff); } diff --git a/node_modules/date-fns/differenceInWeeks.mjs b/node_modules/date-fns/differenceInWeeks.mjs index f6828d2f..24a974bc 100644 --- a/node_modules/date-fns/differenceInWeeks.mjs +++ b/node_modules/date-fns/differenceInWeeks.mjs @@ -1,5 +1,5 @@ +import { getRoundingMethod } from "./_lib/getRoundingMethod.mjs"; import { differenceInDays } from "./differenceInDays.mjs"; -import { getRoundingMethod } from "./_lib/roundingMethods.mjs"; /** * The {@link differenceInWeeks} function options. @@ -19,7 +19,7 @@ import { getRoundingMethod } from "./_lib/roundingMethods.mjs"; * or more than 7*24 hours if a daylight savings change happens between two dates. * * To ignore DST and only measure exact 7*24-hour periods, use this instead: - * `Math.floor(differenceInHours(dateLeft, dateRight)/(7*24))|0`. + * `Math.trunc(differenceInHours(dateLeft, dateRight)/(7*24))|0`. * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * diff --git a/node_modules/date-fns/differenceInYears.d.mts b/node_modules/date-fns/differenceInYears.d.mts index d411c34c..cc9331e5 100644 --- a/node_modules/date-fns/differenceInYears.d.mts +++ b/node_modules/date-fns/differenceInYears.d.mts @@ -1 +1,24 @@ -export type * from "./differenceInYears.d.ts"; +/** + * @name differenceInYears + * @category Year Helpers + * @summary Get the number of full years between the given dates. + * + * @description + * Get the number of full years between the given dates. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * + * @returns The number of full years + * + * @example + * // How many full years are between 31 December 2013 and 11 February 2015? + * const result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31)) + * //=> 1 + */ +export declare function differenceInYears( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): number; diff --git a/node_modules/date-fns/docs/config.js b/node_modules/date-fns/docs/config.js index 804e2d7a..400d5d73 100644 --- a/node_modules/date-fns/docs/config.js +++ b/node_modules/date-fns/docs/config.js @@ -84,6 +84,14 @@ module.exports.config = { summary: "Time zone functions", path: "timeZones.md", }, + { + type: "markdown", + slug: "CDN", + category: "General", + title: "CDN", + summary: "CDN version of date-fns", + path: "cdn.md", + }, { type: "markdown", slug: "webpack", diff --git a/node_modules/date-fns/docs/i18nContributionGuide.md b/node_modules/date-fns/docs/i18nContributionGuide.md index 5d630d94..228d4f5f 100644 --- a/node_modules/date-fns/docs/i18nContributionGuide.md +++ b/node_modules/date-fns/docs/i18nContributionGuide.md @@ -77,7 +77,7 @@ Use the two/three letter code: - if all countries who use the language also use the same regional standards: the first day of the week, - the week numbering (see: https://en.wikipedia.org/wiki/Week#Week_numbering), + the week numbering (see: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system), calendar date format (see: https://en.wikipedia.org/wiki/Calendar_date) and date representation (see: https://en.wikipedia.org/wiki/Date_and_time_representation_by_country and: https://en.wikipedia.org/wiki/Date_format_by_country) @@ -128,7 +128,7 @@ var locale = { weekStartsOn: 0, // Nth of January which is always in the first week of the year. See: - // https://en.wikipedia.org/wiki/Week#Week_numbering + // https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system // http://www.pjh2.de/datetime/weeknumber/wnd.php?l=en firstWeekContainsDate: 1, }, diff --git a/node_modules/date-fns/eachDayOfInterval.d.mts b/node_modules/date-fns/eachDayOfInterval.d.mts index 7fe7813b..ec4093bc 100644 --- a/node_modules/date-fns/eachDayOfInterval.d.mts +++ b/node_modules/date-fns/eachDayOfInterval.d.mts @@ -1 +1,38 @@ -export type * from "./eachDayOfInterval.d.ts"; +import type { Interval, StepOptions } from "./types.js"; +/** + * The {@link eachDayOfInterval} function options. + */ +export interface EachDayOfIntervalOptions extends StepOptions {} +/** + * @name eachDayOfInterval + * @category Interval Helpers + * @summary Return the array of dates within the specified time interval. + * + * @description + * Return the array of dates within the specified time interval. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of days from the day of the interval start to the day of the interval end + * + * @example + * // Each day between 6 October 2014 and 10 October 2014: + * const result = eachDayOfInterval({ + * start: new Date(2014, 9, 6), + * end: new Date(2014, 9, 10) + * }) + * //=> [ + * // Mon Oct 06 2014 00:00:00, + * // Tue Oct 07 2014 00:00:00, + * // Wed Oct 08 2014 00:00:00, + * // Thu Oct 09 2014 00:00:00, + * // Fri Oct 10 2014 00:00:00 + * // ] + */ +export declare function eachDayOfInterval( + interval: Interval, + options?: EachDayOfIntervalOptions, +): DateType[]; diff --git a/node_modules/date-fns/eachHourOfInterval.d.mts b/node_modules/date-fns/eachHourOfInterval.d.mts index 081c877f..4a3387d9 100644 --- a/node_modules/date-fns/eachHourOfInterval.d.mts +++ b/node_modules/date-fns/eachHourOfInterval.d.mts @@ -1 +1,37 @@ -export type * from "./eachHourOfInterval.d.ts"; +import type { Interval, StepOptions } from "./types.js"; +/** + * The {@link eachHourOfInterval} function options. + */ +export interface EachHourOfIntervalOptions extends StepOptions {} +/** + * @name eachHourOfInterval + * @category Interval Helpers + * @summary Return the array of hours within the specified time interval. + * + * @description + * Return the array of hours within the specified time interval. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of hours from the hour of the interval start to the hour of the interval end + * + * @example + * // Each hour between 6 October 2014, 12:00 and 6 October 2014, 15:00 + * const result = eachHourOfInterval({ + * start: new Date(2014, 9, 6, 12), + * end: new Date(2014, 9, 6, 15) + * }) + * //=> [ + * // Mon Oct 06 2014 12:00:00, + * // Mon Oct 06 2014 13:00:00, + * // Mon Oct 06 2014 14:00:00, + * // Mon Oct 06 2014 15:00:00 + * // ] + */ +export declare function eachHourOfInterval( + interval: Interval, + options?: EachHourOfIntervalOptions, +): DateType[]; diff --git a/node_modules/date-fns/eachMinuteOfInterval.d.mts b/node_modules/date-fns/eachMinuteOfInterval.d.mts index 6d2ed3f3..f8386cde 100644 --- a/node_modules/date-fns/eachMinuteOfInterval.d.mts +++ b/node_modules/date-fns/eachMinuteOfInterval.d.mts @@ -1 +1,37 @@ -export type * from "./eachMinuteOfInterval.d.ts"; +import type { Interval, StepOptions } from "./types.js"; +/** + * The {@link eachMinuteOfInterval} function options. + */ +export interface EachMinuteOfIntervalOptions extends StepOptions {} +/** + * @name eachMinuteOfInterval + * @category Interval Helpers + * @summary Return the array of minutes within the specified time interval. + * + * @description + * Returns the array of minutes within the specified time interval. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of minutes from the minute of the interval start to the minute of the interval end + * + * @example + * // Each minute between 14 October 2020, 13:00 and 14 October 2020, 13:03 + * const result = eachMinuteOfInterval({ + * start: new Date(2014, 9, 14, 13), + * end: new Date(2014, 9, 14, 13, 3) + * }) + * //=> [ + * // Wed Oct 14 2014 13:00:00, + * // Wed Oct 14 2014 13:01:00, + * // Wed Oct 14 2014 13:02:00, + * // Wed Oct 14 2014 13:03:00 + * // ] + */ +export declare function eachMinuteOfInterval( + interval: Interval, + options?: EachMinuteOfIntervalOptions, +): DateType[]; diff --git a/node_modules/date-fns/eachMonthOfInterval.d.mts b/node_modules/date-fns/eachMonthOfInterval.d.mts index 23f49b1d..175a2bca 100644 --- a/node_modules/date-fns/eachMonthOfInterval.d.mts +++ b/node_modules/date-fns/eachMonthOfInterval.d.mts @@ -1 +1,39 @@ -export type * from "./eachMonthOfInterval.d.ts"; +import type { Interval, StepOptions } from "./types.js"; +/** + * The {@link eachMonthOfInterval} function options. + */ +export interface EachMonthOfIntervalOptions extends StepOptions {} +/** + * @name eachMonthOfInterval + * @category Interval Helpers + * @summary Return the array of months within the specified time interval. + * + * @description + * Return the array of months within the specified time interval. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param interval - The interval + * + * @returns The array with starts of months from the month of the interval start to the month of the interval end + * + * @example + * // Each month between 6 February 2014 and 10 August 2014: + * const result = eachMonthOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2014, 7, 10) + * }) + * //=> [ + * // Sat Feb 01 2014 00:00:00, + * // Sat Mar 01 2014 00:00:00, + * // Tue Apr 01 2014 00:00:00, + * // Thu May 01 2014 00:00:00, + * // Sun Jun 01 2014 00:00:00, + * // Tue Jul 01 2014 00:00:00, + * // Fri Aug 01 2014 00:00:00 + * // ] + */ +export declare function eachMonthOfInterval( + interval: Interval, + options?: EachMonthOfIntervalOptions, +): DateType[]; diff --git a/node_modules/date-fns/eachQuarterOfInterval.d.mts b/node_modules/date-fns/eachQuarterOfInterval.d.mts index 8bf8d1ba..00958b01 100644 --- a/node_modules/date-fns/eachQuarterOfInterval.d.mts +++ b/node_modules/date-fns/eachQuarterOfInterval.d.mts @@ -1 +1,35 @@ -export type * from "./eachQuarterOfInterval.d.ts"; +import type { Interval, StepOptions } from "./types.js"; +/** + * The {@link eachQuarterOfInterval} function options. + */ +export interface EachQuarterOfIntervalOptions extends StepOptions {} +/** + * @name eachQuarterOfInterval + * @category Interval Helpers + * @summary Return the array of quarters within the specified time interval. + * + * @description + * Return the array of quarters within the specified time interval. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param interval - The interval + * + * @returns The array with starts of quarters from the quarter of the interval start to the quarter of the interval end + * + * @example + * // Each quarter within interval 6 February 2014 - 10 August 2014: + * const result = eachQuarterOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2014, 7, 10) + * }) + * //=> [ + * // Wed Jan 01 2014 00:00:00, + * // Tue Apr 01 2014 00:00:00, + * // Tue Jul 01 2014 00:00:00, + * // ] + */ +export declare function eachQuarterOfInterval( + interval: Interval, + options?: EachQuarterOfIntervalOptions, +): DateType[]; diff --git a/node_modules/date-fns/eachWeekOfInterval.d.mts b/node_modules/date-fns/eachWeekOfInterval.d.mts index c5eaf714..466527b6 100644 --- a/node_modules/date-fns/eachWeekOfInterval.d.mts +++ b/node_modules/date-fns/eachWeekOfInterval.d.mts @@ -1 +1,49 @@ -export type * from "./eachWeekOfInterval.d.ts"; +import type { + Interval, + LocalizedOptions, + StepOptions, + WeekOptions, +} from "./types.js"; +/** + * The {@link eachWeekOfInterval} function options. + */ +export interface EachWeekOfIntervalOptions + extends StepOptions, + WeekOptions, + LocalizedOptions<"options"> {} +/** + * @name eachWeekOfInterval + * @category Interval Helpers + * @summary Return the array of weeks within the specified time interval. + * + * @description + * Return the array of weeks within the specified time interval. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of weeks from the week of the interval start to the week of the interval end + * + * @example + * // Each week within interval 6 October 2014 - 23 November 2014: + * const result = eachWeekOfInterval({ + * start: new Date(2014, 9, 6), + * end: new Date(2014, 10, 23) + * }) + * //=> [ + * // Sun Oct 05 2014 00:00:00, + * // Sun Oct 12 2014 00:00:00, + * // Sun Oct 19 2014 00:00:00, + * // Sun Oct 26 2014 00:00:00, + * // Sun Nov 02 2014 00:00:00, + * // Sun Nov 09 2014 00:00:00, + * // Sun Nov 16 2014 00:00:00, + * // Sun Nov 23 2014 00:00:00 + * // ] + */ +export declare function eachWeekOfInterval( + interval: Interval, + options?: EachWeekOfIntervalOptions, +): DateType[]; diff --git a/node_modules/date-fns/eachWeekendOfInterval.d.mts b/node_modules/date-fns/eachWeekendOfInterval.d.mts index d5ef9119..d5f3c0fc 100644 --- a/node_modules/date-fns/eachWeekendOfInterval.d.mts +++ b/node_modules/date-fns/eachWeekendOfInterval.d.mts @@ -1 +1,31 @@ -export type * from "./eachWeekendOfInterval.d.ts"; +import type { Interval } from "./types.js"; +/** + * @name eachWeekendOfInterval + * @category Interval Helpers + * @summary List all the Saturdays and Sundays in the given date interval. + * + * @description + * Get all the Saturdays and Sundays in the given date interval. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param interval - The given interval + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the given date interval + * const result = eachWeekendOfInterval({ + * start: new Date(2018, 8, 17), + * end: new Date(2018, 8, 30) + * }) + * //=> [ + * // Sat Sep 22 2018 00:00:00, + * // Sun Sep 23 2018 00:00:00, + * // Sat Sep 29 2018 00:00:00, + * // Sun Sep 30 2018 00:00:00 + * // ] + */ +export declare function eachWeekendOfInterval( + interval: Interval, +): DateType[]; diff --git a/node_modules/date-fns/eachWeekendOfMonth.d.mts b/node_modules/date-fns/eachWeekendOfMonth.d.mts index bf61dd94..b8908eed 100644 --- a/node_modules/date-fns/eachWeekendOfMonth.d.mts +++ b/node_modules/date-fns/eachWeekendOfMonth.d.mts @@ -1 +1,31 @@ -export type * from "./eachWeekendOfMonth.d.ts"; +/** + * @name eachWeekendOfMonth + * @category Month Helpers + * @summary List all the Saturdays and Sundays in the given month. + * + * @description + * Get all the Saturdays and Sundays in the given month. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given month + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the given month + * const result = eachWeekendOfMonth(new Date(2022, 1, 1)) + * //=> [ + * // Sat Feb 05 2022 00:00:00, + * // Sun Feb 06 2022 00:00:00, + * // Sat Feb 12 2022 00:00:00, + * // Sun Feb 13 2022 00:00:00, + * // Sat Feb 19 2022 00:00:00, + * // Sun Feb 20 2022 00:00:00, + * // Sat Feb 26 2022 00:00:00, + * // Sun Feb 27 2022 00:00:00 + * // ] + */ +export declare function eachWeekendOfMonth( + date: DateType, +): DateType[]; diff --git a/node_modules/date-fns/eachWeekendOfYear.d.mts b/node_modules/date-fns/eachWeekendOfYear.d.mts index c657c50a..6eeccf3e 100644 --- a/node_modules/date-fns/eachWeekendOfYear.d.mts +++ b/node_modules/date-fns/eachWeekendOfYear.d.mts @@ -1 +1,28 @@ -export type * from "./eachWeekendOfYear.d.ts"; +/** + * @name eachWeekendOfYear + * @category Year Helpers + * @summary List all the Saturdays and Sundays in the year. + * + * @description + * Get all the Saturdays and Sundays in the year. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given year + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the year + * const result = eachWeekendOfYear(new Date(2020, 1, 1)) + * //=> [ + * // Sat Jan 03 2020 00:00:00, + * // Sun Jan 04 2020 00:00:00, + * // ... + * // Sun Dec 27 2020 00:00:00 + * // ] + * ] + */ +export declare function eachWeekendOfYear( + date: DateType | number | string, +): DateType[]; diff --git a/node_modules/date-fns/eachYearOfInterval.d.mts b/node_modules/date-fns/eachYearOfInterval.d.mts index 589c1662..55e3daa3 100644 --- a/node_modules/date-fns/eachYearOfInterval.d.mts +++ b/node_modules/date-fns/eachYearOfInterval.d.mts @@ -1 +1,36 @@ -export type * from "./eachYearOfInterval.d.ts"; +import type { Interval, StepOptions } from "./types.js"; +/** + * The {@link eachYearOfInterval} function options. + */ +export interface EachYearOfIntervalOptions extends StepOptions {} +/** + * @name eachYearOfInterval + * @category Interval Helpers + * @summary Return the array of yearly timestamps within the specified time interval. + * + * @description + * Return the array of yearly timestamps within the specified time interval. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param interval - The interval. + * + * @returns The array with starts of yearly timestamps from the month of the interval start to the month of the interval end + * + * @example + * // Each year between 6 February 2014 and 10 August 2017: + * const result = eachYearOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2017, 7, 10) + * }) + * //=> [ + * // Wed Jan 01 2014 00:00:00, + * // Thu Jan 01 2015 00:00:00, + * // Fri Jan 01 2016 00:00:00, + * // Sun Jan 01 2017 00:00:00 + * // ] + */ +export declare function eachYearOfInterval( + interval: Interval, + options?: EachYearOfIntervalOptions, +): DateType[]; diff --git a/node_modules/date-fns/endOfDay.d.mts b/node_modules/date-fns/endOfDay.d.mts index 9b3c9a7f..20aa9657 100644 --- a/node_modules/date-fns/endOfDay.d.mts +++ b/node_modules/date-fns/endOfDay.d.mts @@ -1 +1,23 @@ -export type * from "./endOfDay.d.ts"; +/** + * @name endOfDay + * @category Day Helpers + * @summary Return the end of a day for the given date. + * + * @description + * Return the end of a day for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The end of a day + * + * @example + * // The end of a day for 2 September 2014 11:55:00: + * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 02 2014 23:59:59.999 + */ +export declare function endOfDay( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/endOfDecade.d.mts b/node_modules/date-fns/endOfDecade.d.mts index defce08b..5b48a7d6 100644 --- a/node_modules/date-fns/endOfDecade.d.mts +++ b/node_modules/date-fns/endOfDecade.d.mts @@ -1 +1,22 @@ -export type * from "./endOfDecade.d.ts"; +/** + * @name endOfDecade + * @category Decade Helpers + * @summary Return the end of a decade for the given date. + * + * @description + * Return the end of a decade for the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The end of a decade + * + * @example + * // The end of a decade for 12 May 1984 00:00:00: + * const result = endOfDecade(new Date(1984, 4, 12, 00, 00, 00)) + * //=> Dec 31 1989 23:59:59.999 + */ +export declare function endOfDecade( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/endOfDecade.js b/node_modules/date-fns/endOfDecade.js index 7c41baa0..3ccfbb77 100644 --- a/node_modules/date-fns/endOfDecade.js +++ b/node_modules/date-fns/endOfDecade.js @@ -22,6 +22,9 @@ var _index = require("./toDate.js"); * //=> Dec 31 1989 23:59:59.999 */ function endOfDecade(date) { + // TODO: Switch to more technical definition in of decades that start with 1 + // end with 0. I.e. 2001-2010 instead of current 2000-2009. It's a breaking + // change, so it can only be done in 4.0. const _date = (0, _index.toDate)(date); const year = _date.getFullYear(); const decade = 9 + Math.floor(year / 10) * 10; diff --git a/node_modules/date-fns/endOfDecade.mjs b/node_modules/date-fns/endOfDecade.mjs index 31d38c61..ddcf51be 100644 --- a/node_modules/date-fns/endOfDecade.mjs +++ b/node_modules/date-fns/endOfDecade.mjs @@ -20,6 +20,9 @@ import { toDate } from "./toDate.mjs"; * //=> Dec 31 1989 23:59:59.999 */ export function endOfDecade(date) { + // TODO: Switch to more technical definition in of decades that start with 1 + // end with 0. I.e. 2001-2010 instead of current 2000-2009. It's a breaking + // change, so it can only be done in 4.0. const _date = toDate(date); const year = _date.getFullYear(); const decade = 9 + Math.floor(year / 10) * 10; diff --git a/node_modules/date-fns/endOfHour.d.mts b/node_modules/date-fns/endOfHour.d.mts index a2ad4eec..08a1b789 100644 --- a/node_modules/date-fns/endOfHour.d.mts +++ b/node_modules/date-fns/endOfHour.d.mts @@ -1 +1,23 @@ -export type * from "./endOfHour.d.ts"; +/** + * @name endOfHour + * @category Hour Helpers + * @summary Return the end of an hour for the given date. + * + * @description + * Return the end of an hour for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The end of an hour + * + * @example + * // The end of an hour for 2 September 2014 11:55:00: + * const result = endOfHour(new Date(2014, 8, 2, 11, 55)) + * //=> Tue Sep 02 2014 11:59:59.999 + */ +export declare function endOfHour( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/endOfISOWeek.d.mts b/node_modules/date-fns/endOfISOWeek.d.mts index 87046a73..ff5b3717 100644 --- a/node_modules/date-fns/endOfISOWeek.d.mts +++ b/node_modules/date-fns/endOfISOWeek.d.mts @@ -1 +1,25 @@ -export type * from "./endOfISOWeek.d.ts"; +/** + * @name endOfISOWeek + * @category ISO Week Helpers + * @summary Return the end of an ISO week for the given date. + * + * @description + * Return the end of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The end of an ISO week + * + * @example + * // The end of an ISO week for 2 September 2014 11:55:00: + * const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Sep 07 2014 23:59:59.999 + */ +export declare function endOfISOWeek( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/endOfISOWeekYear.d.mts b/node_modules/date-fns/endOfISOWeekYear.d.mts index db5dd5d2..8b70d107 100644 --- a/node_modules/date-fns/endOfISOWeekYear.d.mts +++ b/node_modules/date-fns/endOfISOWeekYear.d.mts @@ -1 +1,26 @@ -export type * from "./endOfISOWeekYear.d.ts"; +/** + * @name endOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the end of an ISO week-numbering year for the given date. + * + * @description + * Return the end of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The end of an ISO week-numbering year + * + * @example + * // The end of an ISO week-numbering year for 2 July 2005: + * const result = endOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Sun Jan 01 2006 23:59:59.999 + */ +export declare function endOfISOWeekYear( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/endOfMinute.d.mts b/node_modules/date-fns/endOfMinute.d.mts index 04f01eba..55b7edaf 100644 --- a/node_modules/date-fns/endOfMinute.d.mts +++ b/node_modules/date-fns/endOfMinute.d.mts @@ -1 +1,23 @@ -export type * from "./endOfMinute.d.ts"; +/** + * @name endOfMinute + * @category Minute Helpers + * @summary Return the end of a minute for the given date. + * + * @description + * Return the end of a minute for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The end of a minute + * + * @example + * // The end of a minute for 1 December 2014 22:15:45.400: + * const result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:59.999 + */ +export declare function endOfMinute( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/endOfMonth.d.mts b/node_modules/date-fns/endOfMonth.d.mts index aecc3f30..e67d5e4a 100644 --- a/node_modules/date-fns/endOfMonth.d.mts +++ b/node_modules/date-fns/endOfMonth.d.mts @@ -1 +1,23 @@ -export type * from "./endOfMonth.d.ts"; +/** + * @name endOfMonth + * @category Month Helpers + * @summary Return the end of a month for the given date. + * + * @description + * Return the end of a month for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The end of a month + * + * @example + * // The end of a month for 2 September 2014 11:55:00: + * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ +export declare function endOfMonth( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/endOfQuarter.d.mts b/node_modules/date-fns/endOfQuarter.d.mts index ec414dcd..d63d0778 100644 --- a/node_modules/date-fns/endOfQuarter.d.mts +++ b/node_modules/date-fns/endOfQuarter.d.mts @@ -1 +1,23 @@ -export type * from "./endOfQuarter.d.ts"; +/** + * @name endOfQuarter + * @category Quarter Helpers + * @summary Return the end of a year quarter for the given date. + * + * @description + * Return the end of a year quarter for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The end of a quarter + * + * @example + * // The end of a quarter for 2 September 2014 11:55:00: + * const result = endOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ +export declare function endOfQuarter( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/endOfSecond.d.mts b/node_modules/date-fns/endOfSecond.d.mts index 4ded8490..52abe741 100644 --- a/node_modules/date-fns/endOfSecond.d.mts +++ b/node_modules/date-fns/endOfSecond.d.mts @@ -1 +1,23 @@ -export type * from "./endOfSecond.d.ts"; +/** + * @name endOfSecond + * @category Second Helpers + * @summary Return the end of a second for the given date. + * + * @description + * Return the end of a second for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The end of a second + * + * @example + * // The end of a second for 1 December 2014 22:15:45.400: + * const result = endOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:45.999 + */ +export declare function endOfSecond( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/endOfToday.d.mts b/node_modules/date-fns/endOfToday.d.mts index a772bca6..df1fc226 100644 --- a/node_modules/date-fns/endOfToday.d.mts +++ b/node_modules/date-fns/endOfToday.d.mts @@ -1 +1,19 @@ -export type * from "./endOfToday.d.ts"; +/** + * @name endOfToday + * @category Day Helpers + * @summary Return the end of today. + * @pure false + * + * @description + * Return the end of today. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @returns The end of today + * + * @example + * // If today is 6 October 2014: + * const result = endOfToday() + * //=> Mon Oct 6 2014 23:59:59.999 + */ +export declare function endOfToday(): Date; diff --git a/node_modules/date-fns/endOfTomorrow.d.mts b/node_modules/date-fns/endOfTomorrow.d.mts index df064a1a..700afe99 100644 --- a/node_modules/date-fns/endOfTomorrow.d.mts +++ b/node_modules/date-fns/endOfTomorrow.d.mts @@ -1 +1,19 @@ -export type * from "./endOfTomorrow.d.ts"; +/** + * @name endOfTomorrow + * @category Day Helpers + * @summary Return the end of tomorrow. + * @pure false + * + * @description + * Return the end of tomorrow. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @returns The end of tomorrow + * + * @example + * // If today is 6 October 2014: + * const result = endOfTomorrow() + * //=> Tue Oct 7 2014 23:59:59.999 + */ +export declare function endOfTomorrow(): Date; diff --git a/node_modules/date-fns/endOfWeek.d.mts b/node_modules/date-fns/endOfWeek.d.mts index ddcfc5aa..0a02373f 100644 --- a/node_modules/date-fns/endOfWeek.d.mts +++ b/node_modules/date-fns/endOfWeek.d.mts @@ -1 +1,37 @@ -export type * from "./endOfWeek.d.ts"; +import type { LocalizedOptions, WeekOptions } from "./types.js"; +/** + * The {@link endOfWeek} function options. + */ +export interface EndOfWeekOptions + extends WeekOptions, + LocalizedOptions<"options"> {} +/** + * @name endOfWeek + * @category Week Helpers + * @summary Return the end of a week for the given date. + * + * @description + * Return the end of a week for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a week + * + * @example + * // The end of a week for 2 September 2014 11:55:00: + * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sat Sep 06 2014 23:59:59.999 + * + * @example + * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00: + * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 23:59:59.999 + */ +export declare function endOfWeek( + date: DateType | number | string, + options?: EndOfWeekOptions, +): DateType; diff --git a/node_modules/date-fns/endOfYear.d.mts b/node_modules/date-fns/endOfYear.d.mts index 7821f03a..a086dbf4 100644 --- a/node_modules/date-fns/endOfYear.d.mts +++ b/node_modules/date-fns/endOfYear.d.mts @@ -1 +1,23 @@ -export type * from "./endOfYear.d.ts"; +/** + * @name endOfYear + * @category Year Helpers + * @summary Return the end of a year for the given date. + * + * @description + * Return the end of a year for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The end of a year + * + * @example + * // The end of a year for 2 September 2014 11:55:00: + * const result = endOfYear(new Date(2014, 8, 2, 11, 55, 00)) + * //=> Wed Dec 31 2014 23:59:59.999 + */ +export declare function endOfYear( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/endOfYesterday.d.mts b/node_modules/date-fns/endOfYesterday.d.mts index a16f5b3e..6988340e 100644 --- a/node_modules/date-fns/endOfYesterday.d.mts +++ b/node_modules/date-fns/endOfYesterday.d.mts @@ -1 +1,19 @@ -export type * from "./endOfYesterday.d.ts"; +/** + * @name endOfYesterday + * @category Day Helpers + * @summary Return the end of yesterday. + * @pure false + * + * @description + * Return the end of yesterday. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @returns The end of yesterday + * + * @example + * // If today is 6 October 2014: + * const result = endOfYesterday() + * //=> Sun Oct 5 2014 23:59:59.999 + */ +export declare function endOfYesterday(): Date; diff --git a/node_modules/date-fns/format.d.mts b/node_modules/date-fns/format.d.mts index 976bcfae..35c43942 100644 --- a/node_modules/date-fns/format.d.mts +++ b/node_modules/date-fns/format.d.mts @@ -1 +1,310 @@ -export type * from "./format.d.ts"; +import { formatters } from "./_lib/format/formatters.js"; +import { longFormatters } from "./_lib/format/longFormatters.js"; +import type { + AdditionalTokensOptions, + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "./types.js"; +export { formatters, longFormatters }; +export { format as formatDate }; +export type { FormatOptions as FormatDateOptions }; +/** + * The {@link format} function options. + */ +export interface FormatOptions + extends LocalizedOptions<"options" | "localize" | "formatLong">, + WeekOptions, + FirstWeekContainsDateOptions, + AdditionalTokensOptions {} +/** + * @name format + * @alias formatDate + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. The result may vary by locale. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * (see the last example) + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 7 below the table). + * + * Accepted patterns: + * | Unit | Pattern | Result examples | Notes | + * |---------------------------------|---------|-----------------------------------|-------| + * | Era | G..GGG | AD, BC | | + * | | GGGG | Anno Domini, Before Christ | 2 | + * | | GGGGG | A, B | | + * | Calendar year | y | 44, 1, 1900, 2017 | 5 | + * | | yo | 44th, 1st, 0th, 17th | 5,7 | + * | | yy | 44, 01, 00, 17 | 5 | + * | | yyy | 044, 001, 1900, 2017 | 5 | + * | | yyyy | 0044, 0001, 1900, 2017 | 5 | + * | | yyyyy | ... | 3,5 | + * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 | + * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 | + * | | YY | 44, 01, 00, 17 | 5,8 | + * | | YYY | 044, 001, 1900, 2017 | 5 | + * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 | + * | | YYYYY | ... | 3,5 | + * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 | + * | | RR | -43, 00, 01, 1900, 2017 | 5,7 | + * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 | + * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 | + * | | RRRRR | ... | 3,5,7 | + * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 | + * | | uu | -43, 01, 1900, 2017 | 5 | + * | | uuu | -043, 001, 1900, 2017 | 5 | + * | | uuuu | -0043, 0001, 1900, 2017 | 5 | + * | | uuuuu | ... | 3,5 | + * | Quarter (formatting) | Q | 1, 2, 3, 4 | | + * | | Qo | 1st, 2nd, 3rd, 4th | 7 | + * | | QQ | 01, 02, 03, 04 | | + * | | QQQ | Q1, Q2, Q3, Q4 | | + * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | q | 1, 2, 3, 4 | | + * | | qo | 1st, 2nd, 3rd, 4th | 7 | + * | | qq | 01, 02, 03, 04 | | + * | | qqq | Q1, Q2, Q3, Q4 | | + * | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | qqqqq | 1, 2, 3, 4 | 4 | + * | Month (formatting) | M | 1, 2, ..., 12 | | + * | | Mo | 1st, 2nd, ..., 12th | 7 | + * | | MM | 01, 02, ..., 12 | | + * | | MMM | Jan, Feb, ..., Dec | | + * | | MMMM | January, February, ..., December | 2 | + * | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | L | 1, 2, ..., 12 | | + * | | Lo | 1st, 2nd, ..., 12th | 7 | + * | | LL | 01, 02, ..., 12 | | + * | | LLL | Jan, Feb, ..., Dec | | + * | | LLLL | January, February, ..., December | 2 | + * | | LLLLL | J, F, ..., D | | + * | Local week of year | w | 1, 2, ..., 53 | | + * | | wo | 1st, 2nd, ..., 53th | 7 | + * | | ww | 01, 02, ..., 53 | | + * | ISO week of year | I | 1, 2, ..., 53 | 7 | + * | | Io | 1st, 2nd, ..., 53th | 7 | + * | | II | 01, 02, ..., 53 | 7 | + * | Day of month | d | 1, 2, ..., 31 | | + * | | do | 1st, 2nd, ..., 31st | 7 | + * | | dd | 01, 02, ..., 31 | | + * | Day of year | D | 1, 2, ..., 365, 366 | 9 | + * | | Do | 1st, 2nd, ..., 365th, 366th | 7 | + * | | DD | 01, 02, ..., 365, 366 | 9 | + * | | DDD | 001, 002, ..., 365, 366 | | + * | | DDDD | ... | 3 | + * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | | + * | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | EEEEE | M, T, W, T, F, S, S | | + * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 | + * | | io | 1st, 2nd, ..., 7th | 7 | + * | | ii | 01, 02, ..., 07 | 7 | + * | | iii | Mon, Tue, Wed, ..., Sun | 7 | + * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 | + * | | iiiii | M, T, W, T, F, S, S | 7 | + * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 | + * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | | + * | | eo | 2nd, 3rd, ..., 1st | 7 | + * | | ee | 02, 03, ..., 01 | | + * | | eee | Mon, Tue, Wed, ..., Sun | | + * | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | eeeee | M, T, W, T, F, S, S | | + * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | | + * | | co | 2nd, 3rd, ..., 1st | 7 | + * | | cc | 02, 03, ..., 01 | | + * | | ccc | Mon, Tue, Wed, ..., Sun | | + * | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | ccccc | M, T, W, T, F, S, S | | + * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | a..aa | AM, PM | | + * | | aaa | am, pm | | + * | | aaaa | a.m., p.m. | 2 | + * | | aaaaa | a, p | | + * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | | + * | | bbb | am, pm, noon, midnight | | + * | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | bbbbb | a, p, n, mi | | + * | Flexible day period | B..BBB | at night, in the morning, ... | | + * | | BBBB | at night, in the morning, ... | 2 | + * | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | | + * | | ho | 1st, 2nd, ..., 11th, 12th | 7 | + * | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | | + * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 | + * | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | K | 1, 2, ..., 11, 0 | | + * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 | + * | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | k | 24, 1, 2, ..., 23 | | + * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 | + * | | kk | 24, 01, 02, ..., 23 | | + * | Minute | m | 0, 1, ..., 59 | | + * | | mo | 0th, 1st, ..., 59th | 7 | + * | | mm | 00, 01, ..., 59 | | + * | Second | s | 0, 1, ..., 59 | | + * | | so | 0th, 1st, ..., 59th | 7 | + * | | ss | 00, 01, ..., 59 | | + * | Fraction of second | S | 0, 1, ..., 9 | | + * | | SS | 00, 01, ..., 99 | | + * | | SSS | 000, 001, ..., 999 | | + * | | SSSS | ... | 3 | + * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | | + * | | XX | -0800, +0530, Z | | + * | | XXX | -08:00, +05:30, Z | | + * | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | | + * | | xx | -0800, +0530, +0000 | | + * | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | xxxx | -0800, +0530, +0000, +123456 | | + * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | | + * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 | + * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 | + * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 | + * | Seconds timestamp | t | 512969520 | 7 | + * | | tt | ... | 3,7 | + * | Milliseconds timestamp | T | 512969520900 | 7 | + * | | TT | ... | 3,7 | + * | Long localized date | P | 04/29/1453 | 7 | + * | | PP | Apr 29, 1453 | 7 | + * | | PPP | April 29th, 1453 | 7 | + * | | PPPP | Friday, April 29th, 1453 | 2,7 | + * | Long localized time | p | 12:00 AM | 7 | + * | | pp | 12:00:00 AM | 7 | + * | | ppp | 12:00:00 AM GMT+2 | 7 | + * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 | + * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 | + * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 | + * | | PPPppp | April 29th, 1453 at ... | 7 | + * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`) + * the output will be the same as default pattern for this unit, usually + * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units + * are marked with "2" in the last column of the table. + * + * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'` + * + * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'` + * + * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'` + * + * 3. Some patterns could be unlimited length (such as `yyyyyyyy`). + * The output will be padded with zeros to match the length of the pattern. + * + * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'` + * + * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 5. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` always returns the last two digits of a year, + * while `uu` pads single digit years to 2 characters and returns other years unchanged: + * + * | Year | `yy` | `uu` | + * |------|------|------| + * | 1 | 01 | 01 | + * | 14 | 14 | 14 | + * | 376 | 76 | 376 | + * | 1453 | 53 | 1453 | + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear) + * and [getWeekYear](https://date-fns.org/docs/getWeekYear)). + * + * 6. Specific non-location timezones are currently unavailable in `date-fns`, + * so right now these tokens fall back to GMT timezones. + * + * 7. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `t`: seconds timestamp + * - `T`: milliseconds timestamp + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * @param format - The string of tokens + * @param options - An object with options + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `localize` property + * @throws `options.locale` must contain `formatLong` property + * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws format string contains an unescaped latin alphabet character + * + * @example + * // Represent 11 February 2014 in middle-endian format: + * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy') + * //=> '02/11/2014' + * + * @example + * // Represent 2 July 2014 in Esperanto: + * import { eoLocale } from 'date-fns/locale/eo' + * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", { + * locale: eoLocale + * }) + * //=> '2-a de julio 2014' + * + * @example + * // Escape string by single quote characters: + * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") + * //=> "3 o'clock" + */ +export declare function format( + date: DateType | number | string, + formatStr: string, + options?: FormatOptions, +): string; diff --git a/node_modules/date-fns/format.d.ts b/node_modules/date-fns/format.d.ts index 5f4a150a..35c43942 100644 --- a/node_modules/date-fns/format.d.ts +++ b/node_modules/date-fns/format.d.ts @@ -1,9 +1,14 @@ +import { formatters } from "./_lib/format/formatters.js"; +import { longFormatters } from "./_lib/format/longFormatters.js"; import type { AdditionalTokensOptions, FirstWeekContainsDateOptions, LocalizedOptions, WeekOptions, } from "./types.js"; +export { formatters, longFormatters }; +export { format as formatDate }; +export type { FormatOptions as FormatDateOptions }; /** * The {@link format} function options. */ @@ -14,6 +19,7 @@ export interface FormatOptions AdditionalTokensOptions {} /** * @name format + * @alias formatDate * @category Common Helpers * @summary Format the date. * diff --git a/node_modules/date-fns/format.js b/node_modules/date-fns/format.js index 3644b8ce..4e537fa0 100644 --- a/node_modules/date-fns/format.js +++ b/node_modules/date-fns/format.js @@ -1,13 +1,28 @@ "use strict"; -exports.format = format; -var _index = require("./isValid.js"); -var _index2 = require("./toDate.js"); +exports.format = exports.formatDate = format; +Object.defineProperty(exports, "formatters", { + enumerable: true, + get: function () { + return _index3.formatters; + }, +}); +Object.defineProperty(exports, "longFormatters", { + enumerable: true, + get: function () { + return _index4.longFormatters; + }, +}); +var _index = require("./_lib/defaultLocale.js"); +var _index2 = require("./_lib/defaultOptions.js"); +var _index3 = require("./_lib/format/formatters.js"); +var _index4 = require("./_lib/format/longFormatters.js"); +var _index5 = require("./_lib/protectedTokens.js"); -var _index3 = require("./_lib/defaultLocale.js"); -var _index4 = require("./_lib/defaultOptions.js"); -var _index5 = require("./_lib/format/formatters.js"); -var _index6 = require("./_lib/format/longFormatters.js"); -var _index7 = require("./_lib/protectedTokens.js"); +var _index6 = require("./isValid.js"); +var _index7 = require("./toDate.js"); + +// Rexports of internal for libraries to use. +// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874 // This RegExp consists of three parts separated by `|`: // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token @@ -37,6 +52,7 @@ const unescapedLatinCharacterRegExp = /[a-zA-Z]/; /** * @name format + * @alias formatDate * @category Common Helpers * @summary Format the date. * @@ -321,9 +337,9 @@ const unescapedLatinCharacterRegExp = /[a-zA-Z]/; * //=> "3 o'clock" */ function format(date, formatStr, options) { - const defaultOptions = (0, _index4.getDefaultOptions)(); + const defaultOptions = (0, _index2.getDefaultOptions)(); const locale = - options?.locale ?? defaultOptions.locale ?? _index3.defaultLocale; + options?.locale ?? defaultOptions.locale ?? _index.defaultLocale; const firstWeekContainsDate = options?.firstWeekContainsDate ?? @@ -339,62 +355,37 @@ function format(date, formatStr, options) { defaultOptions.locale?.options?.weekStartsOn ?? 0; - const originalDate = (0, _index2.toDate)(date); + const originalDate = (0, _index7.toDate)(date); - if (!(0, _index.isValid)(originalDate)) { + if (!(0, _index6.isValid)(originalDate)) { throw new RangeError("Invalid time value"); } - const formatterOptions = { - firstWeekContainsDate: firstWeekContainsDate, - weekStartsOn: weekStartsOn, - locale: locale, - _originalDate: originalDate, - }; - - const result = formatStr + let parts = formatStr .match(longFormattingTokensRegExp) - .map(function (substring) { + .map((substring) => { const firstCharacter = substring[0]; if (firstCharacter === "p" || firstCharacter === "P") { - const longFormatter = _index6.longFormatters[firstCharacter]; + const longFormatter = _index4.longFormatters[firstCharacter]; return longFormatter(substring, locale.formatLong); } return substring; }) .join("") .match(formattingTokensRegExp) - .map(function (substring) { + .map((substring) => { // Replace two single quote characters with one single quote character if (substring === "''") { - return "'"; + return { isToken: false, value: "'" }; } const firstCharacter = substring[0]; if (firstCharacter === "'") { - return cleanEscapedString(substring); + return { isToken: false, value: cleanEscapedString(substring) }; } - const formatter = _index5.formatters[firstCharacter]; - if (formatter) { - if ( - !options?.useAdditionalWeekYearTokens && - (0, _index7.isProtectedWeekYearToken)(substring) - ) { - (0, _index7.throwProtectedError)(substring, formatStr, String(date)); - } - if ( - !options?.useAdditionalDayOfYearTokens && - (0, _index7.isProtectedDayOfYearToken)(substring) - ) { - (0, _index7.throwProtectedError)(substring, formatStr, String(date)); - } - return formatter( - originalDate, - substring, - locale.localize, - formatterOptions, - ); + if (_index3.formatters[firstCharacter]) { + return { isToken: true, value: substring }; } if (firstCharacter.match(unescapedLatinCharacterRegExp)) { @@ -405,11 +396,39 @@ function format(date, formatStr, options) { ); } - return substring; + return { isToken: false, value: substring }; + }); + + // invoke localize preprocessor (only for french locales at the moment) + if (locale.localize.preprocessor) { + parts = locale.localize.preprocessor(originalDate, parts); + } + + const formatterOptions = { + firstWeekContainsDate, + weekStartsOn, + locale, + }; + + return parts + .map((part) => { + if (!part.isToken) return part.value; + + const token = part.value; + + if ( + (!options?.useAdditionalWeekYearTokens && + (0, _index5.isProtectedWeekYearToken)(token)) || + (!options?.useAdditionalDayOfYearTokens && + (0, _index5.isProtectedDayOfYearToken)(token)) + ) { + (0, _index5.warnOrThrowProtectedError)(token, formatStr, String(date)); + } + + const formatter = _index3.formatters[token[0]]; + return formatter(originalDate, token, locale.localize, formatterOptions); }) .join(""); - - return result; } function cleanEscapedString(input) { diff --git a/node_modules/date-fns/format.mjs b/node_modules/date-fns/format.mjs index bda6c1a2..b8522fe0 100644 --- a/node_modules/date-fns/format.mjs +++ b/node_modules/date-fns/format.mjs @@ -1,5 +1,3 @@ -import { isValid } from "./isValid.mjs"; -import { toDate } from "./toDate.mjs"; import { defaultLocale } from "./_lib/defaultLocale.mjs"; import { getDefaultOptions } from "./_lib/defaultOptions.mjs"; import { formatters } from "./_lib/format/formatters.mjs"; @@ -7,8 +5,14 @@ import { longFormatters } from "./_lib/format/longFormatters.mjs"; import { isProtectedDayOfYearToken, isProtectedWeekYearToken, - throwProtectedError, + warnOrThrowProtectedError, } from "./_lib/protectedTokens.mjs"; +import { isValid } from "./isValid.mjs"; +import { toDate } from "./toDate.mjs"; + +// Rexports of internal for libraries to use. +// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874 +export { formatters, longFormatters }; // This RegExp consists of three parts separated by `|`: // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token @@ -32,12 +36,15 @@ const escapedStringRegExp = /^'([^]*?)'?$/; const doubleQuoteRegExp = /''/g; const unescapedLatinCharacterRegExp = /[a-zA-Z]/; +export { format as formatDate }; + /** * The {@link format} function options. */ /** * @name format + * @alias formatDate * @category Common Helpers * @summary Format the date. * @@ -345,16 +352,9 @@ export function format(date, formatStr, options) { throw new RangeError("Invalid time value"); } - const formatterOptions = { - firstWeekContainsDate: firstWeekContainsDate, - weekStartsOn: weekStartsOn, - locale: locale, - _originalDate: originalDate, - }; - - const result = formatStr + let parts = formatStr .match(longFormattingTokensRegExp) - .map(function (substring) { + .map((substring) => { const firstCharacter = substring[0]; if (firstCharacter === "p" || firstCharacter === "P") { const longFormatter = longFormatters[firstCharacter]; @@ -364,37 +364,19 @@ export function format(date, formatStr, options) { }) .join("") .match(formattingTokensRegExp) - .map(function (substring) { + .map((substring) => { // Replace two single quote characters with one single quote character if (substring === "''") { - return "'"; + return { isToken: false, value: "'" }; } const firstCharacter = substring[0]; if (firstCharacter === "'") { - return cleanEscapedString(substring); + return { isToken: false, value: cleanEscapedString(substring) }; } - const formatter = formatters[firstCharacter]; - if (formatter) { - if ( - !options?.useAdditionalWeekYearTokens && - isProtectedWeekYearToken(substring) - ) { - throwProtectedError(substring, formatStr, String(date)); - } - if ( - !options?.useAdditionalDayOfYearTokens && - isProtectedDayOfYearToken(substring) - ) { - throwProtectedError(substring, formatStr, String(date)); - } - return formatter( - originalDate, - substring, - locale.localize, - formatterOptions, - ); + if (formatters[firstCharacter]) { + return { isToken: true, value: substring }; } if (firstCharacter.match(unescapedLatinCharacterRegExp)) { @@ -405,11 +387,39 @@ export function format(date, formatStr, options) { ); } - return substring; + return { isToken: false, value: substring }; + }); + + // invoke localize preprocessor (only for french locales at the moment) + if (locale.localize.preprocessor) { + parts = locale.localize.preprocessor(originalDate, parts); + } + + const formatterOptions = { + firstWeekContainsDate, + weekStartsOn, + locale, + }; + + return parts + .map((part) => { + if (!part.isToken) return part.value; + + const token = part.value; + + if ( + (!options?.useAdditionalWeekYearTokens && + isProtectedWeekYearToken(token)) || + (!options?.useAdditionalDayOfYearTokens && + isProtectedDayOfYearToken(token)) + ) { + warnOrThrowProtectedError(token, formatStr, String(date)); + } + + const formatter = formatters[token[0]]; + return formatter(originalDate, token, locale.localize, formatterOptions); }) .join(""); - - return result; } function cleanEscapedString(input) { diff --git a/node_modules/date-fns/formatDistance.d.mts b/node_modules/date-fns/formatDistance.d.mts index 9d6292d1..9fe311ff 100644 --- a/node_modules/date-fns/formatDistance.d.mts +++ b/node_modules/date-fns/formatDistance.d.mts @@ -1 +1,96 @@ -export type * from "./formatDistance.d.ts"; +import type { LocalizedOptions } from "./types.js"; +/** + * The {@link formatDistance} function options. + */ +export interface FormatDistanceOptions + extends LocalizedOptions<"formatDistance"> { + /** Distances less than a minute are more detailed */ + includeSeconds?: boolean; + /** Add "X ago"/"in X" in the locale language */ + addSuffix?: boolean; +} +/** + * @name formatDistance + * @category Common Helpers + * @summary Return the distance between the given dates in words. + * + * @description + * Return the distance between the given dates in words. + * + * | Distance between dates | Result | + * |-------------------------------------------------------------------|---------------------| + * | 0 ... 30 secs | less than a minute | + * | 30 secs ... 1 min 30 secs | 1 minute | + * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | + * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | + * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | + * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | + * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | + * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | + * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | + * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | + * | 1 yr ... 1 yr 3 months | about 1 year | + * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | + * | 1 yr 9 months ... 2 yrs | almost 2 years | + * | N yrs ... N yrs 3 months | about N years | + * | N yrs 3 months ... N yrs 9 months | over N years | + * | N yrs 9 months ... N+1 yrs | almost N+1 years | + * + * With `options.includeSeconds == true`: + * | Distance between dates | Result | + * |------------------------|----------------------| + * | 0 secs ... 5 secs | less than 5 seconds | + * | 5 secs ... 10 secs | less than 10 seconds | + * | 10 secs ... 20 secs | less than 20 seconds | + * | 20 secs ... 40 secs | half a minute | + * | 40 secs ... 60 secs | less than a minute | + * | 60 secs ... 90 secs | 1 minute | + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date + * @param baseDate - The date to compare with + * @param options - An object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // What is the distance between 2 July 2014 and 1 January 2015? + * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1)) + * //=> '6 months' + * + * @example + * // What is the distance between 1 January 2015 00:00:15 + * // and 1 January 2015 00:00:00, including seconds? + * const result = formatDistance( + * new Date(2015, 0, 1, 0, 0, 15), + * new Date(2015, 0, 1, 0, 0, 0), + * { includeSeconds: true } + * ) + * //=> 'less than 20 seconds' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, with a suffix? + * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), { + * addSuffix: true + * }) + * //=> 'about 1 year ago' + * + * @example + * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? + * import { eoLocale } from 'date-fns/locale/eo' + * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> 'pli ol 1 jaro' + */ +export declare function formatDistance( + date: DateType | number | string, + baseDate: DateType | number | string, + options?: FormatDistanceOptions, +): string; diff --git a/node_modules/date-fns/formatDistance.js b/node_modules/date-fns/formatDistance.js index 266e7075..d4f3d292 100644 --- a/node_modules/date-fns/formatDistance.js +++ b/node_modules/date-fns/formatDistance.js @@ -192,7 +192,7 @@ function formatDistance(date, baseDate, options) { // 1 year up to max Date } else { const monthsSinceStartOfYear = months % 12; - const years = Math.floor(months / 12); + const years = Math.trunc(months / 12); // N years up to 1 years 3 months if (monthsSinceStartOfYear < 3) { diff --git a/node_modules/date-fns/formatDistance.mjs b/node_modules/date-fns/formatDistance.mjs index 9f395a8f..4f26d6e5 100644 --- a/node_modules/date-fns/formatDistance.mjs +++ b/node_modules/date-fns/formatDistance.mjs @@ -188,7 +188,7 @@ export function formatDistance(date, baseDate, options) { // 1 year up to max Date } else { const monthsSinceStartOfYear = months % 12; - const years = Math.floor(months / 12); + const years = Math.trunc(months / 12); // N years up to 1 years 3 months if (monthsSinceStartOfYear < 3) { diff --git a/node_modules/date-fns/formatDistanceStrict.d.mts b/node_modules/date-fns/formatDistanceStrict.d.mts index 4a07c65d..be156368 100644 --- a/node_modules/date-fns/formatDistanceStrict.d.mts +++ b/node_modules/date-fns/formatDistanceStrict.d.mts @@ -1 +1,106 @@ -export type * from "./formatDistanceStrict.d.ts"; +import type { LocalizedOptions, RoundingOptions } from "./types.js"; +/** + * The {@link formatDistanceStrict} function options. + */ +export interface FormatDistanceStrictOptions + extends LocalizedOptions<"formatDistance">, + RoundingOptions { + /** Add "X ago"/"in X" in the locale language */ + addSuffix?: boolean; + /** If specified, will force the unit */ + unit?: FormatDistanceStrictUnit; +} +/** + * The unit used to format the distance in {@link formatDistanceStrict}. + */ +export type FormatDistanceStrictUnit = + | "second" + | "minute" + | "hour" + | "day" + | "month" + | "year"; +/** + * @name formatDistanceStrict + * @category Common Helpers + * @summary Return the distance between the given dates in words. + * + * @description + * Return the distance between the given dates in words, using strict units. + * This is like `formatDistance`, but does not use helpers like 'almost', 'over', + * 'less than' and the like. + * + * | Distance between dates | Result | + * |------------------------|---------------------| + * | 0 ... 59 secs | [0..59] seconds | + * | 1 ... 59 mins | [1..59] minutes | + * | 1 ... 23 hrs | [1..23] hours | + * | 1 ... 29 days | [1..29] days | + * | 1 ... 11 months | [1..11] months | + * | 1 ... N years | [1..N] years | + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date + * @param baseDate - The date to compare with + * @param options - An object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year' + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // What is the distance between 2 July 2014 and 1 January 2015? + * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2)) + * //=> '6 months' + * + * @example + * // What is the distance between 1 January 2015 00:00:15 + * // and 1 January 2015 00:00:00? + * const result = formatDistanceStrict( + * new Date(2015, 0, 1, 0, 0, 15), + * new Date(2015, 0, 1, 0, 0, 0) + * ) + * //=> '15 seconds' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, with a suffix? + * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), { + * addSuffix: true + * }) + * //=> '1 year ago' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, in minutes? + * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), { + * unit: 'minute' + * }) + * //=> '525600 minutes' + * + * @example + * // What is the distance from 1 January 2015 + * // to 28 January 2015, in months, rounded up? + * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), { + * unit: 'month', + * roundingMethod: 'ceil' + * }) + * //=> '1 month' + * + * @example + * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? + * import { eoLocale } from 'date-fns/locale/eo' + * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> '1 jaro' + */ +export declare function formatDistanceStrict( + date: DateType | number | string, + baseDate: DateType | number | string, + options?: FormatDistanceStrictOptions, +): string; diff --git a/node_modules/date-fns/formatDistanceStrict.js b/node_modules/date-fns/formatDistanceStrict.js index 78ba82a1..100c63f4 100644 --- a/node_modules/date-fns/formatDistanceStrict.js +++ b/node_modules/date-fns/formatDistanceStrict.js @@ -1,14 +1,13 @@ "use strict"; exports.formatDistanceStrict = formatDistanceStrict; -var _index = require("./compareAsc.js"); -var _index2 = require("./constants.js"); +var _index = require("./_lib/defaultLocale.js"); +var _index2 = require("./_lib/defaultOptions.js"); +var _index3 = require("./_lib/getRoundingMethod.js"); +var _index4 = require("./_lib/getTimezoneOffsetInMilliseconds.js"); +var _index5 = require("./compareAsc.js"); +var _index6 = require("./constants.js"); -var _index3 = require("./toDate.js"); - -var _index4 = require("./_lib/defaultLocale.js"); -var _index5 = require("./_lib/defaultOptions.js"); -var _index6 = require("./_lib/getTimezoneOffsetInMilliseconds.js"); -var _index7 = require("./_lib/roundingMethods.js"); +var _index7 = require("./toDate.js"); /** * The {@link formatDistanceStrict} function options. @@ -99,11 +98,11 @@ var _index7 = require("./_lib/roundingMethods.js"); */ function formatDistanceStrict(date, baseDate, options) { - const defaultOptions = (0, _index5.getDefaultOptions)(); + const defaultOptions = (0, _index2.getDefaultOptions)(); const locale = - options?.locale ?? defaultOptions.locale ?? _index4.defaultLocale; + options?.locale ?? defaultOptions.locale ?? _index.defaultLocale; - const comparison = (0, _index.compareAsc)(date, baseDate); + const comparison = (0, _index5.compareAsc)(date, baseDate); if (isNaN(comparison)) { throw new RangeError("Invalid time value"); @@ -117,28 +116,28 @@ function formatDistanceStrict(date, baseDate, options) { let dateLeft; let dateRight; if (comparison > 0) { - dateLeft = (0, _index3.toDate)(baseDate); - dateRight = (0, _index3.toDate)(date); + dateLeft = (0, _index7.toDate)(baseDate); + dateRight = (0, _index7.toDate)(date); } else { - dateLeft = (0, _index3.toDate)(date); - dateRight = (0, _index3.toDate)(baseDate); + dateLeft = (0, _index7.toDate)(date); + dateRight = (0, _index7.toDate)(baseDate); } - const roundingMethod = (0, _index7.getRoundingMethod)( + const roundingMethod = (0, _index3.getRoundingMethod)( options?.roundingMethod ?? "round", ); const milliseconds = dateRight.getTime() - dateLeft.getTime(); - const minutes = milliseconds / _index2.millisecondsInMinute; + const minutes = milliseconds / _index6.millisecondsInMinute; const timezoneOffset = - (0, _index6.getTimezoneOffsetInMilliseconds)(dateRight) - - (0, _index6.getTimezoneOffsetInMilliseconds)(dateLeft); + (0, _index4.getTimezoneOffsetInMilliseconds)(dateRight) - + (0, _index4.getTimezoneOffsetInMilliseconds)(dateLeft); // Use DST-normalized difference in minutes for years, months and days; // use regular difference in minutes for hours, minutes and seconds. const dstNormalizedMinutes = - (milliseconds - timezoneOffset) / _index2.millisecondsInMinute; + (milliseconds - timezoneOffset) / _index6.millisecondsInMinute; const defaultUnit = options?.unit; let unit; @@ -147,11 +146,11 @@ function formatDistanceStrict(date, baseDate, options) { unit = "second"; } else if (minutes < 60) { unit = "minute"; - } else if (minutes < _index2.minutesInDay) { + } else if (minutes < _index6.minutesInDay) { unit = "hour"; - } else if (dstNormalizedMinutes < _index2.minutesInMonth) { + } else if (dstNormalizedMinutes < _index6.minutesInMonth) { unit = "day"; - } else if (dstNormalizedMinutes < _index2.minutesInYear) { + } else if (dstNormalizedMinutes < _index6.minutesInYear) { unit = "month"; } else { unit = "year"; @@ -177,13 +176,13 @@ function formatDistanceStrict(date, baseDate, options) { // 1 up to 30 days } else if (unit === "day") { - const days = roundingMethod(dstNormalizedMinutes / _index2.minutesInDay); + const days = roundingMethod(dstNormalizedMinutes / _index6.minutesInDay); return locale.formatDistance("xDays", days, localizeOptions); // 1 up to 12 months } else if (unit === "month") { const months = roundingMethod( - dstNormalizedMinutes / _index2.minutesInMonth, + dstNormalizedMinutes / _index6.minutesInMonth, ); return months === 12 && defaultUnit !== "month" ? locale.formatDistance("xYears", 1, localizeOptions) @@ -191,7 +190,7 @@ function formatDistanceStrict(date, baseDate, options) { // 1 year up to max Date } else { - const years = roundingMethod(dstNormalizedMinutes / _index2.minutesInYear); + const years = roundingMethod(dstNormalizedMinutes / _index6.minutesInYear); return locale.formatDistance("xYears", years, localizeOptions); } } diff --git a/node_modules/date-fns/formatDistanceStrict.mjs b/node_modules/date-fns/formatDistanceStrict.mjs index 6bc42c5d..33ab9197 100644 --- a/node_modules/date-fns/formatDistanceStrict.mjs +++ b/node_modules/date-fns/formatDistanceStrict.mjs @@ -1,3 +1,7 @@ +import { defaultLocale } from "./_lib/defaultLocale.mjs"; +import { getDefaultOptions } from "./_lib/defaultOptions.mjs"; +import { getRoundingMethod } from "./_lib/getRoundingMethod.mjs"; +import { getTimezoneOffsetInMilliseconds } from "./_lib/getTimezoneOffsetInMilliseconds.mjs"; import { compareAsc } from "./compareAsc.mjs"; import { millisecondsInMinute, @@ -6,10 +10,6 @@ import { minutesInYear, } from "./constants.mjs"; import { toDate } from "./toDate.mjs"; -import { defaultLocale } from "./_lib/defaultLocale.mjs"; -import { getDefaultOptions } from "./_lib/defaultOptions.mjs"; -import { getTimezoneOffsetInMilliseconds } from "./_lib/getTimezoneOffsetInMilliseconds.mjs"; -import { getRoundingMethod } from "./_lib/roundingMethods.mjs"; /** * The {@link formatDistanceStrict} function options. diff --git a/node_modules/date-fns/formatDistanceToNow.d.mts b/node_modules/date-fns/formatDistanceToNow.d.mts index 7acacdd1..fbf5ef89 100644 --- a/node_modules/date-fns/formatDistanceToNow.d.mts +++ b/node_modules/date-fns/formatDistanceToNow.d.mts @@ -1 +1,92 @@ -export type * from "./formatDistanceToNow.d.ts"; +import type { FormatDistanceOptions } from "./formatDistance.js"; +/** + * The {@link formatDistanceToNow} function options. + */ +export interface FormatDistanceToNowOptions extends FormatDistanceOptions {} +/** + * @name formatDistanceToNow + * @category Common Helpers + * @summary Return the distance between the given date and now in words. + * @pure false + * + * @description + * Return the distance between the given date and now in words. + * + * | Distance to now | Result | + * |-------------------------------------------------------------------|---------------------| + * | 0 ... 30 secs | less than a minute | + * | 30 secs ... 1 min 30 secs | 1 minute | + * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | + * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | + * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | + * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | + * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | + * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | + * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | + * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | + * | 1 yr ... 1 yr 3 months | about 1 year | + * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | + * | 1 yr 9 months ... 2 yrs | almost 2 years | + * | N yrs ... N yrs 3 months | about N years | + * | N yrs 3 months ... N yrs 9 months | over N years | + * | N yrs 9 months ... N+1 yrs | almost N+1 years | + * + * With `options.includeSeconds == true`: + * | Distance to now | Result | + * |---------------------|----------------------| + * | 0 secs ... 5 secs | less than 5 seconds | + * | 5 secs ... 10 secs | less than 10 seconds | + * | 10 secs ... 20 secs | less than 20 seconds | + * | 20 secs ... 40 secs | half a minute | + * | 40 secs ... 60 secs | less than a minute | + * | 60 secs ... 90 secs | 1 minute | + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * @param options - The object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // If today is 1 January 2015, what is the distance to 2 July 2014? + * const result = formatDistanceToNow( + * new Date(2014, 6, 2) + * ) + * //=> '6 months' + * + * @example + * // If now is 1 January 2015 00:00:00, + * // what is the distance to 1 January 2015 00:00:15, including seconds? + * const result = formatDistanceToNow( + * new Date(2015, 0, 1, 0, 0, 15), + * {includeSeconds: true} + * ) + * //=> 'less than 20 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * const result = formatDistanceToNow( + * new Date(2016, 0, 1), + * {addSuffix: true} + * ) + * //=> 'in about 1 year' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 August 2016 in Esperanto? + * const eoLocale = require('date-fns/locale/eo') + * const result = formatDistanceToNow( + * new Date(2016, 7, 1), + * {locale: eoLocale} + * ) + * //=> 'pli ol 1 jaro' + */ +export declare function formatDistanceToNow( + date: DateType | number | string, + options?: FormatDistanceToNowOptions, +): string; diff --git a/node_modules/date-fns/formatDistanceToNow.js b/node_modules/date-fns/formatDistanceToNow.js index 52b9a063..06414e3c 100644 --- a/node_modules/date-fns/formatDistanceToNow.js +++ b/node_modules/date-fns/formatDistanceToNow.js @@ -1,6 +1,8 @@ "use strict"; exports.formatDistanceToNow = formatDistanceToNow; -var _index = require("./formatDistance.js"); +var _index = require("./constructNow.js"); + +var _index2 = require("./formatDistance.js"); /** * The {@link formatDistanceToNow} function options. @@ -90,5 +92,9 @@ var _index = require("./formatDistance.js"); * //=> 'pli ol 1 jaro' */ function formatDistanceToNow(date, options) { - return (0, _index.formatDistance)(date, Date.now(), options); + return (0, _index2.formatDistance)( + date, + (0, _index.constructNow)(date), + options, + ); } diff --git a/node_modules/date-fns/formatDistanceToNow.mjs b/node_modules/date-fns/formatDistanceToNow.mjs index f12d18c2..c6a3c886 100644 --- a/node_modules/date-fns/formatDistanceToNow.mjs +++ b/node_modules/date-fns/formatDistanceToNow.mjs @@ -1,3 +1,4 @@ +import { constructNow } from "./constructNow.mjs"; import { formatDistance } from "./formatDistance.mjs"; /** @@ -88,7 +89,7 @@ import { formatDistance } from "./formatDistance.mjs"; * //=> 'pli ol 1 jaro' */ export function formatDistanceToNow(date, options) { - return formatDistance(date, Date.now(), options); + return formatDistance(date, constructNow(date), options); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/formatDistanceToNowStrict.d.mts b/node_modules/date-fns/formatDistanceToNowStrict.d.mts index 5896cfc4..659ce093 100644 --- a/node_modules/date-fns/formatDistanceToNowStrict.d.mts +++ b/node_modules/date-fns/formatDistanceToNowStrict.d.mts @@ -1 +1,83 @@ -export type * from "./formatDistanceToNowStrict.d.ts"; +import type { FormatDistanceStrictOptions } from "./formatDistanceStrict.js"; +/** + * The {@link formatDistanceToNowStrict} function options. + */ +export interface FormatDistanceToNowStrictOptions + extends FormatDistanceStrictOptions {} +/** + * @name formatDistanceToNowStrict + * @category Common Helpers + * @summary Return the distance between the given date and now in words. + * @pure false + * + * @description + * Return the distance between the given dates in words, using strict units. + * This is like `formatDistance`, but does not use helpers like 'almost', 'over', + * 'less than' and the like. + * + * | Distance between dates | Result | + * |------------------------|---------------------| + * | 0 ... 59 secs | [0..59] seconds | + * | 1 ... 59 mins | [1..59] minutes | + * | 1 ... 23 hrs | [1..23] hours | + * | 1 ... 29 days | [1..29] days | + * | 1 ... 11 months | [1..11] months | + * | 1 ... N years | [1..N] years | + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // If today is 1 January 2015, what is the distance to 2 July 2014? + * const result = formatDistanceToNowStrict( + * new Date(2014, 6, 2) + * ) + * //=> '6 months' + * + * @example + * // If now is 1 January 2015 00:00:00, + * // what is the distance to 1 January 2015 00:00:15, including seconds? + * const result = formatDistanceToNowStrict( + * new Date(2015, 0, 1, 0, 0, 15) + * ) + * //=> '15 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * const result = formatDistanceToNowStrict( + * new Date(2016, 0, 1), + * {addSuffix: true} + * ) + * //=> 'in 1 year' + * + * @example + * // If today is 28 January 2015, + * // what is the distance to 1 January 2015, in months, rounded up?? + * const result = formatDistanceToNowStrict(new Date(2015, 0, 1), { + * unit: 'month', + * roundingMethod: 'ceil' + * }) + * //=> '1 month' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016 in Esperanto? + * const eoLocale = require('date-fns/locale/eo') + * const result = formatDistanceToNowStrict( + * new Date(2016, 0, 1), + * {locale: eoLocale} + * ) + * //=> '1 jaro' + */ +export declare function formatDistanceToNowStrict( + date: DateType | number | string, + options?: FormatDistanceToNowStrictOptions, +): string; diff --git a/node_modules/date-fns/formatDistanceToNowStrict.js b/node_modules/date-fns/formatDistanceToNowStrict.js index 56163b58..5a1e3710 100644 --- a/node_modules/date-fns/formatDistanceToNowStrict.js +++ b/node_modules/date-fns/formatDistanceToNowStrict.js @@ -1,6 +1,7 @@ "use strict"; exports.formatDistanceToNowStrict = formatDistanceToNowStrict; var _index = require("./formatDistanceStrict.js"); +var _index2 = require("./constructNow.js"); /** * The {@link formatDistanceToNowStrict} function options. @@ -80,5 +81,9 @@ var _index = require("./formatDistanceStrict.js"); * //=> '1 jaro' */ function formatDistanceToNowStrict(date, options) { - return (0, _index.formatDistanceStrict)(date, Date.now(), options); + return (0, _index.formatDistanceStrict)( + date, + (0, _index2.constructNow)(date), + options, + ); } diff --git a/node_modules/date-fns/formatDistanceToNowStrict.mjs b/node_modules/date-fns/formatDistanceToNowStrict.mjs index d68cda5e..92b9517a 100644 --- a/node_modules/date-fns/formatDistanceToNowStrict.mjs +++ b/node_modules/date-fns/formatDistanceToNowStrict.mjs @@ -1,4 +1,5 @@ import { formatDistanceStrict } from "./formatDistanceStrict.mjs"; +import { constructNow } from "./constructNow.mjs"; /** * The {@link formatDistanceToNowStrict} function options. @@ -78,7 +79,7 @@ import { formatDistanceStrict } from "./formatDistanceStrict.mjs"; * //=> '1 jaro' */ export function formatDistanceToNowStrict(date, options) { - return formatDistanceStrict(date, Date.now(), options); + return formatDistanceStrict(date, constructNow(date), options); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/formatDuration.d.mts b/node_modules/date-fns/formatDuration.d.mts index 97139839..491a5431 100644 --- a/node_modules/date-fns/formatDuration.d.mts +++ b/node_modules/date-fns/formatDuration.d.mts @@ -1 +1,77 @@ -export type * from "./formatDuration.d.ts"; +import type { Duration, DurationUnit, LocalizedOptions } from "./types.js"; +/** + * The {@link formatDuration} function options. + */ +export interface FormatDurationOptions + extends LocalizedOptions<"formatDistance"> { + /** The array of units to format */ + format?: DurationUnit[]; + /** Should be zeros be included in the output? */ + zero?: boolean; + /** The delimiter string to use */ + delimiter?: string; +} +/** + * @name formatDuration + * @category Common Helpers + * @summary Formats a duration in human-readable format + * + * @description + * Return human-readable duration string i.e. "9 months 2 days" + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param duration - The duration to format + * @param options - An object with options. + * + * @returns The formatted date string + * + * @example + * // Format full duration + * formatDuration({ + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }) + * //=> '2 years 9 months 1 week 7 days 5 hours 9 minutes 30 seconds' + * + * @example + * // Format partial duration + * formatDuration({ months: 9, days: 2 }) + * //=> '9 months 2 days' + * + * @example + * // Customize the format + * formatDuration( + * { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }, + * { format: ['months', 'weeks'] } + * ) === '9 months 1 week' + * + * @example + * // Customize the zeros presence + * formatDuration({ years: 0, months: 9 }) + * //=> '9 months' + * formatDuration({ years: 0, months: 9 }, { zero: true }) + * //=> '0 years 9 months' + * + * @example + * // Customize the delimiter + * formatDuration({ years: 2, months: 9, weeks: 3 }, { delimiter: ', ' }) + * //=> '2 years, 9 months, 3 weeks' + */ +export declare function formatDuration( + duration: Duration, + options?: FormatDurationOptions, +): string; diff --git a/node_modules/date-fns/formatISO.d.mts b/node_modules/date-fns/formatISO.d.mts index 1daa3192..57522513 100644 --- a/node_modules/date-fns/formatISO.d.mts +++ b/node_modules/date-fns/formatISO.d.mts @@ -1 +1,46 @@ -export type * from "./formatISO.d.ts"; +import type { ISOFormatOptions } from "./types.js"; +/** + * The {@link formatISO} function options. + */ +export interface FormatISOOptions extends ISOFormatOptions {} +/** + * @name formatISO + * @category Common Helpers + * @summary Format the date according to the ISO 8601 standard (https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm). + * + * @description + * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string (in loca.l time zone) + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18T19:00:52Z' + * + * @example + * // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) + * //=> '20190918T190052' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format, date only: + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) + * //=> '2019-09-18' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52Z' + */ +export declare function formatISO( + date: DateType | number | string, + options?: FormatISOOptions, +): string; diff --git a/node_modules/date-fns/formatISO.js b/node_modules/date-fns/formatISO.js index 049ac6a8..6e696f13 100644 --- a/node_modules/date-fns/formatISO.js +++ b/node_modules/date-fns/formatISO.js @@ -79,7 +79,7 @@ function formatISO(date, options) { if (offset !== 0) { const absoluteOffset = Math.abs(offset); const hourOffset = (0, _index2.addLeadingZeros)( - Math.floor(absoluteOffset / 60), + Math.trunc(absoluteOffset / 60), 2, ); const minuteOffset = (0, _index2.addLeadingZeros)(absoluteOffset % 60, 2); diff --git a/node_modules/date-fns/formatISO.mjs b/node_modules/date-fns/formatISO.mjs index 3a7398d1..0ce21e42 100644 --- a/node_modules/date-fns/formatISO.mjs +++ b/node_modules/date-fns/formatISO.mjs @@ -75,7 +75,7 @@ export function formatISO(date, options) { if (offset !== 0) { const absoluteOffset = Math.abs(offset); - const hourOffset = addLeadingZeros(Math.floor(absoluteOffset / 60), 2); + const hourOffset = addLeadingZeros(Math.trunc(absoluteOffset / 60), 2); const minuteOffset = addLeadingZeros(absoluteOffset % 60, 2); // If less than 0, the sign is +, because it is ahead of time. const sign = offset < 0 ? "+" : "-"; diff --git a/node_modules/date-fns/formatISO9075.d.mts b/node_modules/date-fns/formatISO9075.d.mts index 9d3c527c..6c547c28 100644 --- a/node_modules/date-fns/formatISO9075.d.mts +++ b/node_modules/date-fns/formatISO9075.d.mts @@ -1 +1,46 @@ -export type * from "./formatISO9075.d.ts"; +import type { ISOFormatOptions } from "./types.js"; +/** + * The {@link formatISO9075} function options. + */ +export interface FormatISO9075Options extends ISOFormatOptions {} +/** + * @name formatISO9075 + * @category Common Helpers + * @summary Format the date according to the ISO 9075 standard (https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_get-format). + * + * @description + * Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in ISO 9075 format: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18 19:00:52' + * + * @example + * // Represent 18 September 2019 in ISO 9075, short format: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) + * //=> '20190918 190052' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format, date only: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) + * //=> '2019-09-18' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format, time only: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52' + */ +export declare function formatISO9075( + date: DateType | number | string, + options?: FormatISO9075Options, +): string; diff --git a/node_modules/date-fns/formatISODuration.d.mts b/node_modules/date-fns/formatISODuration.d.mts index 564f5266..0ccd7275 100644 --- a/node_modules/date-fns/formatISODuration.d.mts +++ b/node_modules/date-fns/formatISODuration.d.mts @@ -1 +1,26 @@ -export type * from "./formatISODuration.d.ts"; +import type { Duration } from "./types.js"; +/** + * @name formatISODuration + * @category Common Helpers + * @summary Format a duration object according as ISO 8601 duration string + * + * @description + * Format a duration object according to the ISO 8601 duration standard (https://www.digi.com/resources/documentation/digidocs//90001488-13/reference/r_iso_8601_duration_format.htm) + * + * @param duration - The duration to format + * + * @returns The ISO 8601 duration string + * + * @example + * // Format the given duration as ISO 8601 string + * const result = formatISODuration({ + * years: 39, + * months: 2, + * days: 20, + * hours: 7, + * minutes: 5, + * seconds: 0 + * }) + * //=> 'P39Y2M20DT0H0M0S' + */ +export declare function formatISODuration(duration: Duration): string; diff --git a/node_modules/date-fns/formatRFC3339.d.mts b/node_modules/date-fns/formatRFC3339.d.mts index 23f88a99..6c247f89 100644 --- a/node_modules/date-fns/formatRFC3339.d.mts +++ b/node_modules/date-fns/formatRFC3339.d.mts @@ -1 +1,40 @@ -export type * from "./formatRFC3339.d.ts"; +/** + * The {@link formatRFC3339} function options. + */ +export interface FormatRFC3339Options { + /** The number of digits after the decimal point after seconds, defaults to 0 */ + fractionDigits?: 0 | 1 | 2 | 3; +} +/** + * @name formatRFC3339 + * @category Common Helpers + * @summary Format the date according to the RFC 3339 standard (https://tools.ietf.org/html/rfc3339#section-5.6). + * + * @description + * Return the formatted date string in RFC 3339 format. Options may be passed to control the parts and notations of the date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in RFC 3339 format: + * formatRFC3339(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18T19:00:52Z' + * + * @example + * // Represent 18 September 2019 in RFC 3339 format, 3 digits of second fraction + * formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { + * fractionDigits: 3 + * }) + * //=> '2019-09-18T19:00:52.234Z' + */ +export declare function formatRFC3339( + date: DateType | number | string, + options?: FormatRFC3339Options, +): string; diff --git a/node_modules/date-fns/formatRFC3339.js b/node_modules/date-fns/formatRFC3339.js index 4d9775eb..4b24f9ea 100644 --- a/node_modules/date-fns/formatRFC3339.js +++ b/node_modules/date-fns/formatRFC3339.js @@ -57,7 +57,7 @@ function formatRFC3339(date, options) { let fractionalSecond = ""; if (fractionDigits > 0) { const milliseconds = _date.getMilliseconds(); - const fractionalSeconds = Math.floor( + const fractionalSeconds = Math.trunc( milliseconds * Math.pow(10, fractionDigits - 3), ); fractionalSecond = diff --git a/node_modules/date-fns/formatRFC3339.mjs b/node_modules/date-fns/formatRFC3339.mjs index 7b6b60ef..e7dabe7d 100644 --- a/node_modules/date-fns/formatRFC3339.mjs +++ b/node_modules/date-fns/formatRFC3339.mjs @@ -55,7 +55,7 @@ export function formatRFC3339(date, options) { let fractionalSecond = ""; if (fractionDigits > 0) { const milliseconds = _date.getMilliseconds(); - const fractionalSeconds = Math.floor( + const fractionalSeconds = Math.trunc( milliseconds * Math.pow(10, fractionDigits - 3), ); fractionalSecond = "." + addLeadingZeros(fractionalSeconds, fractionDigits); diff --git a/node_modules/date-fns/formatRFC7231.d.mts b/node_modules/date-fns/formatRFC7231.d.mts index 54055630..3414fc69 100644 --- a/node_modules/date-fns/formatRFC7231.d.mts +++ b/node_modules/date-fns/formatRFC7231.d.mts @@ -1 +1,25 @@ -export type * from "./formatRFC7231.d.ts"; +/** + * @name formatRFC7231 + * @category Common Helpers + * @summary Format the date according to the RFC 7231 standard (https://tools.ietf.org/html/rfc7231#section-7.1.1.1). + * + * @description + * Return the formatted date string in RFC 7231 format. + * The result will always be in UTC timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in RFC 7231 format: + * const result = formatRFC7231(new Date(2019, 8, 18, 19, 0, 52)) + * //=> 'Wed, 18 Sep 2019 19:00:52 GMT' + */ +export declare function formatRFC7231( + date: DateType | number | string, +): string; diff --git a/node_modules/date-fns/formatRelative.d.mts b/node_modules/date-fns/formatRelative.d.mts index a233b0c6..f0d7289d 100644 --- a/node_modules/date-fns/formatRelative.d.mts +++ b/node_modules/date-fns/formatRelative.d.mts @@ -1 +1,50 @@ -export type * from "./formatRelative.d.ts"; +import type { LocalizedOptions, WeekOptions } from "./types.js"; +/** + * The {@link formatRelative} function options. + */ +export interface FormatRelativeOptions + extends LocalizedOptions< + "options" | "localize" | "formatLong" | "formatRelative" + >, + WeekOptions {} +/** + * @name formatRelative + * @category Common Helpers + * @summary Represent the date in words relative to the given base date. + * + * @description + * Represent the date in words relative to the given base date. + * + * | Distance to the base date | Result | + * |---------------------------|---------------------------| + * | Previous 6 days | last Sunday at 04:30 AM | + * | Last day | yesterday at 04:30 AM | + * | Same day | today at 04:30 AM | + * | Next day | tomorrow at 04:30 AM | + * | Next 6 days | Sunday at 04:30 AM | + * | Other | 12/31/2017 | + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to format + * @param baseDate - The date to compare with + * @param options - An object with options + * + * @returns The date in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.locale` must contain `localize` property + * @throws `options.locale` must contain `formatLong` property + * @throws `options.locale` must contain `formatRelative` property + * + * @example + * // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday + * const result = formatRelative(subDays(new Date(), 6), new Date()) + * //=> "last Thursday at 12:45 AM" + */ +export declare function formatRelative( + date: DateType | number | string, + baseDate: DateType | number | string, + options?: FormatRelativeOptions, +): string; diff --git a/node_modules/date-fns/formatRelative.d.ts b/node_modules/date-fns/formatRelative.d.ts index 5f8e04cd..f0d7289d 100644 --- a/node_modules/date-fns/formatRelative.d.ts +++ b/node_modules/date-fns/formatRelative.d.ts @@ -40,7 +40,7 @@ export interface FormatRelativeOptions * * @example * // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday - * const result = formatRelative(addDays(new Date(), -6), new Date()) + * const result = formatRelative(subDays(new Date(), 6), new Date()) * //=> "last Thursday at 12:45 AM" */ export declare function formatRelative( diff --git a/node_modules/date-fns/formatRelative.js b/node_modules/date-fns/formatRelative.js index 3e17aca2..c306cee4 100644 --- a/node_modules/date-fns/formatRelative.js +++ b/node_modules/date-fns/formatRelative.js @@ -45,7 +45,7 @@ var _index5 = require("./_lib/defaultOptions.js"); * * @example * // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday - * const result = formatRelative(addDays(new Date(), -6), new Date()) + * const result = formatRelative(subDays(new Date(), 6), new Date()) * //=> "last Thursday at 12:45 AM" */ function formatRelative(date, baseDate, options) { diff --git a/node_modules/date-fns/formatRelative.mjs b/node_modules/date-fns/formatRelative.mjs index 908375bd..7cf1c8ba 100644 --- a/node_modules/date-fns/formatRelative.mjs +++ b/node_modules/date-fns/formatRelative.mjs @@ -41,7 +41,7 @@ import { getDefaultOptions } from "./_lib/defaultOptions.mjs"; * * @example * // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday - * const result = formatRelative(addDays(new Date(), -6), new Date()) + * const result = formatRelative(subDays(new Date(), 6), new Date()) * //=> "last Thursday at 12:45 AM" */ export function formatRelative(date, baseDate, options) { diff --git a/node_modules/date-fns/fp.d.mts b/node_modules/date-fns/fp.d.mts index 9ab169b2..acfe26c8 100644 --- a/node_modules/date-fns/fp.d.mts +++ b/node_modules/date-fns/fp.d.mts @@ -1 +1,263 @@ -export type * from "./fp.d.ts"; +export * from "./fp/add.js"; +export * from "./fp/addBusinessDays.js"; +export * from "./fp/addDays.js"; +export * from "./fp/addHours.js"; +export * from "./fp/addISOWeekYears.js"; +export * from "./fp/addMilliseconds.js"; +export * from "./fp/addMinutes.js"; +export * from "./fp/addMonths.js"; +export * from "./fp/addQuarters.js"; +export * from "./fp/addSeconds.js"; +export * from "./fp/addWeeks.js"; +export * from "./fp/addYears.js"; +export * from "./fp/areIntervalsOverlapping.js"; +export * from "./fp/areIntervalsOverlappingWithOptions.js"; +export * from "./fp/clamp.js"; +export * from "./fp/closestIndexTo.js"; +export * from "./fp/closestTo.js"; +export * from "./fp/compareAsc.js"; +export * from "./fp/compareDesc.js"; +export * from "./fp/constructFrom.js"; +export * from "./fp/daysToWeeks.js"; +export * from "./fp/differenceInBusinessDays.js"; +export * from "./fp/differenceInCalendarDays.js"; +export * from "./fp/differenceInCalendarISOWeekYears.js"; +export * from "./fp/differenceInCalendarISOWeeks.js"; +export * from "./fp/differenceInCalendarMonths.js"; +export * from "./fp/differenceInCalendarQuarters.js"; +export * from "./fp/differenceInCalendarWeeks.js"; +export * from "./fp/differenceInCalendarWeeksWithOptions.js"; +export * from "./fp/differenceInCalendarYears.js"; +export * from "./fp/differenceInDays.js"; +export * from "./fp/differenceInHours.js"; +export * from "./fp/differenceInHoursWithOptions.js"; +export * from "./fp/differenceInISOWeekYears.js"; +export * from "./fp/differenceInMilliseconds.js"; +export * from "./fp/differenceInMinutes.js"; +export * from "./fp/differenceInMinutesWithOptions.js"; +export * from "./fp/differenceInMonths.js"; +export * from "./fp/differenceInQuarters.js"; +export * from "./fp/differenceInQuartersWithOptions.js"; +export * from "./fp/differenceInSeconds.js"; +export * from "./fp/differenceInSecondsWithOptions.js"; +export * from "./fp/differenceInWeeks.js"; +export * from "./fp/differenceInWeeksWithOptions.js"; +export * from "./fp/differenceInYears.js"; +export * from "./fp/eachDayOfInterval.js"; +export * from "./fp/eachDayOfIntervalWithOptions.js"; +export * from "./fp/eachHourOfInterval.js"; +export * from "./fp/eachHourOfIntervalWithOptions.js"; +export * from "./fp/eachMinuteOfInterval.js"; +export * from "./fp/eachMinuteOfIntervalWithOptions.js"; +export * from "./fp/eachMonthOfInterval.js"; +export * from "./fp/eachMonthOfIntervalWithOptions.js"; +export * from "./fp/eachQuarterOfInterval.js"; +export * from "./fp/eachQuarterOfIntervalWithOptions.js"; +export * from "./fp/eachWeekOfInterval.js"; +export * from "./fp/eachWeekOfIntervalWithOptions.js"; +export * from "./fp/eachWeekendOfInterval.js"; +export * from "./fp/eachWeekendOfMonth.js"; +export * from "./fp/eachWeekendOfYear.js"; +export * from "./fp/eachYearOfInterval.js"; +export * from "./fp/eachYearOfIntervalWithOptions.js"; +export * from "./fp/endOfDay.js"; +export * from "./fp/endOfDecade.js"; +export * from "./fp/endOfHour.js"; +export * from "./fp/endOfISOWeek.js"; +export * from "./fp/endOfISOWeekYear.js"; +export * from "./fp/endOfMinute.js"; +export * from "./fp/endOfMonth.js"; +export * from "./fp/endOfQuarter.js"; +export * from "./fp/endOfSecond.js"; +export * from "./fp/endOfWeek.js"; +export * from "./fp/endOfWeekWithOptions.js"; +export * from "./fp/endOfYear.js"; +export * from "./fp/format.js"; +export * from "./fp/formatDistance.js"; +export * from "./fp/formatDistanceStrict.js"; +export * from "./fp/formatDistanceStrictWithOptions.js"; +export * from "./fp/formatDistanceWithOptions.js"; +export * from "./fp/formatDuration.js"; +export * from "./fp/formatDurationWithOptions.js"; +export * from "./fp/formatISO.js"; +export * from "./fp/formatISO9075.js"; +export * from "./fp/formatISO9075WithOptions.js"; +export * from "./fp/formatISODuration.js"; +export * from "./fp/formatISOWithOptions.js"; +export * from "./fp/formatRFC3339.js"; +export * from "./fp/formatRFC3339WithOptions.js"; +export * from "./fp/formatRFC7231.js"; +export * from "./fp/formatRelative.js"; +export * from "./fp/formatRelativeWithOptions.js"; +export * from "./fp/formatWithOptions.js"; +export * from "./fp/fromUnixTime.js"; +export * from "./fp/getDate.js"; +export * from "./fp/getDay.js"; +export * from "./fp/getDayOfYear.js"; +export * from "./fp/getDaysInMonth.js"; +export * from "./fp/getDaysInYear.js"; +export * from "./fp/getDecade.js"; +export * from "./fp/getHours.js"; +export * from "./fp/getISODay.js"; +export * from "./fp/getISOWeek.js"; +export * from "./fp/getISOWeekYear.js"; +export * from "./fp/getISOWeeksInYear.js"; +export * from "./fp/getMilliseconds.js"; +export * from "./fp/getMinutes.js"; +export * from "./fp/getMonth.js"; +export * from "./fp/getOverlappingDaysInIntervals.js"; +export * from "./fp/getQuarter.js"; +export * from "./fp/getSeconds.js"; +export * from "./fp/getTime.js"; +export * from "./fp/getUnixTime.js"; +export * from "./fp/getWeek.js"; +export * from "./fp/getWeekOfMonth.js"; +export * from "./fp/getWeekOfMonthWithOptions.js"; +export * from "./fp/getWeekWithOptions.js"; +export * from "./fp/getWeekYear.js"; +export * from "./fp/getWeekYearWithOptions.js"; +export * from "./fp/getWeeksInMonth.js"; +export * from "./fp/getWeeksInMonthWithOptions.js"; +export * from "./fp/getYear.js"; +export * from "./fp/hoursToMilliseconds.js"; +export * from "./fp/hoursToMinutes.js"; +export * from "./fp/hoursToSeconds.js"; +export * from "./fp/interval.js"; +export * from "./fp/intervalToDuration.js"; +export * from "./fp/intervalWithOptions.js"; +export * from "./fp/intlFormat.js"; +export * from "./fp/intlFormatDistance.js"; +export * from "./fp/intlFormatDistanceWithOptions.js"; +export * from "./fp/isAfter.js"; +export * from "./fp/isBefore.js"; +export * from "./fp/isDate.js"; +export * from "./fp/isEqual.js"; +export * from "./fp/isExists.js"; +export * from "./fp/isFirstDayOfMonth.js"; +export * from "./fp/isFriday.js"; +export * from "./fp/isLastDayOfMonth.js"; +export * from "./fp/isLeapYear.js"; +export * from "./fp/isMatch.js"; +export * from "./fp/isMatchWithOptions.js"; +export * from "./fp/isMonday.js"; +export * from "./fp/isSameDay.js"; +export * from "./fp/isSameHour.js"; +export * from "./fp/isSameISOWeek.js"; +export * from "./fp/isSameISOWeekYear.js"; +export * from "./fp/isSameMinute.js"; +export * from "./fp/isSameMonth.js"; +export * from "./fp/isSameQuarter.js"; +export * from "./fp/isSameSecond.js"; +export * from "./fp/isSameWeek.js"; +export * from "./fp/isSameWeekWithOptions.js"; +export * from "./fp/isSameYear.js"; +export * from "./fp/isSaturday.js"; +export * from "./fp/isSunday.js"; +export * from "./fp/isThursday.js"; +export * from "./fp/isTuesday.js"; +export * from "./fp/isValid.js"; +export * from "./fp/isWednesday.js"; +export * from "./fp/isWeekend.js"; +export * from "./fp/isWithinInterval.js"; +export * from "./fp/lastDayOfDecade.js"; +export * from "./fp/lastDayOfISOWeek.js"; +export * from "./fp/lastDayOfISOWeekYear.js"; +export * from "./fp/lastDayOfMonth.js"; +export * from "./fp/lastDayOfQuarter.js"; +export * from "./fp/lastDayOfWeek.js"; +export * from "./fp/lastDayOfWeekWithOptions.js"; +export * from "./fp/lastDayOfYear.js"; +export * from "./fp/lightFormat.js"; +export * from "./fp/max.js"; +export * from "./fp/milliseconds.js"; +export * from "./fp/millisecondsToHours.js"; +export * from "./fp/millisecondsToMinutes.js"; +export * from "./fp/millisecondsToSeconds.js"; +export * from "./fp/min.js"; +export * from "./fp/minutesToHours.js"; +export * from "./fp/minutesToMilliseconds.js"; +export * from "./fp/minutesToSeconds.js"; +export * from "./fp/monthsToQuarters.js"; +export * from "./fp/monthsToYears.js"; +export * from "./fp/nextDay.js"; +export * from "./fp/nextFriday.js"; +export * from "./fp/nextMonday.js"; +export * from "./fp/nextSaturday.js"; +export * from "./fp/nextSunday.js"; +export * from "./fp/nextThursday.js"; +export * from "./fp/nextTuesday.js"; +export * from "./fp/nextWednesday.js"; +export * from "./fp/parse.js"; +export * from "./fp/parseISO.js"; +export * from "./fp/parseISOWithOptions.js"; +export * from "./fp/parseJSON.js"; +export * from "./fp/parseWithOptions.js"; +export * from "./fp/previousDay.js"; +export * from "./fp/previousFriday.js"; +export * from "./fp/previousMonday.js"; +export * from "./fp/previousSaturday.js"; +export * from "./fp/previousSunday.js"; +export * from "./fp/previousThursday.js"; +export * from "./fp/previousTuesday.js"; +export * from "./fp/previousWednesday.js"; +export * from "./fp/quartersToMonths.js"; +export * from "./fp/quartersToYears.js"; +export * from "./fp/roundToNearestHours.js"; +export * from "./fp/roundToNearestHoursWithOptions.js"; +export * from "./fp/roundToNearestMinutes.js"; +export * from "./fp/roundToNearestMinutesWithOptions.js"; +export * from "./fp/secondsToHours.js"; +export * from "./fp/secondsToMilliseconds.js"; +export * from "./fp/secondsToMinutes.js"; +export * from "./fp/set.js"; +export * from "./fp/setDate.js"; +export * from "./fp/setDay.js"; +export * from "./fp/setDayOfYear.js"; +export * from "./fp/setDayWithOptions.js"; +export * from "./fp/setHours.js"; +export * from "./fp/setISODay.js"; +export * from "./fp/setISOWeek.js"; +export * from "./fp/setISOWeekYear.js"; +export * from "./fp/setMilliseconds.js"; +export * from "./fp/setMinutes.js"; +export * from "./fp/setMonth.js"; +export * from "./fp/setQuarter.js"; +export * from "./fp/setSeconds.js"; +export * from "./fp/setWeek.js"; +export * from "./fp/setWeekWithOptions.js"; +export * from "./fp/setWeekYear.js"; +export * from "./fp/setWeekYearWithOptions.js"; +export * from "./fp/setYear.js"; +export * from "./fp/startOfDay.js"; +export * from "./fp/startOfDecade.js"; +export * from "./fp/startOfHour.js"; +export * from "./fp/startOfISOWeek.js"; +export * from "./fp/startOfISOWeekYear.js"; +export * from "./fp/startOfMinute.js"; +export * from "./fp/startOfMonth.js"; +export * from "./fp/startOfQuarter.js"; +export * from "./fp/startOfSecond.js"; +export * from "./fp/startOfWeek.js"; +export * from "./fp/startOfWeekWithOptions.js"; +export * from "./fp/startOfWeekYear.js"; +export * from "./fp/startOfWeekYearWithOptions.js"; +export * from "./fp/startOfYear.js"; +export * from "./fp/sub.js"; +export * from "./fp/subBusinessDays.js"; +export * from "./fp/subDays.js"; +export * from "./fp/subHours.js"; +export * from "./fp/subISOWeekYears.js"; +export * from "./fp/subMilliseconds.js"; +export * from "./fp/subMinutes.js"; +export * from "./fp/subMonths.js"; +export * from "./fp/subQuarters.js"; +export * from "./fp/subSeconds.js"; +export * from "./fp/subWeeks.js"; +export * from "./fp/subYears.js"; +export * from "./fp/toDate.js"; +export * from "./fp/transpose.js"; +export * from "./fp/weeksToDays.js"; +export * from "./fp/yearsToDays.js"; +export * from "./fp/yearsToMonths.js"; +export * from "./fp/yearsToQuarters.js"; +export type * from "./types.js"; diff --git a/node_modules/date-fns/fp.d.ts b/node_modules/date-fns/fp.d.ts index 55ee086b..acfe26c8 100644 --- a/node_modules/date-fns/fp.d.ts +++ b/node_modules/date-fns/fp.d.ts @@ -202,6 +202,8 @@ export * from "./fp/previousTuesday.js"; export * from "./fp/previousWednesday.js"; export * from "./fp/quartersToMonths.js"; export * from "./fp/quartersToYears.js"; +export * from "./fp/roundToNearestHours.js"; +export * from "./fp/roundToNearestHoursWithOptions.js"; export * from "./fp/roundToNearestMinutes.js"; export * from "./fp/roundToNearestMinutesWithOptions.js"; export * from "./fp/secondsToHours.js"; @@ -255,6 +257,7 @@ export * from "./fp/subYears.js"; export * from "./fp/toDate.js"; export * from "./fp/transpose.js"; export * from "./fp/weeksToDays.js"; +export * from "./fp/yearsToDays.js"; export * from "./fp/yearsToMonths.js"; export * from "./fp/yearsToQuarters.js"; export type * from "./types.js"; diff --git a/node_modules/date-fns/fp.js b/node_modules/date-fns/fp.js index c208bba0..ad9fb31d 100644 --- a/node_modules/date-fns/fp.js +++ b/node_modules/date-fns/fp.js @@ -2244,7 +2244,7 @@ Object.keys(_index204).forEach(function (key) { }, }); }); -var _index205 = require("./fp/roundToNearestMinutes.js"); +var _index205 = require("./fp/roundToNearestHours.js"); Object.keys(_index205).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index205[key]) return; @@ -2255,7 +2255,7 @@ Object.keys(_index205).forEach(function (key) { }, }); }); -var _index206 = require("./fp/roundToNearestMinutesWithOptions.js"); +var _index206 = require("./fp/roundToNearestHoursWithOptions.js"); Object.keys(_index206).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index206[key]) return; @@ -2266,7 +2266,7 @@ Object.keys(_index206).forEach(function (key) { }, }); }); -var _index207 = require("./fp/secondsToHours.js"); +var _index207 = require("./fp/roundToNearestMinutes.js"); Object.keys(_index207).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index207[key]) return; @@ -2277,7 +2277,7 @@ Object.keys(_index207).forEach(function (key) { }, }); }); -var _index208 = require("./fp/secondsToMilliseconds.js"); +var _index208 = require("./fp/roundToNearestMinutesWithOptions.js"); Object.keys(_index208).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index208[key]) return; @@ -2288,7 +2288,7 @@ Object.keys(_index208).forEach(function (key) { }, }); }); -var _index209 = require("./fp/secondsToMinutes.js"); +var _index209 = require("./fp/secondsToHours.js"); Object.keys(_index209).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index209[key]) return; @@ -2299,7 +2299,7 @@ Object.keys(_index209).forEach(function (key) { }, }); }); -var _index210 = require("./fp/set.js"); +var _index210 = require("./fp/secondsToMilliseconds.js"); Object.keys(_index210).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index210[key]) return; @@ -2310,7 +2310,7 @@ Object.keys(_index210).forEach(function (key) { }, }); }); -var _index211 = require("./fp/setDate.js"); +var _index211 = require("./fp/secondsToMinutes.js"); Object.keys(_index211).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index211[key]) return; @@ -2321,7 +2321,7 @@ Object.keys(_index211).forEach(function (key) { }, }); }); -var _index212 = require("./fp/setDay.js"); +var _index212 = require("./fp/set.js"); Object.keys(_index212).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index212[key]) return; @@ -2332,7 +2332,7 @@ Object.keys(_index212).forEach(function (key) { }, }); }); -var _index213 = require("./fp/setDayOfYear.js"); +var _index213 = require("./fp/setDate.js"); Object.keys(_index213).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index213[key]) return; @@ -2343,7 +2343,7 @@ Object.keys(_index213).forEach(function (key) { }, }); }); -var _index214 = require("./fp/setDayWithOptions.js"); +var _index214 = require("./fp/setDay.js"); Object.keys(_index214).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index214[key]) return; @@ -2354,7 +2354,7 @@ Object.keys(_index214).forEach(function (key) { }, }); }); -var _index215 = require("./fp/setHours.js"); +var _index215 = require("./fp/setDayOfYear.js"); Object.keys(_index215).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index215[key]) return; @@ -2365,7 +2365,7 @@ Object.keys(_index215).forEach(function (key) { }, }); }); -var _index216 = require("./fp/setISODay.js"); +var _index216 = require("./fp/setDayWithOptions.js"); Object.keys(_index216).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index216[key]) return; @@ -2376,7 +2376,7 @@ Object.keys(_index216).forEach(function (key) { }, }); }); -var _index217 = require("./fp/setISOWeek.js"); +var _index217 = require("./fp/setHours.js"); Object.keys(_index217).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index217[key]) return; @@ -2387,7 +2387,7 @@ Object.keys(_index217).forEach(function (key) { }, }); }); -var _index218 = require("./fp/setISOWeekYear.js"); +var _index218 = require("./fp/setISODay.js"); Object.keys(_index218).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index218[key]) return; @@ -2398,7 +2398,7 @@ Object.keys(_index218).forEach(function (key) { }, }); }); -var _index219 = require("./fp/setMilliseconds.js"); +var _index219 = require("./fp/setISOWeek.js"); Object.keys(_index219).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index219[key]) return; @@ -2409,7 +2409,7 @@ Object.keys(_index219).forEach(function (key) { }, }); }); -var _index220 = require("./fp/setMinutes.js"); +var _index220 = require("./fp/setISOWeekYear.js"); Object.keys(_index220).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index220[key]) return; @@ -2420,7 +2420,7 @@ Object.keys(_index220).forEach(function (key) { }, }); }); -var _index221 = require("./fp/setMonth.js"); +var _index221 = require("./fp/setMilliseconds.js"); Object.keys(_index221).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index221[key]) return; @@ -2431,7 +2431,7 @@ Object.keys(_index221).forEach(function (key) { }, }); }); -var _index222 = require("./fp/setQuarter.js"); +var _index222 = require("./fp/setMinutes.js"); Object.keys(_index222).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index222[key]) return; @@ -2442,7 +2442,7 @@ Object.keys(_index222).forEach(function (key) { }, }); }); -var _index223 = require("./fp/setSeconds.js"); +var _index223 = require("./fp/setMonth.js"); Object.keys(_index223).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index223[key]) return; @@ -2453,7 +2453,7 @@ Object.keys(_index223).forEach(function (key) { }, }); }); -var _index224 = require("./fp/setWeek.js"); +var _index224 = require("./fp/setQuarter.js"); Object.keys(_index224).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index224[key]) return; @@ -2464,7 +2464,7 @@ Object.keys(_index224).forEach(function (key) { }, }); }); -var _index225 = require("./fp/setWeekWithOptions.js"); +var _index225 = require("./fp/setSeconds.js"); Object.keys(_index225).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index225[key]) return; @@ -2475,7 +2475,7 @@ Object.keys(_index225).forEach(function (key) { }, }); }); -var _index226 = require("./fp/setWeekYear.js"); +var _index226 = require("./fp/setWeek.js"); Object.keys(_index226).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index226[key]) return; @@ -2486,7 +2486,7 @@ Object.keys(_index226).forEach(function (key) { }, }); }); -var _index227 = require("./fp/setWeekYearWithOptions.js"); +var _index227 = require("./fp/setWeekWithOptions.js"); Object.keys(_index227).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index227[key]) return; @@ -2497,7 +2497,7 @@ Object.keys(_index227).forEach(function (key) { }, }); }); -var _index228 = require("./fp/setYear.js"); +var _index228 = require("./fp/setWeekYear.js"); Object.keys(_index228).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index228[key]) return; @@ -2508,7 +2508,7 @@ Object.keys(_index228).forEach(function (key) { }, }); }); -var _index229 = require("./fp/startOfDay.js"); +var _index229 = require("./fp/setWeekYearWithOptions.js"); Object.keys(_index229).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index229[key]) return; @@ -2519,7 +2519,7 @@ Object.keys(_index229).forEach(function (key) { }, }); }); -var _index230 = require("./fp/startOfDecade.js"); +var _index230 = require("./fp/setYear.js"); Object.keys(_index230).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index230[key]) return; @@ -2530,7 +2530,7 @@ Object.keys(_index230).forEach(function (key) { }, }); }); -var _index231 = require("./fp/startOfHour.js"); +var _index231 = require("./fp/startOfDay.js"); Object.keys(_index231).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index231[key]) return; @@ -2541,7 +2541,7 @@ Object.keys(_index231).forEach(function (key) { }, }); }); -var _index232 = require("./fp/startOfISOWeek.js"); +var _index232 = require("./fp/startOfDecade.js"); Object.keys(_index232).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index232[key]) return; @@ -2552,7 +2552,7 @@ Object.keys(_index232).forEach(function (key) { }, }); }); -var _index233 = require("./fp/startOfISOWeekYear.js"); +var _index233 = require("./fp/startOfHour.js"); Object.keys(_index233).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index233[key]) return; @@ -2563,7 +2563,7 @@ Object.keys(_index233).forEach(function (key) { }, }); }); -var _index234 = require("./fp/startOfMinute.js"); +var _index234 = require("./fp/startOfISOWeek.js"); Object.keys(_index234).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index234[key]) return; @@ -2574,7 +2574,7 @@ Object.keys(_index234).forEach(function (key) { }, }); }); -var _index235 = require("./fp/startOfMonth.js"); +var _index235 = require("./fp/startOfISOWeekYear.js"); Object.keys(_index235).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index235[key]) return; @@ -2585,7 +2585,7 @@ Object.keys(_index235).forEach(function (key) { }, }); }); -var _index236 = require("./fp/startOfQuarter.js"); +var _index236 = require("./fp/startOfMinute.js"); Object.keys(_index236).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index236[key]) return; @@ -2596,7 +2596,7 @@ Object.keys(_index236).forEach(function (key) { }, }); }); -var _index237 = require("./fp/startOfSecond.js"); +var _index237 = require("./fp/startOfMonth.js"); Object.keys(_index237).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index237[key]) return; @@ -2607,7 +2607,7 @@ Object.keys(_index237).forEach(function (key) { }, }); }); -var _index238 = require("./fp/startOfWeek.js"); +var _index238 = require("./fp/startOfQuarter.js"); Object.keys(_index238).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index238[key]) return; @@ -2618,7 +2618,7 @@ Object.keys(_index238).forEach(function (key) { }, }); }); -var _index239 = require("./fp/startOfWeekWithOptions.js"); +var _index239 = require("./fp/startOfSecond.js"); Object.keys(_index239).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index239[key]) return; @@ -2629,7 +2629,7 @@ Object.keys(_index239).forEach(function (key) { }, }); }); -var _index240 = require("./fp/startOfWeekYear.js"); +var _index240 = require("./fp/startOfWeek.js"); Object.keys(_index240).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index240[key]) return; @@ -2640,7 +2640,7 @@ Object.keys(_index240).forEach(function (key) { }, }); }); -var _index241 = require("./fp/startOfWeekYearWithOptions.js"); +var _index241 = require("./fp/startOfWeekWithOptions.js"); Object.keys(_index241).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index241[key]) return; @@ -2651,7 +2651,7 @@ Object.keys(_index241).forEach(function (key) { }, }); }); -var _index242 = require("./fp/startOfYear.js"); +var _index242 = require("./fp/startOfWeekYear.js"); Object.keys(_index242).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index242[key]) return; @@ -2662,7 +2662,7 @@ Object.keys(_index242).forEach(function (key) { }, }); }); -var _index243 = require("./fp/sub.js"); +var _index243 = require("./fp/startOfWeekYearWithOptions.js"); Object.keys(_index243).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index243[key]) return; @@ -2673,7 +2673,7 @@ Object.keys(_index243).forEach(function (key) { }, }); }); -var _index244 = require("./fp/subBusinessDays.js"); +var _index244 = require("./fp/startOfYear.js"); Object.keys(_index244).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index244[key]) return; @@ -2684,7 +2684,7 @@ Object.keys(_index244).forEach(function (key) { }, }); }); -var _index245 = require("./fp/subDays.js"); +var _index245 = require("./fp/sub.js"); Object.keys(_index245).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index245[key]) return; @@ -2695,7 +2695,7 @@ Object.keys(_index245).forEach(function (key) { }, }); }); -var _index246 = require("./fp/subHours.js"); +var _index246 = require("./fp/subBusinessDays.js"); Object.keys(_index246).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index246[key]) return; @@ -2706,7 +2706,7 @@ Object.keys(_index246).forEach(function (key) { }, }); }); -var _index247 = require("./fp/subISOWeekYears.js"); +var _index247 = require("./fp/subDays.js"); Object.keys(_index247).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index247[key]) return; @@ -2717,7 +2717,7 @@ Object.keys(_index247).forEach(function (key) { }, }); }); -var _index248 = require("./fp/subMilliseconds.js"); +var _index248 = require("./fp/subHours.js"); Object.keys(_index248).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index248[key]) return; @@ -2728,7 +2728,7 @@ Object.keys(_index248).forEach(function (key) { }, }); }); -var _index249 = require("./fp/subMinutes.js"); +var _index249 = require("./fp/subISOWeekYears.js"); Object.keys(_index249).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index249[key]) return; @@ -2739,7 +2739,7 @@ Object.keys(_index249).forEach(function (key) { }, }); }); -var _index250 = require("./fp/subMonths.js"); +var _index250 = require("./fp/subMilliseconds.js"); Object.keys(_index250).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index250[key]) return; @@ -2750,7 +2750,7 @@ Object.keys(_index250).forEach(function (key) { }, }); }); -var _index251 = require("./fp/subQuarters.js"); +var _index251 = require("./fp/subMinutes.js"); Object.keys(_index251).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index251[key]) return; @@ -2761,7 +2761,7 @@ Object.keys(_index251).forEach(function (key) { }, }); }); -var _index252 = require("./fp/subSeconds.js"); +var _index252 = require("./fp/subMonths.js"); Object.keys(_index252).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index252[key]) return; @@ -2772,7 +2772,7 @@ Object.keys(_index252).forEach(function (key) { }, }); }); -var _index253 = require("./fp/subWeeks.js"); +var _index253 = require("./fp/subQuarters.js"); Object.keys(_index253).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index253[key]) return; @@ -2783,7 +2783,7 @@ Object.keys(_index253).forEach(function (key) { }, }); }); -var _index254 = require("./fp/subYears.js"); +var _index254 = require("./fp/subSeconds.js"); Object.keys(_index254).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index254[key]) return; @@ -2794,7 +2794,7 @@ Object.keys(_index254).forEach(function (key) { }, }); }); -var _index255 = require("./fp/toDate.js"); +var _index255 = require("./fp/subWeeks.js"); Object.keys(_index255).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index255[key]) return; @@ -2805,7 +2805,7 @@ Object.keys(_index255).forEach(function (key) { }, }); }); -var _index256 = require("./fp/transpose.js"); +var _index256 = require("./fp/subYears.js"); Object.keys(_index256).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index256[key]) return; @@ -2816,7 +2816,7 @@ Object.keys(_index256).forEach(function (key) { }, }); }); -var _index257 = require("./fp/weeksToDays.js"); +var _index257 = require("./fp/toDate.js"); Object.keys(_index257).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index257[key]) return; @@ -2827,7 +2827,7 @@ Object.keys(_index257).forEach(function (key) { }, }); }); -var _index258 = require("./fp/yearsToMonths.js"); +var _index258 = require("./fp/transpose.js"); Object.keys(_index258).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index258[key]) return; @@ -2838,7 +2838,7 @@ Object.keys(_index258).forEach(function (key) { }, }); }); -var _index259 = require("./fp/yearsToQuarters.js"); +var _index259 = require("./fp/weeksToDays.js"); Object.keys(_index259).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index259[key]) return; @@ -2849,3 +2849,36 @@ Object.keys(_index259).forEach(function (key) { }, }); }); +var _index260 = require("./fp/yearsToDays.js"); +Object.keys(_index260).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index260[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index260[key]; + }, + }); +}); +var _index261 = require("./fp/yearsToMonths.js"); +Object.keys(_index261).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index261[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index261[key]; + }, + }); +}); +var _index262 = require("./fp/yearsToQuarters.js"); +Object.keys(_index262).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index262[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index262[key]; + }, + }); +}); diff --git a/node_modules/date-fns/fp.mjs b/node_modules/date-fns/fp.mjs index a9b1979f..85c5fd09 100644 --- a/node_modules/date-fns/fp.mjs +++ b/node_modules/date-fns/fp.mjs @@ -203,6 +203,8 @@ export * from "./fp/previousTuesday.mjs"; export * from "./fp/previousWednesday.mjs"; export * from "./fp/quartersToMonths.mjs"; export * from "./fp/quartersToYears.mjs"; +export * from "./fp/roundToNearestHours.mjs"; +export * from "./fp/roundToNearestHoursWithOptions.mjs"; export * from "./fp/roundToNearestMinutes.mjs"; export * from "./fp/roundToNearestMinutesWithOptions.mjs"; export * from "./fp/secondsToHours.mjs"; @@ -256,5 +258,6 @@ export * from "./fp/subYears.mjs"; export * from "./fp/toDate.mjs"; export * from "./fp/transpose.mjs"; export * from "./fp/weeksToDays.mjs"; +export * from "./fp/yearsToDays.mjs"; export * from "./fp/yearsToMonths.mjs"; export * from "./fp/yearsToQuarters.mjs"; diff --git a/node_modules/date-fns/fp/_lib/convertToFP.d.mts b/node_modules/date-fns/fp/_lib/convertToFP.d.mts index 86c165c1..6c458fee 100644 --- a/node_modules/date-fns/fp/_lib/convertToFP.d.mts +++ b/node_modules/date-fns/fp/_lib/convertToFP.d.mts @@ -1 +1,17 @@ -export type * from "./convertToFP.d.ts"; +import type { FPArity, FPFn, FPFnInput } from "../types"; +/** + * Converts a function to a curried function that accepts arguments in reverse + * order. + * + * @param fn - The function to convert to FP + * @param arity - The arity of the function + * @param curriedArgs - The curried arguments + * + * @returns FP version of the function + * + * @private + */ +export declare function convertToFP< + Fn extends FPFnInput, + Arity extends FPArity, +>(fn: Fn, arity: Arity, curriedArgs?: unknown[]): FPFn; diff --git a/node_modules/date-fns/fp/add.d.mts b/node_modules/date-fns/fp/add.d.mts index bda88384..a0dd8aa5 100644 --- a/node_modules/date-fns/fp/add.d.mts +++ b/node_modules/date-fns/fp/add.d.mts @@ -1 +1,5 @@ -export type * from "./add.d.ts"; +export declare const add: import("./types.js").FPFn2< + Date, + import("../fp.js").Duration, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/addBusinessDays.d.mts b/node_modules/date-fns/fp/addBusinessDays.d.mts index 4f030532..81557ad3 100644 --- a/node_modules/date-fns/fp/addBusinessDays.d.mts +++ b/node_modules/date-fns/fp/addBusinessDays.d.mts @@ -1 +1,5 @@ -export type * from "./addBusinessDays.d.ts"; +export declare const addBusinessDays: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/addDays.d.mts b/node_modules/date-fns/fp/addDays.d.mts index 2d495582..dff38989 100644 --- a/node_modules/date-fns/fp/addDays.d.mts +++ b/node_modules/date-fns/fp/addDays.d.mts @@ -1 +1,5 @@ -export type * from "./addDays.d.ts"; +export declare const addDays: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/addHours.d.mts b/node_modules/date-fns/fp/addHours.d.mts index 5ba99f57..03edf3ee 100644 --- a/node_modules/date-fns/fp/addHours.d.mts +++ b/node_modules/date-fns/fp/addHours.d.mts @@ -1 +1,5 @@ -export type * from "./addHours.d.ts"; +export declare const addHours: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/addISOWeekYears.d.mts b/node_modules/date-fns/fp/addISOWeekYears.d.mts index 01cd85ff..f5f16c13 100644 --- a/node_modules/date-fns/fp/addISOWeekYears.d.mts +++ b/node_modules/date-fns/fp/addISOWeekYears.d.mts @@ -1 +1,5 @@ -export type * from "./addISOWeekYears.d.ts"; +export declare const addISOWeekYears: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/addMilliseconds.d.mts b/node_modules/date-fns/fp/addMilliseconds.d.mts index 070250a1..091f5b4e 100644 --- a/node_modules/date-fns/fp/addMilliseconds.d.mts +++ b/node_modules/date-fns/fp/addMilliseconds.d.mts @@ -1 +1,5 @@ -export type * from "./addMilliseconds.d.ts"; +export declare const addMilliseconds: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/addMinutes.d.mts b/node_modules/date-fns/fp/addMinutes.d.mts index ef093f8b..e57eb65f 100644 --- a/node_modules/date-fns/fp/addMinutes.d.mts +++ b/node_modules/date-fns/fp/addMinutes.d.mts @@ -1 +1,5 @@ -export type * from "./addMinutes.d.ts"; +export declare const addMinutes: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/addMonths.d.mts b/node_modules/date-fns/fp/addMonths.d.mts index 6e7bae79..8b4d3b6a 100644 --- a/node_modules/date-fns/fp/addMonths.d.mts +++ b/node_modules/date-fns/fp/addMonths.d.mts @@ -1 +1,5 @@ -export type * from "./addMonths.d.ts"; +export declare const addMonths: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/addQuarters.d.mts b/node_modules/date-fns/fp/addQuarters.d.mts index 16c9c50d..939801cf 100644 --- a/node_modules/date-fns/fp/addQuarters.d.mts +++ b/node_modules/date-fns/fp/addQuarters.d.mts @@ -1 +1,5 @@ -export type * from "./addQuarters.d.ts"; +export declare const addQuarters: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/addSeconds.d.mts b/node_modules/date-fns/fp/addSeconds.d.mts index 3948faff..54e4d31e 100644 --- a/node_modules/date-fns/fp/addSeconds.d.mts +++ b/node_modules/date-fns/fp/addSeconds.d.mts @@ -1 +1,5 @@ -export type * from "./addSeconds.d.ts"; +export declare const addSeconds: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/addWeeks.d.mts b/node_modules/date-fns/fp/addWeeks.d.mts index 4b34f4bd..5ad7ad0e 100644 --- a/node_modules/date-fns/fp/addWeeks.d.mts +++ b/node_modules/date-fns/fp/addWeeks.d.mts @@ -1 +1,5 @@ -export type * from "./addWeeks.d.ts"; +export declare const addWeeks: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/addYears.d.mts b/node_modules/date-fns/fp/addYears.d.mts index 034eb188..6d13b28b 100644 --- a/node_modules/date-fns/fp/addYears.d.mts +++ b/node_modules/date-fns/fp/addYears.d.mts @@ -1 +1,5 @@ -export type * from "./addYears.d.ts"; +export declare const addYears: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/areIntervalsOverlapping.d.mts b/node_modules/date-fns/fp/areIntervalsOverlapping.d.mts index f7b77378..3170e036 100644 --- a/node_modules/date-fns/fp/areIntervalsOverlapping.d.mts +++ b/node_modules/date-fns/fp/areIntervalsOverlapping.d.mts @@ -1 +1,5 @@ -export type * from "./areIntervalsOverlapping.d.ts"; +export declare const areIntervalsOverlapping: import("./types.js").FPFn2< + boolean, + import("../fp.js").Interval, + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.d.mts b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.d.mts index 808ce691..4f975f2d 100644 --- a/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.d.mts +++ b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.d.mts @@ -1 +1,7 @@ -export type * from "./areIntervalsOverlappingWithOptions.d.ts"; +export declare const areIntervalsOverlappingWithOptions: import("./types.js").FPFn3< + boolean, + | import("../areIntervalsOverlapping.js").AreIntervalsOverlappingOptions + | undefined, + import("../fp.js").Interval, + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/clamp.d.mts b/node_modules/date-fns/fp/clamp.d.mts index f6f6d76b..8aab25fd 100644 --- a/node_modules/date-fns/fp/clamp.d.mts +++ b/node_modules/date-fns/fp/clamp.d.mts @@ -1 +1,5 @@ -export type * from "./clamp.d.ts"; +export declare const clamp: import("./types.js").FPFn2< + Date, + import("../fp.js").Interval, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/closestIndexTo.d.mts b/node_modules/date-fns/fp/closestIndexTo.d.mts index 6d82ca8f..5e4fce31 100644 --- a/node_modules/date-fns/fp/closestIndexTo.d.mts +++ b/node_modules/date-fns/fp/closestIndexTo.d.mts @@ -1 +1,5 @@ -export type * from "./closestIndexTo.d.ts"; +export declare const closestIndexTo: import("./types.js").FPFn2< + number | undefined, + (string | number | Date)[], + string | number | Date +>; diff --git a/node_modules/date-fns/fp/closestTo.d.mts b/node_modules/date-fns/fp/closestTo.d.mts index 60ee316b..ac58dce0 100644 --- a/node_modules/date-fns/fp/closestTo.d.mts +++ b/node_modules/date-fns/fp/closestTo.d.mts @@ -1 +1,5 @@ -export type * from "./closestTo.d.ts"; +export declare const closestTo: import("./types.js").FPFn2< + Date | undefined, + (string | number | Date)[], + string | number | Date +>; diff --git a/node_modules/date-fns/fp/compareAsc.d.mts b/node_modules/date-fns/fp/compareAsc.d.mts index 2f69d00d..a563d37e 100644 --- a/node_modules/date-fns/fp/compareAsc.d.mts +++ b/node_modules/date-fns/fp/compareAsc.d.mts @@ -1 +1,5 @@ -export type * from "./compareAsc.d.ts"; +export declare const compareAsc: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/compareDesc.d.mts b/node_modules/date-fns/fp/compareDesc.d.mts index 381e00e1..121f8cdf 100644 --- a/node_modules/date-fns/fp/compareDesc.d.mts +++ b/node_modules/date-fns/fp/compareDesc.d.mts @@ -1 +1,5 @@ -export type * from "./compareDesc.d.ts"; +export declare const compareDesc: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/constructFrom.d.mts b/node_modules/date-fns/fp/constructFrom.d.mts index c3ae6a2f..5c1a4cd3 100644 --- a/node_modules/date-fns/fp/constructFrom.d.mts +++ b/node_modules/date-fns/fp/constructFrom.d.mts @@ -1 +1,5 @@ -export type * from "./constructFrom.d.ts"; +export declare const constructFrom: import("./types.js").FPFn2< + Date, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/daysToWeeks.d.mts b/node_modules/date-fns/fp/daysToWeeks.d.mts index f6ade69c..060217b1 100644 --- a/node_modules/date-fns/fp/daysToWeeks.d.mts +++ b/node_modules/date-fns/fp/daysToWeeks.d.mts @@ -1 +1 @@ -export type * from "./daysToWeeks.d.ts"; +export declare const daysToWeeks: import("./types.js").FPFn1; diff --git a/node_modules/date-fns/fp/differenceInBusinessDays.d.mts b/node_modules/date-fns/fp/differenceInBusinessDays.d.mts index 50b54f67..f04ca286 100644 --- a/node_modules/date-fns/fp/differenceInBusinessDays.d.mts +++ b/node_modules/date-fns/fp/differenceInBusinessDays.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInBusinessDays.d.ts"; +export declare const differenceInBusinessDays: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarDays.d.mts b/node_modules/date-fns/fp/differenceInCalendarDays.d.mts index bde807a4..f483426b 100644 --- a/node_modules/date-fns/fp/differenceInCalendarDays.d.mts +++ b/node_modules/date-fns/fp/differenceInCalendarDays.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInCalendarDays.d.ts"; +export declare const differenceInCalendarDays: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.d.mts b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.d.mts index b58dfe2d..6b3d1aa3 100644 --- a/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.d.mts +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInCalendarISOWeekYears.d.ts"; +export declare const differenceInCalendarISOWeekYears: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeeks.d.mts b/node_modules/date-fns/fp/differenceInCalendarISOWeeks.d.mts index 40b575b9..a8c9f97b 100644 --- a/node_modules/date-fns/fp/differenceInCalendarISOWeeks.d.mts +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeeks.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInCalendarISOWeeks.d.ts"; +export declare const differenceInCalendarISOWeeks: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarMonths.d.mts b/node_modules/date-fns/fp/differenceInCalendarMonths.d.mts index bbebf932..fbeddfe4 100644 --- a/node_modules/date-fns/fp/differenceInCalendarMonths.d.mts +++ b/node_modules/date-fns/fp/differenceInCalendarMonths.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInCalendarMonths.d.ts"; +export declare const differenceInCalendarMonths: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarQuarters.d.mts b/node_modules/date-fns/fp/differenceInCalendarQuarters.d.mts index 773a159a..01728c7f 100644 --- a/node_modules/date-fns/fp/differenceInCalendarQuarters.d.mts +++ b/node_modules/date-fns/fp/differenceInCalendarQuarters.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInCalendarQuarters.d.ts"; +export declare const differenceInCalendarQuarters: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeks.d.mts b/node_modules/date-fns/fp/differenceInCalendarWeeks.d.mts index 7aa42210..a741f15e 100644 --- a/node_modules/date-fns/fp/differenceInCalendarWeeks.d.mts +++ b/node_modules/date-fns/fp/differenceInCalendarWeeks.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInCalendarWeeks.d.ts"; +export declare const differenceInCalendarWeeks: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.d.mts b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.d.mts index 13c7ee9f..d9454900 100644 --- a/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.d.mts +++ b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.d.mts @@ -1 +1,7 @@ -export type * from "./differenceInCalendarWeeksWithOptions.d.ts"; +export declare const differenceInCalendarWeeksWithOptions: import("./types.js").FPFn3< + number, + | import("../differenceInCalendarWeeks.js").DifferenceInCalendarWeeksOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarYears.d.mts b/node_modules/date-fns/fp/differenceInCalendarYears.d.mts index 105f70fc..4a5617b5 100644 --- a/node_modules/date-fns/fp/differenceInCalendarYears.d.mts +++ b/node_modules/date-fns/fp/differenceInCalendarYears.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInCalendarYears.d.ts"; +export declare const differenceInCalendarYears: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInDays.d.mts b/node_modules/date-fns/fp/differenceInDays.d.mts index 3f2b3ca8..bdc5591f 100644 --- a/node_modules/date-fns/fp/differenceInDays.d.mts +++ b/node_modules/date-fns/fp/differenceInDays.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInDays.d.ts"; +export declare const differenceInDays: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInHours.d.mts b/node_modules/date-fns/fp/differenceInHours.d.mts index e98c7a28..3e91e7f9 100644 --- a/node_modules/date-fns/fp/differenceInHours.d.mts +++ b/node_modules/date-fns/fp/differenceInHours.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInHours.d.ts"; +export declare const differenceInHours: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInHoursWithOptions.d.mts b/node_modules/date-fns/fp/differenceInHoursWithOptions.d.mts index 2bcae981..db59c917 100644 --- a/node_modules/date-fns/fp/differenceInHoursWithOptions.d.mts +++ b/node_modules/date-fns/fp/differenceInHoursWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./differenceInHoursWithOptions.d.ts"; +export declare const differenceInHoursWithOptions: import("./types.js").FPFn3< + number, + import("../differenceInHours.js").DifferenceInHoursOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInISOWeekYears.d.mts b/node_modules/date-fns/fp/differenceInISOWeekYears.d.mts index f2ac2994..d7fe9fad 100644 --- a/node_modules/date-fns/fp/differenceInISOWeekYears.d.mts +++ b/node_modules/date-fns/fp/differenceInISOWeekYears.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInISOWeekYears.d.ts"; +export declare const differenceInISOWeekYears: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInMilliseconds.d.mts b/node_modules/date-fns/fp/differenceInMilliseconds.d.mts index 1689e11a..4ec4f11c 100644 --- a/node_modules/date-fns/fp/differenceInMilliseconds.d.mts +++ b/node_modules/date-fns/fp/differenceInMilliseconds.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInMilliseconds.d.ts"; +export declare const differenceInMilliseconds: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInMinutes.d.mts b/node_modules/date-fns/fp/differenceInMinutes.d.mts index 17f048e8..e960e790 100644 --- a/node_modules/date-fns/fp/differenceInMinutes.d.mts +++ b/node_modules/date-fns/fp/differenceInMinutes.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInMinutes.d.ts"; +export declare const differenceInMinutes: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInMinutesWithOptions.d.mts b/node_modules/date-fns/fp/differenceInMinutesWithOptions.d.mts index e3ff2a3f..9b78aeec 100644 --- a/node_modules/date-fns/fp/differenceInMinutesWithOptions.d.mts +++ b/node_modules/date-fns/fp/differenceInMinutesWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./differenceInMinutesWithOptions.d.ts"; +export declare const differenceInMinutesWithOptions: import("./types.js").FPFn3< + number, + import("../differenceInMinutes.js").DifferenceInMinutesOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInMonths.d.mts b/node_modules/date-fns/fp/differenceInMonths.d.mts index e7a2da1e..3ef65a2a 100644 --- a/node_modules/date-fns/fp/differenceInMonths.d.mts +++ b/node_modules/date-fns/fp/differenceInMonths.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInMonths.d.ts"; +export declare const differenceInMonths: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInQuarters.d.mts b/node_modules/date-fns/fp/differenceInQuarters.d.mts index 8bed0a28..f2d30568 100644 --- a/node_modules/date-fns/fp/differenceInQuarters.d.mts +++ b/node_modules/date-fns/fp/differenceInQuarters.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInQuarters.d.ts"; +export declare const differenceInQuarters: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInQuartersWithOptions.d.mts b/node_modules/date-fns/fp/differenceInQuartersWithOptions.d.mts index 1d30d34f..27a380d2 100644 --- a/node_modules/date-fns/fp/differenceInQuartersWithOptions.d.mts +++ b/node_modules/date-fns/fp/differenceInQuartersWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./differenceInQuartersWithOptions.d.ts"; +export declare const differenceInQuartersWithOptions: import("./types.js").FPFn3< + number, + import("../differenceInQuarters.js").DifferenceInQuartersOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInSeconds.d.mts b/node_modules/date-fns/fp/differenceInSeconds.d.mts index d2cdf5e5..189592fa 100644 --- a/node_modules/date-fns/fp/differenceInSeconds.d.mts +++ b/node_modules/date-fns/fp/differenceInSeconds.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInSeconds.d.ts"; +export declare const differenceInSeconds: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInSecondsWithOptions.d.mts b/node_modules/date-fns/fp/differenceInSecondsWithOptions.d.mts index 39c8fa1b..83082bea 100644 --- a/node_modules/date-fns/fp/differenceInSecondsWithOptions.d.mts +++ b/node_modules/date-fns/fp/differenceInSecondsWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./differenceInSecondsWithOptions.d.ts"; +export declare const differenceInSecondsWithOptions: import("./types.js").FPFn3< + number, + import("../differenceInSeconds.js").DifferenceInSecondsOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInWeeks.d.mts b/node_modules/date-fns/fp/differenceInWeeks.d.mts index 93047199..e540489e 100644 --- a/node_modules/date-fns/fp/differenceInWeeks.d.mts +++ b/node_modules/date-fns/fp/differenceInWeeks.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInWeeks.d.ts"; +export declare const differenceInWeeks: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInWeeksWithOptions.d.mts b/node_modules/date-fns/fp/differenceInWeeksWithOptions.d.mts index 11c78afc..5870903d 100644 --- a/node_modules/date-fns/fp/differenceInWeeksWithOptions.d.mts +++ b/node_modules/date-fns/fp/differenceInWeeksWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./differenceInWeeksWithOptions.d.ts"; +export declare const differenceInWeeksWithOptions: import("./types.js").FPFn3< + number, + import("../differenceInWeeks.js").DifferenceInWeeksOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInYears.d.mts b/node_modules/date-fns/fp/differenceInYears.d.mts index d411c34c..17712366 100644 --- a/node_modules/date-fns/fp/differenceInYears.d.mts +++ b/node_modules/date-fns/fp/differenceInYears.d.mts @@ -1 +1,5 @@ -export type * from "./differenceInYears.d.ts"; +export declare const differenceInYears: import("./types.js").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/eachDayOfInterval.d.mts b/node_modules/date-fns/fp/eachDayOfInterval.d.mts index 7fe7813b..b6d6c387 100644 --- a/node_modules/date-fns/fp/eachDayOfInterval.d.mts +++ b/node_modules/date-fns/fp/eachDayOfInterval.d.mts @@ -1 +1,4 @@ -export type * from "./eachDayOfInterval.d.ts"; +export declare const eachDayOfInterval: import("./types.js").FPFn1< + Date[], + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.d.mts b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.d.mts index ee227220..e7a6c54f 100644 --- a/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.d.mts +++ b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./eachDayOfIntervalWithOptions.d.ts"; +export declare const eachDayOfIntervalWithOptions: import("./types.js").FPFn2< + Date[], + import("../eachDayOfInterval.js").EachDayOfIntervalOptions | undefined, + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/eachHourOfInterval.d.mts b/node_modules/date-fns/fp/eachHourOfInterval.d.mts index 081c877f..9d9ef28f 100644 --- a/node_modules/date-fns/fp/eachHourOfInterval.d.mts +++ b/node_modules/date-fns/fp/eachHourOfInterval.d.mts @@ -1 +1,4 @@ -export type * from "./eachHourOfInterval.d.ts"; +export declare const eachHourOfInterval: import("./types.js").FPFn1< + Date[], + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.d.mts b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.d.mts index 681d81d5..274323dc 100644 --- a/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.d.mts +++ b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./eachHourOfIntervalWithOptions.d.ts"; +export declare const eachHourOfIntervalWithOptions: import("./types.js").FPFn2< + Date[], + import("../eachHourOfInterval.js").EachHourOfIntervalOptions | undefined, + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/eachMinuteOfInterval.d.mts b/node_modules/date-fns/fp/eachMinuteOfInterval.d.mts index 6d2ed3f3..ab154fe0 100644 --- a/node_modules/date-fns/fp/eachMinuteOfInterval.d.mts +++ b/node_modules/date-fns/fp/eachMinuteOfInterval.d.mts @@ -1 +1,4 @@ -export type * from "./eachMinuteOfInterval.d.ts"; +export declare const eachMinuteOfInterval: import("./types.js").FPFn1< + Date[], + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.d.mts b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.d.mts index 4d96aee4..ada392e7 100644 --- a/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.d.mts +++ b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./eachMinuteOfIntervalWithOptions.d.ts"; +export declare const eachMinuteOfIntervalWithOptions: import("./types.js").FPFn2< + Date[], + import("../eachMinuteOfInterval.js").EachMinuteOfIntervalOptions | undefined, + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/eachMonthOfInterval.d.mts b/node_modules/date-fns/fp/eachMonthOfInterval.d.mts index 23f49b1d..0d99e3ee 100644 --- a/node_modules/date-fns/fp/eachMonthOfInterval.d.mts +++ b/node_modules/date-fns/fp/eachMonthOfInterval.d.mts @@ -1 +1,4 @@ -export type * from "./eachMonthOfInterval.d.ts"; +export declare const eachMonthOfInterval: import("./types.js").FPFn1< + Date[], + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.d.mts b/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.d.mts index ab692be9..35c7bc7e 100644 --- a/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.d.mts +++ b/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./eachMonthOfIntervalWithOptions.d.ts"; +export declare const eachMonthOfIntervalWithOptions: import("./types.js").FPFn2< + Date[], + import("../eachMonthOfInterval.js").EachMonthOfIntervalOptions | undefined, + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/eachQuarterOfInterval.d.mts b/node_modules/date-fns/fp/eachQuarterOfInterval.d.mts index 8bf8d1ba..5152967b 100644 --- a/node_modules/date-fns/fp/eachQuarterOfInterval.d.mts +++ b/node_modules/date-fns/fp/eachQuarterOfInterval.d.mts @@ -1 +1,4 @@ -export type * from "./eachQuarterOfInterval.d.ts"; +export declare const eachQuarterOfInterval: import("./types.js").FPFn1< + Date[], + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.d.mts b/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.d.mts index 141adc56..821de445 100644 --- a/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.d.mts +++ b/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./eachQuarterOfIntervalWithOptions.d.ts"; +export declare const eachQuarterOfIntervalWithOptions: import("./types.js").FPFn2< + Date[], + | import("../eachQuarterOfInterval.js").EachQuarterOfIntervalOptions + | undefined, + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/eachWeekOfInterval.d.mts b/node_modules/date-fns/fp/eachWeekOfInterval.d.mts index c5eaf714..1e34d8a3 100644 --- a/node_modules/date-fns/fp/eachWeekOfInterval.d.mts +++ b/node_modules/date-fns/fp/eachWeekOfInterval.d.mts @@ -1 +1,4 @@ -export type * from "./eachWeekOfInterval.d.ts"; +export declare const eachWeekOfInterval: import("./types.js").FPFn1< + Date[], + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.d.mts b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.d.mts index bbfab9d6..868bf833 100644 --- a/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.d.mts +++ b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./eachWeekOfIntervalWithOptions.d.ts"; +export declare const eachWeekOfIntervalWithOptions: import("./types.js").FPFn2< + Date[], + import("../eachWeekOfInterval.js").EachWeekOfIntervalOptions | undefined, + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfInterval.d.mts b/node_modules/date-fns/fp/eachWeekendOfInterval.d.mts index d5ef9119..51806d1c 100644 --- a/node_modules/date-fns/fp/eachWeekendOfInterval.d.mts +++ b/node_modules/date-fns/fp/eachWeekendOfInterval.d.mts @@ -1 +1,4 @@ -export type * from "./eachWeekendOfInterval.d.ts"; +export declare const eachWeekendOfInterval: import("./types.js").FPFn1< + Date[], + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfMonth.d.mts b/node_modules/date-fns/fp/eachWeekendOfMonth.d.mts index bf61dd94..8d149b11 100644 --- a/node_modules/date-fns/fp/eachWeekendOfMonth.d.mts +++ b/node_modules/date-fns/fp/eachWeekendOfMonth.d.mts @@ -1 +1,4 @@ -export type * from "./eachWeekendOfMonth.d.ts"; +export declare const eachWeekendOfMonth: import("./types.js").FPFn1< + Date[], + Date +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfYear.d.mts b/node_modules/date-fns/fp/eachWeekendOfYear.d.mts index c657c50a..341bf147 100644 --- a/node_modules/date-fns/fp/eachWeekendOfYear.d.mts +++ b/node_modules/date-fns/fp/eachWeekendOfYear.d.mts @@ -1 +1,4 @@ -export type * from "./eachWeekendOfYear.d.ts"; +export declare const eachWeekendOfYear: import("./types.js").FPFn1< + Date[], + string | number | Date +>; diff --git a/node_modules/date-fns/fp/eachYearOfInterval.d.mts b/node_modules/date-fns/fp/eachYearOfInterval.d.mts index 589c1662..d963326a 100644 --- a/node_modules/date-fns/fp/eachYearOfInterval.d.mts +++ b/node_modules/date-fns/fp/eachYearOfInterval.d.mts @@ -1 +1,4 @@ -export type * from "./eachYearOfInterval.d.ts"; +export declare const eachYearOfInterval: import("./types.js").FPFn1< + Date[], + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.d.mts b/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.d.mts index f34db1a3..ae8e1829 100644 --- a/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.d.mts +++ b/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./eachYearOfIntervalWithOptions.d.ts"; +export declare const eachYearOfIntervalWithOptions: import("./types.js").FPFn2< + Date[], + import("../eachYearOfInterval.js").EachYearOfIntervalOptions | undefined, + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/endOfDay.d.mts b/node_modules/date-fns/fp/endOfDay.d.mts index 9b3c9a7f..e74d012f 100644 --- a/node_modules/date-fns/fp/endOfDay.d.mts +++ b/node_modules/date-fns/fp/endOfDay.d.mts @@ -1 +1,4 @@ -export type * from "./endOfDay.d.ts"; +export declare const endOfDay: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/endOfDecade.d.mts b/node_modules/date-fns/fp/endOfDecade.d.mts index defce08b..7fec6eff 100644 --- a/node_modules/date-fns/fp/endOfDecade.d.mts +++ b/node_modules/date-fns/fp/endOfDecade.d.mts @@ -1 +1,4 @@ -export type * from "./endOfDecade.d.ts"; +export declare const endOfDecade: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/endOfHour.d.mts b/node_modules/date-fns/fp/endOfHour.d.mts index a2ad4eec..e3562246 100644 --- a/node_modules/date-fns/fp/endOfHour.d.mts +++ b/node_modules/date-fns/fp/endOfHour.d.mts @@ -1 +1,4 @@ -export type * from "./endOfHour.d.ts"; +export declare const endOfHour: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/endOfISOWeek.d.mts b/node_modules/date-fns/fp/endOfISOWeek.d.mts index 87046a73..4e4da414 100644 --- a/node_modules/date-fns/fp/endOfISOWeek.d.mts +++ b/node_modules/date-fns/fp/endOfISOWeek.d.mts @@ -1 +1,4 @@ -export type * from "./endOfISOWeek.d.ts"; +export declare const endOfISOWeek: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/endOfISOWeekYear.d.mts b/node_modules/date-fns/fp/endOfISOWeekYear.d.mts index db5dd5d2..f73374ad 100644 --- a/node_modules/date-fns/fp/endOfISOWeekYear.d.mts +++ b/node_modules/date-fns/fp/endOfISOWeekYear.d.mts @@ -1 +1,4 @@ -export type * from "./endOfISOWeekYear.d.ts"; +export declare const endOfISOWeekYear: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/endOfMinute.d.mts b/node_modules/date-fns/fp/endOfMinute.d.mts index 04f01eba..53118b2c 100644 --- a/node_modules/date-fns/fp/endOfMinute.d.mts +++ b/node_modules/date-fns/fp/endOfMinute.d.mts @@ -1 +1,4 @@ -export type * from "./endOfMinute.d.ts"; +export declare const endOfMinute: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/endOfMonth.d.mts b/node_modules/date-fns/fp/endOfMonth.d.mts index aecc3f30..2a1a53c6 100644 --- a/node_modules/date-fns/fp/endOfMonth.d.mts +++ b/node_modules/date-fns/fp/endOfMonth.d.mts @@ -1 +1,4 @@ -export type * from "./endOfMonth.d.ts"; +export declare const endOfMonth: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/endOfQuarter.d.mts b/node_modules/date-fns/fp/endOfQuarter.d.mts index ec414dcd..ecae59ff 100644 --- a/node_modules/date-fns/fp/endOfQuarter.d.mts +++ b/node_modules/date-fns/fp/endOfQuarter.d.mts @@ -1 +1,4 @@ -export type * from "./endOfQuarter.d.ts"; +export declare const endOfQuarter: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/endOfSecond.d.mts b/node_modules/date-fns/fp/endOfSecond.d.mts index 4ded8490..c4c5f12e 100644 --- a/node_modules/date-fns/fp/endOfSecond.d.mts +++ b/node_modules/date-fns/fp/endOfSecond.d.mts @@ -1 +1,4 @@ -export type * from "./endOfSecond.d.ts"; +export declare const endOfSecond: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/endOfWeek.d.mts b/node_modules/date-fns/fp/endOfWeek.d.mts index ddcfc5aa..96f0bdf3 100644 --- a/node_modules/date-fns/fp/endOfWeek.d.mts +++ b/node_modules/date-fns/fp/endOfWeek.d.mts @@ -1 +1,4 @@ -export type * from "./endOfWeek.d.ts"; +export declare const endOfWeek: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/endOfWeekWithOptions.d.mts b/node_modules/date-fns/fp/endOfWeekWithOptions.d.mts index 7c00c4da..0e6226d6 100644 --- a/node_modules/date-fns/fp/endOfWeekWithOptions.d.mts +++ b/node_modules/date-fns/fp/endOfWeekWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./endOfWeekWithOptions.d.ts"; +export declare const endOfWeekWithOptions: import("./types.js").FPFn2< + Date, + import("../endOfWeek.js").EndOfWeekOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/endOfYear.d.mts b/node_modules/date-fns/fp/endOfYear.d.mts index 7821f03a..4a948421 100644 --- a/node_modules/date-fns/fp/endOfYear.d.mts +++ b/node_modules/date-fns/fp/endOfYear.d.mts @@ -1 +1,4 @@ -export type * from "./endOfYear.d.ts"; +export declare const endOfYear: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/format.d.mts b/node_modules/date-fns/fp/format.d.mts index 976bcfae..ae0399db 100644 --- a/node_modules/date-fns/fp/format.d.mts +++ b/node_modules/date-fns/fp/format.d.mts @@ -1 +1,5 @@ -export type * from "./format.d.ts"; +export declare const format: import("./types.js").FPFn2< + string, + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatDistance.d.mts b/node_modules/date-fns/fp/formatDistance.d.mts index 9d6292d1..4d4a2ef7 100644 --- a/node_modules/date-fns/fp/formatDistance.d.mts +++ b/node_modules/date-fns/fp/formatDistance.d.mts @@ -1 +1,5 @@ -export type * from "./formatDistance.d.ts"; +export declare const formatDistance: import("./types.js").FPFn2< + string, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatDistanceStrict.d.mts b/node_modules/date-fns/fp/formatDistanceStrict.d.mts index 4a07c65d..ad35e9e3 100644 --- a/node_modules/date-fns/fp/formatDistanceStrict.d.mts +++ b/node_modules/date-fns/fp/formatDistanceStrict.d.mts @@ -1 +1,5 @@ -export type * from "./formatDistanceStrict.d.ts"; +export declare const formatDistanceStrict: import("./types.js").FPFn2< + string, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatDistanceStrictWithOptions.d.mts b/node_modules/date-fns/fp/formatDistanceStrictWithOptions.d.mts index 10d6ec3a..2cbfc6f5 100644 --- a/node_modules/date-fns/fp/formatDistanceStrictWithOptions.d.mts +++ b/node_modules/date-fns/fp/formatDistanceStrictWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./formatDistanceStrictWithOptions.d.ts"; +export declare const formatDistanceStrictWithOptions: import("./types.js").FPFn3< + string, + import("../formatDistanceStrict.js").FormatDistanceStrictOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatDistanceWithOptions.d.mts b/node_modules/date-fns/fp/formatDistanceWithOptions.d.mts index 8dcbc844..0bfceeea 100644 --- a/node_modules/date-fns/fp/formatDistanceWithOptions.d.mts +++ b/node_modules/date-fns/fp/formatDistanceWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./formatDistanceWithOptions.d.ts"; +export declare const formatDistanceWithOptions: import("./types.js").FPFn3< + string, + import("../formatDistance.js").FormatDistanceOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatDuration.d.mts b/node_modules/date-fns/fp/formatDuration.d.mts index 97139839..c8bf4294 100644 --- a/node_modules/date-fns/fp/formatDuration.d.mts +++ b/node_modules/date-fns/fp/formatDuration.d.mts @@ -1 +1,4 @@ -export type * from "./formatDuration.d.ts"; +export declare const formatDuration: import("./types.js").FPFn1< + string, + import("../fp.js").Duration +>; diff --git a/node_modules/date-fns/fp/formatDurationWithOptions.d.mts b/node_modules/date-fns/fp/formatDurationWithOptions.d.mts index dc195bb2..9e958c2c 100644 --- a/node_modules/date-fns/fp/formatDurationWithOptions.d.mts +++ b/node_modules/date-fns/fp/formatDurationWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./formatDurationWithOptions.d.ts"; +export declare const formatDurationWithOptions: import("./types.js").FPFn2< + string, + import("../formatDuration.js").FormatDurationOptions | undefined, + import("../fp.js").Duration +>; diff --git a/node_modules/date-fns/fp/formatISO.d.mts b/node_modules/date-fns/fp/formatISO.d.mts index 1daa3192..5e8483ed 100644 --- a/node_modules/date-fns/fp/formatISO.d.mts +++ b/node_modules/date-fns/fp/formatISO.d.mts @@ -1 +1,4 @@ -export type * from "./formatISO.d.ts"; +export declare const formatISO: import("./types.js").FPFn1< + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatISO9075.d.mts b/node_modules/date-fns/fp/formatISO9075.d.mts index 9d3c527c..5c1821bb 100644 --- a/node_modules/date-fns/fp/formatISO9075.d.mts +++ b/node_modules/date-fns/fp/formatISO9075.d.mts @@ -1 +1,4 @@ -export type * from "./formatISO9075.d.ts"; +export declare const formatISO9075: import("./types.js").FPFn1< + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatISO9075WithOptions.d.mts b/node_modules/date-fns/fp/formatISO9075WithOptions.d.mts index 438cb75a..23500f90 100644 --- a/node_modules/date-fns/fp/formatISO9075WithOptions.d.mts +++ b/node_modules/date-fns/fp/formatISO9075WithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./formatISO9075WithOptions.d.ts"; +export declare const formatISO9075WithOptions: import("./types.js").FPFn2< + string, + import("../formatISO9075.js").FormatISO9075Options | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatISODuration.d.mts b/node_modules/date-fns/fp/formatISODuration.d.mts index 564f5266..0c477739 100644 --- a/node_modules/date-fns/fp/formatISODuration.d.mts +++ b/node_modules/date-fns/fp/formatISODuration.d.mts @@ -1 +1,4 @@ -export type * from "./formatISODuration.d.ts"; +export declare const formatISODuration: import("./types.js").FPFn1< + string, + import("../fp.js").Duration +>; diff --git a/node_modules/date-fns/fp/formatISOWithOptions.d.mts b/node_modules/date-fns/fp/formatISOWithOptions.d.mts index 6351d468..dccfce91 100644 --- a/node_modules/date-fns/fp/formatISOWithOptions.d.mts +++ b/node_modules/date-fns/fp/formatISOWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./formatISOWithOptions.d.ts"; +export declare const formatISOWithOptions: import("./types.js").FPFn2< + string, + import("../formatISO.js").FormatISOOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRFC3339.d.mts b/node_modules/date-fns/fp/formatRFC3339.d.mts index 23f88a99..bde9b735 100644 --- a/node_modules/date-fns/fp/formatRFC3339.d.mts +++ b/node_modules/date-fns/fp/formatRFC3339.d.mts @@ -1 +1,4 @@ -export type * from "./formatRFC3339.d.ts"; +export declare const formatRFC3339: import("./types.js").FPFn1< + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRFC3339WithOptions.d.mts b/node_modules/date-fns/fp/formatRFC3339WithOptions.d.mts index 996956f3..f1f8e7f2 100644 --- a/node_modules/date-fns/fp/formatRFC3339WithOptions.d.mts +++ b/node_modules/date-fns/fp/formatRFC3339WithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./formatRFC3339WithOptions.d.ts"; +export declare const formatRFC3339WithOptions: import("./types.js").FPFn2< + string, + import("../formatRFC3339.js").FormatRFC3339Options | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRFC7231.d.mts b/node_modules/date-fns/fp/formatRFC7231.d.mts index 54055630..7f9bb61d 100644 --- a/node_modules/date-fns/fp/formatRFC7231.d.mts +++ b/node_modules/date-fns/fp/formatRFC7231.d.mts @@ -1 +1,4 @@ -export type * from "./formatRFC7231.d.ts"; +export declare const formatRFC7231: import("./types.js").FPFn1< + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRelative.d.mts b/node_modules/date-fns/fp/formatRelative.d.mts index a233b0c6..2fdd03b9 100644 --- a/node_modules/date-fns/fp/formatRelative.d.mts +++ b/node_modules/date-fns/fp/formatRelative.d.mts @@ -1 +1,5 @@ -export type * from "./formatRelative.d.ts"; +export declare const formatRelative: import("./types.js").FPFn2< + string, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRelativeWithOptions.d.mts b/node_modules/date-fns/fp/formatRelativeWithOptions.d.mts index a1a30b76..f038524a 100644 --- a/node_modules/date-fns/fp/formatRelativeWithOptions.d.mts +++ b/node_modules/date-fns/fp/formatRelativeWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./formatRelativeWithOptions.d.ts"; +export declare const formatRelativeWithOptions: import("./types.js").FPFn3< + string, + import("../formatRelative.js").FormatRelativeOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatWithOptions.d.mts b/node_modules/date-fns/fp/formatWithOptions.d.mts index 0ec49f5f..1b8617d8 100644 --- a/node_modules/date-fns/fp/formatWithOptions.d.mts +++ b/node_modules/date-fns/fp/formatWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./formatWithOptions.d.ts"; +export declare const formatWithOptions: import("./types.js").FPFn3< + string, + import("../format.js").FormatDateOptions | undefined, + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatWithOptions.d.ts b/node_modules/date-fns/fp/formatWithOptions.d.ts index ac2ea25e..1b8617d8 100644 --- a/node_modules/date-fns/fp/formatWithOptions.d.ts +++ b/node_modules/date-fns/fp/formatWithOptions.d.ts @@ -1,6 +1,6 @@ export declare const formatWithOptions: import("./types.js").FPFn3< string, - import("../format.js").FormatOptions | undefined, + import("../format.js").FormatDateOptions | undefined, string, string | number | Date >; diff --git a/node_modules/date-fns/fp/fromUnixTime.d.mts b/node_modules/date-fns/fp/fromUnixTime.d.mts index f4f5020d..3b783009 100644 --- a/node_modules/date-fns/fp/fromUnixTime.d.mts +++ b/node_modules/date-fns/fp/fromUnixTime.d.mts @@ -1 +1 @@ -export type * from "./fromUnixTime.d.ts"; +export declare const fromUnixTime: import("./types.js").FPFn1; diff --git a/node_modules/date-fns/fp/getDate.d.mts b/node_modules/date-fns/fp/getDate.d.mts index 05d1a39b..1141abfa 100644 --- a/node_modules/date-fns/fp/getDate.d.mts +++ b/node_modules/date-fns/fp/getDate.d.mts @@ -1 +1,4 @@ -export type * from "./getDate.d.ts"; +export declare const getDate: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDay.d.mts b/node_modules/date-fns/fp/getDay.d.mts index 5b550a3f..3b4e7dc1 100644 --- a/node_modules/date-fns/fp/getDay.d.mts +++ b/node_modules/date-fns/fp/getDay.d.mts @@ -1 +1,4 @@ -export type * from "./getDay.d.ts"; +export declare const getDay: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDayOfYear.d.mts b/node_modules/date-fns/fp/getDayOfYear.d.mts index 3f9f64fc..ad4ac77c 100644 --- a/node_modules/date-fns/fp/getDayOfYear.d.mts +++ b/node_modules/date-fns/fp/getDayOfYear.d.mts @@ -1 +1,4 @@ -export type * from "./getDayOfYear.d.ts"; +export declare const getDayOfYear: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDaysInMonth.d.mts b/node_modules/date-fns/fp/getDaysInMonth.d.mts index c5153eb8..708a8e0a 100644 --- a/node_modules/date-fns/fp/getDaysInMonth.d.mts +++ b/node_modules/date-fns/fp/getDaysInMonth.d.mts @@ -1 +1,4 @@ -export type * from "./getDaysInMonth.d.ts"; +export declare const getDaysInMonth: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDaysInYear.d.mts b/node_modules/date-fns/fp/getDaysInYear.d.mts index 64eb3ec7..cf46e904 100644 --- a/node_modules/date-fns/fp/getDaysInYear.d.mts +++ b/node_modules/date-fns/fp/getDaysInYear.d.mts @@ -1 +1,4 @@ -export type * from "./getDaysInYear.d.ts"; +export declare const getDaysInYear: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDecade.d.mts b/node_modules/date-fns/fp/getDecade.d.mts index db94e501..f7750153 100644 --- a/node_modules/date-fns/fp/getDecade.d.mts +++ b/node_modules/date-fns/fp/getDecade.d.mts @@ -1 +1,4 @@ -export type * from "./getDecade.d.ts"; +export declare const getDecade: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getHours.d.mts b/node_modules/date-fns/fp/getHours.d.mts index 40df1848..ba58ff9b 100644 --- a/node_modules/date-fns/fp/getHours.d.mts +++ b/node_modules/date-fns/fp/getHours.d.mts @@ -1 +1,4 @@ -export type * from "./getHours.d.ts"; +export declare const getHours: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISODay.d.mts b/node_modules/date-fns/fp/getISODay.d.mts index d8d50680..4e91a7e8 100644 --- a/node_modules/date-fns/fp/getISODay.d.mts +++ b/node_modules/date-fns/fp/getISODay.d.mts @@ -1 +1,4 @@ -export type * from "./getISODay.d.ts"; +export declare const getISODay: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeek.d.mts b/node_modules/date-fns/fp/getISOWeek.d.mts index 707faef3..3828031e 100644 --- a/node_modules/date-fns/fp/getISOWeek.d.mts +++ b/node_modules/date-fns/fp/getISOWeek.d.mts @@ -1 +1,4 @@ -export type * from "./getISOWeek.d.ts"; +export declare const getISOWeek: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeekYear.d.mts b/node_modules/date-fns/fp/getISOWeekYear.d.mts index 1d9526f6..c7ac167e 100644 --- a/node_modules/date-fns/fp/getISOWeekYear.d.mts +++ b/node_modules/date-fns/fp/getISOWeekYear.d.mts @@ -1 +1,4 @@ -export type * from "./getISOWeekYear.d.ts"; +export declare const getISOWeekYear: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeeksInYear.d.mts b/node_modules/date-fns/fp/getISOWeeksInYear.d.mts index e7734740..4e18c3bc 100644 --- a/node_modules/date-fns/fp/getISOWeeksInYear.d.mts +++ b/node_modules/date-fns/fp/getISOWeeksInYear.d.mts @@ -1 +1,4 @@ -export type * from "./getISOWeeksInYear.d.ts"; +export declare const getISOWeeksInYear: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getMilliseconds.d.mts b/node_modules/date-fns/fp/getMilliseconds.d.mts index ef8fe10e..9b0644e9 100644 --- a/node_modules/date-fns/fp/getMilliseconds.d.mts +++ b/node_modules/date-fns/fp/getMilliseconds.d.mts @@ -1 +1,4 @@ -export type * from "./getMilliseconds.d.ts"; +export declare const getMilliseconds: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getMinutes.d.mts b/node_modules/date-fns/fp/getMinutes.d.mts index 79cb5f18..504b3963 100644 --- a/node_modules/date-fns/fp/getMinutes.d.mts +++ b/node_modules/date-fns/fp/getMinutes.d.mts @@ -1 +1,4 @@ -export type * from "./getMinutes.d.ts"; +export declare const getMinutes: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getMonth.d.mts b/node_modules/date-fns/fp/getMonth.d.mts index fafe869b..bb441496 100644 --- a/node_modules/date-fns/fp/getMonth.d.mts +++ b/node_modules/date-fns/fp/getMonth.d.mts @@ -1 +1,4 @@ -export type * from "./getMonth.d.ts"; +export declare const getMonth: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getOverlappingDaysInIntervals.d.mts b/node_modules/date-fns/fp/getOverlappingDaysInIntervals.d.mts index 9ddf3db3..31dd1427 100644 --- a/node_modules/date-fns/fp/getOverlappingDaysInIntervals.d.mts +++ b/node_modules/date-fns/fp/getOverlappingDaysInIntervals.d.mts @@ -1 +1,5 @@ -export type * from "./getOverlappingDaysInIntervals.d.ts"; +export declare const getOverlappingDaysInIntervals: import("./types.js").FPFn2< + number, + import("../fp.js").Interval, + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/getQuarter.d.mts b/node_modules/date-fns/fp/getQuarter.d.mts index 0d49a974..dfa077fc 100644 --- a/node_modules/date-fns/fp/getQuarter.d.mts +++ b/node_modules/date-fns/fp/getQuarter.d.mts @@ -1 +1,4 @@ -export type * from "./getQuarter.d.ts"; +export declare const getQuarter: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getSeconds.d.mts b/node_modules/date-fns/fp/getSeconds.d.mts index 576645f6..b421e6f4 100644 --- a/node_modules/date-fns/fp/getSeconds.d.mts +++ b/node_modules/date-fns/fp/getSeconds.d.mts @@ -1 +1,4 @@ -export type * from "./getSeconds.d.ts"; +export declare const getSeconds: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getTime.d.mts b/node_modules/date-fns/fp/getTime.d.mts index 972a0ad5..78bc6d45 100644 --- a/node_modules/date-fns/fp/getTime.d.mts +++ b/node_modules/date-fns/fp/getTime.d.mts @@ -1 +1,4 @@ -export type * from "./getTime.d.ts"; +export declare const getTime: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getUnixTime.d.mts b/node_modules/date-fns/fp/getUnixTime.d.mts index 4b4e7524..f2546b96 100644 --- a/node_modules/date-fns/fp/getUnixTime.d.mts +++ b/node_modules/date-fns/fp/getUnixTime.d.mts @@ -1 +1,4 @@ -export type * from "./getUnixTime.d.ts"; +export declare const getUnixTime: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeek.d.mts b/node_modules/date-fns/fp/getWeek.d.mts index f93dd511..52300646 100644 --- a/node_modules/date-fns/fp/getWeek.d.mts +++ b/node_modules/date-fns/fp/getWeek.d.mts @@ -1 +1,4 @@ -export type * from "./getWeek.d.ts"; +export declare const getWeek: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekOfMonth.d.mts b/node_modules/date-fns/fp/getWeekOfMonth.d.mts index 41901726..3c6c75c3 100644 --- a/node_modules/date-fns/fp/getWeekOfMonth.d.mts +++ b/node_modules/date-fns/fp/getWeekOfMonth.d.mts @@ -1 +1,4 @@ -export type * from "./getWeekOfMonth.d.ts"; +export declare const getWeekOfMonth: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekOfMonthWithOptions.d.mts b/node_modules/date-fns/fp/getWeekOfMonthWithOptions.d.mts index 49900b6e..c17d1e4f 100644 --- a/node_modules/date-fns/fp/getWeekOfMonthWithOptions.d.mts +++ b/node_modules/date-fns/fp/getWeekOfMonthWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./getWeekOfMonthWithOptions.d.ts"; +export declare const getWeekOfMonthWithOptions: import("./types.js").FPFn2< + number, + import("../getWeekOfMonth.js").GetWeekOfMonthOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekWithOptions.d.mts b/node_modules/date-fns/fp/getWeekWithOptions.d.mts index ddb3c266..c9caf58f 100644 --- a/node_modules/date-fns/fp/getWeekWithOptions.d.mts +++ b/node_modules/date-fns/fp/getWeekWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./getWeekWithOptions.d.ts"; +export declare const getWeekWithOptions: import("./types.js").FPFn2< + number, + import("../getWeek.js").GetWeekOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekYear.d.mts b/node_modules/date-fns/fp/getWeekYear.d.mts index 8bab7692..3edcfadf 100644 --- a/node_modules/date-fns/fp/getWeekYear.d.mts +++ b/node_modules/date-fns/fp/getWeekYear.d.mts @@ -1 +1,4 @@ -export type * from "./getWeekYear.d.ts"; +export declare const getWeekYear: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekYearWithOptions.d.mts b/node_modules/date-fns/fp/getWeekYearWithOptions.d.mts index d34ea3f1..e5061815 100644 --- a/node_modules/date-fns/fp/getWeekYearWithOptions.d.mts +++ b/node_modules/date-fns/fp/getWeekYearWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./getWeekYearWithOptions.d.ts"; +export declare const getWeekYearWithOptions: import("./types.js").FPFn2< + number, + import("../getWeekYear.js").GetWeekYearOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeeksInMonth.d.mts b/node_modules/date-fns/fp/getWeeksInMonth.d.mts index 0ba34aea..b3a58c22 100644 --- a/node_modules/date-fns/fp/getWeeksInMonth.d.mts +++ b/node_modules/date-fns/fp/getWeeksInMonth.d.mts @@ -1 +1,4 @@ -export type * from "./getWeeksInMonth.d.ts"; +export declare const getWeeksInMonth: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeeksInMonthWithOptions.d.mts b/node_modules/date-fns/fp/getWeeksInMonthWithOptions.d.mts index 537b5878..2d180e8f 100644 --- a/node_modules/date-fns/fp/getWeeksInMonthWithOptions.d.mts +++ b/node_modules/date-fns/fp/getWeeksInMonthWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./getWeeksInMonthWithOptions.d.ts"; +export declare const getWeeksInMonthWithOptions: import("./types.js").FPFn2< + number, + import("../getWeeksInMonth.js").GetWeeksInMonthOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getYear.d.mts b/node_modules/date-fns/fp/getYear.d.mts index cde58cba..2f86f8e4 100644 --- a/node_modules/date-fns/fp/getYear.d.mts +++ b/node_modules/date-fns/fp/getYear.d.mts @@ -1 +1,4 @@ -export type * from "./getYear.d.ts"; +export declare const getYear: import("./types.js").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/hoursToMilliseconds.d.mts b/node_modules/date-fns/fp/hoursToMilliseconds.d.mts index bc9bc060..1d4044aa 100644 --- a/node_modules/date-fns/fp/hoursToMilliseconds.d.mts +++ b/node_modules/date-fns/fp/hoursToMilliseconds.d.mts @@ -1 +1,4 @@ -export type * from "./hoursToMilliseconds.d.ts"; +export declare const hoursToMilliseconds: import("./types.js").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/hoursToMinutes.d.mts b/node_modules/date-fns/fp/hoursToMinutes.d.mts index 9e1341a3..5af05756 100644 --- a/node_modules/date-fns/fp/hoursToMinutes.d.mts +++ b/node_modules/date-fns/fp/hoursToMinutes.d.mts @@ -1 +1 @@ -export type * from "./hoursToMinutes.d.ts"; +export declare const hoursToMinutes: import("./types.js").FPFn1; diff --git a/node_modules/date-fns/fp/hoursToSeconds.d.mts b/node_modules/date-fns/fp/hoursToSeconds.d.mts index 72228154..b2926737 100644 --- a/node_modules/date-fns/fp/hoursToSeconds.d.mts +++ b/node_modules/date-fns/fp/hoursToSeconds.d.mts @@ -1 +1 @@ -export type * from "./hoursToSeconds.d.ts"; +export declare const hoursToSeconds: import("./types.js").FPFn1; diff --git a/node_modules/date-fns/fp/interval.d.mts b/node_modules/date-fns/fp/interval.d.mts index 185f73c0..e93ba9e4 100644 --- a/node_modules/date-fns/fp/interval.d.mts +++ b/node_modules/date-fns/fp/interval.d.mts @@ -1 +1,5 @@ -export type * from "./interval.d.ts"; +export declare const interval: import("./types.js").FPFn2< + import("../fp.js").NormalizedInterval, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/intervalToDuration.d.mts b/node_modules/date-fns/fp/intervalToDuration.d.mts index fd462e9d..4e091e63 100644 --- a/node_modules/date-fns/fp/intervalToDuration.d.mts +++ b/node_modules/date-fns/fp/intervalToDuration.d.mts @@ -1 +1,4 @@ -export type * from "./intervalToDuration.d.ts"; +export declare const intervalToDuration: import("./types.js").FPFn1< + import("../fp.js").Duration, + import("../fp.js").Interval +>; diff --git a/node_modules/date-fns/fp/intervalWithOptions.d.mts b/node_modules/date-fns/fp/intervalWithOptions.d.mts index 08a14327..a2a2829b 100644 --- a/node_modules/date-fns/fp/intervalWithOptions.d.mts +++ b/node_modules/date-fns/fp/intervalWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./intervalWithOptions.d.ts"; +export declare const intervalWithOptions: import("./types.js").FPFn3< + import("../fp.js").NormalizedInterval, + import("../interval.js").IntervalOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/intlFormat.d.mts b/node_modules/date-fns/fp/intlFormat.d.mts index 4c293226..dc7b0c90 100644 --- a/node_modules/date-fns/fp/intlFormat.d.mts +++ b/node_modules/date-fns/fp/intlFormat.d.mts @@ -1 +1,6 @@ -export type * from "./intlFormat.d.ts"; +export declare const intlFormat: import("./types.js").FPFn3< + string, + import("../intlFormat.js").IntlFormatLocaleOptions, + Intl.DateTimeFormatOptions, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/intlFormatDistance.d.mts b/node_modules/date-fns/fp/intlFormatDistance.d.mts index 17db8e56..27bdc518 100644 --- a/node_modules/date-fns/fp/intlFormatDistance.d.mts +++ b/node_modules/date-fns/fp/intlFormatDistance.d.mts @@ -1 +1,5 @@ -export type * from "./intlFormatDistance.d.ts"; +export declare const intlFormatDistance: import("./types.js").FPFn2< + string, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/intlFormatDistanceWithOptions.d.mts b/node_modules/date-fns/fp/intlFormatDistanceWithOptions.d.mts index 25625ca0..da579e91 100644 --- a/node_modules/date-fns/fp/intlFormatDistanceWithOptions.d.mts +++ b/node_modules/date-fns/fp/intlFormatDistanceWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./intlFormatDistanceWithOptions.d.ts"; +export declare const intlFormatDistanceWithOptions: import("./types.js").FPFn3< + string, + import("../intlFormatDistance.js").IntlFormatDistanceOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isAfter.d.mts b/node_modules/date-fns/fp/isAfter.d.mts index 5479b705..e111df68 100644 --- a/node_modules/date-fns/fp/isAfter.d.mts +++ b/node_modules/date-fns/fp/isAfter.d.mts @@ -1 +1,5 @@ -export type * from "./isAfter.d.ts"; +export declare const isAfter: import("./types.js").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isBefore.d.mts b/node_modules/date-fns/fp/isBefore.d.mts index 40ba5546..8cf78355 100644 --- a/node_modules/date-fns/fp/isBefore.d.mts +++ b/node_modules/date-fns/fp/isBefore.d.mts @@ -1 +1,5 @@ -export type * from "./isBefore.d.ts"; +export declare const isBefore: import("./types.js").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isDate.d.mts b/node_modules/date-fns/fp/isDate.d.mts index a888b2f5..deec0881 100644 --- a/node_modules/date-fns/fp/isDate.d.mts +++ b/node_modules/date-fns/fp/isDate.d.mts @@ -1 +1 @@ -export type * from "./isDate.d.ts"; +export declare const isDate: import("./types.js").FPFn1; diff --git a/node_modules/date-fns/fp/isEqual.d.mts b/node_modules/date-fns/fp/isEqual.d.mts index 78013f4e..c78756e9 100644 --- a/node_modules/date-fns/fp/isEqual.d.mts +++ b/node_modules/date-fns/fp/isEqual.d.mts @@ -1 +1,5 @@ -export type * from "./isEqual.d.ts"; +export declare const isEqual: import("./types.js").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isExists.d.mts b/node_modules/date-fns/fp/isExists.d.mts index 3dc4f0ae..e36228df 100644 --- a/node_modules/date-fns/fp/isExists.d.mts +++ b/node_modules/date-fns/fp/isExists.d.mts @@ -1 +1,6 @@ -export type * from "./isExists.d.ts"; +export declare const isExists: import("./types.js").FPFn3< + boolean, + number, + number, + number +>; diff --git a/node_modules/date-fns/fp/isFirstDayOfMonth.d.mts b/node_modules/date-fns/fp/isFirstDayOfMonth.d.mts index ed3f722c..9679719f 100644 --- a/node_modules/date-fns/fp/isFirstDayOfMonth.d.mts +++ b/node_modules/date-fns/fp/isFirstDayOfMonth.d.mts @@ -1 +1,4 @@ -export type * from "./isFirstDayOfMonth.d.ts"; +export declare const isFirstDayOfMonth: import("./types.js").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isFriday.d.mts b/node_modules/date-fns/fp/isFriday.d.mts index 58722d16..f6938e2f 100644 --- a/node_modules/date-fns/fp/isFriday.d.mts +++ b/node_modules/date-fns/fp/isFriday.d.mts @@ -1 +1,4 @@ -export type * from "./isFriday.d.ts"; +export declare const isFriday: import("./types.js").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isLastDayOfMonth.d.mts b/node_modules/date-fns/fp/isLastDayOfMonth.d.mts index c64b150a..0a7958ba 100644 --- a/node_modules/date-fns/fp/isLastDayOfMonth.d.mts +++ b/node_modules/date-fns/fp/isLastDayOfMonth.d.mts @@ -1 +1,4 @@ -export type * from "./isLastDayOfMonth.d.ts"; +export declare const isLastDayOfMonth: import("./types.js").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isLeapYear.d.mts b/node_modules/date-fns/fp/isLeapYear.d.mts index 02c96178..7d363e37 100644 --- a/node_modules/date-fns/fp/isLeapYear.d.mts +++ b/node_modules/date-fns/fp/isLeapYear.d.mts @@ -1 +1,4 @@ -export type * from "./isLeapYear.d.ts"; +export declare const isLeapYear: import("./types.js").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isMatch.d.mts b/node_modules/date-fns/fp/isMatch.d.mts index 7840a6d0..0a58e388 100644 --- a/node_modules/date-fns/fp/isMatch.d.mts +++ b/node_modules/date-fns/fp/isMatch.d.mts @@ -1 +1,5 @@ -export type * from "./isMatch.d.ts"; +export declare const isMatch: import("./types.js").FPFn2< + boolean, + string, + string +>; diff --git a/node_modules/date-fns/fp/isMatchWithOptions.d.mts b/node_modules/date-fns/fp/isMatchWithOptions.d.mts index c0f17cbe..f99518af 100644 --- a/node_modules/date-fns/fp/isMatchWithOptions.d.mts +++ b/node_modules/date-fns/fp/isMatchWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./isMatchWithOptions.d.ts"; +export declare const isMatchWithOptions: import("./types.js").FPFn3< + boolean, + import("../isMatch.js").IsMatchOptions | undefined, + string, + string +>; diff --git a/node_modules/date-fns/fp/isMonday.d.mts b/node_modules/date-fns/fp/isMonday.d.mts index e3affcee..681b2ce8 100644 --- a/node_modules/date-fns/fp/isMonday.d.mts +++ b/node_modules/date-fns/fp/isMonday.d.mts @@ -1 +1,4 @@ -export type * from "./isMonday.d.ts"; +export declare const isMonday: import("./types.js").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameDay.d.mts b/node_modules/date-fns/fp/isSameDay.d.mts index 474e848c..ed3a8aae 100644 --- a/node_modules/date-fns/fp/isSameDay.d.mts +++ b/node_modules/date-fns/fp/isSameDay.d.mts @@ -1 +1,5 @@ -export type * from "./isSameDay.d.ts"; +export declare const isSameDay: import("./types.js").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameHour.d.mts b/node_modules/date-fns/fp/isSameHour.d.mts index 52f929a4..edf72625 100644 --- a/node_modules/date-fns/fp/isSameHour.d.mts +++ b/node_modules/date-fns/fp/isSameHour.d.mts @@ -1 +1,5 @@ -export type * from "./isSameHour.d.ts"; +export declare const isSameHour: import("./types.js").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameISOWeek.d.mts b/node_modules/date-fns/fp/isSameISOWeek.d.mts index 08dd17a3..75da6762 100644 --- a/node_modules/date-fns/fp/isSameISOWeek.d.mts +++ b/node_modules/date-fns/fp/isSameISOWeek.d.mts @@ -1 +1,5 @@ -export type * from "./isSameISOWeek.d.ts"; +export declare const isSameISOWeek: import("./types.js").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameISOWeekYear.d.mts b/node_modules/date-fns/fp/isSameISOWeekYear.d.mts index eb6debe5..319d8c1d 100644 --- a/node_modules/date-fns/fp/isSameISOWeekYear.d.mts +++ b/node_modules/date-fns/fp/isSameISOWeekYear.d.mts @@ -1 +1,5 @@ -export type * from "./isSameISOWeekYear.d.ts"; +export declare const isSameISOWeekYear: import("./types.js").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameMinute.d.mts b/node_modules/date-fns/fp/isSameMinute.d.mts index 47410229..763ed43a 100644 --- a/node_modules/date-fns/fp/isSameMinute.d.mts +++ b/node_modules/date-fns/fp/isSameMinute.d.mts @@ -1 +1,5 @@ -export type * from "./isSameMinute.d.ts"; +export declare const isSameMinute: import("./types.js").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameMonth.d.mts b/node_modules/date-fns/fp/isSameMonth.d.mts index c27bea8c..25385420 100644 --- a/node_modules/date-fns/fp/isSameMonth.d.mts +++ b/node_modules/date-fns/fp/isSameMonth.d.mts @@ -1 +1,5 @@ -export type * from "./isSameMonth.d.ts"; +export declare const isSameMonth: import("./types.js").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameQuarter.d.mts b/node_modules/date-fns/fp/isSameQuarter.d.mts index 2a303bf5..998f443e 100644 --- a/node_modules/date-fns/fp/isSameQuarter.d.mts +++ b/node_modules/date-fns/fp/isSameQuarter.d.mts @@ -1 +1,5 @@ -export type * from "./isSameQuarter.d.ts"; +export declare const isSameQuarter: import("./types.js").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameSecond.d.mts b/node_modules/date-fns/fp/isSameSecond.d.mts index b6e7312b..693b156b 100644 --- a/node_modules/date-fns/fp/isSameSecond.d.mts +++ b/node_modules/date-fns/fp/isSameSecond.d.mts @@ -1 +1,5 @@ -export type * from "./isSameSecond.d.ts"; +export declare const isSameSecond: import("./types.js").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameWeek.d.mts b/node_modules/date-fns/fp/isSameWeek.d.mts index 642bc2ab..c878ac16 100644 --- a/node_modules/date-fns/fp/isSameWeek.d.mts +++ b/node_modules/date-fns/fp/isSameWeek.d.mts @@ -1 +1,5 @@ -export type * from "./isSameWeek.d.ts"; +export declare const isSameWeek: import("./types.js").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameWeekWithOptions.d.mts b/node_modules/date-fns/fp/isSameWeekWithOptions.d.mts index a15a8d70..e839a2e0 100644 --- a/node_modules/date-fns/fp/isSameWeekWithOptions.d.mts +++ b/node_modules/date-fns/fp/isSameWeekWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./isSameWeekWithOptions.d.ts"; +export declare const isSameWeekWithOptions: import("./types.js").FPFn3< + boolean, + import("../isSameWeek.js").IsSameWeekOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameYear.d.mts b/node_modules/date-fns/fp/isSameYear.d.mts index de73071b..d29e4ebb 100644 --- a/node_modules/date-fns/fp/isSameYear.d.mts +++ b/node_modules/date-fns/fp/isSameYear.d.mts @@ -1 +1,5 @@ -export type * from "./isSameYear.d.ts"; +export declare const isSameYear: import("./types.js").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSaturday.d.mts b/node_modules/date-fns/fp/isSaturday.d.mts index cf4ad98a..f166d1f2 100644 --- a/node_modules/date-fns/fp/isSaturday.d.mts +++ b/node_modules/date-fns/fp/isSaturday.d.mts @@ -1 +1,4 @@ -export type * from "./isSaturday.d.ts"; +export declare const isSaturday: import("./types.js").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSunday.d.mts b/node_modules/date-fns/fp/isSunday.d.mts index c2abafbe..5b40a4c9 100644 --- a/node_modules/date-fns/fp/isSunday.d.mts +++ b/node_modules/date-fns/fp/isSunday.d.mts @@ -1 +1,4 @@ -export type * from "./isSunday.d.ts"; +export declare const isSunday: import("./types.js").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isThursday.d.mts b/node_modules/date-fns/fp/isThursday.d.mts index 67e6c80e..d0da0967 100644 --- a/node_modules/date-fns/fp/isThursday.d.mts +++ b/node_modules/date-fns/fp/isThursday.d.mts @@ -1 +1,4 @@ -export type * from "./isThursday.d.ts"; +export declare const isThursday: import("./types.js").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isTuesday.d.mts b/node_modules/date-fns/fp/isTuesday.d.mts index 43abac50..42b236a3 100644 --- a/node_modules/date-fns/fp/isTuesday.d.mts +++ b/node_modules/date-fns/fp/isTuesday.d.mts @@ -1 +1,4 @@ -export type * from "./isTuesday.d.ts"; +export declare const isTuesday: import("./types.js").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isValid.d.mts b/node_modules/date-fns/fp/isValid.d.mts index 9d9f2f7c..9fb87853 100644 --- a/node_modules/date-fns/fp/isValid.d.mts +++ b/node_modules/date-fns/fp/isValid.d.mts @@ -1 +1 @@ -export type * from "./isValid.d.ts"; +export declare const isValid: import("./types.js").FPFn1; diff --git a/node_modules/date-fns/fp/isWednesday.d.mts b/node_modules/date-fns/fp/isWednesday.d.mts index dc640bd7..3131bf74 100644 --- a/node_modules/date-fns/fp/isWednesday.d.mts +++ b/node_modules/date-fns/fp/isWednesday.d.mts @@ -1 +1,4 @@ -export type * from "./isWednesday.d.ts"; +export declare const isWednesday: import("./types.js").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isWeekend.d.mts b/node_modules/date-fns/fp/isWeekend.d.mts index 9b282f41..2da9edad 100644 --- a/node_modules/date-fns/fp/isWeekend.d.mts +++ b/node_modules/date-fns/fp/isWeekend.d.mts @@ -1 +1,4 @@ -export type * from "./isWeekend.d.ts"; +export declare const isWeekend: import("./types.js").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isWithinInterval.d.mts b/node_modules/date-fns/fp/isWithinInterval.d.mts index 01a07a30..f9d78707 100644 --- a/node_modules/date-fns/fp/isWithinInterval.d.mts +++ b/node_modules/date-fns/fp/isWithinInterval.d.mts @@ -1 +1,5 @@ -export type * from "./isWithinInterval.d.ts"; +export declare const isWithinInterval: import("./types.js").FPFn2< + boolean, + import("../fp.js").Interval, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/lastDayOfDecade.d.mts b/node_modules/date-fns/fp/lastDayOfDecade.d.mts index 44b59863..3202d890 100644 --- a/node_modules/date-fns/fp/lastDayOfDecade.d.mts +++ b/node_modules/date-fns/fp/lastDayOfDecade.d.mts @@ -1 +1,4 @@ -export type * from "./lastDayOfDecade.d.ts"; +export declare const lastDayOfDecade: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/lastDayOfISOWeek.d.mts b/node_modules/date-fns/fp/lastDayOfISOWeek.d.mts index 4678d331..43ed9ccd 100644 --- a/node_modules/date-fns/fp/lastDayOfISOWeek.d.mts +++ b/node_modules/date-fns/fp/lastDayOfISOWeek.d.mts @@ -1 +1,4 @@ -export type * from "./lastDayOfISOWeek.d.ts"; +export declare const lastDayOfISOWeek: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekYear.d.mts b/node_modules/date-fns/fp/lastDayOfISOWeekYear.d.mts index d6aa8019..0c5ba602 100644 --- a/node_modules/date-fns/fp/lastDayOfISOWeekYear.d.mts +++ b/node_modules/date-fns/fp/lastDayOfISOWeekYear.d.mts @@ -1 +1,4 @@ -export type * from "./lastDayOfISOWeekYear.d.ts"; +export declare const lastDayOfISOWeekYear: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/lastDayOfMonth.d.mts b/node_modules/date-fns/fp/lastDayOfMonth.d.mts index 19399c43..169e0105 100644 --- a/node_modules/date-fns/fp/lastDayOfMonth.d.mts +++ b/node_modules/date-fns/fp/lastDayOfMonth.d.mts @@ -1 +1,4 @@ -export type * from "./lastDayOfMonth.d.ts"; +export declare const lastDayOfMonth: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/lastDayOfQuarter.d.mts b/node_modules/date-fns/fp/lastDayOfQuarter.d.mts index 29130ae1..eaf36533 100644 --- a/node_modules/date-fns/fp/lastDayOfQuarter.d.mts +++ b/node_modules/date-fns/fp/lastDayOfQuarter.d.mts @@ -1 +1,4 @@ -export type * from "./lastDayOfQuarter.d.ts"; +export declare const lastDayOfQuarter: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/lastDayOfWeek.d.mts b/node_modules/date-fns/fp/lastDayOfWeek.d.mts index a6e22ba0..ff7f8162 100644 --- a/node_modules/date-fns/fp/lastDayOfWeek.d.mts +++ b/node_modules/date-fns/fp/lastDayOfWeek.d.mts @@ -1 +1,4 @@ -export type * from "./lastDayOfWeek.d.ts"; +export declare const lastDayOfWeek: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/lastDayOfWeekWithOptions.d.mts b/node_modules/date-fns/fp/lastDayOfWeekWithOptions.d.mts index 5ac1f4aa..51883d3a 100644 --- a/node_modules/date-fns/fp/lastDayOfWeekWithOptions.d.mts +++ b/node_modules/date-fns/fp/lastDayOfWeekWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./lastDayOfWeekWithOptions.d.ts"; +export declare const lastDayOfWeekWithOptions: import("./types.js").FPFn2< + Date, + import("../lastDayOfWeek.js").LastDayOfWeekOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/lastDayOfYear.d.mts b/node_modules/date-fns/fp/lastDayOfYear.d.mts index e4bac617..ddb015dc 100644 --- a/node_modules/date-fns/fp/lastDayOfYear.d.mts +++ b/node_modules/date-fns/fp/lastDayOfYear.d.mts @@ -1 +1,4 @@ -export type * from "./lastDayOfYear.d.ts"; +export declare const lastDayOfYear: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/lightFormat.d.mts b/node_modules/date-fns/fp/lightFormat.d.mts index 5622bbdb..328937b8 100644 --- a/node_modules/date-fns/fp/lightFormat.d.mts +++ b/node_modules/date-fns/fp/lightFormat.d.mts @@ -1 +1,5 @@ -export type * from "./lightFormat.d.ts"; +export declare const lightFormat: import("./types.js").FPFn2< + string, + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/max.d.mts b/node_modules/date-fns/fp/max.d.mts index ccf7e78d..4ffd56d7 100644 --- a/node_modules/date-fns/fp/max.d.mts +++ b/node_modules/date-fns/fp/max.d.mts @@ -1 +1,4 @@ -export type * from "./max.d.ts"; +export declare const max: import("./types.js").FPFn1< + Date, + (string | number | Date)[] +>; diff --git a/node_modules/date-fns/fp/milliseconds.d.mts b/node_modules/date-fns/fp/milliseconds.d.mts index 80eb9585..8530c8ef 100644 --- a/node_modules/date-fns/fp/milliseconds.d.mts +++ b/node_modules/date-fns/fp/milliseconds.d.mts @@ -1 +1,4 @@ -export type * from "./milliseconds.d.ts"; +export declare const milliseconds: import("./types.js").FPFn1< + number, + import("../fp.js").Duration +>; diff --git a/node_modules/date-fns/fp/millisecondsToHours.d.mts b/node_modules/date-fns/fp/millisecondsToHours.d.mts index 6952a9d0..238bbffc 100644 --- a/node_modules/date-fns/fp/millisecondsToHours.d.mts +++ b/node_modules/date-fns/fp/millisecondsToHours.d.mts @@ -1 +1,4 @@ -export type * from "./millisecondsToHours.d.ts"; +export declare const millisecondsToHours: import("./types.js").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/millisecondsToMinutes.d.mts b/node_modules/date-fns/fp/millisecondsToMinutes.d.mts index 3cb895e2..813d1862 100644 --- a/node_modules/date-fns/fp/millisecondsToMinutes.d.mts +++ b/node_modules/date-fns/fp/millisecondsToMinutes.d.mts @@ -1 +1,4 @@ -export type * from "./millisecondsToMinutes.d.ts"; +export declare const millisecondsToMinutes: import("./types.js").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/millisecondsToSeconds.d.mts b/node_modules/date-fns/fp/millisecondsToSeconds.d.mts index 523e844a..6bd3c68f 100644 --- a/node_modules/date-fns/fp/millisecondsToSeconds.d.mts +++ b/node_modules/date-fns/fp/millisecondsToSeconds.d.mts @@ -1 +1,4 @@ -export type * from "./millisecondsToSeconds.d.ts"; +export declare const millisecondsToSeconds: import("./types.js").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/min.d.mts b/node_modules/date-fns/fp/min.d.mts index a7dac346..a785af24 100644 --- a/node_modules/date-fns/fp/min.d.mts +++ b/node_modules/date-fns/fp/min.d.mts @@ -1 +1,4 @@ -export type * from "./min.d.ts"; +export declare const min: import("./types.js").FPFn1< + Date, + (string | number | Date)[] +>; diff --git a/node_modules/date-fns/fp/minutesToHours.d.mts b/node_modules/date-fns/fp/minutesToHours.d.mts index 1b8306c1..46cd9aed 100644 --- a/node_modules/date-fns/fp/minutesToHours.d.mts +++ b/node_modules/date-fns/fp/minutesToHours.d.mts @@ -1 +1 @@ -export type * from "./minutesToHours.d.ts"; +export declare const minutesToHours: import("./types.js").FPFn1; diff --git a/node_modules/date-fns/fp/minutesToMilliseconds.d.mts b/node_modules/date-fns/fp/minutesToMilliseconds.d.mts index ba90b67d..ea45e111 100644 --- a/node_modules/date-fns/fp/minutesToMilliseconds.d.mts +++ b/node_modules/date-fns/fp/minutesToMilliseconds.d.mts @@ -1 +1,4 @@ -export type * from "./minutesToMilliseconds.d.ts"; +export declare const minutesToMilliseconds: import("./types.js").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/minutesToSeconds.d.mts b/node_modules/date-fns/fp/minutesToSeconds.d.mts index 2afc630a..d9c28e7f 100644 --- a/node_modules/date-fns/fp/minutesToSeconds.d.mts +++ b/node_modules/date-fns/fp/minutesToSeconds.d.mts @@ -1 +1,4 @@ -export type * from "./minutesToSeconds.d.ts"; +export declare const minutesToSeconds: import("./types.js").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/monthsToQuarters.d.mts b/node_modules/date-fns/fp/monthsToQuarters.d.mts index d291ed6a..c2bdbbc1 100644 --- a/node_modules/date-fns/fp/monthsToQuarters.d.mts +++ b/node_modules/date-fns/fp/monthsToQuarters.d.mts @@ -1 +1,4 @@ -export type * from "./monthsToQuarters.d.ts"; +export declare const monthsToQuarters: import("./types.js").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/monthsToYears.d.mts b/node_modules/date-fns/fp/monthsToYears.d.mts index 56515320..102ce92d 100644 --- a/node_modules/date-fns/fp/monthsToYears.d.mts +++ b/node_modules/date-fns/fp/monthsToYears.d.mts @@ -1 +1 @@ -export type * from "./monthsToYears.d.ts"; +export declare const monthsToYears: import("./types.js").FPFn1; diff --git a/node_modules/date-fns/fp/nextDay.d.mts b/node_modules/date-fns/fp/nextDay.d.mts index d3dad332..da34d2a4 100644 --- a/node_modules/date-fns/fp/nextDay.d.mts +++ b/node_modules/date-fns/fp/nextDay.d.mts @@ -1 +1,5 @@ -export type * from "./nextDay.d.ts"; +export declare const nextDay: import("./types.js").FPFn2< + Date, + import("../fp.js").Day, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/nextFriday.d.mts b/node_modules/date-fns/fp/nextFriday.d.mts index f44202e5..01dfc471 100644 --- a/node_modules/date-fns/fp/nextFriday.d.mts +++ b/node_modules/date-fns/fp/nextFriday.d.mts @@ -1 +1,4 @@ -export type * from "./nextFriday.d.ts"; +export declare const nextFriday: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/nextMonday.d.mts b/node_modules/date-fns/fp/nextMonday.d.mts index 229dcd69..36d01139 100644 --- a/node_modules/date-fns/fp/nextMonday.d.mts +++ b/node_modules/date-fns/fp/nextMonday.d.mts @@ -1 +1,4 @@ -export type * from "./nextMonday.d.ts"; +export declare const nextMonday: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/nextSaturday.d.mts b/node_modules/date-fns/fp/nextSaturday.d.mts index d97ad533..55f3c8da 100644 --- a/node_modules/date-fns/fp/nextSaturday.d.mts +++ b/node_modules/date-fns/fp/nextSaturday.d.mts @@ -1 +1,4 @@ -export type * from "./nextSaturday.d.ts"; +export declare const nextSaturday: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/nextSunday.d.mts b/node_modules/date-fns/fp/nextSunday.d.mts index fe9a5c84..e465a7ff 100644 --- a/node_modules/date-fns/fp/nextSunday.d.mts +++ b/node_modules/date-fns/fp/nextSunday.d.mts @@ -1 +1,4 @@ -export type * from "./nextSunday.d.ts"; +export declare const nextSunday: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/nextThursday.d.mts b/node_modules/date-fns/fp/nextThursday.d.mts index 0eec275a..7715057c 100644 --- a/node_modules/date-fns/fp/nextThursday.d.mts +++ b/node_modules/date-fns/fp/nextThursday.d.mts @@ -1 +1,4 @@ -export type * from "./nextThursday.d.ts"; +export declare const nextThursday: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/nextTuesday.d.mts b/node_modules/date-fns/fp/nextTuesday.d.mts index 3b75003b..b57131ca 100644 --- a/node_modules/date-fns/fp/nextTuesday.d.mts +++ b/node_modules/date-fns/fp/nextTuesday.d.mts @@ -1 +1,4 @@ -export type * from "./nextTuesday.d.ts"; +export declare const nextTuesday: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/nextWednesday.d.mts b/node_modules/date-fns/fp/nextWednesday.d.mts index 62a7c84b..48ad1419 100644 --- a/node_modules/date-fns/fp/nextWednesday.d.mts +++ b/node_modules/date-fns/fp/nextWednesday.d.mts @@ -1 +1,4 @@ -export type * from "./nextWednesday.d.ts"; +export declare const nextWednesday: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/parse.d.mts b/node_modules/date-fns/fp/parse.d.mts index beae7eed..1015b983 100644 --- a/node_modules/date-fns/fp/parse.d.mts +++ b/node_modules/date-fns/fp/parse.d.mts @@ -1 +1,6 @@ -export type * from "./parse.d.ts"; +export declare const parse: import("./types.js").FPFn3< + Date, + string | number | Date, + string, + string +>; diff --git a/node_modules/date-fns/fp/parseISO.d.mts b/node_modules/date-fns/fp/parseISO.d.mts index 7a105a7c..ec59afc4 100644 --- a/node_modules/date-fns/fp/parseISO.d.mts +++ b/node_modules/date-fns/fp/parseISO.d.mts @@ -1 +1 @@ -export type * from "./parseISO.d.ts"; +export declare const parseISO: import("./types.js").FPFn1; diff --git a/node_modules/date-fns/fp/parseISOWithOptions.d.mts b/node_modules/date-fns/fp/parseISOWithOptions.d.mts index 2c496234..f54df4a3 100644 --- a/node_modules/date-fns/fp/parseISOWithOptions.d.mts +++ b/node_modules/date-fns/fp/parseISOWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./parseISOWithOptions.d.ts"; +export declare const parseISOWithOptions: import("./types.js").FPFn2< + Date, + import("../parseISO.js").ParseISOOptions | undefined, + string +>; diff --git a/node_modules/date-fns/fp/parseJSON.d.mts b/node_modules/date-fns/fp/parseJSON.d.mts index f6578338..2243a70d 100644 --- a/node_modules/date-fns/fp/parseJSON.d.mts +++ b/node_modules/date-fns/fp/parseJSON.d.mts @@ -1 +1 @@ -export type * from "./parseJSON.d.ts"; +export declare const parseJSON: import("./types.js").FPFn1; diff --git a/node_modules/date-fns/fp/parseWithOptions.d.mts b/node_modules/date-fns/fp/parseWithOptions.d.mts index db3c5487..f5df44e8 100644 --- a/node_modules/date-fns/fp/parseWithOptions.d.mts +++ b/node_modules/date-fns/fp/parseWithOptions.d.mts @@ -1 +1,7 @@ -export type * from "./parseWithOptions.d.ts"; +export declare const parseWithOptions: import("./types.js").FPFn4< + Date, + import("../parse.js").ParseOptions | undefined, + string | number | Date, + string, + string +>; diff --git a/node_modules/date-fns/fp/previousDay.d.mts b/node_modules/date-fns/fp/previousDay.d.mts index 023b4580..60617c59 100644 --- a/node_modules/date-fns/fp/previousDay.d.mts +++ b/node_modules/date-fns/fp/previousDay.d.mts @@ -1 +1,5 @@ -export type * from "./previousDay.d.ts"; +export declare const previousDay: import("./types.js").FPFn2< + Date, + import("../fp.js").Day, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/previousFriday.d.mts b/node_modules/date-fns/fp/previousFriday.d.mts index ab2bd196..94daaa2e 100644 --- a/node_modules/date-fns/fp/previousFriday.d.mts +++ b/node_modules/date-fns/fp/previousFriday.d.mts @@ -1 +1,4 @@ -export type * from "./previousFriday.d.ts"; +export declare const previousFriday: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/previousMonday.d.mts b/node_modules/date-fns/fp/previousMonday.d.mts index b7ddcf68..6265d7a6 100644 --- a/node_modules/date-fns/fp/previousMonday.d.mts +++ b/node_modules/date-fns/fp/previousMonday.d.mts @@ -1 +1,4 @@ -export type * from "./previousMonday.d.ts"; +export declare const previousMonday: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/previousSaturday.d.mts b/node_modules/date-fns/fp/previousSaturday.d.mts index c3da8d78..fd7d0f7a 100644 --- a/node_modules/date-fns/fp/previousSaturday.d.mts +++ b/node_modules/date-fns/fp/previousSaturday.d.mts @@ -1 +1,4 @@ -export type * from "./previousSaturday.d.ts"; +export declare const previousSaturday: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/previousSunday.d.mts b/node_modules/date-fns/fp/previousSunday.d.mts index 8b0403a7..eab97b00 100644 --- a/node_modules/date-fns/fp/previousSunday.d.mts +++ b/node_modules/date-fns/fp/previousSunday.d.mts @@ -1 +1,4 @@ -export type * from "./previousSunday.d.ts"; +export declare const previousSunday: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/previousThursday.d.mts b/node_modules/date-fns/fp/previousThursday.d.mts index 010f433d..d4abf34c 100644 --- a/node_modules/date-fns/fp/previousThursday.d.mts +++ b/node_modules/date-fns/fp/previousThursday.d.mts @@ -1 +1,4 @@ -export type * from "./previousThursday.d.ts"; +export declare const previousThursday: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/previousTuesday.d.mts b/node_modules/date-fns/fp/previousTuesday.d.mts index 2b629398..f3e001d0 100644 --- a/node_modules/date-fns/fp/previousTuesday.d.mts +++ b/node_modules/date-fns/fp/previousTuesday.d.mts @@ -1 +1,4 @@ -export type * from "./previousTuesday.d.ts"; +export declare const previousTuesday: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/previousWednesday.d.mts b/node_modules/date-fns/fp/previousWednesday.d.mts index a72b4a8c..0d40fcf8 100644 --- a/node_modules/date-fns/fp/previousWednesday.d.mts +++ b/node_modules/date-fns/fp/previousWednesday.d.mts @@ -1 +1,4 @@ -export type * from "./previousWednesday.d.ts"; +export declare const previousWednesday: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/quartersToMonths.d.mts b/node_modules/date-fns/fp/quartersToMonths.d.mts index 988b1083..07433c34 100644 --- a/node_modules/date-fns/fp/quartersToMonths.d.mts +++ b/node_modules/date-fns/fp/quartersToMonths.d.mts @@ -1 +1,4 @@ -export type * from "./quartersToMonths.d.ts"; +export declare const quartersToMonths: import("./types.js").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/quartersToYears.d.mts b/node_modules/date-fns/fp/quartersToYears.d.mts index 7df21fe6..ebb1101c 100644 --- a/node_modules/date-fns/fp/quartersToYears.d.mts +++ b/node_modules/date-fns/fp/quartersToYears.d.mts @@ -1 +1,4 @@ -export type * from "./quartersToYears.d.ts"; +export declare const quartersToYears: import("./types.js").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/roundToNearestMinutes.d.mts b/node_modules/date-fns/fp/roundToNearestMinutes.d.mts index 3292301b..a011e8c8 100644 --- a/node_modules/date-fns/fp/roundToNearestMinutes.d.mts +++ b/node_modules/date-fns/fp/roundToNearestMinutes.d.mts @@ -1 +1,4 @@ -export type * from "./roundToNearestMinutes.d.ts"; +export declare const roundToNearestMinutes: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.d.mts b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.d.mts index d31d31c0..54b09ac4 100644 --- a/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.d.mts +++ b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./roundToNearestMinutesWithOptions.d.ts"; +export declare const roundToNearestMinutesWithOptions: import("./types.js").FPFn2< + Date, + | import("../roundToNearestMinutes.js").RoundToNearestMinutesOptions + | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/secondsToHours.d.mts b/node_modules/date-fns/fp/secondsToHours.d.mts index 0a5b2542..4240d04b 100644 --- a/node_modules/date-fns/fp/secondsToHours.d.mts +++ b/node_modules/date-fns/fp/secondsToHours.d.mts @@ -1 +1 @@ -export type * from "./secondsToHours.d.ts"; +export declare const secondsToHours: import("./types.js").FPFn1; diff --git a/node_modules/date-fns/fp/secondsToMilliseconds.d.mts b/node_modules/date-fns/fp/secondsToMilliseconds.d.mts index 78050dca..4f861b0f 100644 --- a/node_modules/date-fns/fp/secondsToMilliseconds.d.mts +++ b/node_modules/date-fns/fp/secondsToMilliseconds.d.mts @@ -1 +1,4 @@ -export type * from "./secondsToMilliseconds.d.ts"; +export declare const secondsToMilliseconds: import("./types.js").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/secondsToMinutes.d.mts b/node_modules/date-fns/fp/secondsToMinutes.d.mts index 9c04691b..d1588322 100644 --- a/node_modules/date-fns/fp/secondsToMinutes.d.mts +++ b/node_modules/date-fns/fp/secondsToMinutes.d.mts @@ -1 +1,4 @@ -export type * from "./secondsToMinutes.d.ts"; +export declare const secondsToMinutes: import("./types.js").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/set.d.mts b/node_modules/date-fns/fp/set.d.mts index 7ff2ae3f..109f6c6f 100644 --- a/node_modules/date-fns/fp/set.d.mts +++ b/node_modules/date-fns/fp/set.d.mts @@ -1 +1,5 @@ -export type * from "./set.d.ts"; +export declare const set: import("./types.js").FPFn2< + Date, + import("../fp.js").DateValues, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setDate.d.mts b/node_modules/date-fns/fp/setDate.d.mts index 1abf9e08..8fb102fe 100644 --- a/node_modules/date-fns/fp/setDate.d.mts +++ b/node_modules/date-fns/fp/setDate.d.mts @@ -1 +1,5 @@ -export type * from "./setDate.d.ts"; +export declare const setDate: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setDay.d.mts b/node_modules/date-fns/fp/setDay.d.mts index 0240a157..f9af3b53 100644 --- a/node_modules/date-fns/fp/setDay.d.mts +++ b/node_modules/date-fns/fp/setDay.d.mts @@ -1 +1,5 @@ -export type * from "./setDay.d.ts"; +export declare const setDay: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setDayOfYear.d.mts b/node_modules/date-fns/fp/setDayOfYear.d.mts index ab9210e4..7bfed919 100644 --- a/node_modules/date-fns/fp/setDayOfYear.d.mts +++ b/node_modules/date-fns/fp/setDayOfYear.d.mts @@ -1 +1,5 @@ -export type * from "./setDayOfYear.d.ts"; +export declare const setDayOfYear: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setDayWithOptions.d.mts b/node_modules/date-fns/fp/setDayWithOptions.d.mts index 855c1d1e..36bb90af 100644 --- a/node_modules/date-fns/fp/setDayWithOptions.d.mts +++ b/node_modules/date-fns/fp/setDayWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./setDayWithOptions.d.ts"; +export declare const setDayWithOptions: import("./types.js").FPFn3< + Date, + import("../setDay.js").SetDayOptions | undefined, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setHours.d.mts b/node_modules/date-fns/fp/setHours.d.mts index 357a9d6f..7b0668f7 100644 --- a/node_modules/date-fns/fp/setHours.d.mts +++ b/node_modules/date-fns/fp/setHours.d.mts @@ -1 +1,5 @@ -export type * from "./setHours.d.ts"; +export declare const setHours: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setISODay.d.mts b/node_modules/date-fns/fp/setISODay.d.mts index 289d1a3e..919eeb4f 100644 --- a/node_modules/date-fns/fp/setISODay.d.mts +++ b/node_modules/date-fns/fp/setISODay.d.mts @@ -1 +1,5 @@ -export type * from "./setISODay.d.ts"; +export declare const setISODay: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setISOWeek.d.mts b/node_modules/date-fns/fp/setISOWeek.d.mts index b20c130a..2a27838f 100644 --- a/node_modules/date-fns/fp/setISOWeek.d.mts +++ b/node_modules/date-fns/fp/setISOWeek.d.mts @@ -1 +1,5 @@ -export type * from "./setISOWeek.d.ts"; +export declare const setISOWeek: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setISOWeekYear.d.mts b/node_modules/date-fns/fp/setISOWeekYear.d.mts index ad9e72a3..17450e1b 100644 --- a/node_modules/date-fns/fp/setISOWeekYear.d.mts +++ b/node_modules/date-fns/fp/setISOWeekYear.d.mts @@ -1 +1,5 @@ -export type * from "./setISOWeekYear.d.ts"; +export declare const setISOWeekYear: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setMilliseconds.d.mts b/node_modules/date-fns/fp/setMilliseconds.d.mts index 4a1e7802..7693f0e6 100644 --- a/node_modules/date-fns/fp/setMilliseconds.d.mts +++ b/node_modules/date-fns/fp/setMilliseconds.d.mts @@ -1 +1,5 @@ -export type * from "./setMilliseconds.d.ts"; +export declare const setMilliseconds: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setMinutes.d.mts b/node_modules/date-fns/fp/setMinutes.d.mts index 76c4f379..90f4ac1e 100644 --- a/node_modules/date-fns/fp/setMinutes.d.mts +++ b/node_modules/date-fns/fp/setMinutes.d.mts @@ -1 +1,5 @@ -export type * from "./setMinutes.d.ts"; +export declare const setMinutes: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setMonth.d.mts b/node_modules/date-fns/fp/setMonth.d.mts index 81910c75..959ddbb1 100644 --- a/node_modules/date-fns/fp/setMonth.d.mts +++ b/node_modules/date-fns/fp/setMonth.d.mts @@ -1 +1,5 @@ -export type * from "./setMonth.d.ts"; +export declare const setMonth: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setQuarter.d.mts b/node_modules/date-fns/fp/setQuarter.d.mts index 09f8cd35..27a48d5e 100644 --- a/node_modules/date-fns/fp/setQuarter.d.mts +++ b/node_modules/date-fns/fp/setQuarter.d.mts @@ -1 +1,5 @@ -export type * from "./setQuarter.d.ts"; +export declare const setQuarter: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setSeconds.d.mts b/node_modules/date-fns/fp/setSeconds.d.mts index 1d5869a8..0192b848 100644 --- a/node_modules/date-fns/fp/setSeconds.d.mts +++ b/node_modules/date-fns/fp/setSeconds.d.mts @@ -1 +1,5 @@ -export type * from "./setSeconds.d.ts"; +export declare const setSeconds: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setWeek.d.mts b/node_modules/date-fns/fp/setWeek.d.mts index fc62c69a..a03b3ccf 100644 --- a/node_modules/date-fns/fp/setWeek.d.mts +++ b/node_modules/date-fns/fp/setWeek.d.mts @@ -1 +1,5 @@ -export type * from "./setWeek.d.ts"; +export declare const setWeek: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setWeekWithOptions.d.mts b/node_modules/date-fns/fp/setWeekWithOptions.d.mts index 3bcbefda..1fcb8d65 100644 --- a/node_modules/date-fns/fp/setWeekWithOptions.d.mts +++ b/node_modules/date-fns/fp/setWeekWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./setWeekWithOptions.d.ts"; +export declare const setWeekWithOptions: import("./types.js").FPFn3< + Date, + import("../setWeek.js").SetWeekOptions | undefined, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setWeekYear.d.mts b/node_modules/date-fns/fp/setWeekYear.d.mts index 5ec9a217..c9670d78 100644 --- a/node_modules/date-fns/fp/setWeekYear.d.mts +++ b/node_modules/date-fns/fp/setWeekYear.d.mts @@ -1 +1,5 @@ -export type * from "./setWeekYear.d.ts"; +export declare const setWeekYear: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setWeekYearWithOptions.d.mts b/node_modules/date-fns/fp/setWeekYearWithOptions.d.mts index b9255f0e..1dfda00d 100644 --- a/node_modules/date-fns/fp/setWeekYearWithOptions.d.mts +++ b/node_modules/date-fns/fp/setWeekYearWithOptions.d.mts @@ -1 +1,6 @@ -export type * from "./setWeekYearWithOptions.d.ts"; +export declare const setWeekYearWithOptions: import("./types.js").FPFn3< + Date, + import("../setWeekYear.js").SetWeekYearOptions | undefined, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/setYear.d.mts b/node_modules/date-fns/fp/setYear.d.mts index 5c1ccaa1..cfd01235 100644 --- a/node_modules/date-fns/fp/setYear.d.mts +++ b/node_modules/date-fns/fp/setYear.d.mts @@ -1 +1,5 @@ -export type * from "./setYear.d.ts"; +export declare const setYear: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/startOfDay.d.mts b/node_modules/date-fns/fp/startOfDay.d.mts index 727cb8d3..1557f24f 100644 --- a/node_modules/date-fns/fp/startOfDay.d.mts +++ b/node_modules/date-fns/fp/startOfDay.d.mts @@ -1 +1,4 @@ -export type * from "./startOfDay.d.ts"; +export declare const startOfDay: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/startOfDecade.d.mts b/node_modules/date-fns/fp/startOfDecade.d.mts index 97ccc277..5a1e4959 100644 --- a/node_modules/date-fns/fp/startOfDecade.d.mts +++ b/node_modules/date-fns/fp/startOfDecade.d.mts @@ -1 +1,4 @@ -export type * from "./startOfDecade.d.ts"; +export declare const startOfDecade: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/startOfHour.d.mts b/node_modules/date-fns/fp/startOfHour.d.mts index d777a2eb..c96ad850 100644 --- a/node_modules/date-fns/fp/startOfHour.d.mts +++ b/node_modules/date-fns/fp/startOfHour.d.mts @@ -1 +1,4 @@ -export type * from "./startOfHour.d.ts"; +export declare const startOfHour: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/startOfISOWeek.d.mts b/node_modules/date-fns/fp/startOfISOWeek.d.mts index ab4957c5..724c9499 100644 --- a/node_modules/date-fns/fp/startOfISOWeek.d.mts +++ b/node_modules/date-fns/fp/startOfISOWeek.d.mts @@ -1 +1,4 @@ -export type * from "./startOfISOWeek.d.ts"; +export declare const startOfISOWeek: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/startOfISOWeekYear.d.mts b/node_modules/date-fns/fp/startOfISOWeekYear.d.mts index 6d91e084..c370b5a5 100644 --- a/node_modules/date-fns/fp/startOfISOWeekYear.d.mts +++ b/node_modules/date-fns/fp/startOfISOWeekYear.d.mts @@ -1 +1,4 @@ -export type * from "./startOfISOWeekYear.d.ts"; +export declare const startOfISOWeekYear: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/startOfMinute.d.mts b/node_modules/date-fns/fp/startOfMinute.d.mts index 89623224..f6b352d9 100644 --- a/node_modules/date-fns/fp/startOfMinute.d.mts +++ b/node_modules/date-fns/fp/startOfMinute.d.mts @@ -1 +1,4 @@ -export type * from "./startOfMinute.d.ts"; +export declare const startOfMinute: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/startOfMonth.d.mts b/node_modules/date-fns/fp/startOfMonth.d.mts index 224a5a36..3c10fd3e 100644 --- a/node_modules/date-fns/fp/startOfMonth.d.mts +++ b/node_modules/date-fns/fp/startOfMonth.d.mts @@ -1 +1,4 @@ -export type * from "./startOfMonth.d.ts"; +export declare const startOfMonth: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/startOfQuarter.d.mts b/node_modules/date-fns/fp/startOfQuarter.d.mts index e90a8537..97ca44b2 100644 --- a/node_modules/date-fns/fp/startOfQuarter.d.mts +++ b/node_modules/date-fns/fp/startOfQuarter.d.mts @@ -1 +1,4 @@ -export type * from "./startOfQuarter.d.ts"; +export declare const startOfQuarter: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/startOfSecond.d.mts b/node_modules/date-fns/fp/startOfSecond.d.mts index d9bb314c..7d6fcb36 100644 --- a/node_modules/date-fns/fp/startOfSecond.d.mts +++ b/node_modules/date-fns/fp/startOfSecond.d.mts @@ -1 +1,4 @@ -export type * from "./startOfSecond.d.ts"; +export declare const startOfSecond: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/startOfWeek.d.mts b/node_modules/date-fns/fp/startOfWeek.d.mts index 02eb9920..a1914129 100644 --- a/node_modules/date-fns/fp/startOfWeek.d.mts +++ b/node_modules/date-fns/fp/startOfWeek.d.mts @@ -1 +1,4 @@ -export type * from "./startOfWeek.d.ts"; +export declare const startOfWeek: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/startOfWeekWithOptions.d.mts b/node_modules/date-fns/fp/startOfWeekWithOptions.d.mts index 407c313e..45b7825d 100644 --- a/node_modules/date-fns/fp/startOfWeekWithOptions.d.mts +++ b/node_modules/date-fns/fp/startOfWeekWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./startOfWeekWithOptions.d.ts"; +export declare const startOfWeekWithOptions: import("./types.js").FPFn2< + Date, + import("../startOfWeek.js").StartOfWeekOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/startOfWeekYear.d.mts b/node_modules/date-fns/fp/startOfWeekYear.d.mts index 549e3526..971731b2 100644 --- a/node_modules/date-fns/fp/startOfWeekYear.d.mts +++ b/node_modules/date-fns/fp/startOfWeekYear.d.mts @@ -1 +1,4 @@ -export type * from "./startOfWeekYear.d.ts"; +export declare const startOfWeekYear: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/startOfWeekYearWithOptions.d.mts b/node_modules/date-fns/fp/startOfWeekYearWithOptions.d.mts index e6c3d3dc..e5fd9e5d 100644 --- a/node_modules/date-fns/fp/startOfWeekYearWithOptions.d.mts +++ b/node_modules/date-fns/fp/startOfWeekYearWithOptions.d.mts @@ -1 +1,5 @@ -export type * from "./startOfWeekYearWithOptions.d.ts"; +export declare const startOfWeekYearWithOptions: import("./types.js").FPFn2< + Date, + import("../startOfWeekYear.js").StartOfWeekYearOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/startOfYear.d.mts b/node_modules/date-fns/fp/startOfYear.d.mts index c5c3274f..08bfc0c6 100644 --- a/node_modules/date-fns/fp/startOfYear.d.mts +++ b/node_modules/date-fns/fp/startOfYear.d.mts @@ -1 +1,4 @@ -export type * from "./startOfYear.d.ts"; +export declare const startOfYear: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/sub.d.mts b/node_modules/date-fns/fp/sub.d.mts index 94874a8e..33da97ac 100644 --- a/node_modules/date-fns/fp/sub.d.mts +++ b/node_modules/date-fns/fp/sub.d.mts @@ -1 +1,5 @@ -export type * from "./sub.d.ts"; +export declare const sub: import("./types.js").FPFn2< + Date, + import("../fp.js").Duration, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/subBusinessDays.d.mts b/node_modules/date-fns/fp/subBusinessDays.d.mts index a56eb512..f274980a 100644 --- a/node_modules/date-fns/fp/subBusinessDays.d.mts +++ b/node_modules/date-fns/fp/subBusinessDays.d.mts @@ -1 +1,5 @@ -export type * from "./subBusinessDays.d.ts"; +export declare const subBusinessDays: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/subDays.d.mts b/node_modules/date-fns/fp/subDays.d.mts index cfeb1963..2c590b70 100644 --- a/node_modules/date-fns/fp/subDays.d.mts +++ b/node_modules/date-fns/fp/subDays.d.mts @@ -1 +1,5 @@ -export type * from "./subDays.d.ts"; +export declare const subDays: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/subHours.d.mts b/node_modules/date-fns/fp/subHours.d.mts index c0c5e3df..d66f9bff 100644 --- a/node_modules/date-fns/fp/subHours.d.mts +++ b/node_modules/date-fns/fp/subHours.d.mts @@ -1 +1,5 @@ -export type * from "./subHours.d.ts"; +export declare const subHours: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/subISOWeekYears.d.mts b/node_modules/date-fns/fp/subISOWeekYears.d.mts index 938095e7..2c0b038d 100644 --- a/node_modules/date-fns/fp/subISOWeekYears.d.mts +++ b/node_modules/date-fns/fp/subISOWeekYears.d.mts @@ -1 +1,5 @@ -export type * from "./subISOWeekYears.d.ts"; +export declare const subISOWeekYears: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/subMilliseconds.d.mts b/node_modules/date-fns/fp/subMilliseconds.d.mts index edb8562a..94b454ff 100644 --- a/node_modules/date-fns/fp/subMilliseconds.d.mts +++ b/node_modules/date-fns/fp/subMilliseconds.d.mts @@ -1 +1,5 @@ -export type * from "./subMilliseconds.d.ts"; +export declare const subMilliseconds: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/subMinutes.d.mts b/node_modules/date-fns/fp/subMinutes.d.mts index f089945e..feade1e3 100644 --- a/node_modules/date-fns/fp/subMinutes.d.mts +++ b/node_modules/date-fns/fp/subMinutes.d.mts @@ -1 +1,5 @@ -export type * from "./subMinutes.d.ts"; +export declare const subMinutes: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/subMonths.d.mts b/node_modules/date-fns/fp/subMonths.d.mts index dffbc8fb..f0a8d6cb 100644 --- a/node_modules/date-fns/fp/subMonths.d.mts +++ b/node_modules/date-fns/fp/subMonths.d.mts @@ -1 +1,5 @@ -export type * from "./subMonths.d.ts"; +export declare const subMonths: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/subQuarters.d.mts b/node_modules/date-fns/fp/subQuarters.d.mts index 09a8a045..682eee79 100644 --- a/node_modules/date-fns/fp/subQuarters.d.mts +++ b/node_modules/date-fns/fp/subQuarters.d.mts @@ -1 +1,5 @@ -export type * from "./subQuarters.d.ts"; +export declare const subQuarters: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/subSeconds.d.mts b/node_modules/date-fns/fp/subSeconds.d.mts index 35c63286..04dfd81c 100644 --- a/node_modules/date-fns/fp/subSeconds.d.mts +++ b/node_modules/date-fns/fp/subSeconds.d.mts @@ -1 +1,5 @@ -export type * from "./subSeconds.d.ts"; +export declare const subSeconds: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/subWeeks.d.mts b/node_modules/date-fns/fp/subWeeks.d.mts index 7b96febe..003a034f 100644 --- a/node_modules/date-fns/fp/subWeeks.d.mts +++ b/node_modules/date-fns/fp/subWeeks.d.mts @@ -1 +1,5 @@ -export type * from "./subWeeks.d.ts"; +export declare const subWeeks: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/subYears.d.mts b/node_modules/date-fns/fp/subYears.d.mts index d1bc1611..a940d9e9 100644 --- a/node_modules/date-fns/fp/subYears.d.mts +++ b/node_modules/date-fns/fp/subYears.d.mts @@ -1 +1,5 @@ -export type * from "./subYears.d.ts"; +export declare const subYears: import("./types.js").FPFn2< + Date, + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/toDate.d.mts b/node_modules/date-fns/fp/toDate.d.mts index 02c790a1..5bb892e4 100644 --- a/node_modules/date-fns/fp/toDate.d.mts +++ b/node_modules/date-fns/fp/toDate.d.mts @@ -1 +1,4 @@ -export type * from "./toDate.d.ts"; +export declare const toDate: import("./types.js").FPFn1< + Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/transpose.d.mts b/node_modules/date-fns/fp/transpose.d.mts index 4264e5ed..ec9e42a8 100644 --- a/node_modules/date-fns/fp/transpose.d.mts +++ b/node_modules/date-fns/fp/transpose.d.mts @@ -1 +1,5 @@ -export type * from "./transpose.d.ts"; +export declare const transpose: import("./types.js").FPFn2< + Date, + Date | import("../fp.js").GenericDateConstructor, + Date +>; diff --git a/node_modules/date-fns/fp/types.d.mts b/node_modules/date-fns/fp/types.d.mts index 357a0c8f..68c6fd87 100644 --- a/node_modules/date-fns/fp/types.d.mts +++ b/node_modules/date-fns/fp/types.d.mts @@ -1 +1,114 @@ -export type * from "./types.d.ts"; +/** + * The type of a function that can be converted to FP. + */ +export type FPFnInput = (...args: any[]) => any; +/** + * The supported arity type. + */ +export type FPArity = 1 | 2 | 3 | 4; +/** + * FP function interface. It infers the arity of the function and returns the + * corresponding FP function interface. + */ +export type FPFn = Arity extends 4 + ? FPFn4< + ReturnType, + Parameters[3], + Parameters[2], + Parameters[1], + Parameters[0] + > + : Arity extends 3 + ? FPFn3< + ReturnType, + Parameters[2], + Parameters[1], + Parameters[0] + > + : Arity extends 2 + ? FPFn2, Parameters[1], Parameters[0]> + : Arity extends 1 + ? FPFn1, Parameters[0]> + : never; +/** + * FP function interface with 1 arguments. + */ +export interface FPFn1 { + /** + * Curried version of the function. Returns itself. + */ + (): FPFn1; + /** + * Returns the result of the function call. + */ + (arg: Arg): Result; +} +/** + * FP function interface with 2 arguments. + */ +export interface FPFn2 { + /** + * Curried version of the function. Returns itself. + */ + (): FPFn2; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg2: Arg2): FPFn1; + /** + * Returns the result of the function call. + */ + (arg2: Arg2, arg1: Arg1): Result; +} +/** + * FP function interface with 3 arguments. + */ +export interface FPFn3 { + /** + * Curried version of the function. Returns itself. + */ + (): FPFn3; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg3: Arg3): FPFn2; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg3: Arg3, arg2: Arg2): FPFn1; + /** + * Returns the result of the function call. + */ + (arg3: Arg3, arg2: Arg2, arg1: Arg1): Result; +} +/** + * FP function interface with 4 arguments. + */ +export interface FPFn4 { + /** + * Curried version of the function. Returns itself. + */ + (): FPFn4; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg4: Arg4): FPFn3; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg4: Arg4, arg3: Arg3): FPFn2; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg4: Arg4, arg3: Arg3, arg2: Arg2): FPFn1; + /** + * Returns the result of the function call. + */ + (arg4: Arg4, arg3: Arg3, arg2: Arg2, arg1: Arg1): Result; +} diff --git a/node_modules/date-fns/fp/types.d.ts b/node_modules/date-fns/fp/types.d.ts index 46146b6c..68c6fd87 100644 --- a/node_modules/date-fns/fp/types.d.ts +++ b/node_modules/date-fns/fp/types.d.ts @@ -34,69 +34,69 @@ export type FPFn = Arity extends 4 * FP function interface with 1 arguments. */ export interface FPFn1 { - /** - * Returns the result of the function call. - */ - (arg: Arg): Result; /** * Curried version of the function. Returns itself. */ (): FPFn1; + /** + * Returns the result of the function call. + */ + (arg: Arg): Result; } /** * FP function interface with 2 arguments. */ export interface FPFn2 { /** - * Returns the result of the function call. + * Curried version of the function. Returns itself. */ - (arg2: Arg2, arg1: Arg1): Result; + (): FPFn2; /** * Curried version of the function. Returns a function that accepts the rest * arguments. */ (arg2: Arg2): FPFn1; /** - * Curried version of the function. Returns itself. + * Returns the result of the function call. */ - (): FPFn2; + (arg2: Arg2, arg1: Arg1): Result; } /** * FP function interface with 3 arguments. */ export interface FPFn3 { /** - * Returns the result of the function call. + * Curried version of the function. Returns itself. */ - (arg3: Arg3, arg2: Arg2, arg1: Arg1): Result; - /** - * Curried version of the function. Returns a function that accepts the rest - * arguments. - */ - (arg3: Arg3, arg2: Arg2): FPFn1; + (): FPFn3; /** * Curried version of the function. Returns a function that accepts the rest * arguments. */ (arg3: Arg3): FPFn2; /** - * Curried version of the function. Returns itself. + * Curried version of the function. Returns a function that accepts the rest + * arguments. */ - (): FPFn3; + (arg3: Arg3, arg2: Arg2): FPFn1; + /** + * Returns the result of the function call. + */ + (arg3: Arg3, arg2: Arg2, arg1: Arg1): Result; } /** * FP function interface with 4 arguments. */ export interface FPFn4 { /** - * Returns the result of the function call. + * Curried version of the function. Returns itself. */ - (arg4: Arg4, arg3: Arg3, arg2: Arg2, arg1: Arg1): Result; + (): FPFn4; /** * Curried version of the function. Returns a function that accepts the rest * arguments. */ - (arg4: Arg4, arg3: Arg3, arg2: Arg2): FPFn1; + (arg4: Arg4): FPFn3; /** * Curried version of the function. Returns a function that accepts the rest * arguments. @@ -106,9 +106,9 @@ export interface FPFn4 { * Curried version of the function. Returns a function that accepts the rest * arguments. */ - (arg4: Arg4): FPFn3; + (arg4: Arg4, arg3: Arg3, arg2: Arg2): FPFn1; /** - * Curried version of the function. Returns itself. + * Returns the result of the function call. */ - (): FPFn4; + (arg4: Arg4, arg3: Arg3, arg2: Arg2, arg1: Arg1): Result; } diff --git a/node_modules/date-fns/fp/weeksToDays.d.mts b/node_modules/date-fns/fp/weeksToDays.d.mts index 510d2f96..997df17d 100644 --- a/node_modules/date-fns/fp/weeksToDays.d.mts +++ b/node_modules/date-fns/fp/weeksToDays.d.mts @@ -1 +1 @@ -export type * from "./weeksToDays.d.ts"; +export declare const weeksToDays: import("./types.js").FPFn1; diff --git a/node_modules/date-fns/fp/yearsToMonths.d.mts b/node_modules/date-fns/fp/yearsToMonths.d.mts index 590cc8ae..9c7c0690 100644 --- a/node_modules/date-fns/fp/yearsToMonths.d.mts +++ b/node_modules/date-fns/fp/yearsToMonths.d.mts @@ -1 +1 @@ -export type * from "./yearsToMonths.d.ts"; +export declare const yearsToMonths: import("./types.js").FPFn1; diff --git a/node_modules/date-fns/fp/yearsToQuarters.d.mts b/node_modules/date-fns/fp/yearsToQuarters.d.mts index d2044df5..4955129b 100644 --- a/node_modules/date-fns/fp/yearsToQuarters.d.mts +++ b/node_modules/date-fns/fp/yearsToQuarters.d.mts @@ -1 +1,4 @@ -export type * from "./yearsToQuarters.d.ts"; +export declare const yearsToQuarters: import("./types.js").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fromUnixTime.d.mts b/node_modules/date-fns/fromUnixTime.d.mts index f4f5020d..31fa5a5b 100644 --- a/node_modules/date-fns/fromUnixTime.d.mts +++ b/node_modules/date-fns/fromUnixTime.d.mts @@ -1 +1,18 @@ -export type * from "./fromUnixTime.d.ts"; +/** + * @name fromUnixTime + * @category Timestamp Helpers + * @summary Create a date from a Unix timestamp. + * + * @description + * Create a date from a Unix timestamp (in seconds). Decimal values will be discarded. + * + * @param unixTime - The given Unix timestamp (in seconds) + * + * @returns The date + * + * @example + * // Create the date 29 February 2012 11:45:05: + * const result = fromUnixTime(1330515905) + * //=> Wed Feb 29 2012 11:45:05 + */ +export declare function fromUnixTime(unixTime: number): Date; diff --git a/node_modules/date-fns/getDate.d.mts b/node_modules/date-fns/getDate.d.mts index 05d1a39b..bd24189f 100644 --- a/node_modules/date-fns/getDate.d.mts +++ b/node_modules/date-fns/getDate.d.mts @@ -1 +1,22 @@ -export type * from "./getDate.d.ts"; +/** + * @name getDate + * @category Day Helpers + * @summary Get the day of the month of the given date. + * + * @description + * Get the day of the month of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The day of month + * + * @example + * // Which day of the month is 29 February 2012? + * const result = getDate(new Date(2012, 1, 29)) + * //=> 29 + */ +export declare function getDate( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getDay.d.mts b/node_modules/date-fns/getDay.d.mts index 5b550a3f..2838a098 100644 --- a/node_modules/date-fns/getDay.d.mts +++ b/node_modules/date-fns/getDay.d.mts @@ -1 +1,22 @@ -export type * from "./getDay.d.ts"; +/** + * @name getDay + * @category Weekday Helpers + * @summary Get the day of the week of the given date. + * + * @description + * Get the day of the week of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The day of week, 0 represents Sunday + * + * @example + * // Which day of the week is 29 February 2012? + * const result = getDay(new Date(2012, 1, 29)) + * //=> 3 + */ +export declare function getDay( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getDayOfYear.d.mts b/node_modules/date-fns/getDayOfYear.d.mts index 3f9f64fc..f5c8e7cc 100644 --- a/node_modules/date-fns/getDayOfYear.d.mts +++ b/node_modules/date-fns/getDayOfYear.d.mts @@ -1 +1,22 @@ -export type * from "./getDayOfYear.d.ts"; +/** + * @name getDayOfYear + * @category Day Helpers + * @summary Get the day of the year of the given date. + * + * @description + * Get the day of the year of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The day of year + * + * @example + * // Which day of the year is 2 July 2014? + * const result = getDayOfYear(new Date(2014, 6, 2)) + * //=> 183 + */ +export declare function getDayOfYear( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getDaysInMonth.d.mts b/node_modules/date-fns/getDaysInMonth.d.mts index c5153eb8..474c0720 100644 --- a/node_modules/date-fns/getDaysInMonth.d.mts +++ b/node_modules/date-fns/getDaysInMonth.d.mts @@ -1 +1,22 @@ -export type * from "./getDaysInMonth.d.ts"; +/** + * @name getDaysInMonth + * @category Month Helpers + * @summary Get the number of days in a month of the given date. + * + * @description + * Get the number of days in a month of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The number of days in a month + * + * @example + * // How many days are in February 2000? + * const result = getDaysInMonth(new Date(2000, 1)) + * //=> 29 + */ +export declare function getDaysInMonth( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getDaysInYear.d.mts b/node_modules/date-fns/getDaysInYear.d.mts index 64eb3ec7..0bb77a97 100644 --- a/node_modules/date-fns/getDaysInYear.d.mts +++ b/node_modules/date-fns/getDaysInYear.d.mts @@ -1 +1,22 @@ -export type * from "./getDaysInYear.d.ts"; +/** + * @name getDaysInYear + * @category Year Helpers + * @summary Get the number of days in a year of the given date. + * + * @description + * Get the number of days in a year of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The number of days in a year + * + * @example + * // How many days are in 2012? + * const result = getDaysInYear(new Date(2012, 0, 1)) + * //=> 366 + */ +export declare function getDaysInYear( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getDecade.d.mts b/node_modules/date-fns/getDecade.d.mts index db94e501..f4ae60fe 100644 --- a/node_modules/date-fns/getDecade.d.mts +++ b/node_modules/date-fns/getDecade.d.mts @@ -1 +1,22 @@ -export type * from "./getDecade.d.ts"; +/** + * @name getDecade + * @category Decade Helpers + * @summary Get the decade of the given date. + * + * @description + * Get the decade of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The year of decade + * + * @example + * // Which decade belongs 27 November 1942? + * const result = getDecade(new Date(1942, 10, 27)) + * //=> 1940 + */ +export declare function getDecade( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getDecade.js b/node_modules/date-fns/getDecade.js index a8b01008..8feabc50 100644 --- a/node_modules/date-fns/getDecade.js +++ b/node_modules/date-fns/getDecade.js @@ -22,6 +22,9 @@ var _index = require("./toDate.js"); * //=> 1940 */ function getDecade(date) { + // TODO: Switch to more technical definition in of decades that start with 1 + // end with 0. I.e. 2001-2010 instead of current 2000-2009. It's a breaking + // change, so it can only be done in 4.0. const _date = (0, _index.toDate)(date); const year = _date.getFullYear(); const decade = Math.floor(year / 10) * 10; diff --git a/node_modules/date-fns/getDecade.mjs b/node_modules/date-fns/getDecade.mjs index 9c3b4f98..b58d1160 100644 --- a/node_modules/date-fns/getDecade.mjs +++ b/node_modules/date-fns/getDecade.mjs @@ -20,6 +20,9 @@ import { toDate } from "./toDate.mjs"; * //=> 1940 */ export function getDecade(date) { + // TODO: Switch to more technical definition in of decades that start with 1 + // end with 0. I.e. 2001-2010 instead of current 2000-2009. It's a breaking + // change, so it can only be done in 4.0. const _date = toDate(date); const year = _date.getFullYear(); const decade = Math.floor(year / 10) * 10; diff --git a/node_modules/date-fns/getDefaultOptions.d.mts b/node_modules/date-fns/getDefaultOptions.d.mts index 9be9af71..9e9358a1 100644 --- a/node_modules/date-fns/getDefaultOptions.d.mts +++ b/node_modules/date-fns/getDefaultOptions.d.mts @@ -1 +1,26 @@ -export type * from "./getDefaultOptions.d.ts"; +import type { DefaultOptions } from "./_lib/defaultOptions.js"; +/** + * @name getDefaultOptions + * @category Common Helpers + * @summary Get default options. + * @pure false + * + * @description + * Returns an object that contains defaults for + * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate` + * arguments for all functions. + * + * You can change these with [setDefaultOptions](https://date-fns.org/docs/setDefaultOptions). + * + * @returns The default options + * + * @example + * const result = getDefaultOptions() + * //=> {} + * + * @example + * setDefaultOptions({ weekStarsOn: 1, firstWeekContainsDate: 4 }) + * const result = getDefaultOptions() + * //=> { weekStarsOn: 1, firstWeekContainsDate: 4 } + */ +export declare function getDefaultOptions(): DefaultOptions; diff --git a/node_modules/date-fns/getHours.d.mts b/node_modules/date-fns/getHours.d.mts index 40df1848..cc3c6d6f 100644 --- a/node_modules/date-fns/getHours.d.mts +++ b/node_modules/date-fns/getHours.d.mts @@ -1 +1,22 @@ -export type * from "./getHours.d.ts"; +/** + * @name getHours + * @category Hour Helpers + * @summary Get the hours of the given date. + * + * @description + * Get the hours of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The hours + * + * @example + * // Get the hours of 29 February 2012 11:45:00: + * const result = getHours(new Date(2012, 1, 29, 11, 45)) + * //=> 11 + */ +export declare function getHours( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getISODay.d.mts b/node_modules/date-fns/getISODay.d.mts index d8d50680..9548a789 100644 --- a/node_modules/date-fns/getISODay.d.mts +++ b/node_modules/date-fns/getISODay.d.mts @@ -1 +1,25 @@ -export type * from "./getISODay.d.ts"; +/** + * @name getISODay + * @category Weekday Helpers + * @summary Get the day of the ISO week of the given date. + * + * @description + * Get the day of the ISO week of the given date, + * which is 7 for Sunday, 1 for Monday etc. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The day of ISO week + * + * @example + * // Which day of the ISO week is 26 February 2012? + * const result = getISODay(new Date(2012, 1, 26)) + * //=> 7 + */ +export declare function getISODay( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getISOWeek.d.mts b/node_modules/date-fns/getISOWeek.d.mts index 707faef3..b9b43ac8 100644 --- a/node_modules/date-fns/getISOWeek.d.mts +++ b/node_modules/date-fns/getISOWeek.d.mts @@ -1 +1,24 @@ -export type * from "./getISOWeek.d.ts"; +/** + * @name getISOWeek + * @category ISO Week Helpers + * @summary Get the ISO week of the given date. + * + * @description + * Get the ISO week of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The ISO week + * + * @example + * // Which week of the ISO-week numbering year is 2 January 2005? + * const result = getISOWeek(new Date(2005, 0, 2)) + * //=> 53 + */ +export declare function getISOWeek( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getISOWeek.js b/node_modules/date-fns/getISOWeek.js index b0bf90f5..b3cc0e58 100644 --- a/node_modules/date-fns/getISOWeek.js +++ b/node_modules/date-fns/getISOWeek.js @@ -29,11 +29,11 @@ var _index4 = require("./toDate.js"); function getISOWeek(date) { const _date = (0, _index4.toDate)(date); const diff = - (0, _index2.startOfISOWeek)(_date).getTime() - - (0, _index3.startOfISOWeekYear)(_date).getTime(); + +(0, _index2.startOfISOWeek)(_date) - + +(0, _index3.startOfISOWeekYear)(_date); - // Round the number of days to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). return Math.round(diff / _index.millisecondsInWeek) + 1; } diff --git a/node_modules/date-fns/getISOWeek.mjs b/node_modules/date-fns/getISOWeek.mjs index c1d61912..a2e8a94d 100644 --- a/node_modules/date-fns/getISOWeek.mjs +++ b/node_modules/date-fns/getISOWeek.mjs @@ -26,12 +26,11 @@ import { toDate } from "./toDate.mjs"; */ export function getISOWeek(date) { const _date = toDate(date); - const diff = - startOfISOWeek(_date).getTime() - startOfISOWeekYear(_date).getTime(); + const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date); - // Round the number of days to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). return Math.round(diff / millisecondsInWeek) + 1; } diff --git a/node_modules/date-fns/getISOWeekYear.d.mts b/node_modules/date-fns/getISOWeekYear.d.mts index 1d9526f6..a9eac305 100644 --- a/node_modules/date-fns/getISOWeekYear.d.mts +++ b/node_modules/date-fns/getISOWeekYear.d.mts @@ -1 +1,25 @@ -export type * from "./getISOWeekYear.d.ts"; +/** + * @name getISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Get the ISO week-numbering year of the given date. + * + * @description + * Get the ISO week-numbering year of the given date, + * which always starts 3 days before the year's first Thursday. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The ISO week-numbering year + * + * @example + * // Which ISO-week numbering year is 2 January 2005? + * const result = getISOWeekYear(new Date(2005, 0, 2)) + * //=> 2004 + */ +export declare function getISOWeekYear( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getISOWeeksInYear.d.mts b/node_modules/date-fns/getISOWeeksInYear.d.mts index e7734740..80164246 100644 --- a/node_modules/date-fns/getISOWeeksInYear.d.mts +++ b/node_modules/date-fns/getISOWeeksInYear.d.mts @@ -1 +1,24 @@ -export type * from "./getISOWeeksInYear.d.ts"; +/** + * @name getISOWeeksInYear + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of weeks in an ISO week-numbering year of the given date. + * + * @description + * Get the number of weeks in an ISO week-numbering year of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The number of ISO weeks in a year + * + * @example + * // How many weeks are in ISO week-numbering year 2015? + * const result = getISOWeeksInYear(new Date(2015, 1, 11)) + * //=> 53 + */ +export declare function getISOWeeksInYear( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getISOWeeksInYear.js b/node_modules/date-fns/getISOWeeksInYear.js index ccea4f94..8e22622f 100644 --- a/node_modules/date-fns/getISOWeeksInYear.js +++ b/node_modules/date-fns/getISOWeeksInYear.js @@ -30,9 +30,10 @@ function getISOWeeksInYear(date) { const nextYear = (0, _index3.startOfISOWeekYear)( (0, _index.addWeeks)(thisYear, 60), ); - const diff = nextYear.valueOf() - thisYear.valueOf(); - // Round the number of weeks to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) + const diff = +nextYear - +thisYear; + + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). return Math.round(diff / _index2.millisecondsInWeek); } diff --git a/node_modules/date-fns/getISOWeeksInYear.mjs b/node_modules/date-fns/getISOWeeksInYear.mjs index 562e8f43..3c8ab452 100644 --- a/node_modules/date-fns/getISOWeeksInYear.mjs +++ b/node_modules/date-fns/getISOWeeksInYear.mjs @@ -26,10 +26,11 @@ import { startOfISOWeekYear } from "./startOfISOWeekYear.mjs"; export function getISOWeeksInYear(date) { const thisYear = startOfISOWeekYear(date); const nextYear = startOfISOWeekYear(addWeeks(thisYear, 60)); - const diff = nextYear.valueOf() - thisYear.valueOf(); - // Round the number of weeks to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) + const diff = +nextYear - +thisYear; + + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). return Math.round(diff / millisecondsInWeek); } diff --git a/node_modules/date-fns/getMilliseconds.d.mts b/node_modules/date-fns/getMilliseconds.d.mts index ef8fe10e..4723a031 100644 --- a/node_modules/date-fns/getMilliseconds.d.mts +++ b/node_modules/date-fns/getMilliseconds.d.mts @@ -1 +1,22 @@ -export type * from "./getMilliseconds.d.ts"; +/** + * @name getMilliseconds + * @category Millisecond Helpers + * @summary Get the milliseconds of the given date. + * + * @description + * Get the milliseconds of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The milliseconds + * + * @example + * // Get the milliseconds of 29 February 2012 11:45:05.123: + * const result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 123 + */ +export declare function getMilliseconds( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getMinutes.d.mts b/node_modules/date-fns/getMinutes.d.mts index 79cb5f18..292de36e 100644 --- a/node_modules/date-fns/getMinutes.d.mts +++ b/node_modules/date-fns/getMinutes.d.mts @@ -1 +1,22 @@ -export type * from "./getMinutes.d.ts"; +/** + * @name getMinutes + * @category Minute Helpers + * @summary Get the minutes of the given date. + * + * @description + * Get the minutes of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The minutes + * + * @example + * // Get the minutes of 29 February 2012 11:45:05: + * const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5)) + * //=> 45 + */ +export declare function getMinutes( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getMonth.d.mts b/node_modules/date-fns/getMonth.d.mts index fafe869b..57208543 100644 --- a/node_modules/date-fns/getMonth.d.mts +++ b/node_modules/date-fns/getMonth.d.mts @@ -1 +1,22 @@ -export type * from "./getMonth.d.ts"; +/** + * @name getMonth + * @category Month Helpers + * @summary Get the month of the given date. + * + * @description + * Get the month of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The month index (0-11) + * + * @example + * // Which month is 29 February 2012? + * const result = getMonth(new Date(2012, 1, 29)) + * //=> 1 + */ +export declare function getMonth( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getMonth.d.ts b/node_modules/date-fns/getMonth.d.ts index bca40cfc..57208543 100644 --- a/node_modules/date-fns/getMonth.d.ts +++ b/node_modules/date-fns/getMonth.d.ts @@ -10,7 +10,7 @@ * * @param date - The given date * - * @returns The month + * @returns The month index (0-11) * * @example * // Which month is 29 February 2012? diff --git a/node_modules/date-fns/getMonth.js b/node_modules/date-fns/getMonth.js index c6a0979d..e49b30c4 100644 --- a/node_modules/date-fns/getMonth.js +++ b/node_modules/date-fns/getMonth.js @@ -14,7 +14,7 @@ var _index = require("./toDate.js"); * * @param date - The given date * - * @returns The month + * @returns The month index (0-11) * * @example * // Which month is 29 February 2012? diff --git a/node_modules/date-fns/getMonth.mjs b/node_modules/date-fns/getMonth.mjs index 5d31c3b0..7391e98b 100644 --- a/node_modules/date-fns/getMonth.mjs +++ b/node_modules/date-fns/getMonth.mjs @@ -12,7 +12,7 @@ import { toDate } from "./toDate.mjs"; * * @param date - The given date * - * @returns The month + * @returns The month index (0-11) * * @example * // Which month is 29 February 2012? diff --git a/node_modules/date-fns/getOverlappingDaysInIntervals.d.mts b/node_modules/date-fns/getOverlappingDaysInIntervals.d.mts index 9ddf3db3..e60e70f7 100644 --- a/node_modules/date-fns/getOverlappingDaysInIntervals.d.mts +++ b/node_modules/date-fns/getOverlappingDaysInIntervals.d.mts @@ -1 +1,41 @@ -export type * from "./getOverlappingDaysInIntervals.d.ts"; +import type { Interval } from "./types.js"; +/** + * @name getOverlappingDaysInIntervals + * @category Interval Helpers + * @summary Get the number of days that overlap in two time intervals + * + * @description + * Get the number of days that overlap in two time intervals. It uses the time + * between dates to calculate the number of days, rounding it up to include + * partial days. + * + * Two equal 0-length intervals will result in 0. Two equal 1ms intervals will + * result in 1. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param intervalLeft - The first interval to compare. + * @param intervalRight - The second interval to compare. + * + * @returns The number of days that overlap in two time intervals + * + * @example + * // For overlapping time intervals adds 1 for each started overlapping day: + * getOverlappingDaysInIntervals( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + * ) + * //=> 3 + * + * @example + * // For non-overlapping time intervals returns 0: + * getOverlappingDaysInIntervals( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } + * ) + * //=> 0 + */ +export declare function getOverlappingDaysInIntervals( + intervalLeft: Interval, + intervalRight: Interval, +): number; diff --git a/node_modules/date-fns/getOverlappingDaysInIntervals.d.ts b/node_modules/date-fns/getOverlappingDaysInIntervals.d.ts index 2872958e..e60e70f7 100644 --- a/node_modules/date-fns/getOverlappingDaysInIntervals.d.ts +++ b/node_modules/date-fns/getOverlappingDaysInIntervals.d.ts @@ -5,7 +5,12 @@ import type { Interval } from "./types.js"; * @summary Get the number of days that overlap in two time intervals * * @description - * Get the number of days that overlap in two time intervals + * Get the number of days that overlap in two time intervals. It uses the time + * between dates to calculate the number of days, rounding it up to include + * partial days. + * + * Two equal 0-length intervals will result in 0. Two equal 1ms intervals will + * result in 1. * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * diff --git a/node_modules/date-fns/getOverlappingDaysInIntervals.js b/node_modules/date-fns/getOverlappingDaysInIntervals.js index 9a9e2868..79d782f3 100644 --- a/node_modules/date-fns/getOverlappingDaysInIntervals.js +++ b/node_modules/date-fns/getOverlappingDaysInIntervals.js @@ -1,7 +1,8 @@ "use strict"; exports.getOverlappingDaysInIntervals = getOverlappingDaysInIntervals; -var _index = require("./constants.js"); -var _index2 = require("./toDate.js"); +var _index = require("./_lib/getTimezoneOffsetInMilliseconds.js"); +var _index2 = require("./constants.js"); +var _index3 = require("./toDate.js"); /** * @name getOverlappingDaysInIntervals @@ -9,7 +10,12 @@ var _index2 = require("./toDate.js"); * @summary Get the number of days that overlap in two time intervals * * @description - * Get the number of days that overlap in two time intervals + * Get the number of days that overlap in two time intervals. It uses the time + * between dates to calculate the number of days, rounding it up to include + * partial days. + * + * Two equal 0-length intervals will result in 0. Two equal 1ms intervals will + * result in 1. * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * @@ -36,29 +42,27 @@ var _index2 = require("./toDate.js"); */ function getOverlappingDaysInIntervals(intervalLeft, intervalRight) { - const [leftStartTime, leftEndTime] = [ - +(0, _index2.toDate)(intervalLeft.start), - +(0, _index2.toDate)(intervalLeft.end), - ].sort(); - const [rightStartTime, rightEndTime] = [ - +(0, _index2.toDate)(intervalRight.start), - +(0, _index2.toDate)(intervalRight.end), - ].sort(); + const [leftStart, leftEnd] = [ + +(0, _index3.toDate)(intervalLeft.start), + +(0, _index3.toDate)(intervalLeft.end), + ].sort((a, b) => a - b); + const [rightStart, rightEnd] = [ + +(0, _index3.toDate)(intervalRight.start), + +(0, _index3.toDate)(intervalRight.end), + ].sort((a, b) => a - b); - const isOverlapping = - leftStartTime < rightEndTime && rightStartTime < leftEndTime; + // Prevent NaN result if intervals don't overlap at all. + const isOverlapping = leftStart < rightEnd && rightStart < leftEnd; + if (!isOverlapping) return 0; - if (!isOverlapping) { - return 0; - } + // Remove the timezone offset to negate the DST effect on calculations. + const overlapLeft = rightStart < leftStart ? leftStart : rightStart; + const left = + overlapLeft - (0, _index.getTimezoneOffsetInMilliseconds)(overlapLeft); + const overlapRight = rightEnd > leftEnd ? leftEnd : rightEnd; + const right = + overlapRight - (0, _index.getTimezoneOffsetInMilliseconds)(overlapRight); - const overlapStartDate = - rightStartTime < leftStartTime ? leftStartTime : rightStartTime; - - const overlapEndDate = - rightEndTime > leftEndTime ? leftEndTime : rightEndTime; - - const differenceInMs = overlapEndDate - overlapStartDate; - - return Math.ceil(differenceInMs / _index.millisecondsInDay); + // Ceil the number to include partial days too. + return Math.ceil((right - left) / _index2.millisecondsInDay); } diff --git a/node_modules/date-fns/getOverlappingDaysInIntervals.mjs b/node_modules/date-fns/getOverlappingDaysInIntervals.mjs index c298ad36..d074cb2b 100644 --- a/node_modules/date-fns/getOverlappingDaysInIntervals.mjs +++ b/node_modules/date-fns/getOverlappingDaysInIntervals.mjs @@ -1,3 +1,4 @@ +import { getTimezoneOffsetInMilliseconds } from "./_lib/getTimezoneOffsetInMilliseconds.mjs"; import { millisecondsInDay } from "./constants.mjs"; import { toDate } from "./toDate.mjs"; @@ -7,7 +8,12 @@ import { toDate } from "./toDate.mjs"; * @summary Get the number of days that overlap in two time intervals * * @description - * Get the number of days that overlap in two time intervals + * Get the number of days that overlap in two time intervals. It uses the time + * between dates to calculate the number of days, rounding it up to include + * partial days. + * + * Two equal 0-length intervals will result in 0. Two equal 1ms intervals will + * result in 1. * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * @@ -34,31 +40,27 @@ import { toDate } from "./toDate.mjs"; */ export function getOverlappingDaysInIntervals(intervalLeft, intervalRight) { - const [leftStartTime, leftEndTime] = [ + const [leftStart, leftEnd] = [ +toDate(intervalLeft.start), +toDate(intervalLeft.end), - ].sort(); - const [rightStartTime, rightEndTime] = [ + ].sort((a, b) => a - b); + const [rightStart, rightEnd] = [ +toDate(intervalRight.start), +toDate(intervalRight.end), - ].sort(); + ].sort((a, b) => a - b); - const isOverlapping = - leftStartTime < rightEndTime && rightStartTime < leftEndTime; + // Prevent NaN result if intervals don't overlap at all. + const isOverlapping = leftStart < rightEnd && rightStart < leftEnd; + if (!isOverlapping) return 0; - if (!isOverlapping) { - return 0; - } + // Remove the timezone offset to negate the DST effect on calculations. + const overlapLeft = rightStart < leftStart ? leftStart : rightStart; + const left = overlapLeft - getTimezoneOffsetInMilliseconds(overlapLeft); + const overlapRight = rightEnd > leftEnd ? leftEnd : rightEnd; + const right = overlapRight - getTimezoneOffsetInMilliseconds(overlapRight); - const overlapStartDate = - rightStartTime < leftStartTime ? leftStartTime : rightStartTime; - - const overlapEndDate = - rightEndTime > leftEndTime ? leftEndTime : rightEndTime; - - const differenceInMs = overlapEndDate - overlapStartDate; - - return Math.ceil(differenceInMs / millisecondsInDay); + // Ceil the number to include partial days too. + return Math.ceil((right - left) / millisecondsInDay); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/getQuarter.d.mts b/node_modules/date-fns/getQuarter.d.mts index 0d49a974..36455dcb 100644 --- a/node_modules/date-fns/getQuarter.d.mts +++ b/node_modules/date-fns/getQuarter.d.mts @@ -1 +1,22 @@ -export type * from "./getQuarter.d.ts"; +/** + * @name getQuarter + * @category Quarter Helpers + * @summary Get the year quarter of the given date. + * + * @description + * Get the year quarter of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The quarter + * + * @example + * // Which quarter is 2 July 2014? + * const result = getQuarter(new Date(2014, 6, 2)) + * //=> 3 + */ +export declare function getQuarter( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getQuarter.js b/node_modules/date-fns/getQuarter.js index 43d663d3..58fb2541 100644 --- a/node_modules/date-fns/getQuarter.js +++ b/node_modules/date-fns/getQuarter.js @@ -23,6 +23,6 @@ var _index = require("./toDate.js"); */ function getQuarter(date) { const _date = (0, _index.toDate)(date); - const quarter = Math.floor(_date.getMonth() / 3) + 1; + const quarter = Math.trunc(_date.getMonth() / 3) + 1; return quarter; } diff --git a/node_modules/date-fns/getQuarter.mjs b/node_modules/date-fns/getQuarter.mjs index b8837e60..02d552ac 100644 --- a/node_modules/date-fns/getQuarter.mjs +++ b/node_modules/date-fns/getQuarter.mjs @@ -21,7 +21,7 @@ import { toDate } from "./toDate.mjs"; */ export function getQuarter(date) { const _date = toDate(date); - const quarter = Math.floor(_date.getMonth() / 3) + 1; + const quarter = Math.trunc(_date.getMonth() / 3) + 1; return quarter; } diff --git a/node_modules/date-fns/getSeconds.d.mts b/node_modules/date-fns/getSeconds.d.mts index 576645f6..7882fc3f 100644 --- a/node_modules/date-fns/getSeconds.d.mts +++ b/node_modules/date-fns/getSeconds.d.mts @@ -1 +1,22 @@ -export type * from "./getSeconds.d.ts"; +/** + * @name getSeconds + * @category Second Helpers + * @summary Get the seconds of the given date. + * + * @description + * Get the seconds of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The seconds + * + * @example + * // Get the seconds of 29 February 2012 11:45:05.123: + * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 5 + */ +export declare function getSeconds( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getTime.d.mts b/node_modules/date-fns/getTime.d.mts index 972a0ad5..09068883 100644 --- a/node_modules/date-fns/getTime.d.mts +++ b/node_modules/date-fns/getTime.d.mts @@ -1 +1,22 @@ -export type * from "./getTime.d.ts"; +/** + * @name getTime + * @category Timestamp Helpers + * @summary Get the milliseconds timestamp of the given date. + * + * @description + * Get the milliseconds timestamp of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The timestamp + * + * @example + * // Get the timestamp of 29 February 2012 11:45:05.123: + * const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 1330515905123 + */ +export declare function getTime( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getUnixTime.d.mts b/node_modules/date-fns/getUnixTime.d.mts index 4b4e7524..8efcf831 100644 --- a/node_modules/date-fns/getUnixTime.d.mts +++ b/node_modules/date-fns/getUnixTime.d.mts @@ -1 +1,22 @@ -export type * from "./getUnixTime.d.ts"; +/** + * @name getUnixTime + * @category Timestamp Helpers + * @summary Get the seconds timestamp of the given date. + * + * @description + * Get the seconds timestamp of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The timestamp + * + * @example + * // Get the timestamp of 29 February 2012 11:45:05 CET: + * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5)) + * //=> 1330512305 + */ +export declare function getUnixTime( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/getUnixTime.js b/node_modules/date-fns/getUnixTime.js index a3a958bb..2a5614ed 100644 --- a/node_modules/date-fns/getUnixTime.js +++ b/node_modules/date-fns/getUnixTime.js @@ -1,6 +1,6 @@ "use strict"; exports.getUnixTime = getUnixTime; -var _index = require("./getTime.js"); +var _index = require("./toDate.js"); /** * @name getUnixTime @@ -22,5 +22,5 @@ var _index = require("./getTime.js"); * //=> 1330512305 */ function getUnixTime(date) { - return Math.floor((0, _index.getTime)(date) / 1000); + return Math.trunc(+(0, _index.toDate)(date) / 1000); } diff --git a/node_modules/date-fns/getUnixTime.mjs b/node_modules/date-fns/getUnixTime.mjs index 9d12ce45..c1ba3a8a 100644 --- a/node_modules/date-fns/getUnixTime.mjs +++ b/node_modules/date-fns/getUnixTime.mjs @@ -1,4 +1,4 @@ -import { getTime } from "./getTime.mjs"; +import { toDate } from "./toDate.mjs"; /** * @name getUnixTime @@ -20,7 +20,7 @@ import { getTime } from "./getTime.mjs"; * //=> 1330512305 */ export function getUnixTime(date) { - return Math.floor(getTime(date) / 1000); + return Math.trunc(+toDate(date) / 1000); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/getWeek.d.mts b/node_modules/date-fns/getWeek.d.mts index f93dd511..006b78dd 100644 --- a/node_modules/date-fns/getWeek.d.mts +++ b/node_modules/date-fns/getWeek.d.mts @@ -1 +1,52 @@ -export type * from "./getWeek.d.ts"; +import type { + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "./types.js"; +/** + * The {@link getWeek} function options. + */ +export interface GetWeekOptions + extends LocalizedOptions<"options">, + WeekOptions, + FirstWeekContainsDateOptions {} +/** + * @name getWeek + * @category Week Helpers + * @summary Get the local week index of the given date. + * + * @description + * Get the local week index of the given date. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * @param options - An object with options + * + * @returns The week + * + * @example + * // Which week of the local week numbering year is 2 January 2005 with default options? + * const result = getWeek(new Date(2005, 0, 2)) + * //=> 2 + * + * @example + * // Which week of the local week numbering year is 2 January 2005, + * // if Monday is the first day of the week, + * // and the first week of the year always contains 4 January? + * const result = getWeek(new Date(2005, 0, 2), { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> 53 + */ +export declare function getWeek( + date: DateType | number | string, + options?: GetWeekOptions, +): number; diff --git a/node_modules/date-fns/getWeek.d.ts b/node_modules/date-fns/getWeek.d.ts index 327fbfd8..006b78dd 100644 --- a/node_modules/date-fns/getWeek.d.ts +++ b/node_modules/date-fns/getWeek.d.ts @@ -22,7 +22,7 @@ export interface GetWeekOptions * and `options.firstWeekContainsDate` (which is the day of January, which is always in * the first week of the week-numbering year) * - * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * diff --git a/node_modules/date-fns/getWeek.js b/node_modules/date-fns/getWeek.js index ec62dfec..1851f4ce 100644 --- a/node_modules/date-fns/getWeek.js +++ b/node_modules/date-fns/getWeek.js @@ -21,7 +21,7 @@ var _index4 = require("./toDate.js"); * and `options.firstWeekContainsDate` (which is the day of January, which is always in * the first week of the week-numbering year) * - * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * @@ -49,11 +49,11 @@ var _index4 = require("./toDate.js"); function getWeek(date, options) { const _date = (0, _index4.toDate)(date); const diff = - (0, _index2.startOfWeek)(_date, options).getTime() - - (0, _index3.startOfWeekYear)(_date, options).getTime(); + +(0, _index2.startOfWeek)(_date, options) - + +(0, _index3.startOfWeekYear)(_date, options); - // Round the number of days to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). return Math.round(diff / _index.millisecondsInWeek) + 1; } diff --git a/node_modules/date-fns/getWeek.mjs b/node_modules/date-fns/getWeek.mjs index 9265646f..b394853f 100644 --- a/node_modules/date-fns/getWeek.mjs +++ b/node_modules/date-fns/getWeek.mjs @@ -19,7 +19,7 @@ import { toDate } from "./toDate.mjs"; * and `options.firstWeekContainsDate` (which is the day of January, which is always in * the first week of the week-numbering year) * - * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * @@ -46,13 +46,11 @@ import { toDate } from "./toDate.mjs"; export function getWeek(date, options) { const _date = toDate(date); - const diff = - startOfWeek(_date, options).getTime() - - startOfWeekYear(_date, options).getTime(); + const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options); - // Round the number of days to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). return Math.round(diff / millisecondsInWeek) + 1; } diff --git a/node_modules/date-fns/getWeekOfMonth.d.mts b/node_modules/date-fns/getWeekOfMonth.d.mts index 41901726..14886905 100644 --- a/node_modules/date-fns/getWeekOfMonth.d.mts +++ b/node_modules/date-fns/getWeekOfMonth.d.mts @@ -1 +1,31 @@ -export type * from "./getWeekOfMonth.d.ts"; +import type { LocalizedOptions, WeekOptions } from "./types.js"; +/** + * The {@link getWeekOfMonth} function options. + */ +export interface GetWeekOfMonthOptions + extends LocalizedOptions<"options">, + WeekOptions {} +/** + * @name getWeekOfMonth + * @category Week Helpers + * @summary Get the week of the month of the given date. + * + * @description + * Get the week of the month of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The week of month + * + * @example + * // Which week of the month is 9 November 2017? + * const result = getWeekOfMonth(new Date(2017, 10, 9)) + * //=> 2 + */ +export declare function getWeekOfMonth( + date: DateType | number | string, + options?: GetWeekOfMonthOptions, +): number; diff --git a/node_modules/date-fns/getWeekYear.d.mts b/node_modules/date-fns/getWeekYear.d.mts index 8bab7692..b02f171a 100644 --- a/node_modules/date-fns/getWeekYear.d.mts +++ b/node_modules/date-fns/getWeekYear.d.mts @@ -1 +1,52 @@ -export type * from "./getWeekYear.d.ts"; +import type { + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "./types.js"; +/** + * The {@link getWeekYear} function options. + */ +export interface GetWeekYearOptions + extends LocalizedOptions<"options">, + WeekOptions, + FirstWeekContainsDateOptions {} +/** + * @name getWeekYear + * @category Week-Numbering Year Helpers + * @summary Get the local week-numbering year of the given date. + * + * @description + * Get the local week-numbering year of the given date. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The local week-numbering year + * + * @example + * // Which week numbering year is 26 December 2004 with the default settings? + * const result = getWeekYear(new Date(2004, 11, 26)) + * //=> 2005 + * + * @example + * // Which week numbering year is 26 December 2004 if week starts on Saturday? + * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 }) + * //=> 2004 + * + * @example + * // Which week numbering year is 26 December 2004 if the first week contains 4 January? + * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 }) + * //=> 2004 + */ +export declare function getWeekYear( + date: DateType | number | string, + options?: GetWeekYearOptions, +): number; diff --git a/node_modules/date-fns/getWeekYear.d.ts b/node_modules/date-fns/getWeekYear.d.ts index ce702376..b02f171a 100644 --- a/node_modules/date-fns/getWeekYear.d.ts +++ b/node_modules/date-fns/getWeekYear.d.ts @@ -22,7 +22,7 @@ export interface GetWeekYearOptions * and `options.firstWeekContainsDate` (which is the day of January, which is always in * the first week of the week-numbering year) * - * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * diff --git a/node_modules/date-fns/getWeekYear.js b/node_modules/date-fns/getWeekYear.js index b1ebbb8d..69d9755a 100644 --- a/node_modules/date-fns/getWeekYear.js +++ b/node_modules/date-fns/getWeekYear.js @@ -22,7 +22,7 @@ var _index4 = require("./_lib/defaultOptions.js"); * and `options.firstWeekContainsDate` (which is the day of January, which is always in * the first week of the week-numbering year) * - * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * diff --git a/node_modules/date-fns/getWeekYear.mjs b/node_modules/date-fns/getWeekYear.mjs index bf8f9866..852b4ae1 100644 --- a/node_modules/date-fns/getWeekYear.mjs +++ b/node_modules/date-fns/getWeekYear.mjs @@ -19,7 +19,7 @@ import { getDefaultOptions } from "./_lib/defaultOptions.mjs"; * and `options.firstWeekContainsDate` (which is the day of January, which is always in * the first week of the week-numbering year) * - * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * diff --git a/node_modules/date-fns/getWeeksInMonth.d.mts b/node_modules/date-fns/getWeeksInMonth.d.mts index 0ba34aea..53dd773f 100644 --- a/node_modules/date-fns/getWeeksInMonth.d.mts +++ b/node_modules/date-fns/getWeeksInMonth.d.mts @@ -1 +1,37 @@ -export type * from "./getWeeksInMonth.d.ts"; +import type { LocalizedOptions, WeekOptions } from "./types.js"; +/** + * The {@link getWeeksInMonth} function options. + */ +export interface GetWeeksInMonthOptions + extends LocalizedOptions<"options">, + WeekOptions {} +/** + * @name getWeeksInMonth + * @category Week Helpers + * @summary Get the number of calendar weeks a month spans. + * + * @description + * Get the number of calendar weeks the month in the given date spans. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The number of calendar weeks + * + * @example + * // How many calendar weeks does February 2015 span? + * const result = getWeeksInMonth(new Date(2015, 1, 8)) + * //=> 4 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks does July 2017 span? + * const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 }) + * //=> 6 + */ +export declare function getWeeksInMonth( + date: DateType | number | string, + options?: GetWeeksInMonthOptions, +): number; diff --git a/node_modules/date-fns/getYear.d.mts b/node_modules/date-fns/getYear.d.mts index cde58cba..2e580f44 100644 --- a/node_modules/date-fns/getYear.d.mts +++ b/node_modules/date-fns/getYear.d.mts @@ -1 +1,22 @@ -export type * from "./getYear.d.ts"; +/** + * @name getYear + * @category Year Helpers + * @summary Get the year of the given date. + * + * @description + * Get the year of the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The given date + * + * @returns The year + * + * @example + * // Which year is 2 July 2014? + * const result = getYear(new Date(2014, 6, 2)) + * //=> 2014 + */ +export declare function getYear( + date: DateType | number | string, +): number; diff --git a/node_modules/date-fns/hoursToMilliseconds.d.mts b/node_modules/date-fns/hoursToMilliseconds.d.mts index bc9bc060..d4b0623d 100644 --- a/node_modules/date-fns/hoursToMilliseconds.d.mts +++ b/node_modules/date-fns/hoursToMilliseconds.d.mts @@ -1 +1,20 @@ -export type * from "./hoursToMilliseconds.d.ts"; +/** + * @name hoursToMilliseconds + * @category Conversion Helpers + * @summary Convert hours to milliseconds. + * + * @description + * Convert a number of hours to a full number of milliseconds. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param hours - number of hours to be converted + * + * @returns The number of hours converted to milliseconds + * + * @example + * // Convert 2 hours to milliseconds: + * const result = hoursToMilliseconds(2) + * //=> 7200000 + */ +export declare function hoursToMilliseconds(hours: number): number; diff --git a/node_modules/date-fns/hoursToMilliseconds.js b/node_modules/date-fns/hoursToMilliseconds.js index d4e0ae5e..c0e9b9f4 100644 --- a/node_modules/date-fns/hoursToMilliseconds.js +++ b/node_modules/date-fns/hoursToMilliseconds.js @@ -22,5 +22,5 @@ var _index = require("./constants.js"); * //=> 7200000 */ function hoursToMilliseconds(hours) { - return Math.floor(hours * _index.millisecondsInHour); + return Math.trunc(hours * _index.millisecondsInHour); } diff --git a/node_modules/date-fns/hoursToMilliseconds.mjs b/node_modules/date-fns/hoursToMilliseconds.mjs index fd7f2712..dbbfaa81 100644 --- a/node_modules/date-fns/hoursToMilliseconds.mjs +++ b/node_modules/date-fns/hoursToMilliseconds.mjs @@ -20,7 +20,7 @@ import { millisecondsInHour } from "./constants.mjs"; * //=> 7200000 */ export function hoursToMilliseconds(hours) { - return Math.floor(hours * millisecondsInHour); + return Math.trunc(hours * millisecondsInHour); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/hoursToMinutes.d.mts b/node_modules/date-fns/hoursToMinutes.d.mts index 9e1341a3..eebee099 100644 --- a/node_modules/date-fns/hoursToMinutes.d.mts +++ b/node_modules/date-fns/hoursToMinutes.d.mts @@ -1 +1,20 @@ -export type * from "./hoursToMinutes.d.ts"; +/** + * @name hoursToMinutes + * @category Conversion Helpers + * @summary Convert hours to minutes. + * + * @description + * Convert a number of hours to a full number of minutes. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param hours - number of hours to be converted + * + * @returns The number of hours converted in minutes + * + * @example + * // Convert 2 hours to minutes: + * const result = hoursToMinutes(2) + * //=> 120 + */ +export declare function hoursToMinutes(hours: number): number; diff --git a/node_modules/date-fns/hoursToMinutes.js b/node_modules/date-fns/hoursToMinutes.js index 63d6775d..e1fd6293 100644 --- a/node_modules/date-fns/hoursToMinutes.js +++ b/node_modules/date-fns/hoursToMinutes.js @@ -22,5 +22,5 @@ var _index = require("./constants.js"); * //=> 120 */ function hoursToMinutes(hours) { - return Math.floor(hours * _index.minutesInHour); + return Math.trunc(hours * _index.minutesInHour); } diff --git a/node_modules/date-fns/hoursToMinutes.mjs b/node_modules/date-fns/hoursToMinutes.mjs index 03aecb46..6b372d17 100644 --- a/node_modules/date-fns/hoursToMinutes.mjs +++ b/node_modules/date-fns/hoursToMinutes.mjs @@ -20,7 +20,7 @@ import { minutesInHour } from "./constants.mjs"; * //=> 120 */ export function hoursToMinutes(hours) { - return Math.floor(hours * minutesInHour); + return Math.trunc(hours * minutesInHour); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/hoursToSeconds.d.mts b/node_modules/date-fns/hoursToSeconds.d.mts index 72228154..72b368d3 100644 --- a/node_modules/date-fns/hoursToSeconds.d.mts +++ b/node_modules/date-fns/hoursToSeconds.d.mts @@ -1 +1,20 @@ -export type * from "./hoursToSeconds.d.ts"; +/** + * @name hoursToSeconds + * @category Conversion Helpers + * @summary Convert hours to seconds. + * + * @description + * Convert a number of hours to a full number of seconds. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param hours - The number of hours to be converted + * + * @returns The number of hours converted in seconds + * + * @example + * // Convert 2 hours to seconds: + * const result = hoursToSeconds(2) + * //=> 7200 + */ +export declare function hoursToSeconds(hours: number): number; diff --git a/node_modules/date-fns/hoursToSeconds.js b/node_modules/date-fns/hoursToSeconds.js index 74f33288..984cbee2 100644 --- a/node_modules/date-fns/hoursToSeconds.js +++ b/node_modules/date-fns/hoursToSeconds.js @@ -22,5 +22,5 @@ var _index = require("./constants.js"); * //=> 7200 */ function hoursToSeconds(hours) { - return Math.floor(hours * _index.secondsInHour); + return Math.trunc(hours * _index.secondsInHour); } diff --git a/node_modules/date-fns/hoursToSeconds.mjs b/node_modules/date-fns/hoursToSeconds.mjs index da8e8178..c55a6e1c 100644 --- a/node_modules/date-fns/hoursToSeconds.mjs +++ b/node_modules/date-fns/hoursToSeconds.mjs @@ -20,7 +20,7 @@ import { secondsInHour } from "./constants.mjs"; * //=> 7200 */ export function hoursToSeconds(hours) { - return Math.floor(hours * secondsInHour); + return Math.trunc(hours * secondsInHour); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/index.d.mts b/node_modules/date-fns/index.d.mts index 2cd15457..a6750463 100644 --- a/node_modules/date-fns/index.d.mts +++ b/node_modules/date-fns/index.d.mts @@ -1 +1,246 @@ -export type * from "./index.d.ts"; +export * from "./add.js"; +export * from "./addBusinessDays.js"; +export * from "./addDays.js"; +export * from "./addHours.js"; +export * from "./addISOWeekYears.js"; +export * from "./addMilliseconds.js"; +export * from "./addMinutes.js"; +export * from "./addMonths.js"; +export * from "./addQuarters.js"; +export * from "./addSeconds.js"; +export * from "./addWeeks.js"; +export * from "./addYears.js"; +export * from "./areIntervalsOverlapping.js"; +export * from "./clamp.js"; +export * from "./closestIndexTo.js"; +export * from "./closestTo.js"; +export * from "./compareAsc.js"; +export * from "./compareDesc.js"; +export * from "./constructFrom.js"; +export * from "./constructNow.js"; +export * from "./daysToWeeks.js"; +export * from "./differenceInBusinessDays.js"; +export * from "./differenceInCalendarDays.js"; +export * from "./differenceInCalendarISOWeekYears.js"; +export * from "./differenceInCalendarISOWeeks.js"; +export * from "./differenceInCalendarMonths.js"; +export * from "./differenceInCalendarQuarters.js"; +export * from "./differenceInCalendarWeeks.js"; +export * from "./differenceInCalendarYears.js"; +export * from "./differenceInDays.js"; +export * from "./differenceInHours.js"; +export * from "./differenceInISOWeekYears.js"; +export * from "./differenceInMilliseconds.js"; +export * from "./differenceInMinutes.js"; +export * from "./differenceInMonths.js"; +export * from "./differenceInQuarters.js"; +export * from "./differenceInSeconds.js"; +export * from "./differenceInWeeks.js"; +export * from "./differenceInYears.js"; +export * from "./eachDayOfInterval.js"; +export * from "./eachHourOfInterval.js"; +export * from "./eachMinuteOfInterval.js"; +export * from "./eachMonthOfInterval.js"; +export * from "./eachQuarterOfInterval.js"; +export * from "./eachWeekOfInterval.js"; +export * from "./eachWeekendOfInterval.js"; +export * from "./eachWeekendOfMonth.js"; +export * from "./eachWeekendOfYear.js"; +export * from "./eachYearOfInterval.js"; +export * from "./endOfDay.js"; +export * from "./endOfDecade.js"; +export * from "./endOfHour.js"; +export * from "./endOfISOWeek.js"; +export * from "./endOfISOWeekYear.js"; +export * from "./endOfMinute.js"; +export * from "./endOfMonth.js"; +export * from "./endOfQuarter.js"; +export * from "./endOfSecond.js"; +export * from "./endOfToday.js"; +export * from "./endOfTomorrow.js"; +export * from "./endOfWeek.js"; +export * from "./endOfYear.js"; +export * from "./endOfYesterday.js"; +export * from "./format.js"; +export * from "./formatDistance.js"; +export * from "./formatDistanceStrict.js"; +export * from "./formatDistanceToNow.js"; +export * from "./formatDistanceToNowStrict.js"; +export * from "./formatDuration.js"; +export * from "./formatISO.js"; +export * from "./formatISO9075.js"; +export * from "./formatISODuration.js"; +export * from "./formatRFC3339.js"; +export * from "./formatRFC7231.js"; +export * from "./formatRelative.js"; +export * from "./fromUnixTime.js"; +export * from "./getDate.js"; +export * from "./getDay.js"; +export * from "./getDayOfYear.js"; +export * from "./getDaysInMonth.js"; +export * from "./getDaysInYear.js"; +export * from "./getDecade.js"; +export * from "./getDefaultOptions.js"; +export * from "./getHours.js"; +export * from "./getISODay.js"; +export * from "./getISOWeek.js"; +export * from "./getISOWeekYear.js"; +export * from "./getISOWeeksInYear.js"; +export * from "./getMilliseconds.js"; +export * from "./getMinutes.js"; +export * from "./getMonth.js"; +export * from "./getOverlappingDaysInIntervals.js"; +export * from "./getQuarter.js"; +export * from "./getSeconds.js"; +export * from "./getTime.js"; +export * from "./getUnixTime.js"; +export * from "./getWeek.js"; +export * from "./getWeekOfMonth.js"; +export * from "./getWeekYear.js"; +export * from "./getWeeksInMonth.js"; +export * from "./getYear.js"; +export * from "./hoursToMilliseconds.js"; +export * from "./hoursToMinutes.js"; +export * from "./hoursToSeconds.js"; +export * from "./interval.js"; +export * from "./intervalToDuration.js"; +export * from "./intlFormat.js"; +export * from "./intlFormatDistance.js"; +export * from "./isAfter.js"; +export * from "./isBefore.js"; +export * from "./isDate.js"; +export * from "./isEqual.js"; +export * from "./isExists.js"; +export * from "./isFirstDayOfMonth.js"; +export * from "./isFriday.js"; +export * from "./isFuture.js"; +export * from "./isLastDayOfMonth.js"; +export * from "./isLeapYear.js"; +export * from "./isMatch.js"; +export * from "./isMonday.js"; +export * from "./isPast.js"; +export * from "./isSameDay.js"; +export * from "./isSameHour.js"; +export * from "./isSameISOWeek.js"; +export * from "./isSameISOWeekYear.js"; +export * from "./isSameMinute.js"; +export * from "./isSameMonth.js"; +export * from "./isSameQuarter.js"; +export * from "./isSameSecond.js"; +export * from "./isSameWeek.js"; +export * from "./isSameYear.js"; +export * from "./isSaturday.js"; +export * from "./isSunday.js"; +export * from "./isThisHour.js"; +export * from "./isThisISOWeek.js"; +export * from "./isThisMinute.js"; +export * from "./isThisMonth.js"; +export * from "./isThisQuarter.js"; +export * from "./isThisSecond.js"; +export * from "./isThisWeek.js"; +export * from "./isThisYear.js"; +export * from "./isThursday.js"; +export * from "./isToday.js"; +export * from "./isTomorrow.js"; +export * from "./isTuesday.js"; +export * from "./isValid.js"; +export * from "./isWednesday.js"; +export * from "./isWeekend.js"; +export * from "./isWithinInterval.js"; +export * from "./isYesterday.js"; +export * from "./lastDayOfDecade.js"; +export * from "./lastDayOfISOWeek.js"; +export * from "./lastDayOfISOWeekYear.js"; +export * from "./lastDayOfMonth.js"; +export * from "./lastDayOfQuarter.js"; +export * from "./lastDayOfWeek.js"; +export * from "./lastDayOfYear.js"; +export * from "./lightFormat.js"; +export * from "./max.js"; +export * from "./milliseconds.js"; +export * from "./millisecondsToHours.js"; +export * from "./millisecondsToMinutes.js"; +export * from "./millisecondsToSeconds.js"; +export * from "./min.js"; +export * from "./minutesToHours.js"; +export * from "./minutesToMilliseconds.js"; +export * from "./minutesToSeconds.js"; +export * from "./monthsToQuarters.js"; +export * from "./monthsToYears.js"; +export * from "./nextDay.js"; +export * from "./nextFriday.js"; +export * from "./nextMonday.js"; +export * from "./nextSaturday.js"; +export * from "./nextSunday.js"; +export * from "./nextThursday.js"; +export * from "./nextTuesday.js"; +export * from "./nextWednesday.js"; +export * from "./parse.js"; +export * from "./parseISO.js"; +export * from "./parseJSON.js"; +export * from "./previousDay.js"; +export * from "./previousFriday.js"; +export * from "./previousMonday.js"; +export * from "./previousSaturday.js"; +export * from "./previousSunday.js"; +export * from "./previousThursday.js"; +export * from "./previousTuesday.js"; +export * from "./previousWednesday.js"; +export * from "./quartersToMonths.js"; +export * from "./quartersToYears.js"; +export * from "./roundToNearestHours.js"; +export * from "./roundToNearestMinutes.js"; +export * from "./secondsToHours.js"; +export * from "./secondsToMilliseconds.js"; +export * from "./secondsToMinutes.js"; +export * from "./set.js"; +export * from "./setDate.js"; +export * from "./setDay.js"; +export * from "./setDayOfYear.js"; +export * from "./setDefaultOptions.js"; +export * from "./setHours.js"; +export * from "./setISODay.js"; +export * from "./setISOWeek.js"; +export * from "./setISOWeekYear.js"; +export * from "./setMilliseconds.js"; +export * from "./setMinutes.js"; +export * from "./setMonth.js"; +export * from "./setQuarter.js"; +export * from "./setSeconds.js"; +export * from "./setWeek.js"; +export * from "./setWeekYear.js"; +export * from "./setYear.js"; +export * from "./startOfDay.js"; +export * from "./startOfDecade.js"; +export * from "./startOfHour.js"; +export * from "./startOfISOWeek.js"; +export * from "./startOfISOWeekYear.js"; +export * from "./startOfMinute.js"; +export * from "./startOfMonth.js"; +export * from "./startOfQuarter.js"; +export * from "./startOfSecond.js"; +export * from "./startOfToday.js"; +export * from "./startOfTomorrow.js"; +export * from "./startOfWeek.js"; +export * from "./startOfWeekYear.js"; +export * from "./startOfYear.js"; +export * from "./startOfYesterday.js"; +export * from "./sub.js"; +export * from "./subBusinessDays.js"; +export * from "./subDays.js"; +export * from "./subHours.js"; +export * from "./subISOWeekYears.js"; +export * from "./subMilliseconds.js"; +export * from "./subMinutes.js"; +export * from "./subMonths.js"; +export * from "./subQuarters.js"; +export * from "./subSeconds.js"; +export * from "./subWeeks.js"; +export * from "./subYears.js"; +export * from "./toDate.js"; +export * from "./transpose.js"; +export * from "./weeksToDays.js"; +export * from "./yearsToDays.js"; +export * from "./yearsToMonths.js"; +export * from "./yearsToQuarters.js"; +export type * from "./types.js"; diff --git a/node_modules/date-fns/index.d.ts b/node_modules/date-fns/index.d.ts index 2c47c112..a6750463 100644 --- a/node_modules/date-fns/index.d.ts +++ b/node_modules/date-fns/index.d.ts @@ -17,6 +17,7 @@ export * from "./closestTo.js"; export * from "./compareAsc.js"; export * from "./compareDesc.js"; export * from "./constructFrom.js"; +export * from "./constructNow.js"; export * from "./daysToWeeks.js"; export * from "./differenceInBusinessDays.js"; export * from "./differenceInCalendarDays.js"; @@ -187,6 +188,7 @@ export * from "./previousTuesday.js"; export * from "./previousWednesday.js"; export * from "./quartersToMonths.js"; export * from "./quartersToYears.js"; +export * from "./roundToNearestHours.js"; export * from "./roundToNearestMinutes.js"; export * from "./secondsToHours.js"; export * from "./secondsToMilliseconds.js"; @@ -238,6 +240,7 @@ export * from "./subYears.js"; export * from "./toDate.js"; export * from "./transpose.js"; export * from "./weeksToDays.js"; +export * from "./yearsToDays.js"; export * from "./yearsToMonths.js"; export * from "./yearsToQuarters.js"; export type * from "./types.js"; diff --git a/node_modules/date-fns/index.js b/node_modules/date-fns/index.js index 421cfec8..f9dee8b8 100755 --- a/node_modules/date-fns/index.js +++ b/node_modules/date-fns/index.js @@ -209,7 +209,7 @@ Object.keys(_index19).forEach(function (key) { }, }); }); -var _index20 = require("./daysToWeeks.js"); +var _index20 = require("./constructNow.js"); Object.keys(_index20).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index20[key]) return; @@ -220,7 +220,7 @@ Object.keys(_index20).forEach(function (key) { }, }); }); -var _index21 = require("./differenceInBusinessDays.js"); +var _index21 = require("./daysToWeeks.js"); Object.keys(_index21).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index21[key]) return; @@ -231,7 +231,7 @@ Object.keys(_index21).forEach(function (key) { }, }); }); -var _index22 = require("./differenceInCalendarDays.js"); +var _index22 = require("./differenceInBusinessDays.js"); Object.keys(_index22).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index22[key]) return; @@ -242,7 +242,7 @@ Object.keys(_index22).forEach(function (key) { }, }); }); -var _index23 = require("./differenceInCalendarISOWeekYears.js"); +var _index23 = require("./differenceInCalendarDays.js"); Object.keys(_index23).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index23[key]) return; @@ -253,7 +253,7 @@ Object.keys(_index23).forEach(function (key) { }, }); }); -var _index24 = require("./differenceInCalendarISOWeeks.js"); +var _index24 = require("./differenceInCalendarISOWeekYears.js"); Object.keys(_index24).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index24[key]) return; @@ -264,7 +264,7 @@ Object.keys(_index24).forEach(function (key) { }, }); }); -var _index25 = require("./differenceInCalendarMonths.js"); +var _index25 = require("./differenceInCalendarISOWeeks.js"); Object.keys(_index25).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index25[key]) return; @@ -275,7 +275,7 @@ Object.keys(_index25).forEach(function (key) { }, }); }); -var _index26 = require("./differenceInCalendarQuarters.js"); +var _index26 = require("./differenceInCalendarMonths.js"); Object.keys(_index26).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index26[key]) return; @@ -286,7 +286,7 @@ Object.keys(_index26).forEach(function (key) { }, }); }); -var _index27 = require("./differenceInCalendarWeeks.js"); +var _index27 = require("./differenceInCalendarQuarters.js"); Object.keys(_index27).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index27[key]) return; @@ -297,7 +297,7 @@ Object.keys(_index27).forEach(function (key) { }, }); }); -var _index28 = require("./differenceInCalendarYears.js"); +var _index28 = require("./differenceInCalendarWeeks.js"); Object.keys(_index28).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index28[key]) return; @@ -308,7 +308,7 @@ Object.keys(_index28).forEach(function (key) { }, }); }); -var _index29 = require("./differenceInDays.js"); +var _index29 = require("./differenceInCalendarYears.js"); Object.keys(_index29).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index29[key]) return; @@ -319,7 +319,7 @@ Object.keys(_index29).forEach(function (key) { }, }); }); -var _index30 = require("./differenceInHours.js"); +var _index30 = require("./differenceInDays.js"); Object.keys(_index30).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index30[key]) return; @@ -330,7 +330,7 @@ Object.keys(_index30).forEach(function (key) { }, }); }); -var _index31 = require("./differenceInISOWeekYears.js"); +var _index31 = require("./differenceInHours.js"); Object.keys(_index31).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index31[key]) return; @@ -341,7 +341,7 @@ Object.keys(_index31).forEach(function (key) { }, }); }); -var _index32 = require("./differenceInMilliseconds.js"); +var _index32 = require("./differenceInISOWeekYears.js"); Object.keys(_index32).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index32[key]) return; @@ -352,7 +352,7 @@ Object.keys(_index32).forEach(function (key) { }, }); }); -var _index33 = require("./differenceInMinutes.js"); +var _index33 = require("./differenceInMilliseconds.js"); Object.keys(_index33).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index33[key]) return; @@ -363,7 +363,7 @@ Object.keys(_index33).forEach(function (key) { }, }); }); -var _index34 = require("./differenceInMonths.js"); +var _index34 = require("./differenceInMinutes.js"); Object.keys(_index34).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index34[key]) return; @@ -374,7 +374,7 @@ Object.keys(_index34).forEach(function (key) { }, }); }); -var _index35 = require("./differenceInQuarters.js"); +var _index35 = require("./differenceInMonths.js"); Object.keys(_index35).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index35[key]) return; @@ -385,7 +385,7 @@ Object.keys(_index35).forEach(function (key) { }, }); }); -var _index36 = require("./differenceInSeconds.js"); +var _index36 = require("./differenceInQuarters.js"); Object.keys(_index36).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index36[key]) return; @@ -396,7 +396,7 @@ Object.keys(_index36).forEach(function (key) { }, }); }); -var _index37 = require("./differenceInWeeks.js"); +var _index37 = require("./differenceInSeconds.js"); Object.keys(_index37).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index37[key]) return; @@ -407,7 +407,7 @@ Object.keys(_index37).forEach(function (key) { }, }); }); -var _index38 = require("./differenceInYears.js"); +var _index38 = require("./differenceInWeeks.js"); Object.keys(_index38).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index38[key]) return; @@ -418,7 +418,7 @@ Object.keys(_index38).forEach(function (key) { }, }); }); -var _index39 = require("./eachDayOfInterval.js"); +var _index39 = require("./differenceInYears.js"); Object.keys(_index39).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index39[key]) return; @@ -429,7 +429,7 @@ Object.keys(_index39).forEach(function (key) { }, }); }); -var _index40 = require("./eachHourOfInterval.js"); +var _index40 = require("./eachDayOfInterval.js"); Object.keys(_index40).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index40[key]) return; @@ -440,7 +440,7 @@ Object.keys(_index40).forEach(function (key) { }, }); }); -var _index41 = require("./eachMinuteOfInterval.js"); +var _index41 = require("./eachHourOfInterval.js"); Object.keys(_index41).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index41[key]) return; @@ -451,7 +451,7 @@ Object.keys(_index41).forEach(function (key) { }, }); }); -var _index42 = require("./eachMonthOfInterval.js"); +var _index42 = require("./eachMinuteOfInterval.js"); Object.keys(_index42).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index42[key]) return; @@ -462,7 +462,7 @@ Object.keys(_index42).forEach(function (key) { }, }); }); -var _index43 = require("./eachQuarterOfInterval.js"); +var _index43 = require("./eachMonthOfInterval.js"); Object.keys(_index43).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index43[key]) return; @@ -473,7 +473,7 @@ Object.keys(_index43).forEach(function (key) { }, }); }); -var _index44 = require("./eachWeekOfInterval.js"); +var _index44 = require("./eachQuarterOfInterval.js"); Object.keys(_index44).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index44[key]) return; @@ -484,7 +484,7 @@ Object.keys(_index44).forEach(function (key) { }, }); }); -var _index45 = require("./eachWeekendOfInterval.js"); +var _index45 = require("./eachWeekOfInterval.js"); Object.keys(_index45).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index45[key]) return; @@ -495,7 +495,7 @@ Object.keys(_index45).forEach(function (key) { }, }); }); -var _index46 = require("./eachWeekendOfMonth.js"); +var _index46 = require("./eachWeekendOfInterval.js"); Object.keys(_index46).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index46[key]) return; @@ -506,7 +506,7 @@ Object.keys(_index46).forEach(function (key) { }, }); }); -var _index47 = require("./eachWeekendOfYear.js"); +var _index47 = require("./eachWeekendOfMonth.js"); Object.keys(_index47).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index47[key]) return; @@ -517,7 +517,7 @@ Object.keys(_index47).forEach(function (key) { }, }); }); -var _index48 = require("./eachYearOfInterval.js"); +var _index48 = require("./eachWeekendOfYear.js"); Object.keys(_index48).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index48[key]) return; @@ -528,7 +528,7 @@ Object.keys(_index48).forEach(function (key) { }, }); }); -var _index49 = require("./endOfDay.js"); +var _index49 = require("./eachYearOfInterval.js"); Object.keys(_index49).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index49[key]) return; @@ -539,7 +539,7 @@ Object.keys(_index49).forEach(function (key) { }, }); }); -var _index50 = require("./endOfDecade.js"); +var _index50 = require("./endOfDay.js"); Object.keys(_index50).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index50[key]) return; @@ -550,7 +550,7 @@ Object.keys(_index50).forEach(function (key) { }, }); }); -var _index51 = require("./endOfHour.js"); +var _index51 = require("./endOfDecade.js"); Object.keys(_index51).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index51[key]) return; @@ -561,7 +561,7 @@ Object.keys(_index51).forEach(function (key) { }, }); }); -var _index52 = require("./endOfISOWeek.js"); +var _index52 = require("./endOfHour.js"); Object.keys(_index52).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index52[key]) return; @@ -572,7 +572,7 @@ Object.keys(_index52).forEach(function (key) { }, }); }); -var _index53 = require("./endOfISOWeekYear.js"); +var _index53 = require("./endOfISOWeek.js"); Object.keys(_index53).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index53[key]) return; @@ -583,7 +583,7 @@ Object.keys(_index53).forEach(function (key) { }, }); }); -var _index54 = require("./endOfMinute.js"); +var _index54 = require("./endOfISOWeekYear.js"); Object.keys(_index54).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index54[key]) return; @@ -594,7 +594,7 @@ Object.keys(_index54).forEach(function (key) { }, }); }); -var _index55 = require("./endOfMonth.js"); +var _index55 = require("./endOfMinute.js"); Object.keys(_index55).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index55[key]) return; @@ -605,7 +605,7 @@ Object.keys(_index55).forEach(function (key) { }, }); }); -var _index56 = require("./endOfQuarter.js"); +var _index56 = require("./endOfMonth.js"); Object.keys(_index56).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index56[key]) return; @@ -616,7 +616,7 @@ Object.keys(_index56).forEach(function (key) { }, }); }); -var _index57 = require("./endOfSecond.js"); +var _index57 = require("./endOfQuarter.js"); Object.keys(_index57).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index57[key]) return; @@ -627,7 +627,7 @@ Object.keys(_index57).forEach(function (key) { }, }); }); -var _index58 = require("./endOfToday.js"); +var _index58 = require("./endOfSecond.js"); Object.keys(_index58).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index58[key]) return; @@ -638,7 +638,7 @@ Object.keys(_index58).forEach(function (key) { }, }); }); -var _index59 = require("./endOfTomorrow.js"); +var _index59 = require("./endOfToday.js"); Object.keys(_index59).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index59[key]) return; @@ -649,7 +649,7 @@ Object.keys(_index59).forEach(function (key) { }, }); }); -var _index60 = require("./endOfWeek.js"); +var _index60 = require("./endOfTomorrow.js"); Object.keys(_index60).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index60[key]) return; @@ -660,7 +660,7 @@ Object.keys(_index60).forEach(function (key) { }, }); }); -var _index61 = require("./endOfYear.js"); +var _index61 = require("./endOfWeek.js"); Object.keys(_index61).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index61[key]) return; @@ -671,7 +671,7 @@ Object.keys(_index61).forEach(function (key) { }, }); }); -var _index62 = require("./endOfYesterday.js"); +var _index62 = require("./endOfYear.js"); Object.keys(_index62).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index62[key]) return; @@ -682,7 +682,7 @@ Object.keys(_index62).forEach(function (key) { }, }); }); -var _index63 = require("./format.js"); +var _index63 = require("./endOfYesterday.js"); Object.keys(_index63).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index63[key]) return; @@ -693,7 +693,7 @@ Object.keys(_index63).forEach(function (key) { }, }); }); -var _index64 = require("./formatDistance.js"); +var _index64 = require("./format.js"); Object.keys(_index64).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index64[key]) return; @@ -704,7 +704,7 @@ Object.keys(_index64).forEach(function (key) { }, }); }); -var _index65 = require("./formatDistanceStrict.js"); +var _index65 = require("./formatDistance.js"); Object.keys(_index65).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index65[key]) return; @@ -715,7 +715,7 @@ Object.keys(_index65).forEach(function (key) { }, }); }); -var _index66 = require("./formatDistanceToNow.js"); +var _index66 = require("./formatDistanceStrict.js"); Object.keys(_index66).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index66[key]) return; @@ -726,7 +726,7 @@ Object.keys(_index66).forEach(function (key) { }, }); }); -var _index67 = require("./formatDistanceToNowStrict.js"); +var _index67 = require("./formatDistanceToNow.js"); Object.keys(_index67).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index67[key]) return; @@ -737,7 +737,7 @@ Object.keys(_index67).forEach(function (key) { }, }); }); -var _index68 = require("./formatDuration.js"); +var _index68 = require("./formatDistanceToNowStrict.js"); Object.keys(_index68).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index68[key]) return; @@ -748,7 +748,7 @@ Object.keys(_index68).forEach(function (key) { }, }); }); -var _index69 = require("./formatISO.js"); +var _index69 = require("./formatDuration.js"); Object.keys(_index69).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index69[key]) return; @@ -759,7 +759,7 @@ Object.keys(_index69).forEach(function (key) { }, }); }); -var _index70 = require("./formatISO9075.js"); +var _index70 = require("./formatISO.js"); Object.keys(_index70).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index70[key]) return; @@ -770,7 +770,7 @@ Object.keys(_index70).forEach(function (key) { }, }); }); -var _index71 = require("./formatISODuration.js"); +var _index71 = require("./formatISO9075.js"); Object.keys(_index71).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index71[key]) return; @@ -781,7 +781,7 @@ Object.keys(_index71).forEach(function (key) { }, }); }); -var _index72 = require("./formatRFC3339.js"); +var _index72 = require("./formatISODuration.js"); Object.keys(_index72).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index72[key]) return; @@ -792,7 +792,7 @@ Object.keys(_index72).forEach(function (key) { }, }); }); -var _index73 = require("./formatRFC7231.js"); +var _index73 = require("./formatRFC3339.js"); Object.keys(_index73).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index73[key]) return; @@ -803,7 +803,7 @@ Object.keys(_index73).forEach(function (key) { }, }); }); -var _index74 = require("./formatRelative.js"); +var _index74 = require("./formatRFC7231.js"); Object.keys(_index74).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index74[key]) return; @@ -814,7 +814,7 @@ Object.keys(_index74).forEach(function (key) { }, }); }); -var _index75 = require("./fromUnixTime.js"); +var _index75 = require("./formatRelative.js"); Object.keys(_index75).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index75[key]) return; @@ -825,7 +825,7 @@ Object.keys(_index75).forEach(function (key) { }, }); }); -var _index76 = require("./getDate.js"); +var _index76 = require("./fromUnixTime.js"); Object.keys(_index76).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index76[key]) return; @@ -836,7 +836,7 @@ Object.keys(_index76).forEach(function (key) { }, }); }); -var _index77 = require("./getDay.js"); +var _index77 = require("./getDate.js"); Object.keys(_index77).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index77[key]) return; @@ -847,7 +847,7 @@ Object.keys(_index77).forEach(function (key) { }, }); }); -var _index78 = require("./getDayOfYear.js"); +var _index78 = require("./getDay.js"); Object.keys(_index78).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index78[key]) return; @@ -858,7 +858,7 @@ Object.keys(_index78).forEach(function (key) { }, }); }); -var _index79 = require("./getDaysInMonth.js"); +var _index79 = require("./getDayOfYear.js"); Object.keys(_index79).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index79[key]) return; @@ -869,7 +869,7 @@ Object.keys(_index79).forEach(function (key) { }, }); }); -var _index80 = require("./getDaysInYear.js"); +var _index80 = require("./getDaysInMonth.js"); Object.keys(_index80).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index80[key]) return; @@ -880,7 +880,7 @@ Object.keys(_index80).forEach(function (key) { }, }); }); -var _index81 = require("./getDecade.js"); +var _index81 = require("./getDaysInYear.js"); Object.keys(_index81).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index81[key]) return; @@ -891,7 +891,7 @@ Object.keys(_index81).forEach(function (key) { }, }); }); -var _index82 = require("./getDefaultOptions.js"); +var _index82 = require("./getDecade.js"); Object.keys(_index82).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index82[key]) return; @@ -902,7 +902,7 @@ Object.keys(_index82).forEach(function (key) { }, }); }); -var _index83 = require("./getHours.js"); +var _index83 = require("./getDefaultOptions.js"); Object.keys(_index83).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index83[key]) return; @@ -913,7 +913,7 @@ Object.keys(_index83).forEach(function (key) { }, }); }); -var _index84 = require("./getISODay.js"); +var _index84 = require("./getHours.js"); Object.keys(_index84).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index84[key]) return; @@ -924,7 +924,7 @@ Object.keys(_index84).forEach(function (key) { }, }); }); -var _index85 = require("./getISOWeek.js"); +var _index85 = require("./getISODay.js"); Object.keys(_index85).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index85[key]) return; @@ -935,7 +935,7 @@ Object.keys(_index85).forEach(function (key) { }, }); }); -var _index86 = require("./getISOWeekYear.js"); +var _index86 = require("./getISOWeek.js"); Object.keys(_index86).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index86[key]) return; @@ -946,7 +946,7 @@ Object.keys(_index86).forEach(function (key) { }, }); }); -var _index87 = require("./getISOWeeksInYear.js"); +var _index87 = require("./getISOWeekYear.js"); Object.keys(_index87).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index87[key]) return; @@ -957,7 +957,7 @@ Object.keys(_index87).forEach(function (key) { }, }); }); -var _index88 = require("./getMilliseconds.js"); +var _index88 = require("./getISOWeeksInYear.js"); Object.keys(_index88).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index88[key]) return; @@ -968,7 +968,7 @@ Object.keys(_index88).forEach(function (key) { }, }); }); -var _index89 = require("./getMinutes.js"); +var _index89 = require("./getMilliseconds.js"); Object.keys(_index89).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index89[key]) return; @@ -979,7 +979,7 @@ Object.keys(_index89).forEach(function (key) { }, }); }); -var _index90 = require("./getMonth.js"); +var _index90 = require("./getMinutes.js"); Object.keys(_index90).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index90[key]) return; @@ -990,7 +990,7 @@ Object.keys(_index90).forEach(function (key) { }, }); }); -var _index91 = require("./getOverlappingDaysInIntervals.js"); +var _index91 = require("./getMonth.js"); Object.keys(_index91).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index91[key]) return; @@ -1001,7 +1001,7 @@ Object.keys(_index91).forEach(function (key) { }, }); }); -var _index92 = require("./getQuarter.js"); +var _index92 = require("./getOverlappingDaysInIntervals.js"); Object.keys(_index92).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index92[key]) return; @@ -1012,7 +1012,7 @@ Object.keys(_index92).forEach(function (key) { }, }); }); -var _index93 = require("./getSeconds.js"); +var _index93 = require("./getQuarter.js"); Object.keys(_index93).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index93[key]) return; @@ -1023,7 +1023,7 @@ Object.keys(_index93).forEach(function (key) { }, }); }); -var _index94 = require("./getTime.js"); +var _index94 = require("./getSeconds.js"); Object.keys(_index94).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index94[key]) return; @@ -1034,7 +1034,7 @@ Object.keys(_index94).forEach(function (key) { }, }); }); -var _index95 = require("./getUnixTime.js"); +var _index95 = require("./getTime.js"); Object.keys(_index95).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index95[key]) return; @@ -1045,7 +1045,7 @@ Object.keys(_index95).forEach(function (key) { }, }); }); -var _index96 = require("./getWeek.js"); +var _index96 = require("./getUnixTime.js"); Object.keys(_index96).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index96[key]) return; @@ -1056,7 +1056,7 @@ Object.keys(_index96).forEach(function (key) { }, }); }); -var _index97 = require("./getWeekOfMonth.js"); +var _index97 = require("./getWeek.js"); Object.keys(_index97).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index97[key]) return; @@ -1067,7 +1067,7 @@ Object.keys(_index97).forEach(function (key) { }, }); }); -var _index98 = require("./getWeekYear.js"); +var _index98 = require("./getWeekOfMonth.js"); Object.keys(_index98).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index98[key]) return; @@ -1078,7 +1078,7 @@ Object.keys(_index98).forEach(function (key) { }, }); }); -var _index99 = require("./getWeeksInMonth.js"); +var _index99 = require("./getWeekYear.js"); Object.keys(_index99).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index99[key]) return; @@ -1089,7 +1089,7 @@ Object.keys(_index99).forEach(function (key) { }, }); }); -var _index100 = require("./getYear.js"); +var _index100 = require("./getWeeksInMonth.js"); Object.keys(_index100).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index100[key]) return; @@ -1100,7 +1100,7 @@ Object.keys(_index100).forEach(function (key) { }, }); }); -var _index101 = require("./hoursToMilliseconds.js"); +var _index101 = require("./getYear.js"); Object.keys(_index101).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index101[key]) return; @@ -1111,7 +1111,7 @@ Object.keys(_index101).forEach(function (key) { }, }); }); -var _index102 = require("./hoursToMinutes.js"); +var _index102 = require("./hoursToMilliseconds.js"); Object.keys(_index102).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index102[key]) return; @@ -1122,7 +1122,7 @@ Object.keys(_index102).forEach(function (key) { }, }); }); -var _index103 = require("./hoursToSeconds.js"); +var _index103 = require("./hoursToMinutes.js"); Object.keys(_index103).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index103[key]) return; @@ -1133,7 +1133,7 @@ Object.keys(_index103).forEach(function (key) { }, }); }); -var _index104 = require("./interval.js"); +var _index104 = require("./hoursToSeconds.js"); Object.keys(_index104).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index104[key]) return; @@ -1144,7 +1144,7 @@ Object.keys(_index104).forEach(function (key) { }, }); }); -var _index105 = require("./intervalToDuration.js"); +var _index105 = require("./interval.js"); Object.keys(_index105).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index105[key]) return; @@ -1155,7 +1155,7 @@ Object.keys(_index105).forEach(function (key) { }, }); }); -var _index106 = require("./intlFormat.js"); +var _index106 = require("./intervalToDuration.js"); Object.keys(_index106).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index106[key]) return; @@ -1166,7 +1166,7 @@ Object.keys(_index106).forEach(function (key) { }, }); }); -var _index107 = require("./intlFormatDistance.js"); +var _index107 = require("./intlFormat.js"); Object.keys(_index107).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index107[key]) return; @@ -1177,7 +1177,7 @@ Object.keys(_index107).forEach(function (key) { }, }); }); -var _index108 = require("./isAfter.js"); +var _index108 = require("./intlFormatDistance.js"); Object.keys(_index108).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index108[key]) return; @@ -1188,7 +1188,7 @@ Object.keys(_index108).forEach(function (key) { }, }); }); -var _index109 = require("./isBefore.js"); +var _index109 = require("./isAfter.js"); Object.keys(_index109).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index109[key]) return; @@ -1199,7 +1199,7 @@ Object.keys(_index109).forEach(function (key) { }, }); }); -var _index110 = require("./isDate.js"); +var _index110 = require("./isBefore.js"); Object.keys(_index110).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index110[key]) return; @@ -1210,7 +1210,7 @@ Object.keys(_index110).forEach(function (key) { }, }); }); -var _index111 = require("./isEqual.js"); +var _index111 = require("./isDate.js"); Object.keys(_index111).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index111[key]) return; @@ -1221,7 +1221,7 @@ Object.keys(_index111).forEach(function (key) { }, }); }); -var _index112 = require("./isExists.js"); +var _index112 = require("./isEqual.js"); Object.keys(_index112).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index112[key]) return; @@ -1232,7 +1232,7 @@ Object.keys(_index112).forEach(function (key) { }, }); }); -var _index113 = require("./isFirstDayOfMonth.js"); +var _index113 = require("./isExists.js"); Object.keys(_index113).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index113[key]) return; @@ -1243,7 +1243,7 @@ Object.keys(_index113).forEach(function (key) { }, }); }); -var _index114 = require("./isFriday.js"); +var _index114 = require("./isFirstDayOfMonth.js"); Object.keys(_index114).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index114[key]) return; @@ -1254,7 +1254,7 @@ Object.keys(_index114).forEach(function (key) { }, }); }); -var _index115 = require("./isFuture.js"); +var _index115 = require("./isFriday.js"); Object.keys(_index115).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index115[key]) return; @@ -1265,7 +1265,7 @@ Object.keys(_index115).forEach(function (key) { }, }); }); -var _index116 = require("./isLastDayOfMonth.js"); +var _index116 = require("./isFuture.js"); Object.keys(_index116).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index116[key]) return; @@ -1276,7 +1276,7 @@ Object.keys(_index116).forEach(function (key) { }, }); }); -var _index117 = require("./isLeapYear.js"); +var _index117 = require("./isLastDayOfMonth.js"); Object.keys(_index117).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index117[key]) return; @@ -1287,7 +1287,7 @@ Object.keys(_index117).forEach(function (key) { }, }); }); -var _index118 = require("./isMatch.js"); +var _index118 = require("./isLeapYear.js"); Object.keys(_index118).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index118[key]) return; @@ -1298,7 +1298,7 @@ Object.keys(_index118).forEach(function (key) { }, }); }); -var _index119 = require("./isMonday.js"); +var _index119 = require("./isMatch.js"); Object.keys(_index119).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index119[key]) return; @@ -1309,7 +1309,7 @@ Object.keys(_index119).forEach(function (key) { }, }); }); -var _index120 = require("./isPast.js"); +var _index120 = require("./isMonday.js"); Object.keys(_index120).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index120[key]) return; @@ -1320,7 +1320,7 @@ Object.keys(_index120).forEach(function (key) { }, }); }); -var _index121 = require("./isSameDay.js"); +var _index121 = require("./isPast.js"); Object.keys(_index121).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index121[key]) return; @@ -1331,7 +1331,7 @@ Object.keys(_index121).forEach(function (key) { }, }); }); -var _index122 = require("./isSameHour.js"); +var _index122 = require("./isSameDay.js"); Object.keys(_index122).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index122[key]) return; @@ -1342,7 +1342,7 @@ Object.keys(_index122).forEach(function (key) { }, }); }); -var _index123 = require("./isSameISOWeek.js"); +var _index123 = require("./isSameHour.js"); Object.keys(_index123).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index123[key]) return; @@ -1353,7 +1353,7 @@ Object.keys(_index123).forEach(function (key) { }, }); }); -var _index124 = require("./isSameISOWeekYear.js"); +var _index124 = require("./isSameISOWeek.js"); Object.keys(_index124).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index124[key]) return; @@ -1364,7 +1364,7 @@ Object.keys(_index124).forEach(function (key) { }, }); }); -var _index125 = require("./isSameMinute.js"); +var _index125 = require("./isSameISOWeekYear.js"); Object.keys(_index125).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index125[key]) return; @@ -1375,7 +1375,7 @@ Object.keys(_index125).forEach(function (key) { }, }); }); -var _index126 = require("./isSameMonth.js"); +var _index126 = require("./isSameMinute.js"); Object.keys(_index126).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index126[key]) return; @@ -1386,7 +1386,7 @@ Object.keys(_index126).forEach(function (key) { }, }); }); -var _index127 = require("./isSameQuarter.js"); +var _index127 = require("./isSameMonth.js"); Object.keys(_index127).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index127[key]) return; @@ -1397,7 +1397,7 @@ Object.keys(_index127).forEach(function (key) { }, }); }); -var _index128 = require("./isSameSecond.js"); +var _index128 = require("./isSameQuarter.js"); Object.keys(_index128).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index128[key]) return; @@ -1408,7 +1408,7 @@ Object.keys(_index128).forEach(function (key) { }, }); }); -var _index129 = require("./isSameWeek.js"); +var _index129 = require("./isSameSecond.js"); Object.keys(_index129).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index129[key]) return; @@ -1419,7 +1419,7 @@ Object.keys(_index129).forEach(function (key) { }, }); }); -var _index130 = require("./isSameYear.js"); +var _index130 = require("./isSameWeek.js"); Object.keys(_index130).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index130[key]) return; @@ -1430,7 +1430,7 @@ Object.keys(_index130).forEach(function (key) { }, }); }); -var _index131 = require("./isSaturday.js"); +var _index131 = require("./isSameYear.js"); Object.keys(_index131).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index131[key]) return; @@ -1441,7 +1441,7 @@ Object.keys(_index131).forEach(function (key) { }, }); }); -var _index132 = require("./isSunday.js"); +var _index132 = require("./isSaturday.js"); Object.keys(_index132).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index132[key]) return; @@ -1452,7 +1452,7 @@ Object.keys(_index132).forEach(function (key) { }, }); }); -var _index133 = require("./isThisHour.js"); +var _index133 = require("./isSunday.js"); Object.keys(_index133).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index133[key]) return; @@ -1463,7 +1463,7 @@ Object.keys(_index133).forEach(function (key) { }, }); }); -var _index134 = require("./isThisISOWeek.js"); +var _index134 = require("./isThisHour.js"); Object.keys(_index134).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index134[key]) return; @@ -1474,7 +1474,7 @@ Object.keys(_index134).forEach(function (key) { }, }); }); -var _index135 = require("./isThisMinute.js"); +var _index135 = require("./isThisISOWeek.js"); Object.keys(_index135).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index135[key]) return; @@ -1485,7 +1485,7 @@ Object.keys(_index135).forEach(function (key) { }, }); }); -var _index136 = require("./isThisMonth.js"); +var _index136 = require("./isThisMinute.js"); Object.keys(_index136).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index136[key]) return; @@ -1496,7 +1496,7 @@ Object.keys(_index136).forEach(function (key) { }, }); }); -var _index137 = require("./isThisQuarter.js"); +var _index137 = require("./isThisMonth.js"); Object.keys(_index137).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index137[key]) return; @@ -1507,7 +1507,7 @@ Object.keys(_index137).forEach(function (key) { }, }); }); -var _index138 = require("./isThisSecond.js"); +var _index138 = require("./isThisQuarter.js"); Object.keys(_index138).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index138[key]) return; @@ -1518,7 +1518,7 @@ Object.keys(_index138).forEach(function (key) { }, }); }); -var _index139 = require("./isThisWeek.js"); +var _index139 = require("./isThisSecond.js"); Object.keys(_index139).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index139[key]) return; @@ -1529,7 +1529,7 @@ Object.keys(_index139).forEach(function (key) { }, }); }); -var _index140 = require("./isThisYear.js"); +var _index140 = require("./isThisWeek.js"); Object.keys(_index140).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index140[key]) return; @@ -1540,7 +1540,7 @@ Object.keys(_index140).forEach(function (key) { }, }); }); -var _index141 = require("./isThursday.js"); +var _index141 = require("./isThisYear.js"); Object.keys(_index141).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index141[key]) return; @@ -1551,7 +1551,7 @@ Object.keys(_index141).forEach(function (key) { }, }); }); -var _index142 = require("./isToday.js"); +var _index142 = require("./isThursday.js"); Object.keys(_index142).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index142[key]) return; @@ -1562,7 +1562,7 @@ Object.keys(_index142).forEach(function (key) { }, }); }); -var _index143 = require("./isTomorrow.js"); +var _index143 = require("./isToday.js"); Object.keys(_index143).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index143[key]) return; @@ -1573,7 +1573,7 @@ Object.keys(_index143).forEach(function (key) { }, }); }); -var _index144 = require("./isTuesday.js"); +var _index144 = require("./isTomorrow.js"); Object.keys(_index144).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index144[key]) return; @@ -1584,7 +1584,7 @@ Object.keys(_index144).forEach(function (key) { }, }); }); -var _index145 = require("./isValid.js"); +var _index145 = require("./isTuesday.js"); Object.keys(_index145).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index145[key]) return; @@ -1595,7 +1595,7 @@ Object.keys(_index145).forEach(function (key) { }, }); }); -var _index146 = require("./isWednesday.js"); +var _index146 = require("./isValid.js"); Object.keys(_index146).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index146[key]) return; @@ -1606,7 +1606,7 @@ Object.keys(_index146).forEach(function (key) { }, }); }); -var _index147 = require("./isWeekend.js"); +var _index147 = require("./isWednesday.js"); Object.keys(_index147).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index147[key]) return; @@ -1617,7 +1617,7 @@ Object.keys(_index147).forEach(function (key) { }, }); }); -var _index148 = require("./isWithinInterval.js"); +var _index148 = require("./isWeekend.js"); Object.keys(_index148).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index148[key]) return; @@ -1628,7 +1628,7 @@ Object.keys(_index148).forEach(function (key) { }, }); }); -var _index149 = require("./isYesterday.js"); +var _index149 = require("./isWithinInterval.js"); Object.keys(_index149).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index149[key]) return; @@ -1639,7 +1639,7 @@ Object.keys(_index149).forEach(function (key) { }, }); }); -var _index150 = require("./lastDayOfDecade.js"); +var _index150 = require("./isYesterday.js"); Object.keys(_index150).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index150[key]) return; @@ -1650,7 +1650,7 @@ Object.keys(_index150).forEach(function (key) { }, }); }); -var _index151 = require("./lastDayOfISOWeek.js"); +var _index151 = require("./lastDayOfDecade.js"); Object.keys(_index151).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index151[key]) return; @@ -1661,7 +1661,7 @@ Object.keys(_index151).forEach(function (key) { }, }); }); -var _index152 = require("./lastDayOfISOWeekYear.js"); +var _index152 = require("./lastDayOfISOWeek.js"); Object.keys(_index152).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index152[key]) return; @@ -1672,7 +1672,7 @@ Object.keys(_index152).forEach(function (key) { }, }); }); -var _index153 = require("./lastDayOfMonth.js"); +var _index153 = require("./lastDayOfISOWeekYear.js"); Object.keys(_index153).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index153[key]) return; @@ -1683,7 +1683,7 @@ Object.keys(_index153).forEach(function (key) { }, }); }); -var _index154 = require("./lastDayOfQuarter.js"); +var _index154 = require("./lastDayOfMonth.js"); Object.keys(_index154).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index154[key]) return; @@ -1694,7 +1694,7 @@ Object.keys(_index154).forEach(function (key) { }, }); }); -var _index155 = require("./lastDayOfWeek.js"); +var _index155 = require("./lastDayOfQuarter.js"); Object.keys(_index155).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index155[key]) return; @@ -1705,7 +1705,7 @@ Object.keys(_index155).forEach(function (key) { }, }); }); -var _index156 = require("./lastDayOfYear.js"); +var _index156 = require("./lastDayOfWeek.js"); Object.keys(_index156).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index156[key]) return; @@ -1716,7 +1716,7 @@ Object.keys(_index156).forEach(function (key) { }, }); }); -var _index157 = require("./lightFormat.js"); +var _index157 = require("./lastDayOfYear.js"); Object.keys(_index157).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index157[key]) return; @@ -1727,7 +1727,7 @@ Object.keys(_index157).forEach(function (key) { }, }); }); -var _index158 = require("./max.js"); +var _index158 = require("./lightFormat.js"); Object.keys(_index158).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index158[key]) return; @@ -1738,7 +1738,7 @@ Object.keys(_index158).forEach(function (key) { }, }); }); -var _index159 = require("./milliseconds.js"); +var _index159 = require("./max.js"); Object.keys(_index159).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index159[key]) return; @@ -1749,7 +1749,7 @@ Object.keys(_index159).forEach(function (key) { }, }); }); -var _index160 = require("./millisecondsToHours.js"); +var _index160 = require("./milliseconds.js"); Object.keys(_index160).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index160[key]) return; @@ -1760,7 +1760,7 @@ Object.keys(_index160).forEach(function (key) { }, }); }); -var _index161 = require("./millisecondsToMinutes.js"); +var _index161 = require("./millisecondsToHours.js"); Object.keys(_index161).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index161[key]) return; @@ -1771,7 +1771,7 @@ Object.keys(_index161).forEach(function (key) { }, }); }); -var _index162 = require("./millisecondsToSeconds.js"); +var _index162 = require("./millisecondsToMinutes.js"); Object.keys(_index162).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index162[key]) return; @@ -1782,7 +1782,7 @@ Object.keys(_index162).forEach(function (key) { }, }); }); -var _index163 = require("./min.js"); +var _index163 = require("./millisecondsToSeconds.js"); Object.keys(_index163).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index163[key]) return; @@ -1793,7 +1793,7 @@ Object.keys(_index163).forEach(function (key) { }, }); }); -var _index164 = require("./minutesToHours.js"); +var _index164 = require("./min.js"); Object.keys(_index164).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index164[key]) return; @@ -1804,7 +1804,7 @@ Object.keys(_index164).forEach(function (key) { }, }); }); -var _index165 = require("./minutesToMilliseconds.js"); +var _index165 = require("./minutesToHours.js"); Object.keys(_index165).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index165[key]) return; @@ -1815,7 +1815,7 @@ Object.keys(_index165).forEach(function (key) { }, }); }); -var _index166 = require("./minutesToSeconds.js"); +var _index166 = require("./minutesToMilliseconds.js"); Object.keys(_index166).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index166[key]) return; @@ -1826,7 +1826,7 @@ Object.keys(_index166).forEach(function (key) { }, }); }); -var _index167 = require("./monthsToQuarters.js"); +var _index167 = require("./minutesToSeconds.js"); Object.keys(_index167).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index167[key]) return; @@ -1837,7 +1837,7 @@ Object.keys(_index167).forEach(function (key) { }, }); }); -var _index168 = require("./monthsToYears.js"); +var _index168 = require("./monthsToQuarters.js"); Object.keys(_index168).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index168[key]) return; @@ -1848,7 +1848,7 @@ Object.keys(_index168).forEach(function (key) { }, }); }); -var _index169 = require("./nextDay.js"); +var _index169 = require("./monthsToYears.js"); Object.keys(_index169).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index169[key]) return; @@ -1859,7 +1859,7 @@ Object.keys(_index169).forEach(function (key) { }, }); }); -var _index170 = require("./nextFriday.js"); +var _index170 = require("./nextDay.js"); Object.keys(_index170).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index170[key]) return; @@ -1870,7 +1870,7 @@ Object.keys(_index170).forEach(function (key) { }, }); }); -var _index171 = require("./nextMonday.js"); +var _index171 = require("./nextFriday.js"); Object.keys(_index171).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index171[key]) return; @@ -1881,7 +1881,7 @@ Object.keys(_index171).forEach(function (key) { }, }); }); -var _index172 = require("./nextSaturday.js"); +var _index172 = require("./nextMonday.js"); Object.keys(_index172).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index172[key]) return; @@ -1892,7 +1892,7 @@ Object.keys(_index172).forEach(function (key) { }, }); }); -var _index173 = require("./nextSunday.js"); +var _index173 = require("./nextSaturday.js"); Object.keys(_index173).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index173[key]) return; @@ -1903,7 +1903,7 @@ Object.keys(_index173).forEach(function (key) { }, }); }); -var _index174 = require("./nextThursday.js"); +var _index174 = require("./nextSunday.js"); Object.keys(_index174).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index174[key]) return; @@ -1914,7 +1914,7 @@ Object.keys(_index174).forEach(function (key) { }, }); }); -var _index175 = require("./nextTuesday.js"); +var _index175 = require("./nextThursday.js"); Object.keys(_index175).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index175[key]) return; @@ -1925,7 +1925,7 @@ Object.keys(_index175).forEach(function (key) { }, }); }); -var _index176 = require("./nextWednesday.js"); +var _index176 = require("./nextTuesday.js"); Object.keys(_index176).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index176[key]) return; @@ -1936,7 +1936,7 @@ Object.keys(_index176).forEach(function (key) { }, }); }); -var _index177 = require("./parse.js"); +var _index177 = require("./nextWednesday.js"); Object.keys(_index177).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index177[key]) return; @@ -1947,7 +1947,7 @@ Object.keys(_index177).forEach(function (key) { }, }); }); -var _index178 = require("./parseISO.js"); +var _index178 = require("./parse.js"); Object.keys(_index178).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index178[key]) return; @@ -1958,7 +1958,7 @@ Object.keys(_index178).forEach(function (key) { }, }); }); -var _index179 = require("./parseJSON.js"); +var _index179 = require("./parseISO.js"); Object.keys(_index179).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index179[key]) return; @@ -1969,7 +1969,7 @@ Object.keys(_index179).forEach(function (key) { }, }); }); -var _index180 = require("./previousDay.js"); +var _index180 = require("./parseJSON.js"); Object.keys(_index180).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index180[key]) return; @@ -1980,7 +1980,7 @@ Object.keys(_index180).forEach(function (key) { }, }); }); -var _index181 = require("./previousFriday.js"); +var _index181 = require("./previousDay.js"); Object.keys(_index181).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index181[key]) return; @@ -1991,7 +1991,7 @@ Object.keys(_index181).forEach(function (key) { }, }); }); -var _index182 = require("./previousMonday.js"); +var _index182 = require("./previousFriday.js"); Object.keys(_index182).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index182[key]) return; @@ -2002,7 +2002,7 @@ Object.keys(_index182).forEach(function (key) { }, }); }); -var _index183 = require("./previousSaturday.js"); +var _index183 = require("./previousMonday.js"); Object.keys(_index183).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index183[key]) return; @@ -2013,7 +2013,7 @@ Object.keys(_index183).forEach(function (key) { }, }); }); -var _index184 = require("./previousSunday.js"); +var _index184 = require("./previousSaturday.js"); Object.keys(_index184).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index184[key]) return; @@ -2024,7 +2024,7 @@ Object.keys(_index184).forEach(function (key) { }, }); }); -var _index185 = require("./previousThursday.js"); +var _index185 = require("./previousSunday.js"); Object.keys(_index185).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index185[key]) return; @@ -2035,7 +2035,7 @@ Object.keys(_index185).forEach(function (key) { }, }); }); -var _index186 = require("./previousTuesday.js"); +var _index186 = require("./previousThursday.js"); Object.keys(_index186).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index186[key]) return; @@ -2046,7 +2046,7 @@ Object.keys(_index186).forEach(function (key) { }, }); }); -var _index187 = require("./previousWednesday.js"); +var _index187 = require("./previousTuesday.js"); Object.keys(_index187).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index187[key]) return; @@ -2057,7 +2057,7 @@ Object.keys(_index187).forEach(function (key) { }, }); }); -var _index188 = require("./quartersToMonths.js"); +var _index188 = require("./previousWednesday.js"); Object.keys(_index188).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index188[key]) return; @@ -2068,7 +2068,7 @@ Object.keys(_index188).forEach(function (key) { }, }); }); -var _index189 = require("./quartersToYears.js"); +var _index189 = require("./quartersToMonths.js"); Object.keys(_index189).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index189[key]) return; @@ -2079,7 +2079,7 @@ Object.keys(_index189).forEach(function (key) { }, }); }); -var _index190 = require("./roundToNearestMinutes.js"); +var _index190 = require("./quartersToYears.js"); Object.keys(_index190).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index190[key]) return; @@ -2090,7 +2090,7 @@ Object.keys(_index190).forEach(function (key) { }, }); }); -var _index191 = require("./secondsToHours.js"); +var _index191 = require("./roundToNearestHours.js"); Object.keys(_index191).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index191[key]) return; @@ -2101,7 +2101,7 @@ Object.keys(_index191).forEach(function (key) { }, }); }); -var _index192 = require("./secondsToMilliseconds.js"); +var _index192 = require("./roundToNearestMinutes.js"); Object.keys(_index192).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index192[key]) return; @@ -2112,7 +2112,7 @@ Object.keys(_index192).forEach(function (key) { }, }); }); -var _index193 = require("./secondsToMinutes.js"); +var _index193 = require("./secondsToHours.js"); Object.keys(_index193).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index193[key]) return; @@ -2123,7 +2123,7 @@ Object.keys(_index193).forEach(function (key) { }, }); }); -var _index194 = require("./set.js"); +var _index194 = require("./secondsToMilliseconds.js"); Object.keys(_index194).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index194[key]) return; @@ -2134,7 +2134,7 @@ Object.keys(_index194).forEach(function (key) { }, }); }); -var _index195 = require("./setDate.js"); +var _index195 = require("./secondsToMinutes.js"); Object.keys(_index195).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index195[key]) return; @@ -2145,7 +2145,7 @@ Object.keys(_index195).forEach(function (key) { }, }); }); -var _index196 = require("./setDay.js"); +var _index196 = require("./set.js"); Object.keys(_index196).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index196[key]) return; @@ -2156,7 +2156,7 @@ Object.keys(_index196).forEach(function (key) { }, }); }); -var _index197 = require("./setDayOfYear.js"); +var _index197 = require("./setDate.js"); Object.keys(_index197).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index197[key]) return; @@ -2167,7 +2167,7 @@ Object.keys(_index197).forEach(function (key) { }, }); }); -var _index198 = require("./setDefaultOptions.js"); +var _index198 = require("./setDay.js"); Object.keys(_index198).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index198[key]) return; @@ -2178,7 +2178,7 @@ Object.keys(_index198).forEach(function (key) { }, }); }); -var _index199 = require("./setHours.js"); +var _index199 = require("./setDayOfYear.js"); Object.keys(_index199).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index199[key]) return; @@ -2189,7 +2189,7 @@ Object.keys(_index199).forEach(function (key) { }, }); }); -var _index200 = require("./setISODay.js"); +var _index200 = require("./setDefaultOptions.js"); Object.keys(_index200).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index200[key]) return; @@ -2200,7 +2200,7 @@ Object.keys(_index200).forEach(function (key) { }, }); }); -var _index201 = require("./setISOWeek.js"); +var _index201 = require("./setHours.js"); Object.keys(_index201).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index201[key]) return; @@ -2211,7 +2211,7 @@ Object.keys(_index201).forEach(function (key) { }, }); }); -var _index202 = require("./setISOWeekYear.js"); +var _index202 = require("./setISODay.js"); Object.keys(_index202).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index202[key]) return; @@ -2222,7 +2222,7 @@ Object.keys(_index202).forEach(function (key) { }, }); }); -var _index203 = require("./setMilliseconds.js"); +var _index203 = require("./setISOWeek.js"); Object.keys(_index203).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index203[key]) return; @@ -2233,7 +2233,7 @@ Object.keys(_index203).forEach(function (key) { }, }); }); -var _index204 = require("./setMinutes.js"); +var _index204 = require("./setISOWeekYear.js"); Object.keys(_index204).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index204[key]) return; @@ -2244,7 +2244,7 @@ Object.keys(_index204).forEach(function (key) { }, }); }); -var _index205 = require("./setMonth.js"); +var _index205 = require("./setMilliseconds.js"); Object.keys(_index205).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index205[key]) return; @@ -2255,7 +2255,7 @@ Object.keys(_index205).forEach(function (key) { }, }); }); -var _index206 = require("./setQuarter.js"); +var _index206 = require("./setMinutes.js"); Object.keys(_index206).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index206[key]) return; @@ -2266,7 +2266,7 @@ Object.keys(_index206).forEach(function (key) { }, }); }); -var _index207 = require("./setSeconds.js"); +var _index207 = require("./setMonth.js"); Object.keys(_index207).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index207[key]) return; @@ -2277,7 +2277,7 @@ Object.keys(_index207).forEach(function (key) { }, }); }); -var _index208 = require("./setWeek.js"); +var _index208 = require("./setQuarter.js"); Object.keys(_index208).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index208[key]) return; @@ -2288,7 +2288,7 @@ Object.keys(_index208).forEach(function (key) { }, }); }); -var _index209 = require("./setWeekYear.js"); +var _index209 = require("./setSeconds.js"); Object.keys(_index209).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index209[key]) return; @@ -2299,7 +2299,7 @@ Object.keys(_index209).forEach(function (key) { }, }); }); -var _index210 = require("./setYear.js"); +var _index210 = require("./setWeek.js"); Object.keys(_index210).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index210[key]) return; @@ -2310,7 +2310,7 @@ Object.keys(_index210).forEach(function (key) { }, }); }); -var _index211 = require("./startOfDay.js"); +var _index211 = require("./setWeekYear.js"); Object.keys(_index211).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index211[key]) return; @@ -2321,7 +2321,7 @@ Object.keys(_index211).forEach(function (key) { }, }); }); -var _index212 = require("./startOfDecade.js"); +var _index212 = require("./setYear.js"); Object.keys(_index212).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index212[key]) return; @@ -2332,7 +2332,7 @@ Object.keys(_index212).forEach(function (key) { }, }); }); -var _index213 = require("./startOfHour.js"); +var _index213 = require("./startOfDay.js"); Object.keys(_index213).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index213[key]) return; @@ -2343,7 +2343,7 @@ Object.keys(_index213).forEach(function (key) { }, }); }); -var _index214 = require("./startOfISOWeek.js"); +var _index214 = require("./startOfDecade.js"); Object.keys(_index214).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index214[key]) return; @@ -2354,7 +2354,7 @@ Object.keys(_index214).forEach(function (key) { }, }); }); -var _index215 = require("./startOfISOWeekYear.js"); +var _index215 = require("./startOfHour.js"); Object.keys(_index215).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index215[key]) return; @@ -2365,7 +2365,7 @@ Object.keys(_index215).forEach(function (key) { }, }); }); -var _index216 = require("./startOfMinute.js"); +var _index216 = require("./startOfISOWeek.js"); Object.keys(_index216).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index216[key]) return; @@ -2376,7 +2376,7 @@ Object.keys(_index216).forEach(function (key) { }, }); }); -var _index217 = require("./startOfMonth.js"); +var _index217 = require("./startOfISOWeekYear.js"); Object.keys(_index217).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index217[key]) return; @@ -2387,7 +2387,7 @@ Object.keys(_index217).forEach(function (key) { }, }); }); -var _index218 = require("./startOfQuarter.js"); +var _index218 = require("./startOfMinute.js"); Object.keys(_index218).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index218[key]) return; @@ -2398,7 +2398,7 @@ Object.keys(_index218).forEach(function (key) { }, }); }); -var _index219 = require("./startOfSecond.js"); +var _index219 = require("./startOfMonth.js"); Object.keys(_index219).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index219[key]) return; @@ -2409,7 +2409,7 @@ Object.keys(_index219).forEach(function (key) { }, }); }); -var _index220 = require("./startOfToday.js"); +var _index220 = require("./startOfQuarter.js"); Object.keys(_index220).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index220[key]) return; @@ -2420,7 +2420,7 @@ Object.keys(_index220).forEach(function (key) { }, }); }); -var _index221 = require("./startOfTomorrow.js"); +var _index221 = require("./startOfSecond.js"); Object.keys(_index221).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index221[key]) return; @@ -2431,7 +2431,7 @@ Object.keys(_index221).forEach(function (key) { }, }); }); -var _index222 = require("./startOfWeek.js"); +var _index222 = require("./startOfToday.js"); Object.keys(_index222).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index222[key]) return; @@ -2442,7 +2442,7 @@ Object.keys(_index222).forEach(function (key) { }, }); }); -var _index223 = require("./startOfWeekYear.js"); +var _index223 = require("./startOfTomorrow.js"); Object.keys(_index223).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index223[key]) return; @@ -2453,7 +2453,7 @@ Object.keys(_index223).forEach(function (key) { }, }); }); -var _index224 = require("./startOfYear.js"); +var _index224 = require("./startOfWeek.js"); Object.keys(_index224).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index224[key]) return; @@ -2464,7 +2464,7 @@ Object.keys(_index224).forEach(function (key) { }, }); }); -var _index225 = require("./startOfYesterday.js"); +var _index225 = require("./startOfWeekYear.js"); Object.keys(_index225).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index225[key]) return; @@ -2475,7 +2475,7 @@ Object.keys(_index225).forEach(function (key) { }, }); }); -var _index226 = require("./sub.js"); +var _index226 = require("./startOfYear.js"); Object.keys(_index226).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index226[key]) return; @@ -2486,7 +2486,7 @@ Object.keys(_index226).forEach(function (key) { }, }); }); -var _index227 = require("./subBusinessDays.js"); +var _index227 = require("./startOfYesterday.js"); Object.keys(_index227).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index227[key]) return; @@ -2497,7 +2497,7 @@ Object.keys(_index227).forEach(function (key) { }, }); }); -var _index228 = require("./subDays.js"); +var _index228 = require("./sub.js"); Object.keys(_index228).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index228[key]) return; @@ -2508,7 +2508,7 @@ Object.keys(_index228).forEach(function (key) { }, }); }); -var _index229 = require("./subHours.js"); +var _index229 = require("./subBusinessDays.js"); Object.keys(_index229).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index229[key]) return; @@ -2519,7 +2519,7 @@ Object.keys(_index229).forEach(function (key) { }, }); }); -var _index230 = require("./subISOWeekYears.js"); +var _index230 = require("./subDays.js"); Object.keys(_index230).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index230[key]) return; @@ -2530,7 +2530,7 @@ Object.keys(_index230).forEach(function (key) { }, }); }); -var _index231 = require("./subMilliseconds.js"); +var _index231 = require("./subHours.js"); Object.keys(_index231).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index231[key]) return; @@ -2541,7 +2541,7 @@ Object.keys(_index231).forEach(function (key) { }, }); }); -var _index232 = require("./subMinutes.js"); +var _index232 = require("./subISOWeekYears.js"); Object.keys(_index232).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index232[key]) return; @@ -2552,7 +2552,7 @@ Object.keys(_index232).forEach(function (key) { }, }); }); -var _index233 = require("./subMonths.js"); +var _index233 = require("./subMilliseconds.js"); Object.keys(_index233).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index233[key]) return; @@ -2563,7 +2563,7 @@ Object.keys(_index233).forEach(function (key) { }, }); }); -var _index234 = require("./subQuarters.js"); +var _index234 = require("./subMinutes.js"); Object.keys(_index234).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index234[key]) return; @@ -2574,7 +2574,7 @@ Object.keys(_index234).forEach(function (key) { }, }); }); -var _index235 = require("./subSeconds.js"); +var _index235 = require("./subMonths.js"); Object.keys(_index235).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index235[key]) return; @@ -2585,7 +2585,7 @@ Object.keys(_index235).forEach(function (key) { }, }); }); -var _index236 = require("./subWeeks.js"); +var _index236 = require("./subQuarters.js"); Object.keys(_index236).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index236[key]) return; @@ -2596,7 +2596,7 @@ Object.keys(_index236).forEach(function (key) { }, }); }); -var _index237 = require("./subYears.js"); +var _index237 = require("./subSeconds.js"); Object.keys(_index237).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index237[key]) return; @@ -2607,7 +2607,7 @@ Object.keys(_index237).forEach(function (key) { }, }); }); -var _index238 = require("./toDate.js"); +var _index238 = require("./subWeeks.js"); Object.keys(_index238).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index238[key]) return; @@ -2618,7 +2618,7 @@ Object.keys(_index238).forEach(function (key) { }, }); }); -var _index239 = require("./transpose.js"); +var _index239 = require("./subYears.js"); Object.keys(_index239).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index239[key]) return; @@ -2629,7 +2629,7 @@ Object.keys(_index239).forEach(function (key) { }, }); }); -var _index240 = require("./weeksToDays.js"); +var _index240 = require("./toDate.js"); Object.keys(_index240).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index240[key]) return; @@ -2640,7 +2640,7 @@ Object.keys(_index240).forEach(function (key) { }, }); }); -var _index241 = require("./yearsToMonths.js"); +var _index241 = require("./transpose.js"); Object.keys(_index241).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index241[key]) return; @@ -2651,7 +2651,7 @@ Object.keys(_index241).forEach(function (key) { }, }); }); -var _index242 = require("./yearsToQuarters.js"); +var _index242 = require("./weeksToDays.js"); Object.keys(_index242).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index242[key]) return; @@ -2662,3 +2662,36 @@ Object.keys(_index242).forEach(function (key) { }, }); }); +var _index243 = require("./yearsToDays.js"); +Object.keys(_index243).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index243[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index243[key]; + }, + }); +}); +var _index244 = require("./yearsToMonths.js"); +Object.keys(_index244).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index244[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index244[key]; + }, + }); +}); +var _index245 = require("./yearsToQuarters.js"); +Object.keys(_index245).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index245[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index245[key]; + }, + }); +}); diff --git a/node_modules/date-fns/index.mjs b/node_modules/date-fns/index.mjs index 9b6c33df..2775eccc 100755 --- a/node_modules/date-fns/index.mjs +++ b/node_modules/date-fns/index.mjs @@ -18,6 +18,7 @@ export * from "./closestTo.mjs"; export * from "./compareAsc.mjs"; export * from "./compareDesc.mjs"; export * from "./constructFrom.mjs"; +export * from "./constructNow.mjs"; export * from "./daysToWeeks.mjs"; export * from "./differenceInBusinessDays.mjs"; export * from "./differenceInCalendarDays.mjs"; @@ -188,6 +189,7 @@ export * from "./previousTuesday.mjs"; export * from "./previousWednesday.mjs"; export * from "./quartersToMonths.mjs"; export * from "./quartersToYears.mjs"; +export * from "./roundToNearestHours.mjs"; export * from "./roundToNearestMinutes.mjs"; export * from "./secondsToHours.mjs"; export * from "./secondsToMilliseconds.mjs"; @@ -239,5 +241,6 @@ export * from "./subYears.mjs"; export * from "./toDate.mjs"; export * from "./transpose.mjs"; export * from "./weeksToDays.mjs"; +export * from "./yearsToDays.mjs"; export * from "./yearsToMonths.mjs"; export * from "./yearsToQuarters.mjs"; diff --git a/node_modules/date-fns/interval.d.mts b/node_modules/date-fns/interval.d.mts index 185f73c0..fcc0bc15 100644 --- a/node_modules/date-fns/interval.d.mts +++ b/node_modules/date-fns/interval.d.mts @@ -1 +1,33 @@ -export type * from "./interval.d.ts"; +import type { NormalizedInterval } from "./types.js"; +/** + * The {@link interval} function options. + */ +export interface IntervalOptions { + /** Asserts that the interval is positive (start is after the end). */ + assertPositive?: boolean; +} +/** + * @name interval + * @category Interval Helpers + * @summary Creates an interval object and validates its values. + * + * @description + * Creates a normalized interval object and validates its values. If the interval is invalid, an exception is thrown. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param start - The start of the interval. + * @param end - The end of the interval. + * @param options - The options object. + * + * @throws `Start date is invalid` when `start` is invalid. + * @throws `End date is invalid` when `end` is invalid. + * @throws `End date must be after start date` when end is before `start` and `options.assertPositive` is true. + * + * @returns The normalized and validated interval object. + */ +export declare function interval( + start: DateType | number | string, + end: DateType | number | string, + options?: IntervalOptions, +): NormalizedInterval; diff --git a/node_modules/date-fns/intervalToDuration.d.mts b/node_modules/date-fns/intervalToDuration.d.mts index fd462e9d..3bea1943 100644 --- a/node_modules/date-fns/intervalToDuration.d.mts +++ b/node_modules/date-fns/intervalToDuration.d.mts @@ -1 +1,26 @@ -export type * from "./intervalToDuration.d.ts"; +import type { Duration, Interval } from "./types.js"; +/** + * @name intervalToDuration + * @category Common Helpers + * @summary Convert interval to duration + * + * @description + * Convert a interval object to a duration object. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param interval - The interval to convert to duration + * + * @returns The duration object + * + * @example + * // Get the duration between January 15, 1929 and April 4, 1968. + * intervalToDuration({ + * start: new Date(1929, 0, 15, 12, 0, 0), + * end: new Date(1968, 3, 4, 19, 5, 0) + * }) + * // => { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 } + */ +export declare function intervalToDuration( + interval: Interval, +): Duration; diff --git a/node_modules/date-fns/intlFormat.d.mts b/node_modules/date-fns/intlFormat.d.mts index 4c293226..0be7e3e3 100644 --- a/node_modules/date-fns/intlFormat.d.mts +++ b/node_modules/date-fns/intlFormat.d.mts @@ -1 +1,119 @@ -export type * from "./intlFormat.d.ts"; +/** + * The locale string (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). + */ +export type IntlFormatLocale = Intl.ResolvedDateTimeFormatOptions["locale"]; +/** + * The format options (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#options) + */ +export type IntlFormatFormatOptions = Intl.DateTimeFormatOptions; +/** + * The locale options. + */ +export interface IntlFormatLocaleOptions { + /** The locale(s) to use (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument) */ + locale: IntlFormatLocale | IntlFormatLocale[]; +} +/** + * @name intlFormat + * @category Common Helpers + * @summary Format the date with Intl.DateTimeFormat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat). + * + * @description + * Return the formatted date string in the given format. + * The method uses [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) inside. + * formatOptions are the same as [`Intl.DateTimeFormat` options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options) + * + * > ⚠️ Please note that before Node version 13.0.0, only the locale data for en-US is available by default. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to format + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in middle-endian format: + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456)) + * //=> 10/4/2019 + */ +export declare function intlFormat( + date: DateType | number | string, +): string; +/** + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to format + * @param localeOptions - An object with locale + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in Korean. + * // Convert the date with locale's options. + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { + * locale: 'ko-KR', + * }) + * //=> 2019. 10. 4. + */ +export declare function intlFormat( + date: DateType | number | string, + localeOptions: IntlFormatLocaleOptions, +): string; +/** + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to format + * @param formatOptions - The format options + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019. + * // Convert the date with format's options. + * const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), { + * year: 'numeric', + * month: 'numeric', + * day: 'numeric', + * hour: 'numeric', + * }) + * //=> 10/4/2019, 12 PM + */ +export declare function intlFormat( + date: DateType | number | string, + formatOptions: IntlFormatFormatOptions, +): string; +/** + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to format + * @param formatOptions - The format options + * @param localeOptions - An object with locale + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in German. + * // Convert the date with format's options and locale's options. + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { + * weekday: 'long', + * year: 'numeric', + * month: 'long', + * day: 'numeric', + * }, { + * locale: 'de-DE', + * }) + * //=> Freitag, 4. Oktober 2019 + */ +export declare function intlFormat( + date: DateType | number | string, + formatOptions: IntlFormatFormatOptions, + localeOptions: IntlFormatLocaleOptions, +): string; diff --git a/node_modules/date-fns/intlFormat.d.ts b/node_modules/date-fns/intlFormat.d.ts index caf05374..0be7e3e3 100644 --- a/node_modules/date-fns/intlFormat.d.ts +++ b/node_modules/date-fns/intlFormat.d.ts @@ -34,7 +34,7 @@ export interface IntlFormatLocaleOptions { * @throws `date` must not be Invalid Date * * @example - * // Represent 10 October 2019 in middle-endian format: + * // Represent 4 October 2019 in middle-endian format: * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456)) * //=> 10/4/2019 */ @@ -52,7 +52,7 @@ export declare function intlFormat( * @throws `date` must not be Invalid Date * * @example - * // Represent 10 October 2019 in Korean. + * // Represent 4 October 2019 in Korean. * // Convert the date with locale's options. * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { * locale: 'ko-KR', @@ -74,7 +74,7 @@ export declare function intlFormat( * @throws `date` must not be Invalid Date * * @example - * // Represent 10 October 2019. + * // Represent 4 October 2019. * // Convert the date with format's options. * const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), { * year: 'numeric', @@ -100,7 +100,7 @@ export declare function intlFormat( * @throws `date` must not be Invalid Date * * @example - * // Represent 10 October 2019 in German. + * // Represent 4 October 2019 in German. * // Convert the date with format's options and locale's options. * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { * weekday: 'long', diff --git a/node_modules/date-fns/intlFormat.js b/node_modules/date-fns/intlFormat.js index e3e6ea85..a1a59669 100644 --- a/node_modules/date-fns/intlFormat.js +++ b/node_modules/date-fns/intlFormat.js @@ -35,7 +35,7 @@ var _index = require("./toDate.js"); * @throws `date` must not be Invalid Date * * @example - * // Represent 10 October 2019 in middle-endian format: + * // Represent 4 October 2019 in middle-endian format: * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456)) * //=> 10/4/2019 */ @@ -51,7 +51,7 @@ var _index = require("./toDate.js"); * @throws `date` must not be Invalid Date * * @example - * // Represent 10 October 2019 in Korean. + * // Represent 4 October 2019 in Korean. * // Convert the date with locale's options. * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { * locale: 'ko-KR', @@ -70,7 +70,7 @@ var _index = require("./toDate.js"); * @throws `date` must not be Invalid Date * * @example - * // Represent 10 October 2019. + * // Represent 4 October 2019. * // Convert the date with format's options. * const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), { * year: 'numeric', @@ -93,7 +93,7 @@ var _index = require("./toDate.js"); * @throws `date` must not be Invalid Date * * @example - * // Represent 10 October 2019 in German. + * // Represent 4 October 2019 in German. * // Convert the date with format's options and locale's options. * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { * weekday: 'long', diff --git a/node_modules/date-fns/intlFormat.mjs b/node_modules/date-fns/intlFormat.mjs index ef02141b..39a78233 100644 --- a/node_modules/date-fns/intlFormat.mjs +++ b/node_modules/date-fns/intlFormat.mjs @@ -33,7 +33,7 @@ import { toDate } from "./toDate.mjs"; * @throws `date` must not be Invalid Date * * @example - * // Represent 10 October 2019 in middle-endian format: + * // Represent 4 October 2019 in middle-endian format: * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456)) * //=> 10/4/2019 */ @@ -49,7 +49,7 @@ import { toDate } from "./toDate.mjs"; * @throws `date` must not be Invalid Date * * @example - * // Represent 10 October 2019 in Korean. + * // Represent 4 October 2019 in Korean. * // Convert the date with locale's options. * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { * locale: 'ko-KR', @@ -68,7 +68,7 @@ import { toDate } from "./toDate.mjs"; * @throws `date` must not be Invalid Date * * @example - * // Represent 10 October 2019. + * // Represent 4 October 2019. * // Convert the date with format's options. * const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), { * year: 'numeric', @@ -91,7 +91,7 @@ import { toDate } from "./toDate.mjs"; * @throws `date` must not be Invalid Date * * @example - * // Represent 10 October 2019 in German. + * // Represent 4 October 2019 in German. * // Convert the date with format's options and locale's options. * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { * weekday: 'long', diff --git a/node_modules/date-fns/intlFormatDistance.d.mts b/node_modules/date-fns/intlFormatDistance.d.mts index 17db8e56..2c2b510f 100644 --- a/node_modules/date-fns/intlFormatDistance.d.mts +++ b/node_modules/date-fns/intlFormatDistance.d.mts @@ -1 +1,133 @@ -export type * from "./intlFormatDistance.d.ts"; +/** + * The {@link intlFormatDistance} function options. + */ +export interface IntlFormatDistanceOptions { + /** Force the distance unit */ + unit?: IntlFormatDistanceUnit; + /** The locale(s) to use (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument) */ + locale?: + | Intl.UnicodeBCP47LocaleIdentifier + | Intl.UnicodeBCP47LocaleIdentifier[]; + /** The locale matching algorithm to use. Other value: 'lookup'. See MDN for details [Locale identification and negotiation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) */ + localeMatcher?: Intl.RelativeTimeFormatLocaleMatcher; + /** The output message format. The values are 'auto' (e.g. `yesterday`), 'always'(e.g. `1 day ago`) */ + numeric?: Intl.RelativeTimeFormatNumeric; + /** The length of the result. The values are: 'long' (e.g. `1 month`), 'short' (e.g. 'in 1 mo.'), 'narrow' (e.g. 'in 1 mo.'). The narrow one could be similar to the short one for some locales. */ + style?: Intl.RelativeTimeFormatStyle; +} +/** + * The unit used to format the distance in {@link intlFormatDistance}. + */ +export type IntlFormatDistanceUnit = + | "year" + | "quarter" + | "month" + | "week" + | "day" + | "hour" + | "minute" + | "second"; +/** + * @name intlFormatDistance + * @category Common Helpers + * @summary Formats distance between two dates in a human-readable format + * @description + * The function calculates the difference between two dates and formats it as a human-readable string. + * + * The function will pick the most appropriate unit depending on the distance between dates. For example, if the distance is a few hours, it might return `x hours`. If the distance is a few months, it might return `x months`. + * + * You can also specify a unit to force using it regardless of the distance to get a result like `123456 hours`. + * + * See the table below for the unit picking logic: + * + * | Distance between dates | Result (past) | Result (future) | + * | ---------------------- | -------------- | --------------- | + * | 0 seconds | now | now | + * | 1-59 seconds | X seconds ago | in X seconds | + * | 1-59 minutes | X minutes ago | in X minutes | + * | 1-23 hours | X hours ago | in X hours | + * | 1 day | yesterday | tomorrow | + * | 2-6 days | X days ago | in X days | + * | 7 days | last week | next week | + * | 8 days-1 month | X weeks ago | in X weeks | + * | 1 month | last month | next month | + * | 2-3 months | X months ago | in X months | + * | 1 quarter | last quarter | next quarter | + * | 2-3 quarters | X quarters ago | in X quarters | + * | 1 year | last year | next year | + * | 2+ years | X years ago | in X years | + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date + * @param baseDate - The date to compare with. + * @param options - An object with options. + * See MDN for details [Locale identification and negotiation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) + * The narrow one could be similar to the short one for some locales. + * + * @returns The distance in words according to language-sensitive relative time formatting. + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.unit` must not be invalid Unit + * @throws `options.locale` must not be invalid locale + * @throws `options.localeMatcher` must not be invalid localeMatcher + * @throws `options.numeric` must not be invalid numeric + * @throws `options.style` must not be invalid style + * + * @example + * // What is the distance between the dates when the fist date is after the second? + * intlFormatDistance( + * new Date(1986, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0) + * ) + * //=> 'in 1 hour' + * + * // What is the distance between the dates when the fist date is before the second? + * intlFormatDistance( + * new Date(1986, 3, 4, 10, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0) + * ) + * //=> '1 hour ago' + * + * @example + * // Use the unit option to force the function to output the result in quarters. Without setting it, the example would return "next year" + * intlFormatDistance( + * new Date(1987, 6, 4, 10, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0), + * { unit: 'quarter' } + * ) + * //=> 'in 5 quarters' + * + * @example + * // Use the locale option to get the result in Spanish. Without setting it, the example would return "in 1 hour". + * intlFormatDistance( + * new Date(1986, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0), + * { locale: 'es' } + * ) + * //=> 'dentro de 1 hora' + * + * @example + * // Use the numeric option to force the function to use numeric values. Without setting it, the example would return "tomorrow". + * intlFormatDistance( + * new Date(1986, 3, 5, 11, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0), + * { numeric: 'always' } + * ) + * //=> 'in 1 day' + * + * @example + * // Use the style option to force the function to use short values. Without setting it, the example would return "in 2 years". + * intlFormatDistance( + * new Date(1988, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0), + * { style: 'short' } + * ) + * //=> 'in 2 yr' + */ +export declare function intlFormatDistance( + date: DateType | number | string, + baseDate: DateType | number | string, + options?: IntlFormatDistanceOptions, +): string; diff --git a/node_modules/date-fns/intlFormatDistance.d.ts b/node_modules/date-fns/intlFormatDistance.d.ts index 328071c2..2c2b510f 100644 --- a/node_modules/date-fns/intlFormatDistance.d.ts +++ b/node_modules/date-fns/intlFormatDistance.d.ts @@ -5,7 +5,9 @@ export interface IntlFormatDistanceOptions { /** Force the distance unit */ unit?: IntlFormatDistanceUnit; /** The locale(s) to use (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument) */ - locale?: Intl.BCP47LanguageTag | Intl.BCP47LanguageTag[]; + locale?: + | Intl.UnicodeBCP47LocaleIdentifier + | Intl.UnicodeBCP47LocaleIdentifier[]; /** The locale matching algorithm to use. Other value: 'lookup'. See MDN for details [Locale identification and negotiation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) */ localeMatcher?: Intl.RelativeTimeFormatLocaleMatcher; /** The output message format. The values are 'auto' (e.g. `yesterday`), 'always'(e.g. `1 day ago`) */ diff --git a/node_modules/date-fns/isAfter.d.mts b/node_modules/date-fns/isAfter.d.mts index 5479b705..447e477d 100644 --- a/node_modules/date-fns/isAfter.d.mts +++ b/node_modules/date-fns/isAfter.d.mts @@ -1 +1,24 @@ -export type * from "./isAfter.d.ts"; +/** + * @name isAfter + * @category Common Helpers + * @summary Is the first date after the second one? + * + * @description + * Is the first date after the second one? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date that should be after the other one to return true + * @param dateToCompare - The date to compare with + * + * @returns The first date is after the second date + * + * @example + * // Is 10 July 1989 after 11 February 1987? + * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) + * //=> true + */ +export declare function isAfter( + date: DateType | number | string, + dateToCompare: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isBefore.d.mts b/node_modules/date-fns/isBefore.d.mts index 40ba5546..73dc37b6 100644 --- a/node_modules/date-fns/isBefore.d.mts +++ b/node_modules/date-fns/isBefore.d.mts @@ -1 +1,24 @@ -export type * from "./isBefore.d.ts"; +/** + * @name isBefore + * @category Common Helpers + * @summary Is the first date before the second one? + * + * @description + * Is the first date before the second one? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date that should be before the other one to return true + * @param dateToCompare - The date to compare with + * + * @returns The first date is before the second date + * + * @example + * // Is 10 July 1989 before 11 February 1987? + * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) + * //=> false + */ +export declare function isBefore( + date: DateType | number | string, + dateToCompare: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isDate.d.mts b/node_modules/date-fns/isDate.d.mts index a888b2f5..a01e8e03 100644 --- a/node_modules/date-fns/isDate.d.mts +++ b/node_modules/date-fns/isDate.d.mts @@ -1 +1,33 @@ -export type * from "./isDate.d.ts"; +/** + * @name isDate + * @category Common Helpers + * @summary Is the given value a date? + * + * @description + * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes. + * + * @param value - The value to check + * + * @returns True if the given value is a date + * + * @example + * // For a valid date: + * const result = isDate(new Date()) + * //=> true + * + * @example + * // For an invalid date: + * const result = isDate(new Date(NaN)) + * //=> true + * + * @example + * // For some value: + * const result = isDate('2014-02-31') + * //=> false + * + * @example + * // For an object: + * const result = isDate({}) + * //=> false + */ +export declare function isDate(value: unknown): value is Date; diff --git a/node_modules/date-fns/isEqual.d.mts b/node_modules/date-fns/isEqual.d.mts index 78013f4e..3c9c8c55 100644 --- a/node_modules/date-fns/isEqual.d.mts +++ b/node_modules/date-fns/isEqual.d.mts @@ -1 +1,27 @@ -export type * from "./isEqual.d.ts"; +/** + * @name isEqual + * @category Common Helpers + * @summary Are the given dates equal? + * + * @description + * Are the given dates equal? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The dates are equal + * + * @example + * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? + * const result = isEqual( + * new Date(2014, 6, 2, 6, 30, 45, 0), + * new Date(2014, 6, 2, 6, 30, 45, 500) + * ) + * //=> false + */ +export declare function isEqual( + leftDate: DateType | number | string, + rightDate: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isExists.d.mts b/node_modules/date-fns/isExists.d.mts index 3dc4f0ae..3aba27b7 100644 --- a/node_modules/date-fns/isExists.d.mts +++ b/node_modules/date-fns/isExists.d.mts @@ -1 +1,29 @@ -export type * from "./isExists.d.ts"; +/** + * @name isExists + * @category Common Helpers + * @summary Is the given date exists? + * + * @description + * Checks if the given arguments convert to an existing date. + * + * @param year - The year of the date to check + * @param month - The month of the date to check + * @param day - The day of the date to check + * + * @returns `true` if the date exists + * + * @example + * // For the valid date: + * const result = isExists(2018, 0, 31) + * //=> true + * + * @example + * // For the invalid date: + * const result = isExists(2018, 1, 31) + * //=> false + */ +export declare function isExists( + year: number, + month: number, + day: number, +): boolean; diff --git a/node_modules/date-fns/isFirstDayOfMonth.d.mts b/node_modules/date-fns/isFirstDayOfMonth.d.mts index ed3f722c..ac13ad13 100644 --- a/node_modules/date-fns/isFirstDayOfMonth.d.mts +++ b/node_modules/date-fns/isFirstDayOfMonth.d.mts @@ -1 +1,22 @@ -export type * from "./isFirstDayOfMonth.d.ts"; +/** + * @name isFirstDayOfMonth + * @category Month Helpers + * @summary Is the given date the first day of a month? + * + * @description + * Is the given date the first day of a month? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + + * @returns The date is the first day of a month + * + * @example + * // Is 1 September 2014 the first day of a month? + * const result = isFirstDayOfMonth(new Date(2014, 8, 1)) + * //=> true + */ +export declare function isFirstDayOfMonth( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isFriday.d.mts b/node_modules/date-fns/isFriday.d.mts index 58722d16..e4230e4e 100644 --- a/node_modules/date-fns/isFriday.d.mts +++ b/node_modules/date-fns/isFriday.d.mts @@ -1 +1,22 @@ -export type * from "./isFriday.d.ts"; +/** + * @name isFriday + * @category Weekday Helpers + * @summary Is the given date Friday? + * + * @description + * Is the given date Friday? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is Friday + * + * @example + * // Is 26 September 2014 Friday? + * const result = isFriday(new Date(2014, 8, 26)) + * //=> true + */ +export declare function isFriday( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isFuture.d.mts b/node_modules/date-fns/isFuture.d.mts index d437305f..157689b1 100644 --- a/node_modules/date-fns/isFuture.d.mts +++ b/node_modules/date-fns/isFuture.d.mts @@ -1 +1,23 @@ -export type * from "./isFuture.d.ts"; +/** + * @name isFuture + * @category Common Helpers + * @summary Is the given date in the future? + * @pure false + * + * @description + * Is the given date in the future? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is in the future + * + * @example + * // If today is 6 October 2014, is 31 December 2014 in the future? + * const result = isFuture(new Date(2014, 11, 31)) + * //=> true + */ +export declare function isFuture( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isLastDayOfMonth.d.mts b/node_modules/date-fns/isLastDayOfMonth.d.mts index c64b150a..c4784a6b 100644 --- a/node_modules/date-fns/isLastDayOfMonth.d.mts +++ b/node_modules/date-fns/isLastDayOfMonth.d.mts @@ -1 +1,22 @@ -export type * from "./isLastDayOfMonth.d.ts"; +/** + * @name isLastDayOfMonth + * @category Month Helpers + * @summary Is the given date the last day of a month? + * + * @description + * Is the given date the last day of a month? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + + * @returns The date is the last day of a month + * + * @example + * // Is 28 February 2014 the last day of a month? + * const result = isLastDayOfMonth(new Date(2014, 1, 28)) + * //=> true + */ +export declare function isLastDayOfMonth( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isLeapYear.d.mts b/node_modules/date-fns/isLeapYear.d.mts index 02c96178..75d85582 100644 --- a/node_modules/date-fns/isLeapYear.d.mts +++ b/node_modules/date-fns/isLeapYear.d.mts @@ -1 +1,22 @@ -export type * from "./isLeapYear.d.ts"; +/** + * @name isLeapYear + * @category Year Helpers + * @summary Is the given date in the leap year? + * + * @description + * Is the given date in the leap year? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is in the leap year + * + * @example + * // Is 1 September 2012 in the leap year? + * const result = isLeapYear(new Date(2012, 8, 1)) + * //=> true + */ +export declare function isLeapYear( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isMatch.d.mts b/node_modules/date-fns/isMatch.d.mts index 7840a6d0..b40c5f5f 100644 --- a/node_modules/date-fns/isMatch.d.mts +++ b/node_modules/date-fns/isMatch.d.mts @@ -1 +1,305 @@ -export type * from "./isMatch.d.ts"; +import type { + AdditionalTokensOptions, + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "./types.js"; +/** + * The {@link isMatch} function options. + */ +export interface IsMatchOptions + extends LocalizedOptions<"options" | "match" | "formatLong">, + WeekOptions, + FirstWeekContainsDateOptions, + AdditionalTokensOptions {} +/** + * @name isMatch + * @category Common Helpers + * @summary validates the date string against given formats + * + * @description + * Return the true if given date is string correct against the given format else + * will return false. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters in the format string wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the format string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 5 below the table). + * + * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited + * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: + * + * ```javascript + * isMatch('23 AM', 'HH a') + * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time + * ``` + * + * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true + * + * Accepted format string patterns: + * | Unit |Prior| Pattern | Result examples | Notes | + * |---------------------------------|-----|---------|-----------------------------------|-------| + * | Era | 140 | G..GGG | AD, BC | | + * | | | GGGG | Anno Domini, Before Christ | 2 | + * | | | GGGGG | A, B | | + * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | + * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | yy | 44, 01, 00, 17 | 4 | + * | | | yyy | 044, 001, 123, 999 | 4 | + * | | | yyyy | 0044, 0001, 1900, 2017 | 4 | + * | | | yyyyy | ... | 2,4 | + * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | + * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | YY | 44, 01, 00, 17 | 4,6 | + * | | | YYY | 044, 001, 123, 999 | 4 | + * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | + * | | | YYYYY | ... | 2,4 | + * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | + * | | | RR | -43, 01, 00, 17 | 4,5 | + * | | | RRR | -043, 001, 123, 999, -999 | 4,5 | + * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | + * | | | RRRRR | ... | 2,4,5 | + * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | + * | | | uu | -43, 01, 99, -99 | 4 | + * | | | uuu | -043, 001, 123, 999, -999 | 4 | + * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | + * | | | uuuuu | ... | 2,4 | + * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | + * | | | Qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | QQ | 01, 02, 03, 04 | | + * | | | QQQ | Q1, Q2, Q3, Q4 | | + * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | + * | | | qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | qq | 01, 02, 03, 04 | | + * | | | qqq | Q1, Q2, Q3, Q4 | | + * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | | qqqqq | 1, 2, 3, 4 | 3 | + * | Month (formatting) | 110 | M | 1, 2, ..., 12 | | + * | | | Mo | 1st, 2nd, ..., 12th | 5 | + * | | | MM | 01, 02, ..., 12 | | + * | | | MMM | Jan, Feb, ..., Dec | | + * | | | MMMM | January, February, ..., December | 2 | + * | | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | + * | | | Lo | 1st, 2nd, ..., 12th | 5 | + * | | | LL | 01, 02, ..., 12 | | + * | | | LLL | Jan, Feb, ..., Dec | | + * | | | LLLL | January, February, ..., December | 2 | + * | | | LLLLL | J, F, ..., D | | + * | Local week of year | 100 | w | 1, 2, ..., 53 | | + * | | | wo | 1st, 2nd, ..., 53th | 5 | + * | | | ww | 01, 02, ..., 53 | | + * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | + * | | | Io | 1st, 2nd, ..., 53th | 5 | + * | | | II | 01, 02, ..., 53 | 5 | + * | Day of month | 90 | d | 1, 2, ..., 31 | | + * | | | do | 1st, 2nd, ..., 31st | 5 | + * | | | dd | 01, 02, ..., 31 | | + * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | + * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | + * | | | DD | 01, 02, ..., 365, 366 | 7 | + * | | | DDD | 001, 002, ..., 365, 366 | | + * | | | DDDD | ... | 2 | + * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Su | | + * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | | EEEEE | M, T, W, T, F, S, S | | + * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | + * | | | io | 1st, 2nd, ..., 7th | 5 | + * | | | ii | 01, 02, ..., 07 | 5 | + * | | | iii | Mon, Tue, Wed, ..., Su | 5 | + * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | + * | | | iiiii | M, T, W, T, F, S, S | 5 | + * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | + * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | + * | | | eo | 2nd, 3rd, ..., 1st | 5 | + * | | | ee | 02, 03, ..., 01 | | + * | | | eee | Mon, Tue, Wed, ..., Su | | + * | | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | | eeeee | M, T, W, T, F, S, S | | + * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | + * | | | co | 2nd, 3rd, ..., 1st | 5 | + * | | | cc | 02, 03, ..., 01 | | + * | | | ccc | Mon, Tue, Wed, ..., Su | | + * | | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | | ccccc | M, T, W, T, F, S, S | | + * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | 80 | a..aaa | AM, PM | | + * | | | aaaa | a.m., p.m. | 2 | + * | | | aaaaa | a, p | | + * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | + * | | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | | bbbbb | a, p, n, mi | | + * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | + * | | | BBBB | at night, in the morning, ... | 2 | + * | | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | + * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | + * | | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | + * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | + * | | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | + * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | + * | | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | + * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | + * | | | kk | 24, 01, 02, ..., 23 | | + * | Minute | 60 | m | 0, 1, ..., 59 | | + * | | | mo | 0th, 1st, ..., 59th | 5 | + * | | | mm | 00, 01, ..., 59 | | + * | Second | 50 | s | 0, 1, ..., 59 | | + * | | | so | 0th, 1st, ..., 59th | 5 | + * | | | ss | 00, 01, ..., 59 | | + * | Seconds timestamp | 40 | t | 512969520 | | + * | | | tt | ... | 2 | + * | Fraction of second | 30 | S | 0, 1, ..., 9 | | + * | | | SS | 00, 01, ..., 99 | | + * | | | SSS | 000, 001, ..., 999 | | + * | | | SSSS | ... | 2 | + * | Milliseconds timestamp | 20 | T | 512969520900 | | + * | | | TT | ... | 2 | + * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | + * | | | XX | -0800, +0530, Z | | + * | | | XXX | -08:00, +05:30, Z | | + * | | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | + * | | | xx | -0800, +0530, +0000 | | + * | | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | | xxxx | -0800, +0530, +0000, +123456 | | + * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Long localized date | NA | P | 05/29/1453 | 5,8 | + * | | | PP | May 29, 1453 | | + * | | | PPP | May 29th, 1453 | | + * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | + * | Long localized time | NA | p | 12:00 AM | 5,8 | + * | | | pp | 12:00:00 AM | | + * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | + * | | | PPpp | May 29, 1453, 12:00:00 AM | | + * | | | PPPpp | May 29th, 1453 at ... | | + * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular. + * In `format` function, they will produce different result: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * `isMatch` will try to match both formatting and stand-alone units interchangably. + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table: + * - for numerical units (`yyyyyyyy`) `isMatch` will try to match a number + * as wide as the sequence + * - for text units (`MMMMMMMM`) `isMatch` will try to match the widest variation of the unit. + * These variations are marked with "2" in the last column of the table. + * + * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 4. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: + * + * `isMatch('50', 'yy') //=> true` + * + * `isMatch('75', 'yy') //=> true` + * + * while `uu` will use the year as is: + * + * `isMatch('50', 'uu') //=> true` + * + * `isMatch('75', 'uu') //=> true` + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear) + * and [setWeekYear](https://date-fns.org/docs/setWeekYear)). + * + * 5. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based + * on the given locale. + * + * using `en-US` locale: `P` => `MM/dd/yyyy` + * using `en-US` locale: `p` => `hh:mm a` + * using `pt-BR` locale: `P` => `dd/MM/yyyy` + * using `pt-BR` locale: `p` => `HH:mm` + * + * Values will be checked in the descending order of its unit's priority. + * Units of an equal priority overwrite each other in the order of appearance. + * + * If no values of higher priority are matched (e.g. when matching string 'January 1st' without a year), + * the values will be taken from today's using `new Date()` date which works as a context of parsing. + * + * The result may vary by locale. + * + * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateStr - The date string to verify + * @param format - The string of tokens + * @param options - An object with options. + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * @returns Is format string a match for date string? + * + * @throws `options.locale` must contain `match` property + * @throws use `yyyy` instead of `YYYY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `yy` instead of `YY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `d` instead of `D` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `dd` instead of `DD` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws format string contains an unescaped latin alphabet character + * + * @example + * // Match 11 February 2014 from middle-endian format: + * const result = isMatch('02/11/2014', 'MM/dd/yyyy') + * //=> true + * + * @example + * // Match 28th of February in Esperanto locale in the context of 2010 year: + * import eo from 'date-fns/locale/eo' + * const result = isMatch('28-a de februaro', "do 'de' MMMM", { + * locale: eo + * }) + * //=> true + */ +export declare function isMatch( + dateStr: string, + formatStr: string, + options?: IsMatchOptions, +): boolean; diff --git a/node_modules/date-fns/isMonday.d.mts b/node_modules/date-fns/isMonday.d.mts index e3affcee..d79ea09d 100644 --- a/node_modules/date-fns/isMonday.d.mts +++ b/node_modules/date-fns/isMonday.d.mts @@ -1 +1,22 @@ -export type * from "./isMonday.d.ts"; +/** + * @name isMonday + * @category Weekday Helpers + * @summary Is the given date Monday? + * + * @description + * Is the given date Monday? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is Monday + * + * @example + * // Is 22 September 2014 Monday? + * const result = isMonday(new Date(2014, 8, 22)) + * //=> true + */ +export declare function isMonday( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isPast.d.mts b/node_modules/date-fns/isPast.d.mts index c727bfad..22532064 100644 --- a/node_modules/date-fns/isPast.d.mts +++ b/node_modules/date-fns/isPast.d.mts @@ -1 +1,23 @@ -export type * from "./isPast.d.ts"; +/** + * @name isPast + * @category Common Helpers + * @summary Is the given date in the past? + * @pure false + * + * @description + * Is the given date in the past? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is in the past + * + * @example + * // If today is 6 October 2014, is 2 July 2014 in the past? + * const result = isPast(new Date(2014, 6, 2)) + * //=> true + */ +export declare function isPast( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isSameDay.d.mts b/node_modules/date-fns/isSameDay.d.mts index 474e848c..9b7deafc 100644 --- a/node_modules/date-fns/isSameDay.d.mts +++ b/node_modules/date-fns/isSameDay.d.mts @@ -1 +1,34 @@ -export type * from "./isSameDay.d.ts"; +/** + * @name isSameDay + * @category Day Helpers + * @summary Are the given dates in the same day (and year and month)? + * + * @description + * Are the given dates in the same day (and year and month)? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The first date to check + * @param dateRight - The second date to check + + * @returns The dates are in the same day (and year and month) + * + * @example + * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? + * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0)) + * //=> true + * + * @example + * // Are 4 September and 4 October in the same day? + * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4)) + * //=> false + * + * @example + * // Are 4 September, 2014 and 4 September, 2015 in the same day? + * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4)) + * //=> false + */ +export declare function isSameDay( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isSameHour.d.mts b/node_modules/date-fns/isSameHour.d.mts index 52f929a4..e9838e2b 100644 --- a/node_modules/date-fns/isSameHour.d.mts +++ b/node_modules/date-fns/isSameHour.d.mts @@ -1 +1,29 @@ -export type * from "./isSameHour.d.ts"; +/** + * @name isSameHour + * @category Hour Helpers + * @summary Are the given dates in the same hour (and same day)? + * + * @description + * Are the given dates in the same hour (and same day)? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The first date to check + * @param dateRight - The second date to check + * + * @returns The dates are in the same hour (and same day) + * + * @example + * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour? + * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30)) + * //=> true + * + * @example + * // Are 4 September 2014 06:00:00 and 5 September 06:00:00 in the same hour? + * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 5, 6, 0)) + * //=> false + */ +export declare function isSameHour( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isSameISOWeek.d.mts b/node_modules/date-fns/isSameISOWeek.d.mts index 08dd17a3..975d1b53 100644 --- a/node_modules/date-fns/isSameISOWeek.d.mts +++ b/node_modules/date-fns/isSameISOWeek.d.mts @@ -1 +1,31 @@ -export type * from "./isSameISOWeek.d.ts"; +/** + * @name isSameISOWeek + * @category ISO Week Helpers + * @summary Are the given dates in the same ISO week (and year)? + * + * @description + * Are the given dates in the same ISO week (and year)? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The first date to check + * @param dateRight - The second date to check + * + * @returns The dates are in the same ISO week (and year) + * + * @example + * // Are 1 September 2014 and 7 September 2014 in the same ISO week? + * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7)) + * //=> true + * + * @example + * // Are 1 September 2014 and 1 September 2015 in the same ISO week? + * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2015, 8, 1)) + * //=> false + */ +export declare function isSameISOWeek( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isSameISOWeekYear.d.mts b/node_modules/date-fns/isSameISOWeekYear.d.mts index eb6debe5..f863134a 100644 --- a/node_modules/date-fns/isSameISOWeekYear.d.mts +++ b/node_modules/date-fns/isSameISOWeekYear.d.mts @@ -1 +1,26 @@ -export type * from "./isSameISOWeekYear.d.ts"; +/** + * @name isSameISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Are the given dates in the same ISO week-numbering year? + * + * @description + * Are the given dates in the same ISO week-numbering year? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The first date to check + * @param dateRight - The second date to check + * + * @returns The dates are in the same ISO week-numbering year + * + * @example + * // Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year? + * const result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2)) + * //=> true + */ +export declare function isSameISOWeekYear( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isSameMinute.d.mts b/node_modules/date-fns/isSameMinute.d.mts index 47410229..65a4c625 100644 --- a/node_modules/date-fns/isSameMinute.d.mts +++ b/node_modules/date-fns/isSameMinute.d.mts @@ -1 +1,35 @@ -export type * from "./isSameMinute.d.ts"; +/** + * @name isSameMinute + * @category Minute Helpers + * @summary Are the given dates in the same minute (and hour and day)? + * + * @description + * Are the given dates in the same minute (and hour and day)? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The first date to check + * @param dateRight - The second date to check + * + * @returns The dates are in the same minute (and hour and day) + * + * @example + * // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 in the same minute? + * const result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 4, 6, 30, 15) + * ) + * //=> true + * + * @example + * // Are 4 September 2014 06:30:00 and 5 September 2014 06:30:00 in the same minute? + * const result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 5, 6, 30) + * ) + * //=> false + */ +export declare function isSameMinute( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isSameMonth.d.mts b/node_modules/date-fns/isSameMonth.d.mts index c27bea8c..75d5b91c 100644 --- a/node_modules/date-fns/isSameMonth.d.mts +++ b/node_modules/date-fns/isSameMonth.d.mts @@ -1 +1,29 @@ -export type * from "./isSameMonth.d.ts"; +/** + * @name isSameMonth + * @category Month Helpers + * @summary Are the given dates in the same month (and year)? + * + * @description + * Are the given dates in the same month (and year)? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The first date to check + * @param dateRight - The second date to check + * + * @returns The dates are in the same month (and year) + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same month? + * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + * + * @example + * // Are 2 September 2014 and 25 September 2015 in the same month? + * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25)) + * //=> false + */ +export declare function isSameMonth( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isSameQuarter.d.mts b/node_modules/date-fns/isSameQuarter.d.mts index 2a303bf5..e635c6c9 100644 --- a/node_modules/date-fns/isSameQuarter.d.mts +++ b/node_modules/date-fns/isSameQuarter.d.mts @@ -1 +1,29 @@ -export type * from "./isSameQuarter.d.ts"; +/** + * @name isSameQuarter + * @category Quarter Helpers + * @summary Are the given dates in the same quarter (and year)? + * + * @description + * Are the given dates in the same quarter (and year)? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The first date to check + * @param dateRight - The second date to check + + * @returns The dates are in the same quarter (and year) + * + * @example + * // Are 1 January 2014 and 8 March 2014 in the same quarter? + * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8)) + * //=> true + * + * @example + * // Are 1 January 2014 and 1 January 2015 in the same quarter? + * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2015, 0, 1)) + * //=> false + */ +export declare function isSameQuarter( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isSameSecond.d.mts b/node_modules/date-fns/isSameSecond.d.mts index b6e7312b..58d64a97 100644 --- a/node_modules/date-fns/isSameSecond.d.mts +++ b/node_modules/date-fns/isSameSecond.d.mts @@ -1 +1,43 @@ -export type * from "./isSameSecond.d.ts"; +/** + * @name isSameSecond + * @category Second Helpers + * @summary Are the given dates in the same second (and hour and day)? + * + * @description + * Are the given dates in the same second (and hour and day)? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The first date to check + * @param dateRight - The second date to check + * + * @returns The dates are in the same second (and hour and day) + * + * @example + * // Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 30, 15), + * new Date(2014, 8, 4, 6, 30, 15, 500) + * ) + * //=> true + * + * @example + * // Are 4 September 2014 06:00:15.000 and 4 September 2014 06:01.15.000 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 0, 15), + * new Date(2014, 8, 4, 6, 1, 15) + * ) + * //=> false + * + * @example + * // Are 4 September 2014 06:00:15.000 and 5 September 2014 06:00.15.000 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 0, 15), + * new Date(2014, 8, 5, 6, 0, 15) + * ) + * //=> false + */ +export declare function isSameSecond( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isSameWeek.d.mts b/node_modules/date-fns/isSameWeek.d.mts index 642bc2ab..7b1eab52 100644 --- a/node_modules/date-fns/isSameWeek.d.mts +++ b/node_modules/date-fns/isSameWeek.d.mts @@ -1 +1,46 @@ -export type * from "./isSameWeek.d.ts"; +import type { LocalizedOptions, WeekOptions } from "./types.js"; +/** + * The {@link isSameWeek} function options. + */ +export interface IsSameWeekOptions + extends WeekOptions, + LocalizedOptions<"options"> {} +/** + * @name isSameWeek + * @category Week Helpers + * @summary Are the given dates in the same week (and month and year)? + * + * @description + * Are the given dates in the same week (and month and year)? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The first date to check + * @param dateRight - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same week (and month and year) + * + * @example + * // Are 31 August 2014 and 4 September 2014 in the same week? + * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) + * //=> true + * + * @example + * // If week starts with Monday, + * // are 31 August 2014 and 4 September 2014 in the same week? + * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { + * weekStartsOn: 1 + * }) + * //=> false + * + * @example + * // Are 1 January 2014 and 1 January 2015 in the same week? + * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) + * //=> false + */ +export declare function isSameWeek( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, + options?: IsSameWeekOptions, +): boolean; diff --git a/node_modules/date-fns/isSameYear.d.mts b/node_modules/date-fns/isSameYear.d.mts index de73071b..d4c949a2 100644 --- a/node_modules/date-fns/isSameYear.d.mts +++ b/node_modules/date-fns/isSameYear.d.mts @@ -1 +1,24 @@ -export type * from "./isSameYear.d.ts"; +/** + * @name isSameYear + * @category Year Helpers + * @summary Are the given dates in the same year? + * + * @description + * Are the given dates in the same year? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param dateLeft - The first date to check + * @param dateRight - The second date to check + * + * @returns The dates are in the same year + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same year? + * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + */ +export declare function isSameYear( + dateLeft: DateType | number | string, + dateRight: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isSaturday.d.mts b/node_modules/date-fns/isSaturday.d.mts index cf4ad98a..5bc70784 100644 --- a/node_modules/date-fns/isSaturday.d.mts +++ b/node_modules/date-fns/isSaturday.d.mts @@ -1 +1,22 @@ -export type * from "./isSaturday.d.ts"; +/** + * @name isSaturday + * @category Weekday Helpers + * @summary Is the given date Saturday? + * + * @description + * Is the given date Saturday? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is Saturday + * + * @example + * // Is 27 September 2014 Saturday? + * const result = isSaturday(new Date(2014, 8, 27)) + * //=> true + */ +export declare function isSaturday( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isSunday.d.mts b/node_modules/date-fns/isSunday.d.mts index c2abafbe..72f30048 100644 --- a/node_modules/date-fns/isSunday.d.mts +++ b/node_modules/date-fns/isSunday.d.mts @@ -1 +1,22 @@ -export type * from "./isSunday.d.ts"; +/** + * @name isSunday + * @category Weekday Helpers + * @summary Is the given date Sunday? + * + * @description + * Is the given date Sunday? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is Sunday + * + * @example + * // Is 21 September 2014 Sunday? + * const result = isSunday(new Date(2014, 8, 21)) + * //=> true + */ +export declare function isSunday( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isThisHour.d.mts b/node_modules/date-fns/isThisHour.d.mts index 08dfefbc..617e9f19 100644 --- a/node_modules/date-fns/isThisHour.d.mts +++ b/node_modules/date-fns/isThisHour.d.mts @@ -1 +1,24 @@ -export type * from "./isThisHour.d.ts"; +/** + * @name isThisHour + * @category Hour Helpers + * @summary Is the given date in the same hour as the current date? + * @pure false + * + * @description + * Is the given date in the same hour as the current date? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is in this hour + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:00:00 in this hour? + * const result = isThisHour(new Date(2014, 8, 25, 18)) + * //=> true + */ +export declare function isThisHour( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isThisHour.js b/node_modules/date-fns/isThisHour.js index 96731c72..87217447 100644 --- a/node_modules/date-fns/isThisHour.js +++ b/node_modules/date-fns/isThisHour.js @@ -1,6 +1,7 @@ "use strict"; exports.isThisHour = isThisHour; -var _index = require("./isSameHour.js"); +var _index = require("./constructNow.js"); +var _index2 = require("./isSameHour.js"); /** * @name isThisHour @@ -24,5 +25,5 @@ var _index = require("./isSameHour.js"); * //=> true */ function isThisHour(date) { - return (0, _index.isSameHour)(Date.now(), date); + return (0, _index2.isSameHour)(date, (0, _index.constructNow)(date)); } diff --git a/node_modules/date-fns/isThisHour.mjs b/node_modules/date-fns/isThisHour.mjs index 32a55c0b..4de53725 100644 --- a/node_modules/date-fns/isThisHour.mjs +++ b/node_modules/date-fns/isThisHour.mjs @@ -1,3 +1,4 @@ +import { constructNow } from "./constructNow.mjs"; import { isSameHour } from "./isSameHour.mjs"; /** @@ -22,7 +23,7 @@ import { isSameHour } from "./isSameHour.mjs"; * //=> true */ export function isThisHour(date) { - return isSameHour(Date.now(), date); + return isSameHour(date, constructNow(date)); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/isThisISOWeek.d.mts b/node_modules/date-fns/isThisISOWeek.d.mts index 53d45dd4..63c2cf2e 100644 --- a/node_modules/date-fns/isThisISOWeek.d.mts +++ b/node_modules/date-fns/isThisISOWeek.d.mts @@ -1 +1,25 @@ -export type * from "./isThisISOWeek.d.ts"; +/** + * @name isThisISOWeek + * @category ISO Week Helpers + * @summary Is the given date in the same ISO week as the current date? + * @pure false + * + * @description + * Is the given date in the same ISO week as the current date? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is in this ISO week + * + * @example + * // If today is 25 September 2014, is 22 September 2014 in this ISO week? + * const result = isThisISOWeek(new Date(2014, 8, 22)) + * //=> true + */ +export declare function isThisISOWeek( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isThisISOWeek.js b/node_modules/date-fns/isThisISOWeek.js index d7965254..6d8d096b 100644 --- a/node_modules/date-fns/isThisISOWeek.js +++ b/node_modules/date-fns/isThisISOWeek.js @@ -1,6 +1,7 @@ "use strict"; exports.isThisISOWeek = isThisISOWeek; -var _index = require("./isSameISOWeek.js"); +var _index = require("./constructNow.js"); +var _index2 = require("./isSameISOWeek.js"); /** * @name isThisISOWeek @@ -26,5 +27,5 @@ var _index = require("./isSameISOWeek.js"); */ function isThisISOWeek(date) { - return (0, _index.isSameISOWeek)(date, Date.now()); + return (0, _index2.isSameISOWeek)(date, (0, _index.constructNow)(date)); } diff --git a/node_modules/date-fns/isThisISOWeek.mjs b/node_modules/date-fns/isThisISOWeek.mjs index 50265c6c..fc678c6e 100644 --- a/node_modules/date-fns/isThisISOWeek.mjs +++ b/node_modules/date-fns/isThisISOWeek.mjs @@ -1,3 +1,4 @@ +import { constructNow } from "./constructNow.mjs"; import { isSameISOWeek } from "./isSameISOWeek.mjs"; /** @@ -24,7 +25,7 @@ import { isSameISOWeek } from "./isSameISOWeek.mjs"; */ export function isThisISOWeek(date) { - return isSameISOWeek(date, Date.now()); + return isSameISOWeek(date, constructNow(date)); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/isThisMinute.d.mts b/node_modules/date-fns/isThisMinute.d.mts index 74a05fa1..41e310ae 100644 --- a/node_modules/date-fns/isThisMinute.d.mts +++ b/node_modules/date-fns/isThisMinute.d.mts @@ -1 +1,24 @@ -export type * from "./isThisMinute.d.ts"; +/** + * @name isThisMinute + * @category Minute Helpers + * @summary Is the given date in the same minute as the current date? + * @pure false + * + * @description + * Is the given date in the same minute as the current date? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is in this minute + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:30:00 in this minute? + * const result = isThisMinute(new Date(2014, 8, 25, 18, 30)) + * //=> true + */ +export declare function isThisMinute( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isThisMinute.js b/node_modules/date-fns/isThisMinute.js index 6bb46b76..28a777a4 100644 --- a/node_modules/date-fns/isThisMinute.js +++ b/node_modules/date-fns/isThisMinute.js @@ -1,6 +1,7 @@ "use strict"; exports.isThisMinute = isThisMinute; -var _index = require("./isSameMinute.js"); +var _index = require("./constructNow.js"); +var _index2 = require("./isSameMinute.js"); /** * @name isThisMinute @@ -25,5 +26,5 @@ var _index = require("./isSameMinute.js"); */ function isThisMinute(date) { - return (0, _index.isSameMinute)(Date.now(), date); + return (0, _index2.isSameMinute)(date, (0, _index.constructNow)(date)); } diff --git a/node_modules/date-fns/isThisMinute.mjs b/node_modules/date-fns/isThisMinute.mjs index f8dd7b04..fd600e56 100644 --- a/node_modules/date-fns/isThisMinute.mjs +++ b/node_modules/date-fns/isThisMinute.mjs @@ -1,3 +1,4 @@ +import { constructNow } from "./constructNow.mjs"; import { isSameMinute } from "./isSameMinute.mjs"; /** @@ -23,7 +24,7 @@ import { isSameMinute } from "./isSameMinute.mjs"; */ export function isThisMinute(date) { - return isSameMinute(Date.now(), date); + return isSameMinute(date, constructNow(date)); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/isThisMonth.d.mts b/node_modules/date-fns/isThisMonth.d.mts index 71b40f36..144538e0 100644 --- a/node_modules/date-fns/isThisMonth.d.mts +++ b/node_modules/date-fns/isThisMonth.d.mts @@ -1 +1,23 @@ -export type * from "./isThisMonth.d.ts"; +/** + * @name isThisMonth + * @category Month Helpers + * @summary Is the given date in the same month as the current date? + * @pure false + * + * @description + * Is the given date in the same month as the current date? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is in this month + * + * @example + * // If today is 25 September 2014, is 15 September 2014 in this month? + * const result = isThisMonth(new Date(2014, 8, 15)) + * //=> true + */ +export declare function isThisMonth( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isThisMonth.js b/node_modules/date-fns/isThisMonth.js index 49ae06d6..0a70c433 100644 --- a/node_modules/date-fns/isThisMonth.js +++ b/node_modules/date-fns/isThisMonth.js @@ -1,6 +1,7 @@ "use strict"; exports.isThisMonth = isThisMonth; -var _index = require("./isSameMonth.js"); +var _index = require("./constructNow.js"); +var _index2 = require("./isSameMonth.js"); /** * @name isThisMonth @@ -24,5 +25,5 @@ var _index = require("./isSameMonth.js"); */ function isThisMonth(date) { - return (0, _index.isSameMonth)(Date.now(), date); + return (0, _index2.isSameMonth)(date, (0, _index.constructNow)(date)); } diff --git a/node_modules/date-fns/isThisMonth.mjs b/node_modules/date-fns/isThisMonth.mjs index 2b4e5023..eb4fd232 100644 --- a/node_modules/date-fns/isThisMonth.mjs +++ b/node_modules/date-fns/isThisMonth.mjs @@ -1,3 +1,4 @@ +import { constructNow } from "./constructNow.mjs"; import { isSameMonth } from "./isSameMonth.mjs"; /** @@ -22,7 +23,7 @@ import { isSameMonth } from "./isSameMonth.mjs"; */ export function isThisMonth(date) { - return isSameMonth(Date.now(), date); + return isSameMonth(date, constructNow(date)); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/isThisQuarter.d.mts b/node_modules/date-fns/isThisQuarter.d.mts index a9231104..856d0cd1 100644 --- a/node_modules/date-fns/isThisQuarter.d.mts +++ b/node_modules/date-fns/isThisQuarter.d.mts @@ -1 +1,23 @@ -export type * from "./isThisQuarter.d.ts"; +/** + * @name isThisQuarter + * @category Quarter Helpers + * @summary Is the given date in the same quarter as the current date? + * @pure false + * + * @description + * Is the given date in the same quarter as the current date? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is in this quarter + * + * @example + * // If today is 25 September 2014, is 2 July 2014 in this quarter? + * const result = isThisQuarter(new Date(2014, 6, 2)) + * //=> true + */ +export declare function isThisQuarter( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isThisQuarter.js b/node_modules/date-fns/isThisQuarter.js index ce2a8dd5..83954f5a 100644 --- a/node_modules/date-fns/isThisQuarter.js +++ b/node_modules/date-fns/isThisQuarter.js @@ -1,6 +1,7 @@ "use strict"; exports.isThisQuarter = isThisQuarter; -var _index = require("./isSameQuarter.js"); +var _index = require("./constructNow.js"); +var _index2 = require("./isSameQuarter.js"); /** * @name isThisQuarter @@ -23,5 +24,5 @@ var _index = require("./isSameQuarter.js"); * //=> true */ function isThisQuarter(date) { - return (0, _index.isSameQuarter)(Date.now(), date); + return (0, _index2.isSameQuarter)(date, (0, _index.constructNow)(date)); } diff --git a/node_modules/date-fns/isThisQuarter.mjs b/node_modules/date-fns/isThisQuarter.mjs index d84e3a84..064f26ac 100644 --- a/node_modules/date-fns/isThisQuarter.mjs +++ b/node_modules/date-fns/isThisQuarter.mjs @@ -1,3 +1,4 @@ +import { constructNow } from "./constructNow.mjs"; import { isSameQuarter } from "./isSameQuarter.mjs"; /** @@ -21,7 +22,7 @@ import { isSameQuarter } from "./isSameQuarter.mjs"; * //=> true */ export function isThisQuarter(date) { - return isSameQuarter(Date.now(), date); + return isSameQuarter(date, constructNow(date)); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/isThisSecond.d.mts b/node_modules/date-fns/isThisSecond.d.mts index 2b39b6a2..5712c691 100644 --- a/node_modules/date-fns/isThisSecond.d.mts +++ b/node_modules/date-fns/isThisSecond.d.mts @@ -1 +1,24 @@ -export type * from "./isThisSecond.d.ts"; +/** + * @name isThisSecond + * @category Second Helpers + * @summary Is the given date in the same second as the current date? + * @pure false + * + * @description + * Is the given date in the same second as the current date? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is in this second + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:30:15.000 in this second? + * const result = isThisSecond(new Date(2014, 8, 25, 18, 30, 15)) + * //=> true + */ +export declare function isThisSecond( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isThisSecond.js b/node_modules/date-fns/isThisSecond.js index da356f61..21d13b88 100644 --- a/node_modules/date-fns/isThisSecond.js +++ b/node_modules/date-fns/isThisSecond.js @@ -1,6 +1,7 @@ "use strict"; exports.isThisSecond = isThisSecond; -var _index = require("./isSameSecond.js"); +var _index = require("./constructNow.js"); +var _index2 = require("./isSameSecond.js"); /** * @name isThisSecond @@ -24,5 +25,5 @@ var _index = require("./isSameSecond.js"); * //=> true */ function isThisSecond(date) { - return (0, _index.isSameSecond)(Date.now(), date); + return (0, _index2.isSameSecond)(date, (0, _index.constructNow)(date)); } diff --git a/node_modules/date-fns/isThisSecond.mjs b/node_modules/date-fns/isThisSecond.mjs index 83cdf746..458b7f2b 100644 --- a/node_modules/date-fns/isThisSecond.mjs +++ b/node_modules/date-fns/isThisSecond.mjs @@ -1,3 +1,4 @@ +import { constructNow } from "./constructNow.mjs"; import { isSameSecond } from "./isSameSecond.mjs"; /** @@ -22,7 +23,7 @@ import { isSameSecond } from "./isSameSecond.mjs"; * //=> true */ export function isThisSecond(date) { - return isSameSecond(Date.now(), date); + return isSameSecond(date, constructNow(date)); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/isThisWeek.d.mts b/node_modules/date-fns/isThisWeek.d.mts index b28d0558..616b518c 100644 --- a/node_modules/date-fns/isThisWeek.d.mts +++ b/node_modules/date-fns/isThisWeek.d.mts @@ -1 +1,38 @@ -export type * from "./isThisWeek.d.ts"; +import type { LocalizedOptions, WeekOptions } from "./types.js"; +/** + * The {@link isThisWeek} function options. + */ +export interface IsThisWeekOptions + extends WeekOptions, + LocalizedOptions<"options"> {} +/** + * @name isThisWeek + * @category Week Helpers + * @summary Is the given date in the same week as the current date? + * @pure false + * + * @description + * Is the given date in the same week as the current date? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * @param options - The object with options + * + * @returns The date is in this week + * + * @example + * // If today is 25 September 2014, is 21 September 2014 in this week? + * const result = isThisWeek(new Date(2014, 8, 21)) + * //=> true + * + * @example + * // If today is 25 September 2014 and week starts with Monday + * // is 21 September 2014 in this week? + * const result = isThisWeek(new Date(2014, 8, 21), { weekStartsOn: 1 }) + * //=> false + */ +export declare function isThisWeek( + date: DateType | number | string, + options?: IsThisWeekOptions, +): boolean; diff --git a/node_modules/date-fns/isThisWeek.js b/node_modules/date-fns/isThisWeek.js index 5255fb9d..46b8c822 100644 --- a/node_modules/date-fns/isThisWeek.js +++ b/node_modules/date-fns/isThisWeek.js @@ -1,6 +1,7 @@ "use strict"; exports.isThisWeek = isThisWeek; -var _index = require("./isSameWeek.js"); +var _index = require("./constructNow.js"); +var _index2 = require("./isSameWeek.js"); /** * The {@link isThisWeek} function options. @@ -34,5 +35,5 @@ var _index = require("./isSameWeek.js"); * //=> false */ function isThisWeek(date, options) { - return (0, _index.isSameWeek)(date, Date.now(), options); + return (0, _index2.isSameWeek)(date, (0, _index.constructNow)(date), options); } diff --git a/node_modules/date-fns/isThisWeek.mjs b/node_modules/date-fns/isThisWeek.mjs index 641d6d8e..89041884 100644 --- a/node_modules/date-fns/isThisWeek.mjs +++ b/node_modules/date-fns/isThisWeek.mjs @@ -1,3 +1,4 @@ +import { constructNow } from "./constructNow.mjs"; import { isSameWeek } from "./isSameWeek.mjs"; /** @@ -32,7 +33,7 @@ import { isSameWeek } from "./isSameWeek.mjs"; * //=> false */ export function isThisWeek(date, options) { - return isSameWeek(date, Date.now(), options); + return isSameWeek(date, constructNow(date), options); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/isThisYear.d.mts b/node_modules/date-fns/isThisYear.d.mts index be0ecfeb..944ec63a 100644 --- a/node_modules/date-fns/isThisYear.d.mts +++ b/node_modules/date-fns/isThisYear.d.mts @@ -1 +1,23 @@ -export type * from "./isThisYear.d.ts"; +/** + * @name isThisYear + * @category Year Helpers + * @summary Is the given date in the same year as the current date? + * @pure false + * + * @description + * Is the given date in the same year as the current date? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is in this year + * + * @example + * // If today is 25 September 2014, is 2 July 2014 in this year? + * const result = isThisYear(new Date(2014, 6, 2)) + * //=> true + */ +export declare function isThisYear( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isThisYear.js b/node_modules/date-fns/isThisYear.js index 5b3ca207..33303d8a 100644 --- a/node_modules/date-fns/isThisYear.js +++ b/node_modules/date-fns/isThisYear.js @@ -1,6 +1,7 @@ "use strict"; exports.isThisYear = isThisYear; -var _index = require("./isSameYear.js"); +var _index = require("./constructNow.js"); +var _index2 = require("./isSameYear.js"); /** * @name isThisYear @@ -23,5 +24,5 @@ var _index = require("./isSameYear.js"); * //=> true */ function isThisYear(date) { - return (0, _index.isSameYear)(date, Date.now()); + return (0, _index2.isSameYear)(date, (0, _index.constructNow)(date)); } diff --git a/node_modules/date-fns/isThisYear.mjs b/node_modules/date-fns/isThisYear.mjs index f245ef4e..b0cf33f4 100644 --- a/node_modules/date-fns/isThisYear.mjs +++ b/node_modules/date-fns/isThisYear.mjs @@ -1,3 +1,4 @@ +import { constructNow } from "./constructNow.mjs"; import { isSameYear } from "./isSameYear.mjs"; /** @@ -21,7 +22,7 @@ import { isSameYear } from "./isSameYear.mjs"; * //=> true */ export function isThisYear(date) { - return isSameYear(date, Date.now()); + return isSameYear(date, constructNow(date)); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/isThursday.d.mts b/node_modules/date-fns/isThursday.d.mts index 67e6c80e..ccd16d23 100644 --- a/node_modules/date-fns/isThursday.d.mts +++ b/node_modules/date-fns/isThursday.d.mts @@ -1 +1,22 @@ -export type * from "./isThursday.d.ts"; +/** + * @name isThursday + * @category Weekday Helpers + * @summary Is the given date Thursday? + * + * @description + * Is the given date Thursday? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is Thursday + * + * @example + * // Is 25 September 2014 Thursday? + * const result = isThursday(new Date(2014, 8, 25)) + * //=> true + */ +export declare function isThursday( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isToday.d.mts b/node_modules/date-fns/isToday.d.mts index d10b9533..3fd1b01e 100644 --- a/node_modules/date-fns/isToday.d.mts +++ b/node_modules/date-fns/isToday.d.mts @@ -1 +1,23 @@ -export type * from "./isToday.d.ts"; +/** + * @name isToday + * @category Day Helpers + * @summary Is the given date today? + * @pure false + * + * @description + * Is the given date today? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is today + * + * @example + * // If today is 6 October 2014, is 6 October 14:00:00 today? + * const result = isToday(new Date(2014, 9, 6, 14, 0)) + * //=> true + */ +export declare function isToday( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isToday.js b/node_modules/date-fns/isToday.js index acd8fb35..2a3dcd18 100644 --- a/node_modules/date-fns/isToday.js +++ b/node_modules/date-fns/isToday.js @@ -1,6 +1,7 @@ "use strict"; exports.isToday = isToday; -var _index = require("./isSameDay.js"); +var _index = require("./constructNow.js"); +var _index2 = require("./isSameDay.js"); /** * @name isToday @@ -23,5 +24,5 @@ var _index = require("./isSameDay.js"); * //=> true */ function isToday(date) { - return (0, _index.isSameDay)(date, Date.now()); + return (0, _index2.isSameDay)(date, (0, _index.constructNow)(date)); } diff --git a/node_modules/date-fns/isToday.mjs b/node_modules/date-fns/isToday.mjs index 062357f1..ee826fa1 100644 --- a/node_modules/date-fns/isToday.mjs +++ b/node_modules/date-fns/isToday.mjs @@ -1,3 +1,4 @@ +import { constructNow } from "./constructNow.mjs"; import { isSameDay } from "./isSameDay.mjs"; /** @@ -21,7 +22,7 @@ import { isSameDay } from "./isSameDay.mjs"; * //=> true */ export function isToday(date) { - return isSameDay(date, Date.now()); + return isSameDay(date, constructNow(date)); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/isTomorrow.d.mts b/node_modules/date-fns/isTomorrow.d.mts index 972bdc47..44390d3b 100644 --- a/node_modules/date-fns/isTomorrow.d.mts +++ b/node_modules/date-fns/isTomorrow.d.mts @@ -1 +1,23 @@ -export type * from "./isTomorrow.d.ts"; +/** + * @name isTomorrow + * @category Day Helpers + * @summary Is the given date tomorrow? + * @pure false + * + * @description + * Is the given date tomorrow? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is tomorrow + * + * @example + * // If today is 6 October 2014, is 7 October 14:00:00 tomorrow? + * const result = isTomorrow(new Date(2014, 9, 7, 14, 0)) + * //=> true + */ +export declare function isTomorrow( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isTomorrow.js b/node_modules/date-fns/isTomorrow.js index 037201a2..c1af36a1 100644 --- a/node_modules/date-fns/isTomorrow.js +++ b/node_modules/date-fns/isTomorrow.js @@ -1,7 +1,8 @@ "use strict"; exports.isTomorrow = isTomorrow; var _index = require("./addDays.js"); -var _index2 = require("./isSameDay.js"); +var _index2 = require("./constructNow.js"); +var _index3 = require("./isSameDay.js"); /** * @name isTomorrow @@ -24,5 +25,8 @@ var _index2 = require("./isSameDay.js"); * //=> true */ function isTomorrow(date) { - return (0, _index2.isSameDay)(date, (0, _index.addDays)(Date.now(), 1)); + return (0, _index3.isSameDay)( + date, + (0, _index.addDays)((0, _index2.constructNow)(date), 1), + ); } diff --git a/node_modules/date-fns/isTomorrow.mjs b/node_modules/date-fns/isTomorrow.mjs index 932a8d9f..e43d5ca3 100644 --- a/node_modules/date-fns/isTomorrow.mjs +++ b/node_modules/date-fns/isTomorrow.mjs @@ -1,4 +1,5 @@ import { addDays } from "./addDays.mjs"; +import { constructNow } from "./constructNow.mjs"; import { isSameDay } from "./isSameDay.mjs"; /** @@ -22,7 +23,7 @@ import { isSameDay } from "./isSameDay.mjs"; * //=> true */ export function isTomorrow(date) { - return isSameDay(date, addDays(Date.now(), 1)); + return isSameDay(date, addDays(constructNow(date), 1)); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/isTuesday.d.mts b/node_modules/date-fns/isTuesday.d.mts index 43abac50..52f3d684 100644 --- a/node_modules/date-fns/isTuesday.d.mts +++ b/node_modules/date-fns/isTuesday.d.mts @@ -1 +1,22 @@ -export type * from "./isTuesday.d.ts"; +/** + * @name isTuesday + * @category Weekday Helpers + * @summary Is the given date Tuesday? + * + * @description + * Is the given date Tuesday? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is Tuesday + * + * @example + * // Is 23 September 2014 Tuesday? + * const result = isTuesday(new Date(2014, 8, 23)) + * //=> true + */ +export declare function isTuesday( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isValid.d.mts b/node_modules/date-fns/isValid.d.mts index 9d9f2f7c..696c806f 100644 --- a/node_modules/date-fns/isValid.d.mts +++ b/node_modules/date-fns/isValid.d.mts @@ -1 +1,34 @@ -export type * from "./isValid.d.ts"; +/** + * @name isValid + * @category Common Helpers + * @summary Is the given date valid? + * + * @description + * Returns false if argument is Invalid Date and true otherwise. + * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate) + * Invalid Date is a Date, whose time value is NaN. + * + * Time value of Date: http://es5.github.io/#x15.9.1.1 + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is valid + * + * @example + * // For the valid date: + * const result = isValid(new Date(2014, 1, 31)) + * //=> true + * + * @example + * // For the value, convertable into a date: + * const result = isValid(1393804800000) + * //=> true + * + * @example + * // For the invalid date: + * const result = isValid(new Date('')) + * //=> false + */ +export declare function isValid(date: unknown): boolean; diff --git a/node_modules/date-fns/isWednesday.d.mts b/node_modules/date-fns/isWednesday.d.mts index dc640bd7..78b632cc 100644 --- a/node_modules/date-fns/isWednesday.d.mts +++ b/node_modules/date-fns/isWednesday.d.mts @@ -1 +1,22 @@ -export type * from "./isWednesday.d.ts"; +/** + * @name isWednesday + * @category Weekday Helpers + * @summary Is the given date Wednesday? + * + * @description + * Is the given date Wednesday? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is Wednesday + * + * @example + * // Is 24 September 2014 Wednesday? + * const result = isWednesday(new Date(2014, 8, 24)) + * //=> true + */ +export declare function isWednesday( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isWeekend.d.mts b/node_modules/date-fns/isWeekend.d.mts index 9b282f41..94d79a18 100644 --- a/node_modules/date-fns/isWeekend.d.mts +++ b/node_modules/date-fns/isWeekend.d.mts @@ -1 +1,22 @@ -export type * from "./isWeekend.d.ts"; +/** + * @name isWeekend + * @category Weekday Helpers + * @summary Does the given date fall on a weekend? + * + * @description + * Does the given date fall on a weekend? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date falls on a weekend + * + * @example + * // Does 5 October 2014 fall on a weekend? + * const result = isWeekend(new Date(2014, 9, 5)) + * //=> true + */ +export declare function isWeekend( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isWithinInterval.d.mts b/node_modules/date-fns/isWithinInterval.d.mts index 01a07a30..e94c8cc9 100644 --- a/node_modules/date-fns/isWithinInterval.d.mts +++ b/node_modules/date-fns/isWithinInterval.d.mts @@ -1 +1,46 @@ -export type * from "./isWithinInterval.d.ts"; +import type { Interval } from "./types.js"; +/** + * @name isWithinInterval + * @category Interval Helpers + * @summary Is the given date within the interval? + * + * @description + * Is the given date within the interval? (Including start and end.) + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * @param interval - The interval to check + * + * @returns The date is within the interval + * + * @example + * // For the date within the interval: + * isWithinInterval(new Date(2014, 0, 3), { + * start: new Date(2014, 0, 1), + * end: new Date(2014, 0, 7) + * }) + * //=> true + * + * @example + * // For the date outside of the interval: + * isWithinInterval(new Date(2014, 0, 10), { + * start: new Date(2014, 0, 1), + * end: new Date(2014, 0, 7) + * }) + * //=> false + * + * @example + * // For date equal to interval start: + * isWithinInterval(date, { start, end: date }) + * // => true + * + * @example + * // For date equal to interval end: + * isWithinInterval(date, { start: date, end }) + * // => true + */ +export declare function isWithinInterval( + date: DateType | number | string, + interval: Interval, +): boolean; diff --git a/node_modules/date-fns/isWithinInterval.js b/node_modules/date-fns/isWithinInterval.js index 28dff3be..ba7aa64b 100644 --- a/node_modules/date-fns/isWithinInterval.js +++ b/node_modules/date-fns/isWithinInterval.js @@ -48,7 +48,7 @@ function isWithinInterval(date, interval) { const [startTime, endTime] = [ +(0, _index.toDate)(interval.start), +(0, _index.toDate)(interval.end), - ].sort(); + ].sort((a, b) => a - b); return time >= startTime && time <= endTime; } diff --git a/node_modules/date-fns/isWithinInterval.mjs b/node_modules/date-fns/isWithinInterval.mjs index 1fb352fb..cbd7859a 100644 --- a/node_modules/date-fns/isWithinInterval.mjs +++ b/node_modules/date-fns/isWithinInterval.mjs @@ -46,7 +46,7 @@ export function isWithinInterval(date, interval) { const [startTime, endTime] = [ +toDate(interval.start), +toDate(interval.end), - ].sort(); + ].sort((a, b) => a - b); return time >= startTime && time <= endTime; } diff --git a/node_modules/date-fns/isYesterday.d.mts b/node_modules/date-fns/isYesterday.d.mts index 1d1f85cc..9c022e6e 100644 --- a/node_modules/date-fns/isYesterday.d.mts +++ b/node_modules/date-fns/isYesterday.d.mts @@ -1 +1,23 @@ -export type * from "./isYesterday.d.ts"; +/** + * @name isYesterday + * @category Day Helpers + * @summary Is the given date yesterday? + * @pure false + * + * @description + * Is the given date yesterday? + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to check + * + * @returns The date is yesterday + * + * @example + * // If today is 6 October 2014, is 5 October 14:00:00 yesterday? + * const result = isYesterday(new Date(2014, 9, 5, 14, 0)) + * //=> true + */ +export declare function isYesterday( + date: DateType | number | string, +): boolean; diff --git a/node_modules/date-fns/isYesterday.js b/node_modules/date-fns/isYesterday.js index 771e467e..d0eb3024 100644 --- a/node_modules/date-fns/isYesterday.js +++ b/node_modules/date-fns/isYesterday.js @@ -1,7 +1,8 @@ "use strict"; exports.isYesterday = isYesterday; -var _index = require("./isSameDay.js"); -var _index2 = require("./subDays.js"); +var _index = require("./constructNow.js"); +var _index2 = require("./isSameDay.js"); +var _index3 = require("./subDays.js"); /** * @name isYesterday @@ -24,5 +25,8 @@ var _index2 = require("./subDays.js"); * //=> true */ function isYesterday(date) { - return (0, _index.isSameDay)(date, (0, _index2.subDays)(Date.now(), 1)); + return (0, _index2.isSameDay)( + date, + (0, _index3.subDays)((0, _index.constructNow)(date), 1), + ); } diff --git a/node_modules/date-fns/isYesterday.mjs b/node_modules/date-fns/isYesterday.mjs index 5222a9e8..05f8a565 100644 --- a/node_modules/date-fns/isYesterday.mjs +++ b/node_modules/date-fns/isYesterday.mjs @@ -1,3 +1,4 @@ +import { constructNow } from "./constructNow.mjs"; import { isSameDay } from "./isSameDay.mjs"; import { subDays } from "./subDays.mjs"; @@ -22,7 +23,7 @@ import { subDays } from "./subDays.mjs"; * //=> true */ export function isYesterday(date) { - return isSameDay(date, subDays(Date.now(), 1)); + return isSameDay(date, subDays(constructNow(date), 1)); } // Fallback for modularized imports: diff --git a/node_modules/date-fns/lastDayOfDecade.d.mts b/node_modules/date-fns/lastDayOfDecade.d.mts index 44b59863..a5f2542d 100644 --- a/node_modules/date-fns/lastDayOfDecade.d.mts +++ b/node_modules/date-fns/lastDayOfDecade.d.mts @@ -1 +1,22 @@ -export type * from "./lastDayOfDecade.d.ts"; +/** + * @name lastDayOfDecade + * @category Decade Helpers + * @summary Return the last day of a decade for the given date. + * + * @description + * Return the last day of a decade for the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The last day of a decade + * + * @example + * // The last day of a decade for 21 December 2012 21:12:00: + * const result = lastDayOfDecade(new Date(2012, 11, 21, 21, 12, 00)) + * //=> Wed Dec 31 2019 00:00:00 + */ +export declare function lastDayOfDecade( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/lastDayOfDecade.js b/node_modules/date-fns/lastDayOfDecade.js index 9a750b27..ae897e80 100644 --- a/node_modules/date-fns/lastDayOfDecade.js +++ b/node_modules/date-fns/lastDayOfDecade.js @@ -22,6 +22,9 @@ var _index = require("./toDate.js"); * //=> Wed Dec 31 2019 00:00:00 */ function lastDayOfDecade(date) { + // TODO: Switch to more technical definition in of decades that start with 1 + // end with 0. I.e. 2001-2010 instead of current 2000-2009. It's a breaking + // change, so it can only be done in 4.0. const _date = (0, _index.toDate)(date); const year = _date.getFullYear(); const decade = 9 + Math.floor(year / 10) * 10; diff --git a/node_modules/date-fns/lastDayOfDecade.mjs b/node_modules/date-fns/lastDayOfDecade.mjs index da5b52f1..c5363037 100644 --- a/node_modules/date-fns/lastDayOfDecade.mjs +++ b/node_modules/date-fns/lastDayOfDecade.mjs @@ -20,6 +20,9 @@ import { toDate } from "./toDate.mjs"; * //=> Wed Dec 31 2019 00:00:00 */ export function lastDayOfDecade(date) { + // TODO: Switch to more technical definition in of decades that start with 1 + // end with 0. I.e. 2001-2010 instead of current 2000-2009. It's a breaking + // change, so it can only be done in 4.0. const _date = toDate(date); const year = _date.getFullYear(); const decade = 9 + Math.floor(year / 10) * 10; diff --git a/node_modules/date-fns/lastDayOfISOWeek.d.mts b/node_modules/date-fns/lastDayOfISOWeek.d.mts index 4678d331..98964274 100644 --- a/node_modules/date-fns/lastDayOfISOWeek.d.mts +++ b/node_modules/date-fns/lastDayOfISOWeek.d.mts @@ -1 +1,25 @@ -export type * from "./lastDayOfISOWeek.d.ts"; +/** + * @name lastDayOfISOWeek + * @category ISO Week Helpers + * @summary Return the last day of an ISO week for the given date. + * + * @description + * Return the last day of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The last day of an ISO week + * + * @example + * // The last day of an ISO week for 2 September 2014 11:55:00: + * const result = lastDayOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Sep 07 2014 00:00:00 + */ +export declare function lastDayOfISOWeek( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/lastDayOfISOWeekYear.d.mts b/node_modules/date-fns/lastDayOfISOWeekYear.d.mts index d6aa8019..c85d8b26 100644 --- a/node_modules/date-fns/lastDayOfISOWeekYear.d.mts +++ b/node_modules/date-fns/lastDayOfISOWeekYear.d.mts @@ -1 +1,26 @@ -export type * from "./lastDayOfISOWeekYear.d.ts"; +/** + * @name lastDayOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the last day of an ISO week-numbering year for the given date. + * + * @description + * Return the last day of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The end of an ISO week-numbering year + * + * @example + * // The last day of an ISO week-numbering year for 2 July 2005: + * const result = lastDayOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Sun Jan 01 2006 00:00:00 + */ +export declare function lastDayOfISOWeekYear( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/lastDayOfMonth.d.mts b/node_modules/date-fns/lastDayOfMonth.d.mts index 19399c43..6a74d8a1 100644 --- a/node_modules/date-fns/lastDayOfMonth.d.mts +++ b/node_modules/date-fns/lastDayOfMonth.d.mts @@ -1 +1,23 @@ -export type * from "./lastDayOfMonth.d.ts"; +/** + * @name lastDayOfMonth + * @category Month Helpers + * @summary Return the last day of a month for the given date. + * + * @description + * Return the last day of a month for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The last day of a month + * + * @example + * // The last day of a month for 2 September 2014 11:55:00: + * const result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 00:00:00 + */ +export declare function lastDayOfMonth( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/lastDayOfQuarter.d.mts b/node_modules/date-fns/lastDayOfQuarter.d.mts index 29130ae1..e9e33299 100644 --- a/node_modules/date-fns/lastDayOfQuarter.d.mts +++ b/node_modules/date-fns/lastDayOfQuarter.d.mts @@ -1 +1,23 @@ -export type * from "./lastDayOfQuarter.d.ts"; +/** + * @name lastDayOfQuarter + * @category Quarter Helpers + * @summary Return the last day of a year quarter for the given date. + * + * @description + * Return the last day of a year quarter for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The last day of a quarter + * + * @example + * // The last day of a quarter for 2 September 2014 11:55:00: + * const result = lastDayOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 00:00:00 + */ +export declare function lastDayOfQuarter( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/lastDayOfWeek.d.mts b/node_modules/date-fns/lastDayOfWeek.d.mts index a6e22ba0..35c28518 100644 --- a/node_modules/date-fns/lastDayOfWeek.d.mts +++ b/node_modules/date-fns/lastDayOfWeek.d.mts @@ -1 +1,37 @@ -export type * from "./lastDayOfWeek.d.ts"; +import type { LocalizedOptions, WeekOptions } from "./types.js"; +/** + * The {@link lastDayOfWeek} function options. + */ +export interface LastDayOfWeekOptions + extends LocalizedOptions<"options">, + WeekOptions {} +/** + * @name lastDayOfWeek + * @category Week Helpers + * @summary Return the last day of a week for the given date. + * + * @description + * Return the last day of a week for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of a week + * + * @example + * // The last day of a week for 2 September 2014 11:55:00: + * const result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sat Sep 06 2014 00:00:00 + * + * @example + * // If the week starts on Monday, the last day of the week for 2 September 2014 11:55:00: + * const result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 00:00:00 + */ +export declare function lastDayOfWeek( + date: DateType | number | string, + options?: LastDayOfWeekOptions, +): DateType; diff --git a/node_modules/date-fns/lastDayOfYear.d.mts b/node_modules/date-fns/lastDayOfYear.d.mts index e4bac617..56bb2673 100644 --- a/node_modules/date-fns/lastDayOfYear.d.mts +++ b/node_modules/date-fns/lastDayOfYear.d.mts @@ -1 +1,23 @@ -export type * from "./lastDayOfYear.d.ts"; +/** + * @name lastDayOfYear + * @category Year Helpers + * @summary Return the last day of a year for the given date. + * + * @description + * Return the last day of a year for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * + * @returns The last day of a year + * + * @example + * // The last day of a year for 2 September 2014 11:55:00: + * const result = lastDayOfYear(new Date(2014, 8, 2, 11, 55, 00)) + * //=> Wed Dec 31 2014 00:00:00 + */ +export declare function lastDayOfYear( + date: DateType | number | string, +): DateType; diff --git a/node_modules/date-fns/lightFormat.d.mts b/node_modules/date-fns/lightFormat.d.mts index 5622bbdb..dd49cf65 100644 --- a/node_modules/date-fns/lightFormat.d.mts +++ b/node_modules/date-fns/lightFormat.d.mts @@ -1 +1,65 @@ -export type * from "./lightFormat.d.ts"; +import { lightFormatters } from "./_lib/format/lightFormatters.js"; +export { lightFormatters }; +/** + * @name lightFormat + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. Unlike `format`, + * `lightFormat` doesn't use locales and outputs date using the most popular tokens. + * + * > ⚠️ Please note that the `lightFormat` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * + * Accepted patterns: + * | Unit | Pattern | Result examples | + * |---------------------------------|---------|-----------------------------------| + * | AM, PM | a..aaa | AM, PM | + * | | aaaa | a.m., p.m. | + * | | aaaaa | a, p | + * | Calendar year | y | 44, 1, 1900, 2017 | + * | | yy | 44, 01, 00, 17 | + * | | yyy | 044, 001, 000, 017 | + * | | yyyy | 0044, 0001, 1900, 2017 | + * | Month (formatting) | M | 1, 2, ..., 12 | + * | | MM | 01, 02, ..., 12 | + * | Day of month | d | 1, 2, ..., 31 | + * | | dd | 01, 02, ..., 31 | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | + * | | hh | 01, 02, ..., 11, 12 | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | + * | | HH | 00, 01, 02, ..., 23 | + * | Minute | m | 0, 1, ..., 59 | + * | | mm | 00, 01, ..., 59 | + * | Second | s | 0, 1, ..., 59 | + * | | ss | 00, 01, ..., 59 | + * | Fraction of second | S | 0, 1, ..., 9 | + * | | SS | 00, 01, ..., 99 | + * | | SSS | 000, 001, ..., 999 | + * | | SSSS | ... | + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The original date + * @param format - The string of tokens + * + * @returns The formatted date string + * + * @throws `Invalid time value` if the date is invalid + * @throws format string contains an unescaped latin alphabet character + * + * @example + * const result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd') + * //=> '2014-02-11' + */ +export declare function lightFormat( + date: DateType | number | string, + formatStr: string, +): string; diff --git a/node_modules/date-fns/lightFormat.d.ts b/node_modules/date-fns/lightFormat.d.ts index 0d53d414..dd49cf65 100644 --- a/node_modules/date-fns/lightFormat.d.ts +++ b/node_modules/date-fns/lightFormat.d.ts @@ -1,3 +1,5 @@ +import { lightFormatters } from "./_lib/format/lightFormatters.js"; +export { lightFormatters }; /** * @name lightFormat * @category Common Helpers diff --git a/node_modules/date-fns/lightFormat.js b/node_modules/date-fns/lightFormat.js index dfefd4b2..04a70611 100644 --- a/node_modules/date-fns/lightFormat.js +++ b/node_modules/date-fns/lightFormat.js @@ -1,9 +1,18 @@ "use strict"; exports.lightFormat = lightFormat; +Object.defineProperty(exports, "lightFormatters", { + enumerable: true, + get: function () { + return _index3.lightFormatters; + }, +}); var _index = require("./isValid.js"); var _index2 = require("./toDate.js"); var _index3 = require("./_lib/format/lightFormatters.js"); +// Rexports of internal for libraries to use. +// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874 + // This RegExp consists of three parts separated by `|`: // - (\w)\1* matches any sequences of the same letter // - '' matches two quote characters in a row diff --git a/node_modules/date-fns/lightFormat.mjs b/node_modules/date-fns/lightFormat.mjs index 7778215e..c2ece8ce 100644 --- a/node_modules/date-fns/lightFormat.mjs +++ b/node_modules/date-fns/lightFormat.mjs @@ -2,6 +2,10 @@ import { isValid } from "./isValid.mjs"; import { toDate } from "./toDate.mjs"; import { lightFormatters } from "./_lib/format/lightFormatters.mjs"; +// Rexports of internal for libraries to use. +// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874 +export { lightFormatters }; + // This RegExp consists of three parts separated by `|`: // - (\w)\1* matches any sequences of the same letter // - '' matches two quote characters in a row diff --git a/node_modules/date-fns/locale.d.mts b/node_modules/date-fns/locale.d.mts index 0172a21c..c56bf950 100644 --- a/node_modules/date-fns/locale.d.mts +++ b/node_modules/date-fns/locale.d.mts @@ -1 +1,96 @@ -export type * from "./locale.d.ts"; +export * from "./locale/af.js"; +export * from "./locale/ar.js"; +export * from "./locale/ar-DZ.js"; +export * from "./locale/ar-EG.js"; +export * from "./locale/ar-MA.js"; +export * from "./locale/ar-SA.js"; +export * from "./locale/ar-TN.js"; +export * from "./locale/az.js"; +export * from "./locale/be.js"; +export * from "./locale/be-tarask.js"; +export * from "./locale/bg.js"; +export * from "./locale/bn.js"; +export * from "./locale/bs.js"; +export * from "./locale/ca.js"; +export * from "./locale/ckb.js"; +export * from "./locale/cs.js"; +export * from "./locale/cy.js"; +export * from "./locale/da.js"; +export * from "./locale/de.js"; +export * from "./locale/de-AT.js"; +export * from "./locale/el.js"; +export * from "./locale/en-AU.js"; +export * from "./locale/en-CA.js"; +export * from "./locale/en-GB.js"; +export * from "./locale/en-IE.js"; +export * from "./locale/en-IN.js"; +export * from "./locale/en-NZ.js"; +export * from "./locale/en-US.js"; +export * from "./locale/en-ZA.js"; +export * from "./locale/eo.js"; +export * from "./locale/es.js"; +export * from "./locale/et.js"; +export * from "./locale/eu.js"; +export * from "./locale/fa-IR.js"; +export * from "./locale/fi.js"; +export * from "./locale/fr.js"; +export * from "./locale/fr-CA.js"; +export * from "./locale/fr-CH.js"; +export * from "./locale/fy.js"; +export * from "./locale/gd.js"; +export * from "./locale/gl.js"; +export * from "./locale/gu.js"; +export * from "./locale/he.js"; +export * from "./locale/hi.js"; +export * from "./locale/hr.js"; +export * from "./locale/ht.js"; +export * from "./locale/hu.js"; +export * from "./locale/hy.js"; +export * from "./locale/id.js"; +export * from "./locale/is.js"; +export * from "./locale/it.js"; +export * from "./locale/it-CH.js"; +export * from "./locale/ja.js"; +export * from "./locale/ja-Hira.js"; +export * from "./locale/ka.js"; +export * from "./locale/kk.js"; +export * from "./locale/km.js"; +export * from "./locale/kn.js"; +export * from "./locale/ko.js"; +export * from "./locale/lb.js"; +export * from "./locale/lt.js"; +export * from "./locale/lv.js"; +export * from "./locale/mk.js"; +export * from "./locale/mn.js"; +export * from "./locale/ms.js"; +export * from "./locale/mt.js"; +export * from "./locale/nb.js"; +export * from "./locale/nl.js"; +export * from "./locale/nl-BE.js"; +export * from "./locale/nn.js"; +export * from "./locale/oc.js"; +export * from "./locale/pl.js"; +export * from "./locale/pt.js"; +export * from "./locale/pt-BR.js"; +export * from "./locale/ro.js"; +export * from "./locale/ru.js"; +export * from "./locale/se.js"; +export * from "./locale/sk.js"; +export * from "./locale/sl.js"; +export * from "./locale/sq.js"; +export * from "./locale/sr.js"; +export * from "./locale/sr-Latn.js"; +export * from "./locale/sv.js"; +export * from "./locale/ta.js"; +export * from "./locale/te.js"; +export * from "./locale/th.js"; +export * from "./locale/tr.js"; +export * from "./locale/ug.js"; +export * from "./locale/uk.js"; +export * from "./locale/uz.js"; +export * from "./locale/uz-Cyrl.js"; +export * from "./locale/vi.js"; +export * from "./locale/zh-CN.js"; +export * from "./locale/zh-HK.js"; +export * from "./locale/zh-TW.js"; +export type * from "./locale/types.js"; diff --git a/node_modules/date-fns/locale.d.ts b/node_modules/date-fns/locale.d.ts index 47399367..c56bf950 100644 --- a/node_modules/date-fns/locale.d.ts +++ b/node_modules/date-fns/locale.d.ts @@ -12,6 +12,7 @@ export * from "./locale/bg.js"; export * from "./locale/bn.js"; export * from "./locale/bs.js"; export * from "./locale/ca.js"; +export * from "./locale/ckb.js"; export * from "./locale/cs.js"; export * from "./locale/cy.js"; export * from "./locale/da.js"; @@ -73,6 +74,7 @@ export * from "./locale/pt.js"; export * from "./locale/pt-BR.js"; export * from "./locale/ro.js"; export * from "./locale/ru.js"; +export * from "./locale/se.js"; export * from "./locale/sk.js"; export * from "./locale/sl.js"; export * from "./locale/sq.js"; diff --git a/node_modules/date-fns/locale.js b/node_modules/date-fns/locale.js index 88bb5415..10b92949 100644 --- a/node_modules/date-fns/locale.js +++ b/node_modules/date-fns/locale.js @@ -154,7 +154,7 @@ Object.keys(_index14).forEach(function (key) { }, }); }); -var _index15 = require("./locale/cs.js"); +var _index15 = require("./locale/ckb.js"); Object.keys(_index15).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index15[key]) return; @@ -165,7 +165,7 @@ Object.keys(_index15).forEach(function (key) { }, }); }); -var _index16 = require("./locale/cy.js"); +var _index16 = require("./locale/cs.js"); Object.keys(_index16).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index16[key]) return; @@ -176,7 +176,7 @@ Object.keys(_index16).forEach(function (key) { }, }); }); -var _index17 = require("./locale/da.js"); +var _index17 = require("./locale/cy.js"); Object.keys(_index17).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index17[key]) return; @@ -187,7 +187,7 @@ Object.keys(_index17).forEach(function (key) { }, }); }); -var _index18 = require("./locale/de.js"); +var _index18 = require("./locale/da.js"); Object.keys(_index18).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index18[key]) return; @@ -198,7 +198,7 @@ Object.keys(_index18).forEach(function (key) { }, }); }); -var _index19 = require("./locale/de-AT.js"); +var _index19 = require("./locale/de.js"); Object.keys(_index19).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index19[key]) return; @@ -209,7 +209,7 @@ Object.keys(_index19).forEach(function (key) { }, }); }); -var _index20 = require("./locale/el.js"); +var _index20 = require("./locale/de-AT.js"); Object.keys(_index20).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index20[key]) return; @@ -220,7 +220,7 @@ Object.keys(_index20).forEach(function (key) { }, }); }); -var _index21 = require("./locale/en-AU.js"); +var _index21 = require("./locale/el.js"); Object.keys(_index21).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index21[key]) return; @@ -231,7 +231,7 @@ Object.keys(_index21).forEach(function (key) { }, }); }); -var _index22 = require("./locale/en-CA.js"); +var _index22 = require("./locale/en-AU.js"); Object.keys(_index22).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index22[key]) return; @@ -242,7 +242,7 @@ Object.keys(_index22).forEach(function (key) { }, }); }); -var _index23 = require("./locale/en-GB.js"); +var _index23 = require("./locale/en-CA.js"); Object.keys(_index23).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index23[key]) return; @@ -253,7 +253,7 @@ Object.keys(_index23).forEach(function (key) { }, }); }); -var _index24 = require("./locale/en-IE.js"); +var _index24 = require("./locale/en-GB.js"); Object.keys(_index24).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index24[key]) return; @@ -264,7 +264,7 @@ Object.keys(_index24).forEach(function (key) { }, }); }); -var _index25 = require("./locale/en-IN.js"); +var _index25 = require("./locale/en-IE.js"); Object.keys(_index25).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index25[key]) return; @@ -275,7 +275,7 @@ Object.keys(_index25).forEach(function (key) { }, }); }); -var _index26 = require("./locale/en-NZ.js"); +var _index26 = require("./locale/en-IN.js"); Object.keys(_index26).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index26[key]) return; @@ -286,7 +286,7 @@ Object.keys(_index26).forEach(function (key) { }, }); }); -var _index27 = require("./locale/en-US.js"); +var _index27 = require("./locale/en-NZ.js"); Object.keys(_index27).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index27[key]) return; @@ -297,7 +297,7 @@ Object.keys(_index27).forEach(function (key) { }, }); }); -var _index28 = require("./locale/en-ZA.js"); +var _index28 = require("./locale/en-US.js"); Object.keys(_index28).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index28[key]) return; @@ -308,7 +308,7 @@ Object.keys(_index28).forEach(function (key) { }, }); }); -var _index29 = require("./locale/eo.js"); +var _index29 = require("./locale/en-ZA.js"); Object.keys(_index29).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index29[key]) return; @@ -319,7 +319,7 @@ Object.keys(_index29).forEach(function (key) { }, }); }); -var _index30 = require("./locale/es.js"); +var _index30 = require("./locale/eo.js"); Object.keys(_index30).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index30[key]) return; @@ -330,7 +330,7 @@ Object.keys(_index30).forEach(function (key) { }, }); }); -var _index31 = require("./locale/et.js"); +var _index31 = require("./locale/es.js"); Object.keys(_index31).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index31[key]) return; @@ -341,7 +341,7 @@ Object.keys(_index31).forEach(function (key) { }, }); }); -var _index32 = require("./locale/eu.js"); +var _index32 = require("./locale/et.js"); Object.keys(_index32).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index32[key]) return; @@ -352,7 +352,7 @@ Object.keys(_index32).forEach(function (key) { }, }); }); -var _index33 = require("./locale/fa-IR.js"); +var _index33 = require("./locale/eu.js"); Object.keys(_index33).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index33[key]) return; @@ -363,7 +363,7 @@ Object.keys(_index33).forEach(function (key) { }, }); }); -var _index34 = require("./locale/fi.js"); +var _index34 = require("./locale/fa-IR.js"); Object.keys(_index34).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index34[key]) return; @@ -374,7 +374,7 @@ Object.keys(_index34).forEach(function (key) { }, }); }); -var _index35 = require("./locale/fr.js"); +var _index35 = require("./locale/fi.js"); Object.keys(_index35).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index35[key]) return; @@ -385,7 +385,7 @@ Object.keys(_index35).forEach(function (key) { }, }); }); -var _index36 = require("./locale/fr-CA.js"); +var _index36 = require("./locale/fr.js"); Object.keys(_index36).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index36[key]) return; @@ -396,7 +396,7 @@ Object.keys(_index36).forEach(function (key) { }, }); }); -var _index37 = require("./locale/fr-CH.js"); +var _index37 = require("./locale/fr-CA.js"); Object.keys(_index37).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index37[key]) return; @@ -407,7 +407,7 @@ Object.keys(_index37).forEach(function (key) { }, }); }); -var _index38 = require("./locale/fy.js"); +var _index38 = require("./locale/fr-CH.js"); Object.keys(_index38).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index38[key]) return; @@ -418,7 +418,7 @@ Object.keys(_index38).forEach(function (key) { }, }); }); -var _index39 = require("./locale/gd.js"); +var _index39 = require("./locale/fy.js"); Object.keys(_index39).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index39[key]) return; @@ -429,7 +429,7 @@ Object.keys(_index39).forEach(function (key) { }, }); }); -var _index40 = require("./locale/gl.js"); +var _index40 = require("./locale/gd.js"); Object.keys(_index40).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index40[key]) return; @@ -440,7 +440,7 @@ Object.keys(_index40).forEach(function (key) { }, }); }); -var _index41 = require("./locale/gu.js"); +var _index41 = require("./locale/gl.js"); Object.keys(_index41).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index41[key]) return; @@ -451,7 +451,7 @@ Object.keys(_index41).forEach(function (key) { }, }); }); -var _index42 = require("./locale/he.js"); +var _index42 = require("./locale/gu.js"); Object.keys(_index42).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index42[key]) return; @@ -462,7 +462,7 @@ Object.keys(_index42).forEach(function (key) { }, }); }); -var _index43 = require("./locale/hi.js"); +var _index43 = require("./locale/he.js"); Object.keys(_index43).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index43[key]) return; @@ -473,7 +473,7 @@ Object.keys(_index43).forEach(function (key) { }, }); }); -var _index44 = require("./locale/hr.js"); +var _index44 = require("./locale/hi.js"); Object.keys(_index44).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index44[key]) return; @@ -484,7 +484,7 @@ Object.keys(_index44).forEach(function (key) { }, }); }); -var _index45 = require("./locale/ht.js"); +var _index45 = require("./locale/hr.js"); Object.keys(_index45).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index45[key]) return; @@ -495,7 +495,7 @@ Object.keys(_index45).forEach(function (key) { }, }); }); -var _index46 = require("./locale/hu.js"); +var _index46 = require("./locale/ht.js"); Object.keys(_index46).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index46[key]) return; @@ -506,7 +506,7 @@ Object.keys(_index46).forEach(function (key) { }, }); }); -var _index47 = require("./locale/hy.js"); +var _index47 = require("./locale/hu.js"); Object.keys(_index47).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index47[key]) return; @@ -517,7 +517,7 @@ Object.keys(_index47).forEach(function (key) { }, }); }); -var _index48 = require("./locale/id.js"); +var _index48 = require("./locale/hy.js"); Object.keys(_index48).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index48[key]) return; @@ -528,7 +528,7 @@ Object.keys(_index48).forEach(function (key) { }, }); }); -var _index49 = require("./locale/is.js"); +var _index49 = require("./locale/id.js"); Object.keys(_index49).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index49[key]) return; @@ -539,7 +539,7 @@ Object.keys(_index49).forEach(function (key) { }, }); }); -var _index50 = require("./locale/it.js"); +var _index50 = require("./locale/is.js"); Object.keys(_index50).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index50[key]) return; @@ -550,7 +550,7 @@ Object.keys(_index50).forEach(function (key) { }, }); }); -var _index51 = require("./locale/it-CH.js"); +var _index51 = require("./locale/it.js"); Object.keys(_index51).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index51[key]) return; @@ -561,7 +561,7 @@ Object.keys(_index51).forEach(function (key) { }, }); }); -var _index52 = require("./locale/ja.js"); +var _index52 = require("./locale/it-CH.js"); Object.keys(_index52).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index52[key]) return; @@ -572,7 +572,7 @@ Object.keys(_index52).forEach(function (key) { }, }); }); -var _index53 = require("./locale/ja-Hira.js"); +var _index53 = require("./locale/ja.js"); Object.keys(_index53).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index53[key]) return; @@ -583,7 +583,7 @@ Object.keys(_index53).forEach(function (key) { }, }); }); -var _index54 = require("./locale/ka.js"); +var _index54 = require("./locale/ja-Hira.js"); Object.keys(_index54).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index54[key]) return; @@ -594,7 +594,7 @@ Object.keys(_index54).forEach(function (key) { }, }); }); -var _index55 = require("./locale/kk.js"); +var _index55 = require("./locale/ka.js"); Object.keys(_index55).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index55[key]) return; @@ -605,7 +605,7 @@ Object.keys(_index55).forEach(function (key) { }, }); }); -var _index56 = require("./locale/km.js"); +var _index56 = require("./locale/kk.js"); Object.keys(_index56).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index56[key]) return; @@ -616,7 +616,7 @@ Object.keys(_index56).forEach(function (key) { }, }); }); -var _index57 = require("./locale/kn.js"); +var _index57 = require("./locale/km.js"); Object.keys(_index57).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index57[key]) return; @@ -627,7 +627,7 @@ Object.keys(_index57).forEach(function (key) { }, }); }); -var _index58 = require("./locale/ko.js"); +var _index58 = require("./locale/kn.js"); Object.keys(_index58).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index58[key]) return; @@ -638,7 +638,7 @@ Object.keys(_index58).forEach(function (key) { }, }); }); -var _index59 = require("./locale/lb.js"); +var _index59 = require("./locale/ko.js"); Object.keys(_index59).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index59[key]) return; @@ -649,7 +649,7 @@ Object.keys(_index59).forEach(function (key) { }, }); }); -var _index60 = require("./locale/lt.js"); +var _index60 = require("./locale/lb.js"); Object.keys(_index60).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index60[key]) return; @@ -660,7 +660,7 @@ Object.keys(_index60).forEach(function (key) { }, }); }); -var _index61 = require("./locale/lv.js"); +var _index61 = require("./locale/lt.js"); Object.keys(_index61).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index61[key]) return; @@ -671,7 +671,7 @@ Object.keys(_index61).forEach(function (key) { }, }); }); -var _index62 = require("./locale/mk.js"); +var _index62 = require("./locale/lv.js"); Object.keys(_index62).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index62[key]) return; @@ -682,7 +682,7 @@ Object.keys(_index62).forEach(function (key) { }, }); }); -var _index63 = require("./locale/mn.js"); +var _index63 = require("./locale/mk.js"); Object.keys(_index63).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index63[key]) return; @@ -693,7 +693,7 @@ Object.keys(_index63).forEach(function (key) { }, }); }); -var _index64 = require("./locale/ms.js"); +var _index64 = require("./locale/mn.js"); Object.keys(_index64).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index64[key]) return; @@ -704,7 +704,7 @@ Object.keys(_index64).forEach(function (key) { }, }); }); -var _index65 = require("./locale/mt.js"); +var _index65 = require("./locale/ms.js"); Object.keys(_index65).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index65[key]) return; @@ -715,7 +715,7 @@ Object.keys(_index65).forEach(function (key) { }, }); }); -var _index66 = require("./locale/nb.js"); +var _index66 = require("./locale/mt.js"); Object.keys(_index66).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index66[key]) return; @@ -726,7 +726,7 @@ Object.keys(_index66).forEach(function (key) { }, }); }); -var _index67 = require("./locale/nl.js"); +var _index67 = require("./locale/nb.js"); Object.keys(_index67).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index67[key]) return; @@ -737,7 +737,7 @@ Object.keys(_index67).forEach(function (key) { }, }); }); -var _index68 = require("./locale/nl-BE.js"); +var _index68 = require("./locale/nl.js"); Object.keys(_index68).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index68[key]) return; @@ -748,7 +748,7 @@ Object.keys(_index68).forEach(function (key) { }, }); }); -var _index69 = require("./locale/nn.js"); +var _index69 = require("./locale/nl-BE.js"); Object.keys(_index69).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index69[key]) return; @@ -759,7 +759,7 @@ Object.keys(_index69).forEach(function (key) { }, }); }); -var _index70 = require("./locale/oc.js"); +var _index70 = require("./locale/nn.js"); Object.keys(_index70).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index70[key]) return; @@ -770,7 +770,7 @@ Object.keys(_index70).forEach(function (key) { }, }); }); -var _index71 = require("./locale/pl.js"); +var _index71 = require("./locale/oc.js"); Object.keys(_index71).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index71[key]) return; @@ -781,7 +781,7 @@ Object.keys(_index71).forEach(function (key) { }, }); }); -var _index72 = require("./locale/pt.js"); +var _index72 = require("./locale/pl.js"); Object.keys(_index72).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index72[key]) return; @@ -792,7 +792,7 @@ Object.keys(_index72).forEach(function (key) { }, }); }); -var _index73 = require("./locale/pt-BR.js"); +var _index73 = require("./locale/pt.js"); Object.keys(_index73).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index73[key]) return; @@ -803,7 +803,7 @@ Object.keys(_index73).forEach(function (key) { }, }); }); -var _index74 = require("./locale/ro.js"); +var _index74 = require("./locale/pt-BR.js"); Object.keys(_index74).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index74[key]) return; @@ -814,7 +814,7 @@ Object.keys(_index74).forEach(function (key) { }, }); }); -var _index75 = require("./locale/ru.js"); +var _index75 = require("./locale/ro.js"); Object.keys(_index75).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index75[key]) return; @@ -825,7 +825,7 @@ Object.keys(_index75).forEach(function (key) { }, }); }); -var _index76 = require("./locale/sk.js"); +var _index76 = require("./locale/ru.js"); Object.keys(_index76).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index76[key]) return; @@ -836,7 +836,7 @@ Object.keys(_index76).forEach(function (key) { }, }); }); -var _index77 = require("./locale/sl.js"); +var _index77 = require("./locale/se.js"); Object.keys(_index77).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index77[key]) return; @@ -847,7 +847,7 @@ Object.keys(_index77).forEach(function (key) { }, }); }); -var _index78 = require("./locale/sq.js"); +var _index78 = require("./locale/sk.js"); Object.keys(_index78).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index78[key]) return; @@ -858,7 +858,7 @@ Object.keys(_index78).forEach(function (key) { }, }); }); -var _index79 = require("./locale/sr.js"); +var _index79 = require("./locale/sl.js"); Object.keys(_index79).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index79[key]) return; @@ -869,7 +869,7 @@ Object.keys(_index79).forEach(function (key) { }, }); }); -var _index80 = require("./locale/sr-Latn.js"); +var _index80 = require("./locale/sq.js"); Object.keys(_index80).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index80[key]) return; @@ -880,7 +880,7 @@ Object.keys(_index80).forEach(function (key) { }, }); }); -var _index81 = require("./locale/sv.js"); +var _index81 = require("./locale/sr.js"); Object.keys(_index81).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index81[key]) return; @@ -891,7 +891,7 @@ Object.keys(_index81).forEach(function (key) { }, }); }); -var _index82 = require("./locale/ta.js"); +var _index82 = require("./locale/sr-Latn.js"); Object.keys(_index82).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index82[key]) return; @@ -902,7 +902,7 @@ Object.keys(_index82).forEach(function (key) { }, }); }); -var _index83 = require("./locale/te.js"); +var _index83 = require("./locale/sv.js"); Object.keys(_index83).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index83[key]) return; @@ -913,7 +913,7 @@ Object.keys(_index83).forEach(function (key) { }, }); }); -var _index84 = require("./locale/th.js"); +var _index84 = require("./locale/ta.js"); Object.keys(_index84).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index84[key]) return; @@ -924,7 +924,7 @@ Object.keys(_index84).forEach(function (key) { }, }); }); -var _index85 = require("./locale/tr.js"); +var _index85 = require("./locale/te.js"); Object.keys(_index85).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index85[key]) return; @@ -935,7 +935,7 @@ Object.keys(_index85).forEach(function (key) { }, }); }); -var _index86 = require("./locale/ug.js"); +var _index86 = require("./locale/th.js"); Object.keys(_index86).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index86[key]) return; @@ -946,7 +946,7 @@ Object.keys(_index86).forEach(function (key) { }, }); }); -var _index87 = require("./locale/uk.js"); +var _index87 = require("./locale/tr.js"); Object.keys(_index87).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index87[key]) return; @@ -957,7 +957,7 @@ Object.keys(_index87).forEach(function (key) { }, }); }); -var _index88 = require("./locale/uz.js"); +var _index88 = require("./locale/ug.js"); Object.keys(_index88).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index88[key]) return; @@ -968,7 +968,7 @@ Object.keys(_index88).forEach(function (key) { }, }); }); -var _index89 = require("./locale/uz-Cyrl.js"); +var _index89 = require("./locale/uk.js"); Object.keys(_index89).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index89[key]) return; @@ -979,7 +979,7 @@ Object.keys(_index89).forEach(function (key) { }, }); }); -var _index90 = require("./locale/vi.js"); +var _index90 = require("./locale/uz.js"); Object.keys(_index90).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index90[key]) return; @@ -990,7 +990,7 @@ Object.keys(_index90).forEach(function (key) { }, }); }); -var _index91 = require("./locale/zh-CN.js"); +var _index91 = require("./locale/uz-Cyrl.js"); Object.keys(_index91).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index91[key]) return; @@ -1001,7 +1001,7 @@ Object.keys(_index91).forEach(function (key) { }, }); }); -var _index92 = require("./locale/zh-HK.js"); +var _index92 = require("./locale/vi.js"); Object.keys(_index92).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index92[key]) return; @@ -1012,7 +1012,7 @@ Object.keys(_index92).forEach(function (key) { }, }); }); -var _index93 = require("./locale/zh-TW.js"); +var _index93 = require("./locale/zh-CN.js"); Object.keys(_index93).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _index93[key]) return; @@ -1023,3 +1023,25 @@ Object.keys(_index93).forEach(function (key) { }, }); }); +var _index94 = require("./locale/zh-HK.js"); +Object.keys(_index94).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index94[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index94[key]; + }, + }); +}); +var _index95 = require("./locale/zh-TW.js"); +Object.keys(_index95).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index95[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index95[key]; + }, + }); +}); diff --git a/node_modules/date-fns/locale.mjs b/node_modules/date-fns/locale.mjs index 5d8c1a9e..324ab2d9 100644 --- a/node_modules/date-fns/locale.mjs +++ b/node_modules/date-fns/locale.mjs @@ -13,6 +13,7 @@ export * from "./locale/bg.mjs"; export * from "./locale/bn.mjs"; export * from "./locale/bs.mjs"; export * from "./locale/ca.mjs"; +export * from "./locale/ckb.mjs"; export * from "./locale/cs.mjs"; export * from "./locale/cy.mjs"; export * from "./locale/da.mjs"; @@ -74,6 +75,7 @@ export * from "./locale/pt.mjs"; export * from "./locale/pt-BR.mjs"; export * from "./locale/ro.mjs"; export * from "./locale/ru.mjs"; +export * from "./locale/se.mjs"; export * from "./locale/sk.mjs"; export * from "./locale/sl.mjs"; export * from "./locale/sq.mjs"; diff --git a/node_modules/date-fns/locale/_lib/buildFormatLongFn.d.mts b/node_modules/date-fns/locale/_lib/buildFormatLongFn.d.mts index 334d0a57..2b5e82c2 100644 --- a/node_modules/date-fns/locale/_lib/buildFormatLongFn.d.mts +++ b/node_modules/date-fns/locale/_lib/buildFormatLongFn.d.mts @@ -1 +1,14 @@ -export type * from "./buildFormatLongFn.d.ts"; +import type { FormatLongFn, FormatLongWidth } from "../types.js"; +export interface BuildFormatLongFnArgs< + DefaultMatchWidth extends FormatLongWidth, +> { + formats: Partial<{ + [format in FormatLongWidth]: string; + }> & { + [format in DefaultMatchWidth]: string; + }; + defaultWidth: DefaultMatchWidth; +} +export declare function buildFormatLongFn< + DefaultMatchWidth extends FormatLongWidth, +>(args: BuildFormatLongFnArgs): FormatLongFn; diff --git a/node_modules/date-fns/locale/_lib/buildLocalizeFn.d.mts b/node_modules/date-fns/locale/_lib/buildLocalizeFn.d.mts index e8b4cf6d..b76786fb 100644 --- a/node_modules/date-fns/locale/_lib/buildLocalizeFn.d.mts +++ b/node_modules/date-fns/locale/_lib/buildLocalizeFn.d.mts @@ -1 +1,102 @@ -export type * from "./buildLocalizeFn.d.ts"; +import type { Day, Era, Month, Quarter } from "../../types.js"; +import type { + LocaleDayPeriod, + LocaleUnitValue, + LocaleWidth, + LocalizeFn, +} from "../types.js"; +export type BuildLocalizeFnArgs< + Value extends LocaleUnitValue, + ArgCallback extends LocalizeFnArgCallback | undefined, +> = { + values: LocalizePeriodValuesMap; + defaultWidth: LocaleWidth; + formattingValues?: LocalizePeriodValuesMap; + defaultFormattingWidth?: LocaleWidth; +} & (ArgCallback extends undefined + ? { + argumentCallback?: undefined; + } + : { + argumentCallback: LocalizeFnArgCallback; + }); +/** + * The localize function argument callback which allows to convert raw value to + * the actual type. + * + * @param value - The value to convert + * + * @returns The converted value + */ +export type LocalizeFnArgCallback = ( + value: Value, +) => LocalizeUnitIndex; +/** + * The map of localized values for each width. + */ +export type LocalizePeriodValuesMap = { + [Pattern in LocaleWidth]?: LocalizeValues; +}; +/** + * The index type of the locale unit value. It types conversion of units of + * values that don't start at 0 (i.e. quarters). + */ +export type LocalizeUnitIndex = + Value extends LocaleUnitValue ? keyof LocalizeValues : number; +/** + * Converts the unit value to the tuple of values. + */ +export type LocalizeValues = + Value extends LocaleDayPeriod + ? Record + : Value extends Era + ? LocalizeEraValues + : Value extends Quarter + ? LocalizeQuarterValues + : Value extends Day + ? LocalizeDayValues + : Value extends Month + ? LocalizeMonthValues + : never; +/** + * The tuple of localized era values. The first element represents BC, + * the second element represents AD. + */ +export type LocalizeEraValues = readonly [string, string]; +/** + * The tuple of localized quarter values. The first element represents Q1. + */ +export type LocalizeQuarterValues = readonly [string, string, string, string]; +/** + * The tuple of localized day values. The first element represents Sunday. + */ +export type LocalizeDayValues = readonly [ + string, + string, + string, + string, + string, + string, + string, +]; +/** + * The tuple of localized month values. The first element represents January. + */ +export type LocalizeMonthValues = readonly [ + string, + string, + string, + string, + string, + string, + string, + string, + string, + string, + string, + string, +]; +export declare function buildLocalizeFn< + Value extends LocaleUnitValue, + ArgCallback extends LocalizeFnArgCallback | undefined, +>(args: BuildLocalizeFnArgs): LocalizeFn; diff --git a/node_modules/date-fns/locale/_lib/buildMatchFn.d.mts b/node_modules/date-fns/locale/_lib/buildMatchFn.d.mts index c20e4a0f..d5ca7c99 100644 --- a/node_modules/date-fns/locale/_lib/buildMatchFn.d.mts +++ b/node_modules/date-fns/locale/_lib/buildMatchFn.d.mts @@ -1 +1,67 @@ -export type * from "./buildMatchFn.d.ts"; +import type { Quarter, Era, Day, Month } from "../../types.js"; +import type { + LocaleUnitValue, + LocaleWidth, + LocaleDayPeriod, + MatchFn, + MatchValueCallback, +} from "../types.js"; +export interface BuildMatchFnArgs< + Result extends LocaleUnitValue, + DefaultMatchWidth extends LocaleWidth, + DefaultParseWidth extends LocaleWidth, +> { + matchPatterns: BuildMatchFnMatchPatterns; + defaultMatchWidth: DefaultMatchWidth; + parsePatterns: BuildMatchFnParsePatterns; + defaultParseWidth: DefaultParseWidth; + valueCallback?: MatchValueCallback< + Result extends LocaleDayPeriod ? string : number, + Result + >; +} +export type BuildMatchFnMatchPatterns = { + [Width in LocaleWidth]?: RegExp; +} & { + [Width in DefaultWidth]: RegExp; +}; +export type BuildMatchFnParsePatterns< + Value extends LocaleUnitValue, + DefaultWidth extends LocaleWidth, +> = { + [Width in LocaleWidth]?: ParsePattern; +} & { + [Width in DefaultWidth]: ParsePattern; +}; +export type ParsePattern = + Value extends LocaleDayPeriod + ? Record + : Value extends Quarter + ? readonly [RegExp, RegExp, RegExp, RegExp] + : Value extends Era + ? readonly [RegExp, RegExp] + : Value extends Day + ? readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp] + : Value extends Month + ? readonly [ + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + ] + : never; +export declare function buildMatchFn< + Value extends LocaleUnitValue, + DefaultMatchWidth extends LocaleWidth, + DefaultParseWidth extends LocaleWidth, +>( + args: BuildMatchFnArgs, +): MatchFn; diff --git a/node_modules/date-fns/locale/_lib/buildMatchPatternFn.d.mts b/node_modules/date-fns/locale/_lib/buildMatchPatternFn.d.mts index a91bcd97..8500768e 100644 --- a/node_modules/date-fns/locale/_lib/buildMatchPatternFn.d.mts +++ b/node_modules/date-fns/locale/_lib/buildMatchPatternFn.d.mts @@ -1 +1,9 @@ -export type * from "./buildMatchPatternFn.d.ts"; +import type { MatchFn, MatchValueCallback } from "../types.js"; +export interface BuildMatchPatternFnArgs { + matchPattern: RegExp; + parsePattern: RegExp; + valueCallback?: MatchValueCallback; +} +export declare function buildMatchPatternFn( + args: BuildMatchPatternFnArgs, +): MatchFn; diff --git a/node_modules/date-fns/locale/af.d.mts b/node_modules/date-fns/locale/af.d.mts index 06383f18..2d3bcd48 100644 --- a/node_modules/date-fns/locale/af.d.mts +++ b/node_modules/date-fns/locale/af.d.mts @@ -1 +1,9 @@ -export type * from "./af.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Afrikaans locale. + * @language Afrikaans + * @iso-639-2 afr + * @author Marnus Weststrate [@marnusw](https://github.com/marnusw) + */ +export declare const af: Locale; diff --git a/node_modules/date-fns/locale/af/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/af/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/af/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/af/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/af/_lib/formatLong.d.mts b/node_modules/date-fns/locale/af/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/af/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/af/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/af/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/af/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/af/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/af/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/af/_lib/localize.d.mts b/node_modules/date-fns/locale/af/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/af/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/af/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/af/_lib/match.d.mts b/node_modules/date-fns/locale/af/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/af/_lib/match.d.mts +++ b/node_modules/date-fns/locale/af/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-DZ.d.mts b/node_modules/date-fns/locale/ar-DZ.d.mts index b5ad81d9..81f5ef07 100644 --- a/node_modules/date-fns/locale/ar-DZ.d.mts +++ b/node_modules/date-fns/locale/ar-DZ.d.mts @@ -1 +1,10 @@ -export type * from "./ar-DZ.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Arabic locale (Algerian Arabic). + * @language Algerian Arabic + * @iso-639-2 ara + * @author Badreddine Boumaza [@badre429](https://github.com/badre429) + * @author Ahmed ElShahat [@elshahat](https://github.com/elshahat) + */ +export declare const arDZ: Locale; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.d.mts index 407b17ac..9bbf1c11 100644 --- a/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.d.mts @@ -1 +1,5 @@ -export type * from "./formatLong.d.ts"; +export declare const formatLong: { + date: import("../../types.js").FormatLongFn; + time: import("../../types.js").FormatLongFn; + dateTime: import("../../types.js").FormatLongFn; +}; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/localize.d.mts b/node_modules/date-fns/locale/ar-DZ/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ar-DZ/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ar-DZ/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/match.d.mts b/node_modules/date-fns/locale/ar-DZ/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ar-DZ/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ar-DZ/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-EG.d.mts b/node_modules/date-fns/locale/ar-EG.d.mts index 796f7848..5ab9b788 100644 --- a/node_modules/date-fns/locale/ar-EG.d.mts +++ b/node_modules/date-fns/locale/ar-EG.d.mts @@ -1 +1,9 @@ -export type * from "./ar-EG.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Arabic locale (Egypt). + * @language Arabic + * @iso-639-2 ara + * @author AbdAllah AbdElFattah [@AbdAllahAbdElFattah13](https://github.com/AbdAllahAbdElFattah13) + */ +export declare const arEG: Locale; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ar-EG/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ar-EG/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ar-EG/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/ar-EG/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/localize.d.mts b/node_modules/date-fns/locale/ar-EG/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ar-EG/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ar-EG/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/match.d.mts b/node_modules/date-fns/locale/ar-EG/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ar-EG/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ar-EG/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-MA.d.mts b/node_modules/date-fns/locale/ar-MA.d.mts index a00aa35b..97e5a6af 100644 --- a/node_modules/date-fns/locale/ar-MA.d.mts +++ b/node_modules/date-fns/locale/ar-MA.d.mts @@ -1 +1,9 @@ -export type * from "./ar-MA.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Arabic locale (Moroccan Arabic). + * @language Moroccan Arabic + * @iso-639-2 ara + * @author Achraf Rrami [@rramiachraf](https://github.com/rramiachraf) + */ +export declare const arMA: Locale; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ar-MA/_lib/formatLong.d.mts index 407b17ac..9bbf1c11 100644 --- a/node_modules/date-fns/locale/ar-MA/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatLong.d.mts @@ -1 +1,5 @@ -export type * from "./formatLong.d.ts"; +export declare const formatLong: { + date: import("../../types.js").FormatLongFn; + time: import("../../types.js").FormatLongFn; + dateTime: import("../../types.js").FormatLongFn; +}; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/localize.d.mts b/node_modules/date-fns/locale/ar-MA/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ar-MA/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ar-MA/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/match.d.mts b/node_modules/date-fns/locale/ar-MA/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ar-MA/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ar-MA/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-SA.d.mts b/node_modules/date-fns/locale/ar-SA.d.mts index 6e1df433..cc318fbe 100644 --- a/node_modules/date-fns/locale/ar-SA.d.mts +++ b/node_modules/date-fns/locale/ar-SA.d.mts @@ -1 +1,9 @@ -export type * from "./ar-SA.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Arabic locale (Sauid Arabic). + * @language Arabic + * @iso-639-2 ara + * @author Dhaifallah Alwadani [@dalwadani](https://github.com/dalwadani) + */ +export declare const arSA: Locale; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ar-SA/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/ar-SA/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/localize.d.mts b/node_modules/date-fns/locale/ar-SA/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ar-SA/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ar-SA/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/match.d.mts b/node_modules/date-fns/locale/ar-SA/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ar-SA/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ar-SA/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-TN.d.mts b/node_modules/date-fns/locale/ar-TN.d.mts index 2b4365e9..0d13728f 100644 --- a/node_modules/date-fns/locale/ar-TN.d.mts +++ b/node_modules/date-fns/locale/ar-TN.d.mts @@ -1 +1,9 @@ -export type * from "./ar-TN.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Arabic locale (Tunisian Arabic). + * @language Arabic + * @iso-639-2 ara + * @author Koussay Haj Kacem [@essana3](https://github.com/essana3) + */ +export declare const arTN: Locale; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ar-TN/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/ar-TN/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/localize.d.mts b/node_modules/date-fns/locale/ar-TN/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ar-TN/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ar-TN/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/match.d.mts b/node_modules/date-fns/locale/ar-TN/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ar-TN/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ar-TN/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar.d.mts b/node_modules/date-fns/locale/ar.d.mts index 71b7cac6..474ab184 100644 --- a/node_modules/date-fns/locale/ar.d.mts +++ b/node_modules/date-fns/locale/ar.d.mts @@ -1 +1,10 @@ -export type * from "./ar.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Arabic locale (Modern Standard Arabic - Al-fussha). + * @language Modern Standard Arabic + * @iso-639-2 ara + * @author Abdallah Hassan [@AbdallahAHO](https://github.com/AbdallahAHO) + * @author Koussay Haj Kacem [@essana3](https://github.com/essana3) + */ +export declare const ar: Locale; diff --git a/node_modules/date-fns/locale/ar/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ar/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ar/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ar/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ar/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/ar/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ar/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ar/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ar/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ar/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ar/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar/_lib/localize.d.mts b/node_modules/date-fns/locale/ar/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ar/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ar/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar/_lib/match.d.mts b/node_modules/date-fns/locale/ar/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ar/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ar/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/az.d.mts b/node_modules/date-fns/locale/az.d.mts index 35128bb0..6be1ec8a 100644 --- a/node_modules/date-fns/locale/az.d.mts +++ b/node_modules/date-fns/locale/az.d.mts @@ -1 +1,8 @@ -export type * from "./az.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Azerbaijani locale. + * @language Azerbaijani + * @iso-639-2 aze + */ +export declare const az: Locale; diff --git a/node_modules/date-fns/locale/az/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/az/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/az/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/az/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/az/_lib/formatLong.d.mts b/node_modules/date-fns/locale/az/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/az/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/az/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/az/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/az/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/az/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/az/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/az/_lib/localize.d.mts b/node_modules/date-fns/locale/az/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/az/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/az/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/az/_lib/match.d.mts b/node_modules/date-fns/locale/az/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/az/_lib/match.d.mts +++ b/node_modules/date-fns/locale/az/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/be-tarask.d.mts b/node_modules/date-fns/locale/be-tarask.d.mts index 75f3e079..758eeac8 100644 --- a/node_modules/date-fns/locale/be-tarask.d.mts +++ b/node_modules/date-fns/locale/be-tarask.d.mts @@ -1 +1,9 @@ -export type * from "./be-tarask.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Belarusian Classic locale. + * @language Belarusian Classic + * @iso-639-2 bel + * @author Ryhor Nopears [@nopears](https://github.com/nopears) + */ +export declare const beTarask: Locale; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.js b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.js index ad21fc4b..1a55b7b2 100644 --- a/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.js +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.js @@ -168,22 +168,22 @@ const formatDistanceLocale = { aboutXWeeks: buildLocalizeTokenFn({ regular: { - singularNominative: "каля {{count}} месяца", // TODO - singularGenitive: "каля {{count}} месяцаў", // TODO - pluralGenitive: "каля {{count}} месяцаў", // TODO + singularNominative: "каля {{count}} тыдні", + singularGenitive: "каля {{count}} тыдняў", + pluralGenitive: "каля {{count}} тыдняў", }, future: { - singularNominative: "прыблізна праз {{count}} месяц", // TODO - singularGenitive: "прыблізна праз {{count}} месяцы", // TODO - pluralGenitive: "прыблізна праз {{count}} месяцаў", // TODO + singularNominative: "прыблізна праз {{count}} тыдзень", + singularGenitive: "прыблізна праз {{count}} тыдні", + pluralGenitive: "прыблізна праз {{count}} тыдняў", }, }), xWeeks: buildLocalizeTokenFn({ regular: { - singularNominative: "{{count}} месяц", - singularGenitive: "{{count}} месяцы", - pluralGenitive: "{{count}} месяцаў", + singularNominative: "{{count}} тыдзень", + singularGenitive: "{{count}} тыдні", + pluralGenitive: "{{count}} тыдняў", }, }), diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.mjs b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.mjs index c6419a85..bb3e91fd 100644 --- a/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.mjs +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.mjs @@ -165,22 +165,22 @@ const formatDistanceLocale = { aboutXWeeks: buildLocalizeTokenFn({ regular: { - singularNominative: "каля {{count}} месяца", // TODO - singularGenitive: "каля {{count}} месяцаў", // TODO - pluralGenitive: "каля {{count}} месяцаў", // TODO + singularNominative: "каля {{count}} тыдні", + singularGenitive: "каля {{count}} тыдняў", + pluralGenitive: "каля {{count}} тыдняў", }, future: { - singularNominative: "прыблізна праз {{count}} месяц", // TODO - singularGenitive: "прыблізна праз {{count}} месяцы", // TODO - pluralGenitive: "прыблізна праз {{count}} месяцаў", // TODO + singularNominative: "прыблізна праз {{count}} тыдзень", + singularGenitive: "прыблізна праз {{count}} тыдні", + pluralGenitive: "прыблізна праз {{count}} тыдняў", }, }), xWeeks: buildLocalizeTokenFn({ regular: { - singularNominative: "{{count}} месяц", - singularGenitive: "{{count}} месяцы", - pluralGenitive: "{{count}} месяцаў", + singularNominative: "{{count}} тыдзень", + singularGenitive: "{{count}} тыдні", + pluralGenitive: "{{count}} тыдняў", }, }), diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatLong.d.mts b/node_modules/date-fns/locale/be-tarask/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/be-tarask/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/localize.d.mts b/node_modules/date-fns/locale/be-tarask/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/be-tarask/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/be-tarask/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/match.d.mts b/node_modules/date-fns/locale/be-tarask/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/be-tarask/_lib/match.d.mts +++ b/node_modules/date-fns/locale/be-tarask/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/be.d.mts b/node_modules/date-fns/locale/be.d.mts index 7ab7a3a5..32132a4a 100644 --- a/node_modules/date-fns/locale/be.d.mts +++ b/node_modules/date-fns/locale/be.d.mts @@ -1 +1,10 @@ -export type * from "./be.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Belarusian locale. + * @language Belarusian + * @iso-639-2 bel + * @author Kiryl Anokhin [@alyrik](https://github.com/alyrik) + * @author Martin Wind [@arvigeus](https://github.com/mawi12345) + */ +export declare const be: Locale; diff --git a/node_modules/date-fns/locale/be/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/be/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/be/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/be/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/be/_lib/formatDistance.js b/node_modules/date-fns/locale/be/_lib/formatDistance.js index ad21fc4b..1a55b7b2 100644 --- a/node_modules/date-fns/locale/be/_lib/formatDistance.js +++ b/node_modules/date-fns/locale/be/_lib/formatDistance.js @@ -168,22 +168,22 @@ const formatDistanceLocale = { aboutXWeeks: buildLocalizeTokenFn({ regular: { - singularNominative: "каля {{count}} месяца", // TODO - singularGenitive: "каля {{count}} месяцаў", // TODO - pluralGenitive: "каля {{count}} месяцаў", // TODO + singularNominative: "каля {{count}} тыдні", + singularGenitive: "каля {{count}} тыдняў", + pluralGenitive: "каля {{count}} тыдняў", }, future: { - singularNominative: "прыблізна праз {{count}} месяц", // TODO - singularGenitive: "прыблізна праз {{count}} месяцы", // TODO - pluralGenitive: "прыблізна праз {{count}} месяцаў", // TODO + singularNominative: "прыблізна праз {{count}} тыдзень", + singularGenitive: "прыблізна праз {{count}} тыдні", + pluralGenitive: "прыблізна праз {{count}} тыдняў", }, }), xWeeks: buildLocalizeTokenFn({ regular: { - singularNominative: "{{count}} месяц", - singularGenitive: "{{count}} месяцы", - pluralGenitive: "{{count}} месяцаў", + singularNominative: "{{count}} тыдзень", + singularGenitive: "{{count}} тыдні", + pluralGenitive: "{{count}} тыдняў", }, }), diff --git a/node_modules/date-fns/locale/be/_lib/formatDistance.mjs b/node_modules/date-fns/locale/be/_lib/formatDistance.mjs index c6419a85..bb3e91fd 100644 --- a/node_modules/date-fns/locale/be/_lib/formatDistance.mjs +++ b/node_modules/date-fns/locale/be/_lib/formatDistance.mjs @@ -165,22 +165,22 @@ const formatDistanceLocale = { aboutXWeeks: buildLocalizeTokenFn({ regular: { - singularNominative: "каля {{count}} месяца", // TODO - singularGenitive: "каля {{count}} месяцаў", // TODO - pluralGenitive: "каля {{count}} месяцаў", // TODO + singularNominative: "каля {{count}} тыдні", + singularGenitive: "каля {{count}} тыдняў", + pluralGenitive: "каля {{count}} тыдняў", }, future: { - singularNominative: "прыблізна праз {{count}} месяц", // TODO - singularGenitive: "прыблізна праз {{count}} месяцы", // TODO - pluralGenitive: "прыблізна праз {{count}} месяцаў", // TODO + singularNominative: "прыблізна праз {{count}} тыдзень", + singularGenitive: "прыблізна праз {{count}} тыдні", + pluralGenitive: "прыблізна праз {{count}} тыдняў", }, }), xWeeks: buildLocalizeTokenFn({ regular: { - singularNominative: "{{count}} месяц", - singularGenitive: "{{count}} месяцы", - pluralGenitive: "{{count}} месяцаў", + singularNominative: "{{count}} тыдзень", + singularGenitive: "{{count}} тыдні", + pluralGenitive: "{{count}} тыдняў", }, }), diff --git a/node_modules/date-fns/locale/be/_lib/formatLong.d.mts b/node_modules/date-fns/locale/be/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/be/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/be/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/be/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/be/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/be/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/be/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/be/_lib/localize.d.mts b/node_modules/date-fns/locale/be/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/be/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/be/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/be/_lib/match.d.mts b/node_modules/date-fns/locale/be/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/be/_lib/match.d.mts +++ b/node_modules/date-fns/locale/be/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/bg.d.mts b/node_modules/date-fns/locale/bg.d.mts index fa2e4fab..2067ab24 100644 --- a/node_modules/date-fns/locale/bg.d.mts +++ b/node_modules/date-fns/locale/bg.d.mts @@ -1 +1,10 @@ -export type * from "./bg.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Bulgarian locale. + * @language Bulgarian + * @iso-639-2 bul + * @author Nikolay Stoynov [@arvigeus](https://github.com/arvigeus) + * @author Tsvetan Ovedenski [@fintara](https://github.com/fintara) + */ +export declare const bg: Locale; diff --git a/node_modules/date-fns/locale/bg/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/bg/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/bg/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/bg/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/bg/_lib/formatLong.d.mts b/node_modules/date-fns/locale/bg/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/bg/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/bg/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/bg/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/bg/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/bg/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/bg/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/bg/_lib/localize.d.mts b/node_modules/date-fns/locale/bg/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/bg/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/bg/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/bg/_lib/match.d.mts b/node_modules/date-fns/locale/bg/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/bg/_lib/match.d.mts +++ b/node_modules/date-fns/locale/bg/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/bn.d.mts b/node_modules/date-fns/locale/bn.d.mts index e333c9ea..afa23665 100644 --- a/node_modules/date-fns/locale/bn.d.mts +++ b/node_modules/date-fns/locale/bn.d.mts @@ -1 +1,10 @@ -export type * from "./bn.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Bengali locale. + * @language Bengali + * @iso-639-2 ben + * @author Touhidur Rahman [@touhidrahman](https://github.com/touhidrahman) + * @author Farhad Yasir [@nutboltu](https://github.com/nutboltu) + */ +export declare const bn: Locale; diff --git a/node_modules/date-fns/locale/bn/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/bn/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/bn/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/bn/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/bn/_lib/formatLong.d.mts b/node_modules/date-fns/locale/bn/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/bn/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/bn/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/bn/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/bn/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/bn/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/bn/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/bn/_lib/localize.d.mts b/node_modules/date-fns/locale/bn/_lib/localize.d.mts index 5ef1aa9b..44a9e2b1 100644 --- a/node_modules/date-fns/locale/bn/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/bn/_lib/localize.d.mts @@ -1 +1,3 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare function numberToLocale(enNumber: number): string; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/bn/_lib/match.d.mts b/node_modules/date-fns/locale/bn/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/bn/_lib/match.d.mts +++ b/node_modules/date-fns/locale/bn/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/bs.d.mts b/node_modules/date-fns/locale/bs.d.mts index 2d2b1e3e..cf39dcdb 100644 --- a/node_modules/date-fns/locale/bs.d.mts +++ b/node_modules/date-fns/locale/bs.d.mts @@ -1 +1,9 @@ -export type * from "./bs.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Bosnian locale. + * @language Bosnian + * @iso-639-2 bos + * @author Branislav Lazić [@branislavlazic](https://github.com/branislavlazic) + */ +export declare const bs: Locale; diff --git a/node_modules/date-fns/locale/bs/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/bs/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/bs/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/bs/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/bs/_lib/formatLong.d.mts b/node_modules/date-fns/locale/bs/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/bs/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/bs/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/bs/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/bs/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/bs/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/bs/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/bs/_lib/localize.d.mts b/node_modules/date-fns/locale/bs/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/bs/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/bs/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/bs/_lib/match.d.mts b/node_modules/date-fns/locale/bs/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/bs/_lib/match.d.mts +++ b/node_modules/date-fns/locale/bs/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ca.d.mts b/node_modules/date-fns/locale/ca.d.mts index de8658f9..8dce45b7 100644 --- a/node_modules/date-fns/locale/ca.d.mts +++ b/node_modules/date-fns/locale/ca.d.mts @@ -1 +1,10 @@ -export type * from "./ca.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Catalan locale. + * @language Catalan + * @iso-639-2 cat + * @author Guillermo Grau [@guigrpa](https://github.com/guigrpa) + * @author Alex Vizcaino [@avizcaino](https://github.com/avizcaino) + */ +export declare const ca: Locale; diff --git a/node_modules/date-fns/locale/ca/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ca/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ca/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ca/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ca/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ca/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/ca/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ca/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ca/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ca/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ca/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ca/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ca/_lib/localize.d.mts b/node_modules/date-fns/locale/ca/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ca/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ca/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ca/_lib/match.d.mts b/node_modules/date-fns/locale/ca/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ca/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ca/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/cs.d.mts b/node_modules/date-fns/locale/cs.d.mts index f0dbc059..1bc9fe1b 100644 --- a/node_modules/date-fns/locale/cs.d.mts +++ b/node_modules/date-fns/locale/cs.d.mts @@ -1 +1,11 @@ -export type * from "./cs.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Czech locale. + * @language Czech + * @iso-639-2 ces + * @author David Rus [@davidrus](https://github.com/davidrus) + * @author Pavel Hrách [@SilenY](https://github.com/SilenY) + * @author Jozef Bíroš [@JozefBiros](https://github.com/JozefBiros) + */ +export declare const cs: Locale; diff --git a/node_modules/date-fns/locale/cs/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/cs/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/cs/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/cs/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/cs/_lib/formatDistance.js b/node_modules/date-fns/locale/cs/_lib/formatDistance.js index be35ceb3..102b356e 100644 --- a/node_modules/date-fns/locale/cs/_lib/formatDistance.js +++ b/node_modules/date-fns/locale/cs/_lib/formatDistance.js @@ -4,9 +4,9 @@ exports.formatDistance = void 0; const formatDistanceLocale = { lessThanXSeconds: { one: { - regular: "méně než sekunda", - past: "před méně než sekundou", - future: "za méně než sekundu", + regular: "méně než 1 sekunda", + past: "před méně než 1 sekundou", + future: "za méně než 1 sekundu", }, few: { regular: "méně než {{count}} sekundy", @@ -22,9 +22,9 @@ const formatDistanceLocale = { xSeconds: { one: { - regular: "sekunda", - past: "před sekundou", - future: "za sekundu", + regular: "1 sekunda", + past: "před 1 sekundou", + future: "za 1 sekundu", }, few: { regular: "{{count}} sekundy", @@ -49,9 +49,9 @@ const formatDistanceLocale = { lessThanXMinutes: { one: { - regular: "méně než minuta", - past: "před méně než minutou", - future: "za méně než minutu", + regular: "méně než 1 minuta", + past: "před méně než 1 minutou", + future: "za méně než 1 minutu", }, few: { regular: "méně než {{count}} minuty", @@ -67,9 +67,9 @@ const formatDistanceLocale = { xMinutes: { one: { - regular: "minuta", - past: "před minutou", - future: "za minutu", + regular: "1 minuta", + past: "před 1 minutou", + future: "za 1 minutu", }, few: { regular: "{{count}} minuty", @@ -85,9 +85,9 @@ const formatDistanceLocale = { aboutXHours: { one: { - regular: "přibližně hodina", - past: "přibližně před hodinou", - future: "přibližně za hodinu", + regular: "přibližně 1 hodina", + past: "přibližně před 1 hodinou", + future: "přibližně za 1 hodinu", }, few: { regular: "přibližně {{count}} hodiny", @@ -103,9 +103,9 @@ const formatDistanceLocale = { xHours: { one: { - regular: "hodina", - past: "před hodinou", - future: "za hodinu", + regular: "1 hodina", + past: "před 1 hodinou", + future: "za 1 hodinu", }, few: { regular: "{{count}} hodiny", @@ -121,9 +121,9 @@ const formatDistanceLocale = { xDays: { one: { - regular: "den", - past: "před dnem", - future: "za den", + regular: "1 den", + past: "před 1 dnem", + future: "za 1 den", }, few: { regular: "{{count}} dny", @@ -139,9 +139,9 @@ const formatDistanceLocale = { aboutXWeeks: { one: { - regular: "přibližně týden", - past: "přibližně před týdnem", - future: "přibližně za týden", + regular: "přibližně 1 týden", + past: "přibližně před 1 týdnem", + future: "přibližně za 1 týden", }, few: { @@ -159,9 +159,9 @@ const formatDistanceLocale = { xWeeks: { one: { - regular: "týden", - past: "před týdnem", - future: "za týden", + regular: "1 týden", + past: "před 1 týdnem", + future: "za 1 týden", }, few: { @@ -179,9 +179,9 @@ const formatDistanceLocale = { aboutXMonths: { one: { - regular: "přibližně měsíc", - past: "přibližně před měsícem", - future: "přibližně za měsíc", + regular: "přibližně 1 měsíc", + past: "přibližně před 1 měsícem", + future: "přibližně za 1 měsíc", }, few: { @@ -199,9 +199,9 @@ const formatDistanceLocale = { xMonths: { one: { - regular: "měsíc", - past: "před měsícem", - future: "za měsíc", + regular: "1 měsíc", + past: "před 1 měsícem", + future: "za 1 měsíc", }, few: { @@ -219,9 +219,9 @@ const formatDistanceLocale = { aboutXYears: { one: { - regular: "přibližně rok", - past: "přibližně před rokem", - future: "přibližně za rok", + regular: "přibližně 1 rok", + past: "přibližně před 1 rokem", + future: "přibližně za 1 rok", }, few: { regular: "přibližně {{count}} roky", @@ -237,9 +237,9 @@ const formatDistanceLocale = { xYears: { one: { - regular: "rok", - past: "před rokem", - future: "za rok", + regular: "1 rok", + past: "před 1 rokem", + future: "za 1 rok", }, few: { regular: "{{count}} roky", @@ -255,9 +255,9 @@ const formatDistanceLocale = { overXYears: { one: { - regular: "více než rok", - past: "před více než rokem", - future: "za více než rok", + regular: "více než 1 rok", + past: "před více než 1 rokem", + future: "za více než 1 rok", }, few: { regular: "více než {{count}} roky", @@ -273,9 +273,9 @@ const formatDistanceLocale = { almostXYears: { one: { - regular: "skoro rok", - past: "skoro před rokem", - future: "skoro za rok", + regular: "skoro 1 rok", + past: "skoro před 1 rokem", + future: "skoro za 1 rok", }, few: { regular: "skoro {{count}} roky", diff --git a/node_modules/date-fns/locale/cs/_lib/formatDistance.mjs b/node_modules/date-fns/locale/cs/_lib/formatDistance.mjs index 8c8091f2..2052f0af 100644 --- a/node_modules/date-fns/locale/cs/_lib/formatDistance.mjs +++ b/node_modules/date-fns/locale/cs/_lib/formatDistance.mjs @@ -1,9 +1,9 @@ const formatDistanceLocale = { lessThanXSeconds: { one: { - regular: "méně než sekunda", - past: "před méně než sekundou", - future: "za méně než sekundu", + regular: "méně než 1 sekunda", + past: "před méně než 1 sekundou", + future: "za méně než 1 sekundu", }, few: { regular: "méně než {{count}} sekundy", @@ -19,9 +19,9 @@ const formatDistanceLocale = { xSeconds: { one: { - regular: "sekunda", - past: "před sekundou", - future: "za sekundu", + regular: "1 sekunda", + past: "před 1 sekundou", + future: "za 1 sekundu", }, few: { regular: "{{count}} sekundy", @@ -46,9 +46,9 @@ const formatDistanceLocale = { lessThanXMinutes: { one: { - regular: "méně než minuta", - past: "před méně než minutou", - future: "za méně než minutu", + regular: "méně než 1 minuta", + past: "před méně než 1 minutou", + future: "za méně než 1 minutu", }, few: { regular: "méně než {{count}} minuty", @@ -64,9 +64,9 @@ const formatDistanceLocale = { xMinutes: { one: { - regular: "minuta", - past: "před minutou", - future: "za minutu", + regular: "1 minuta", + past: "před 1 minutou", + future: "za 1 minutu", }, few: { regular: "{{count}} minuty", @@ -82,9 +82,9 @@ const formatDistanceLocale = { aboutXHours: { one: { - regular: "přibližně hodina", - past: "přibližně před hodinou", - future: "přibližně za hodinu", + regular: "přibližně 1 hodina", + past: "přibližně před 1 hodinou", + future: "přibližně za 1 hodinu", }, few: { regular: "přibližně {{count}} hodiny", @@ -100,9 +100,9 @@ const formatDistanceLocale = { xHours: { one: { - regular: "hodina", - past: "před hodinou", - future: "za hodinu", + regular: "1 hodina", + past: "před 1 hodinou", + future: "za 1 hodinu", }, few: { regular: "{{count}} hodiny", @@ -118,9 +118,9 @@ const formatDistanceLocale = { xDays: { one: { - regular: "den", - past: "před dnem", - future: "za den", + regular: "1 den", + past: "před 1 dnem", + future: "za 1 den", }, few: { regular: "{{count}} dny", @@ -136,9 +136,9 @@ const formatDistanceLocale = { aboutXWeeks: { one: { - regular: "přibližně týden", - past: "přibližně před týdnem", - future: "přibližně za týden", + regular: "přibližně 1 týden", + past: "přibližně před 1 týdnem", + future: "přibližně za 1 týden", }, few: { @@ -156,9 +156,9 @@ const formatDistanceLocale = { xWeeks: { one: { - regular: "týden", - past: "před týdnem", - future: "za týden", + regular: "1 týden", + past: "před 1 týdnem", + future: "za 1 týden", }, few: { @@ -176,9 +176,9 @@ const formatDistanceLocale = { aboutXMonths: { one: { - regular: "přibližně měsíc", - past: "přibližně před měsícem", - future: "přibližně za měsíc", + regular: "přibližně 1 měsíc", + past: "přibližně před 1 měsícem", + future: "přibližně za 1 měsíc", }, few: { @@ -196,9 +196,9 @@ const formatDistanceLocale = { xMonths: { one: { - regular: "měsíc", - past: "před měsícem", - future: "za měsíc", + regular: "1 měsíc", + past: "před 1 měsícem", + future: "za 1 měsíc", }, few: { @@ -216,9 +216,9 @@ const formatDistanceLocale = { aboutXYears: { one: { - regular: "přibližně rok", - past: "přibližně před rokem", - future: "přibližně za rok", + regular: "přibližně 1 rok", + past: "přibližně před 1 rokem", + future: "přibližně za 1 rok", }, few: { regular: "přibližně {{count}} roky", @@ -234,9 +234,9 @@ const formatDistanceLocale = { xYears: { one: { - regular: "rok", - past: "před rokem", - future: "za rok", + regular: "1 rok", + past: "před 1 rokem", + future: "za 1 rok", }, few: { regular: "{{count}} roky", @@ -252,9 +252,9 @@ const formatDistanceLocale = { overXYears: { one: { - regular: "více než rok", - past: "před více než rokem", - future: "za více než rok", + regular: "více než 1 rok", + past: "před více než 1 rokem", + future: "za více než 1 rok", }, few: { regular: "více než {{count}} roky", @@ -270,9 +270,9 @@ const formatDistanceLocale = { almostXYears: { one: { - regular: "skoro rok", - past: "skoro před rokem", - future: "skoro za rok", + regular: "skoro 1 rok", + past: "skoro před 1 rokem", + future: "skoro za 1 rok", }, few: { regular: "skoro {{count}} roky", diff --git a/node_modules/date-fns/locale/cs/_lib/formatLong.d.mts b/node_modules/date-fns/locale/cs/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/cs/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/cs/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/cs/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/cs/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/cs/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/cs/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/cs/_lib/localize.d.mts b/node_modules/date-fns/locale/cs/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/cs/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/cs/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/cs/_lib/match.d.mts b/node_modules/date-fns/locale/cs/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/cs/_lib/match.d.mts +++ b/node_modules/date-fns/locale/cs/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/cy.d.mts b/node_modules/date-fns/locale/cy.d.mts index 43b2e29e..3799eb48 100644 --- a/node_modules/date-fns/locale/cy.d.mts +++ b/node_modules/date-fns/locale/cy.d.mts @@ -1 +1,9 @@ -export type * from "./cy.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Welsh locale. + * @language Welsh + * @iso-639-2 cym + * @author Elwyn Malethan [@elmomalmo](https://github.com/elmomalmo) + */ +export declare const cy: Locale; diff --git a/node_modules/date-fns/locale/cy/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/cy/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/cy/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/cy/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/cy/_lib/formatLong.d.mts b/node_modules/date-fns/locale/cy/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/cy/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/cy/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/cy/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/cy/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/cy/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/cy/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/cy/_lib/localize.d.mts b/node_modules/date-fns/locale/cy/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/cy/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/cy/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/cy/_lib/match.d.mts b/node_modules/date-fns/locale/cy/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/cy/_lib/match.d.mts +++ b/node_modules/date-fns/locale/cy/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/da.d.mts b/node_modules/date-fns/locale/da.d.mts index 36c72803..5fa3ad95 100644 --- a/node_modules/date-fns/locale/da.d.mts +++ b/node_modules/date-fns/locale/da.d.mts @@ -1 +1,12 @@ -export type * from "./da.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Danish locale. + * @language Danish + * @iso-639-2 dan + * @author Mathias Wøbbe [@MathiasKandelborg](https://github.com/MathiasKandelborg) + * @author Anders B. Hansen [@Andersbiha](https://github.com/Andersbiha) + * @author [@kgram](https://github.com/kgram) + * @author [@stefanbugge](https://github.com/stefanbugge) + */ +export declare const da: Locale; diff --git a/node_modules/date-fns/locale/da/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/da/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/da/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/da/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/da/_lib/formatLong.d.mts b/node_modules/date-fns/locale/da/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/da/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/da/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/da/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/da/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/da/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/da/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/da/_lib/localize.d.mts b/node_modules/date-fns/locale/da/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/da/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/da/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/da/_lib/match.d.mts b/node_modules/date-fns/locale/da/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/da/_lib/match.d.mts +++ b/node_modules/date-fns/locale/da/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/de-AT.d.mts b/node_modules/date-fns/locale/de-AT.d.mts index c636d95b..259abf59 100644 --- a/node_modules/date-fns/locale/de-AT.d.mts +++ b/node_modules/date-fns/locale/de-AT.d.mts @@ -1 +1,9 @@ -export type * from "./de-AT.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary German locale (Austria). + * @language German + * @iso-639-2 deu + * @author Christoph Tobias Stenglein [@cstenglein](https://github.com/cstenglein) + */ +export declare const deAT: Locale; diff --git a/node_modules/date-fns/locale/de-AT/_lib/localize.d.mts b/node_modules/date-fns/locale/de-AT/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/de-AT/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/de-AT/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/de.d.mts b/node_modules/date-fns/locale/de.d.mts index 02c6ec22..4483900f 100644 --- a/node_modules/date-fns/locale/de.d.mts +++ b/node_modules/date-fns/locale/de.d.mts @@ -1 +1,13 @@ -export type * from "./de.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary German locale. + * @language German + * @iso-639-2 deu + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Asia [@asia-t](https://github.com/asia-t) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author RomanErnst [@pex](https://github.com/pex) + * @author Philipp Keck [@Philipp91](https://github.com/Philipp91) + */ +export declare const de: Locale; diff --git a/node_modules/date-fns/locale/de/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/de/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/de/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/de/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/de/_lib/formatDistance.js b/node_modules/date-fns/locale/de/_lib/formatDistance.js index 9645ef79..ed8d1419 100644 --- a/node_modules/date-fns/locale/de/_lib/formatDistance.js +++ b/node_modules/date-fns/locale/de/_lib/formatDistance.js @@ -25,8 +25,8 @@ const formatDistanceLocale = { }, halfAMinute: { - standalone: "halbe Minute", - withPreposition: "halben Minute", + standalone: "eine halbe Minute", + withPreposition: "einer halben Minute", }, lessThanXMinutes: { diff --git a/node_modules/date-fns/locale/de/_lib/formatDistance.mjs b/node_modules/date-fns/locale/de/_lib/formatDistance.mjs index 64e58cae..bf23ff8b 100644 --- a/node_modules/date-fns/locale/de/_lib/formatDistance.mjs +++ b/node_modules/date-fns/locale/de/_lib/formatDistance.mjs @@ -22,8 +22,8 @@ const formatDistanceLocale = { }, halfAMinute: { - standalone: "halbe Minute", - withPreposition: "halben Minute", + standalone: "eine halbe Minute", + withPreposition: "einer halben Minute", }, lessThanXMinutes: { diff --git a/node_modules/date-fns/locale/de/_lib/formatLong.d.mts b/node_modules/date-fns/locale/de/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/de/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/de/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/de/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/de/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/de/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/de/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/de/_lib/localize.d.mts b/node_modules/date-fns/locale/de/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/de/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/de/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/de/_lib/match.d.mts b/node_modules/date-fns/locale/de/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/de/_lib/match.d.mts +++ b/node_modules/date-fns/locale/de/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/el.d.mts b/node_modules/date-fns/locale/el.d.mts index 77d4a82c..b273ff4a 100644 --- a/node_modules/date-fns/locale/el.d.mts +++ b/node_modules/date-fns/locale/el.d.mts @@ -1 +1,10 @@ -export type * from "./el.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Greek locale. + * @language Greek + * @iso-639-2 ell + * @author Fanis Katsimpas [@fanixk](https://github.com/fanixk) + * @author Theodoros Orfanidis [@teoulas](https://github.com/teoulas) + */ +export declare const el: Locale; diff --git a/node_modules/date-fns/locale/el/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/el/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/el/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/el/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/el/_lib/formatLong.d.mts b/node_modules/date-fns/locale/el/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/el/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/el/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/el/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/el/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/el/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/el/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/el/_lib/localize.d.mts b/node_modules/date-fns/locale/el/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/el/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/el/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/el/_lib/match.d.mts b/node_modules/date-fns/locale/el/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/el/_lib/match.d.mts +++ b/node_modules/date-fns/locale/el/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/en-AU.d.mts b/node_modules/date-fns/locale/en-AU.d.mts index 23900a84..381e4ece 100644 --- a/node_modules/date-fns/locale/en-AU.d.mts +++ b/node_modules/date-fns/locale/en-AU.d.mts @@ -1 +1,9 @@ -export type * from "./en-AU.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary English locale (Australia). + * @language English + * @iso-639-2 eng + * @author Julien Malige [@JulienMalige](https://github.com/JulienMalige) + */ +export declare const enAU: Locale; diff --git a/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.mts b/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-CA.d.mts b/node_modules/date-fns/locale/en-CA.d.mts index 688498d2..3e9713d0 100644 --- a/node_modules/date-fns/locale/en-CA.d.mts +++ b/node_modules/date-fns/locale/en-CA.d.mts @@ -1 +1,10 @@ -export type * from "./en-CA.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary English locale (Canada). + * @language English + * @iso-639-2 eng + * @author Mark Owsiak [@markowsiak](https://github.com/markowsiak) + * @author Marco Imperatore [@mimperatore](https://github.com/mimperatore) + */ +export declare const enCA: Locale; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.mts b/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-GB.d.mts b/node_modules/date-fns/locale/en-GB.d.mts index f07932c5..0fd7ecbd 100644 --- a/node_modules/date-fns/locale/en-GB.d.mts +++ b/node_modules/date-fns/locale/en-GB.d.mts @@ -1 +1,9 @@ -export type * from "./en-GB.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary English locale (United Kingdom). + * @language English + * @iso-639-2 eng + * @author Alex [@glintik](https://github.com/glintik) + */ +export declare const enGB: Locale; diff --git a/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.mts b/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-IE.d.mts b/node_modules/date-fns/locale/en-IE.d.mts index 15a7a26f..1a4d3a18 100644 --- a/node_modules/date-fns/locale/en-IE.d.mts +++ b/node_modules/date-fns/locale/en-IE.d.mts @@ -1 +1,9 @@ -export type * from "./en-IE.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary English locale (Ireland). + * @language English + * @iso-639-2 eng + * @author Tetiana [@tan75](https://github.com/tan75) + */ +export declare const enIE: Locale; diff --git a/node_modules/date-fns/locale/en-IN.d.mts b/node_modules/date-fns/locale/en-IN.d.mts index 07e43631..8171824f 100644 --- a/node_modules/date-fns/locale/en-IN.d.mts +++ b/node_modules/date-fns/locale/en-IN.d.mts @@ -1 +1,9 @@ -export type * from "./en-IN.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary English locale (India). + * @language English + * @iso-639-2 eng + * @author Galeel Bhasha Satthar [@gbhasha](https://github.com/gbhasha) + */ +export declare const enIN: Locale; diff --git a/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.mts b/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-NZ.d.mts b/node_modules/date-fns/locale/en-NZ.d.mts index ef181a5f..b4e00135 100644 --- a/node_modules/date-fns/locale/en-NZ.d.mts +++ b/node_modules/date-fns/locale/en-NZ.d.mts @@ -1 +1,9 @@ -export type * from "./en-NZ.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary English locale (New Zealand). + * @language English + * @iso-639-2 eng + * @author Murray Lucas [@muntact](https://github.com/muntact) + */ +export declare const enNZ: Locale; diff --git a/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.mts b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-US.d.mts b/node_modules/date-fns/locale/en-US.d.mts index da787fb8..8f8876c7 100644 --- a/node_modules/date-fns/locale/en-US.d.mts +++ b/node_modules/date-fns/locale/en-US.d.mts @@ -1 +1,10 @@ -export type * from "./en-US.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary English locale (United States). + * @language English + * @iso-639-2 eng + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +export declare const enUS: Locale; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatLong.d.mts b/node_modules/date-fns/locale/en-US/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/en-US/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/en-US/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/en-US/_lib/localize.d.mts b/node_modules/date-fns/locale/en-US/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/en-US/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/en-US/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/en-US/_lib/match.d.mts b/node_modules/date-fns/locale/en-US/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/en-US/_lib/match.d.mts +++ b/node_modules/date-fns/locale/en-US/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/en-ZA.d.mts b/node_modules/date-fns/locale/en-ZA.d.mts index 3bedcdec..5495cf8f 100644 --- a/node_modules/date-fns/locale/en-ZA.d.mts +++ b/node_modules/date-fns/locale/en-ZA.d.mts @@ -1 +1,9 @@ -export type * from "./en-ZA.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary English locale (South Africa). + * @language English + * @iso-639-2 eng + * @author Shaila Kavrakova [@shaykav](https://github.com/shaykav) + */ +export declare const enZA: Locale; diff --git a/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.mts b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/eo.d.mts b/node_modules/date-fns/locale/eo.d.mts index d7364fd6..46672faa 100644 --- a/node_modules/date-fns/locale/eo.d.mts +++ b/node_modules/date-fns/locale/eo.d.mts @@ -1 +1,9 @@ -export type * from "./eo.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Esperanto locale. + * @language Esperanto + * @iso-639-2 epo + * @author date-fns + */ +export declare const eo: Locale; diff --git a/node_modules/date-fns/locale/eo/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/eo/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/eo/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/eo/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/eo/_lib/formatLong.d.mts b/node_modules/date-fns/locale/eo/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/eo/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/eo/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/eo/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/eo/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/eo/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/eo/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/eo/_lib/localize.d.mts b/node_modules/date-fns/locale/eo/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/eo/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/eo/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/eo/_lib/match.d.mts b/node_modules/date-fns/locale/eo/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/eo/_lib/match.d.mts +++ b/node_modules/date-fns/locale/eo/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/es.d.mts b/node_modules/date-fns/locale/es.d.mts index fef8bcd4..af11f1b5 100644 --- a/node_modules/date-fns/locale/es.d.mts +++ b/node_modules/date-fns/locale/es.d.mts @@ -1 +1,13 @@ -export type * from "./es.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Spanish locale. + * @language Spanish + * @iso-639-2 spa + * @author Juan Angosto [@juanangosto](https://github.com/juanangosto) + * @author Guillermo Grau [@guigrpa](https://github.com/guigrpa) + * @author Fernando Agüero [@fjaguero](https://github.com/fjaguero) + * @author Gastón Haro [@harogaston](https://github.com/harogaston) + * @author Yago Carballo [@YagoCarballo](https://github.com/YagoCarballo) + */ +export declare const es: Locale; diff --git a/node_modules/date-fns/locale/es/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/es/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/es/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/es/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/es/_lib/formatLong.d.mts b/node_modules/date-fns/locale/es/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/es/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/es/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/es/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/es/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/es/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/es/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/es/_lib/localize.d.mts b/node_modules/date-fns/locale/es/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/es/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/es/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/es/_lib/match.d.mts b/node_modules/date-fns/locale/es/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/es/_lib/match.d.mts +++ b/node_modules/date-fns/locale/es/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/et.d.mts b/node_modules/date-fns/locale/et.d.mts index 6fefea6b..cd0bd74a 100644 --- a/node_modules/date-fns/locale/et.d.mts +++ b/node_modules/date-fns/locale/et.d.mts @@ -1 +1,9 @@ -export type * from "./et.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Estonian locale. + * @language Estonian + * @iso-639-2 est + * @author Priit Hansen [@HansenPriit](https://github.com/priithansen) + */ +export declare const et: Locale; diff --git a/node_modules/date-fns/locale/et/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/et/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/et/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/et/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/et/_lib/formatLong.d.mts b/node_modules/date-fns/locale/et/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/et/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/et/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/et/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/et/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/et/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/et/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/et/_lib/localize.d.mts b/node_modules/date-fns/locale/et/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/et/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/et/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/et/_lib/match.d.mts b/node_modules/date-fns/locale/et/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/et/_lib/match.d.mts +++ b/node_modules/date-fns/locale/et/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/eu.d.mts b/node_modules/date-fns/locale/eu.d.mts index f02e3dcd..83780de8 100644 --- a/node_modules/date-fns/locale/eu.d.mts +++ b/node_modules/date-fns/locale/eu.d.mts @@ -1 +1,9 @@ -export type * from "./eu.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Basque locale. + * @language Basque + * @iso-639-2 eus + * @author Jacob Söderblom [@JacobSoderblom](https://github.com/JacobSoderblom) + */ +export declare const eu: Locale; diff --git a/node_modules/date-fns/locale/eu/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/eu/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/eu/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/eu/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/eu/_lib/formatLong.d.mts b/node_modules/date-fns/locale/eu/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/eu/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/eu/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/eu/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/eu/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/eu/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/eu/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/eu/_lib/localize.d.mts b/node_modules/date-fns/locale/eu/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/eu/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/eu/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/eu/_lib/match.d.mts b/node_modules/date-fns/locale/eu/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/eu/_lib/match.d.mts +++ b/node_modules/date-fns/locale/eu/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fa-IR.d.mts b/node_modules/date-fns/locale/fa-IR.d.mts index 08b9edf4..3e812fbf 100644 --- a/node_modules/date-fns/locale/fa-IR.d.mts +++ b/node_modules/date-fns/locale/fa-IR.d.mts @@ -1 +1,9 @@ -export type * from "./fa-IR.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Persian/Farsi locale (Iran). + * @language Persian + * @iso-639-2 ira + * @author Morteza Ziyae [@mort3za](https://github.com/mort3za) + */ +export declare const faIR: Locale; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.mts b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/localize.d.mts b/node_modules/date-fns/locale/fa-IR/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/fa-IR/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/fa-IR/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/match.d.mts b/node_modules/date-fns/locale/fa-IR/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/fa-IR/_lib/match.d.mts +++ b/node_modules/date-fns/locale/fa-IR/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fi.d.mts b/node_modules/date-fns/locale/fi.d.mts index 7aad434a..4a938aad 100644 --- a/node_modules/date-fns/locale/fi.d.mts +++ b/node_modules/date-fns/locale/fi.d.mts @@ -1 +1,11 @@ -export type * from "./fi.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Finnish locale. + * @language Finnish + * @iso-639-2 fin + * @author Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe) + * @author Edo Rivai [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Samu Juvonen [@sjuvonen](https://github.com/sjuvonen) + */ +export declare const fi: Locale; diff --git a/node_modules/date-fns/locale/fi/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/fi/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/fi/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/fi/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fi/_lib/formatLong.d.mts b/node_modules/date-fns/locale/fi/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/fi/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/fi/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fi/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/fi/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/fi/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/fi/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fi/_lib/localize.d.mts b/node_modules/date-fns/locale/fi/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/fi/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/fi/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fi/_lib/match.d.mts b/node_modules/date-fns/locale/fi/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/fi/_lib/match.d.mts +++ b/node_modules/date-fns/locale/fi/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fr-CA.d.mts b/node_modules/date-fns/locale/fr-CA.d.mts index 461f68f0..d2f76d75 100644 --- a/node_modules/date-fns/locale/fr-CA.d.mts +++ b/node_modules/date-fns/locale/fr-CA.d.mts @@ -1 +1,11 @@ -export type * from "./fr-CA.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary French locale (Canada). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Gabriele Petrioli [@gpetrioli](https://github.com/gpetrioli) + */ +export declare const frCA: Locale; diff --git a/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.mts b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr-CH.d.mts b/node_modules/date-fns/locale/fr-CH.d.mts index 25a58fde..0aa15695 100644 --- a/node_modules/date-fns/locale/fr-CH.d.mts +++ b/node_modules/date-fns/locale/fr-CH.d.mts @@ -1 +1,12 @@ -export type * from "./fr-CH.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary French locale (Switzerland). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +export declare const frCH: Locale; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.mts b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fr.d.mts b/node_modules/date-fns/locale/fr.d.mts index 85f8c1f3..42842cfd 100644 --- a/node_modules/date-fns/locale/fr.d.mts +++ b/node_modules/date-fns/locale/fr.d.mts @@ -1 +1,10 @@ -export type * from "./fr.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary French locale. + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + */ +export declare const fr: Locale; diff --git a/node_modules/date-fns/locale/fr/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/fr/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/fr/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/fr/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fr/_lib/formatLong.d.mts b/node_modules/date-fns/locale/fr/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/fr/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/fr/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/fr/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/fr/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/fr/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fr/_lib/localize.d.mts b/node_modules/date-fns/locale/fr/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/fr/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/fr/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fr/_lib/localize.js b/node_modules/date-fns/locale/fr/_lib/localize.js index 0c16604c..92e1380c 100644 --- a/node_modules/date-fns/locale/fr/_lib/localize.js +++ b/node_modules/date-fns/locale/fr/_lib/localize.js @@ -114,7 +114,29 @@ const ordinalNumber = (dirtyNumber, options) => { return number + suffix; }; +const LONG_MONTHS_TOKENS = ["MMM", "MMMM"]; + const localize = (exports.localize = { + preprocessor: (date, parts) => { + // Replaces the `do` tokens with `d` when used with long month tokens and the day of the month is greater than one. + // Use case "do MMMM" => 1er août, 29 août + // see https://github.com/date-fns/date-fns/issues/1391 + + if (date.getDate() === 1) return parts; + + const hasLongMonthToken = parts.some( + (part) => part.isToken && LONG_MONTHS_TOKENS.includes(part.value), + ); + + if (!hasLongMonthToken) return parts; + + return parts.map((part) => + part.isToken && part.value === "do" + ? { isToken: true, value: "d" } + : part, + ); + }, + ordinalNumber, era: (0, _index.buildLocalizeFn)({ diff --git a/node_modules/date-fns/locale/fr/_lib/localize.mjs b/node_modules/date-fns/locale/fr/_lib/localize.mjs index 41a58946..d3c50fee 100644 --- a/node_modules/date-fns/locale/fr/_lib/localize.mjs +++ b/node_modules/date-fns/locale/fr/_lib/localize.mjs @@ -112,7 +112,29 @@ const ordinalNumber = (dirtyNumber, options) => { return number + suffix; }; +const LONG_MONTHS_TOKENS = ["MMM", "MMMM"]; + export const localize = { + preprocessor: (date, parts) => { + // Replaces the `do` tokens with `d` when used with long month tokens and the day of the month is greater than one. + // Use case "do MMMM" => 1er août, 29 août + // see https://github.com/date-fns/date-fns/issues/1391 + + if (date.getDate() === 1) return parts; + + const hasLongMonthToken = parts.some( + (part) => part.isToken && LONG_MONTHS_TOKENS.includes(part.value), + ); + + if (!hasLongMonthToken) return parts; + + return parts.map((part) => + part.isToken && part.value === "do" + ? { isToken: true, value: "d" } + : part, + ); + }, + ordinalNumber, era: buildLocalizeFn({ diff --git a/node_modules/date-fns/locale/fr/_lib/match.d.mts b/node_modules/date-fns/locale/fr/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/fr/_lib/match.d.mts +++ b/node_modules/date-fns/locale/fr/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fy.d.mts b/node_modules/date-fns/locale/fy.d.mts index a6c251d4..a4547e68 100644 --- a/node_modules/date-fns/locale/fy.d.mts +++ b/node_modules/date-fns/locale/fy.d.mts @@ -1 +1,9 @@ -export type * from "./fy.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Western Frisian locale (Netherlands). + * @language West Frisian + * @iso-639-2 fry + * @author Damon Asberg [@damon02](https://github.com/damon02) + */ +export declare const fy: Locale; diff --git a/node_modules/date-fns/locale/fy/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/fy/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/fy/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/fy/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fy/_lib/formatLong.d.mts b/node_modules/date-fns/locale/fy/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/fy/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/fy/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fy/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/fy/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/fy/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/fy/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fy/_lib/localize.d.mts b/node_modules/date-fns/locale/fy/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/fy/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/fy/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fy/_lib/match.d.mts b/node_modules/date-fns/locale/fy/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/fy/_lib/match.d.mts +++ b/node_modules/date-fns/locale/fy/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gd.d.mts b/node_modules/date-fns/locale/gd.d.mts index 36545de0..8748608e 100644 --- a/node_modules/date-fns/locale/gd.d.mts +++ b/node_modules/date-fns/locale/gd.d.mts @@ -1 +1,9 @@ -export type * from "./gd.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Scottish Gaelic. + * @language Scottish Gaelic + * @iso-639-2 gla + * @author Lee Driscoll [@leedriscoll](https://github.com/leedriscoll) + */ +export declare const gd: Locale; diff --git a/node_modules/date-fns/locale/gd/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/gd/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/gd/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/gd/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gd/_lib/formatLong.d.mts b/node_modules/date-fns/locale/gd/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/gd/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/gd/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gd/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/gd/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/gd/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/gd/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gd/_lib/localize.d.mts b/node_modules/date-fns/locale/gd/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/gd/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/gd/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gd/_lib/match.d.mts b/node_modules/date-fns/locale/gd/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/gd/_lib/match.d.mts +++ b/node_modules/date-fns/locale/gd/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gl.d.mts b/node_modules/date-fns/locale/gl.d.mts index 7417cc64..7ccb01cd 100644 --- a/node_modules/date-fns/locale/gl.d.mts +++ b/node_modules/date-fns/locale/gl.d.mts @@ -1 +1,10 @@ -export type * from "./gl.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Galician locale. + * @language Galician + * @iso-639-2 glg + * @author Alberto Doval - Cocodin Technology[@cocodinTech](https://github.com/cocodinTech) + * @author Fidel Pita [@fidelpita](https://github.com/fidelpita) + */ +export declare const gl: Locale; diff --git a/node_modules/date-fns/locale/gl/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/gl/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/gl/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/gl/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gl/_lib/formatLong.d.mts b/node_modules/date-fns/locale/gl/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/gl/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/gl/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gl/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/gl/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/gl/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/gl/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gl/_lib/localize.d.mts b/node_modules/date-fns/locale/gl/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/gl/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/gl/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gl/_lib/match.d.mts b/node_modules/date-fns/locale/gl/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/gl/_lib/match.d.mts +++ b/node_modules/date-fns/locale/gl/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gu.d.mts b/node_modules/date-fns/locale/gu.d.mts index bc720529..b0b0c02a 100644 --- a/node_modules/date-fns/locale/gu.d.mts +++ b/node_modules/date-fns/locale/gu.d.mts @@ -1 +1,9 @@ -export type * from "./gu.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Gujarati locale (India). + * @language Gujarati + * @iso-639-2 guj + * @author Manaday Mavani [@ManadayM](https://github.com/manadaym) + */ +export declare const gu: Locale; diff --git a/node_modules/date-fns/locale/gu/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/gu/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/gu/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/gu/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gu/_lib/formatLong.d.mts b/node_modules/date-fns/locale/gu/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/gu/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/gu/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gu/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/gu/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/gu/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/gu/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gu/_lib/localize.d.mts b/node_modules/date-fns/locale/gu/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/gu/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/gu/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gu/_lib/match.d.mts b/node_modules/date-fns/locale/gu/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/gu/_lib/match.d.mts +++ b/node_modules/date-fns/locale/gu/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/he.d.mts b/node_modules/date-fns/locale/he.d.mts index 6c83ef72..64c0e272 100644 --- a/node_modules/date-fns/locale/he.d.mts +++ b/node_modules/date-fns/locale/he.d.mts @@ -1 +1,9 @@ -export type * from "./he.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Hebrew locale. + * @language Hebrew + * @iso-639-2 heb + * @author Nir Lahad [@nirlah](https://github.com/nirlah) + */ +export declare const he: Locale; diff --git a/node_modules/date-fns/locale/he/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/he/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/he/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/he/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/he/_lib/formatLong.d.mts b/node_modules/date-fns/locale/he/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/he/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/he/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/he/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/he/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/he/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/he/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/he/_lib/localize.d.mts b/node_modules/date-fns/locale/he/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/he/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/he/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/he/_lib/match.d.mts b/node_modules/date-fns/locale/he/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/he/_lib/match.d.mts +++ b/node_modules/date-fns/locale/he/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hi.d.mts b/node_modules/date-fns/locale/hi.d.mts index 563e8c20..93b65dc7 100644 --- a/node_modules/date-fns/locale/hi.d.mts +++ b/node_modules/date-fns/locale/hi.d.mts @@ -1 +1,9 @@ -export type * from "./hi.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Hindi locale (India). + * @language Hindi + * @iso-639-2 hin + * @author Mukesh Mandiwal [@mukeshmandiwal](https://github.com/mukeshmandiwal) + */ +export declare const hi: Locale; diff --git a/node_modules/date-fns/locale/hi/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/hi/_lib/formatDistance.d.mts index 9d6292d1..17bdd1f6 100644 --- a/node_modules/date-fns/locale/hi/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/hi/_lib/formatDistance.d.mts @@ -1 +1,9 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export type FormatDistanceTokanRelativeValue = { + one: string; + other: string; +}; +export type FormatDistanceLocaleValue = + | FormatDistanceTokanRelativeValue + | string; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hi/_lib/formatLong.d.mts b/node_modules/date-fns/locale/hi/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/hi/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/hi/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hi/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/hi/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/hi/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/hi/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hi/_lib/localize.d.mts b/node_modules/date-fns/locale/hi/_lib/localize.d.mts index 5ef1aa9b..de2e78a1 100644 --- a/node_modules/date-fns/locale/hi/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/hi/_lib/localize.d.mts @@ -1 +1,37 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +type hiLocaleNumberType = + | "\u0967" + | "\u0968" + | "\u0969" + | "\u096A" + | "\u096B" + | "\u096C" + | "\u096D" + | "\u096E" + | "\u096F" + | "\u0966"; +type enLocaleNumberType = + | "1" + | "2" + | "3" + | "4" + | "5" + | "6" + | "7" + | "8" + | "9" + | "0"; +type enHiLocaleNumberType = { + [enNumber in enLocaleNumberType]: hiLocaleNumberType; +}; +type hiLocaleEnNumberType = { + [hiNumber in hiLocaleNumberType]: enLocaleNumberType; +}; +export interface hiLocaleNumberValuesType { + locale: enHiLocaleNumberType; + number: hiLocaleEnNumberType; +} +export declare function localeToNumber(locale: string): number; +export declare function numberToLocale(enNumber: number): string; +export declare const localize: Localize; +export {}; diff --git a/node_modules/date-fns/locale/hi/_lib/match.d.mts b/node_modules/date-fns/locale/hi/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/hi/_lib/match.d.mts +++ b/node_modules/date-fns/locale/hi/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hr.d.mts b/node_modules/date-fns/locale/hr.d.mts index 7a102ea0..50db246a 100644 --- a/node_modules/date-fns/locale/hr.d.mts +++ b/node_modules/date-fns/locale/hr.d.mts @@ -1 +1,11 @@ -export type * from "./hr.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Croatian locale. + * @language Croatian + * @iso-639-2 hrv + * @author Matija Marohnić [@silvenon](https://github.com/silvenon) + * @author Manico [@manico](https://github.com/manico) + * @author Ivan Jeržabek [@jerzabek](https://github.com/jerzabek) + */ +export declare const hr: Locale; diff --git a/node_modules/date-fns/locale/hr/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/hr/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/hr/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/hr/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hr/_lib/formatLong.d.mts b/node_modules/date-fns/locale/hr/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/hr/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/hr/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hr/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/hr/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/hr/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/hr/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hr/_lib/localize.d.mts b/node_modules/date-fns/locale/hr/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/hr/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/hr/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hr/_lib/match.d.mts b/node_modules/date-fns/locale/hr/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/hr/_lib/match.d.mts +++ b/node_modules/date-fns/locale/hr/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ht.d.mts b/node_modules/date-fns/locale/ht.d.mts index 46c788ef..30cf9911 100644 --- a/node_modules/date-fns/locale/ht.d.mts +++ b/node_modules/date-fns/locale/ht.d.mts @@ -1 +1,10 @@ -export type * from "./ht.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Haitian Creole locale. + * @language Haitian Creole + * @iso-639-2 hat + * @author Rubens Mariuzzo [@rmariuzzo](https://github.com/rmariuzzo) + * @author Watson Marcelain [@watsongm24](https://github.com/watsongm24) + */ +export declare const ht: Locale; diff --git a/node_modules/date-fns/locale/ht/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ht/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ht/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ht/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ht/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ht/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/ht/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ht/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ht/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ht/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ht/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ht/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ht/_lib/localize.d.mts b/node_modules/date-fns/locale/ht/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ht/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ht/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ht/_lib/match.d.mts b/node_modules/date-fns/locale/ht/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ht/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ht/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hu.d.mts b/node_modules/date-fns/locale/hu.d.mts index 9f3716d2..a0ce1f48 100644 --- a/node_modules/date-fns/locale/hu.d.mts +++ b/node_modules/date-fns/locale/hu.d.mts @@ -1 +1,11 @@ -export type * from "./hu.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Hungarian locale. + * @language Hungarian + * @iso-639-2 hun + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + * @author Zoltan Szepesi [@twodcube](https://github.com/twodcube) + */ +export declare const hu: Locale; diff --git a/node_modules/date-fns/locale/hu/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/hu/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/hu/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/hu/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hu/_lib/formatLong.d.mts b/node_modules/date-fns/locale/hu/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/hu/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/hu/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hu/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/hu/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/hu/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/hu/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hu/_lib/localize.d.mts b/node_modules/date-fns/locale/hu/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/hu/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/hu/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hu/_lib/match.d.mts b/node_modules/date-fns/locale/hu/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/hu/_lib/match.d.mts +++ b/node_modules/date-fns/locale/hu/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hy.d.mts b/node_modules/date-fns/locale/hy.d.mts index f567167f..b2db7900 100644 --- a/node_modules/date-fns/locale/hy.d.mts +++ b/node_modules/date-fns/locale/hy.d.mts @@ -1 +1,9 @@ -export type * from "./hy.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Armenian locale + * @language Armenian + * @iso-639-2 arm + * @author Alex Igityan [@alexigityan](https://github.com/alexigityan) + */ +export declare const hy: Locale; diff --git a/node_modules/date-fns/locale/hy/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/hy/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/hy/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/hy/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hy/_lib/formatLong.d.mts b/node_modules/date-fns/locale/hy/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/hy/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/hy/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hy/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/hy/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/hy/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/hy/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hy/_lib/localize.d.mts b/node_modules/date-fns/locale/hy/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/hy/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/hy/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hy/_lib/match.d.mts b/node_modules/date-fns/locale/hy/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/hy/_lib/match.d.mts +++ b/node_modules/date-fns/locale/hy/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/id.d.mts b/node_modules/date-fns/locale/id.d.mts index 53dec4e7..593b1782 100644 --- a/node_modules/date-fns/locale/id.d.mts +++ b/node_modules/date-fns/locale/id.d.mts @@ -1 +1,12 @@ -export type * from "./id.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Indonesian locale. + * @language Indonesian + * @iso-639-2 ind + * @author Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso) + * @author Benget Nata [@bentinata](https://github.com/bentinata) + * @author Budi Irawan [@deerawan](https://github.com/deerawan) + * @author Try Ajitiono [@imballinst](https://github.com/imballinst) + */ +export declare const id: Locale; diff --git a/node_modules/date-fns/locale/id/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/id/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/id/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/id/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/id/_lib/formatLong.d.mts b/node_modules/date-fns/locale/id/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/id/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/id/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/id/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/id/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/id/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/id/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/id/_lib/localize.d.mts b/node_modules/date-fns/locale/id/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/id/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/id/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/id/_lib/match.d.mts b/node_modules/date-fns/locale/id/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/id/_lib/match.d.mts +++ b/node_modules/date-fns/locale/id/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/is.d.mts b/node_modules/date-fns/locale/is.d.mts index 8da99adc..4b15a635 100644 --- a/node_modules/date-fns/locale/is.d.mts +++ b/node_modules/date-fns/locale/is.d.mts @@ -1 +1,10 @@ -export type * from "./is.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Icelandic locale. + * @language Icelandic + * @iso-639-2 isl + * @author Derek Blank [@derekblank](https://github.com/derekblank) + * @author Arnór Ýmir [@lamayg](https://github.com/lamayg) + */ +export declare const is: Locale; diff --git a/node_modules/date-fns/locale/is/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/is/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/is/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/is/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/is/_lib/formatLong.d.mts b/node_modules/date-fns/locale/is/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/is/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/is/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/is/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/is/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/is/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/is/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/is/_lib/localize.d.mts b/node_modules/date-fns/locale/is/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/is/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/is/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/is/_lib/match.d.mts b/node_modules/date-fns/locale/is/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/is/_lib/match.d.mts +++ b/node_modules/date-fns/locale/is/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/it-CH.d.mts b/node_modules/date-fns/locale/it-CH.d.mts index 3813b813..7c56f37b 100644 --- a/node_modules/date-fns/locale/it-CH.d.mts +++ b/node_modules/date-fns/locale/it-CH.d.mts @@ -1 +1,9 @@ -export type * from "./it-CH.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Italian locale (Switzerland). + * @language Italian + * @iso-639-2 ita + * @author Mike Peyer [@maic66](https://github.com/maic66) + */ +export declare const itCH: Locale; diff --git a/node_modules/date-fns/locale/it-CH/_lib/formatLong.d.mts b/node_modules/date-fns/locale/it-CH/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/it-CH/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/it-CH/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/it.d.mts b/node_modules/date-fns/locale/it.d.mts index 93aa1a77..c40678d6 100644 --- a/node_modules/date-fns/locale/it.d.mts +++ b/node_modules/date-fns/locale/it.d.mts @@ -1 +1,11 @@ -export type * from "./it.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Italian locale. + * @language Italian + * @iso-639-2 ita + * @author Alberto Restifo [@albertorestifo](https://github.com/albertorestifo) + * @author Giovanni Polimeni [@giofilo](https://github.com/giofilo) + * @author Vincenzo Carrese [@vin-car](https://github.com/vin-car) + */ +export declare const it: Locale; diff --git a/node_modules/date-fns/locale/it/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/it/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/it/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/it/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/it/_lib/formatLong.d.mts b/node_modules/date-fns/locale/it/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/it/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/it/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/it/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/it/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/it/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/it/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/it/_lib/localize.d.mts b/node_modules/date-fns/locale/it/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/it/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/it/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/it/_lib/match.d.mts b/node_modules/date-fns/locale/it/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/it/_lib/match.d.mts +++ b/node_modules/date-fns/locale/it/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ja-Hira.d.mts b/node_modules/date-fns/locale/ja-Hira.d.mts index 0667448e..13aef505 100644 --- a/node_modules/date-fns/locale/ja-Hira.d.mts +++ b/node_modules/date-fns/locale/ja-Hira.d.mts @@ -1 +1,9 @@ -export type * from "./ja-Hira.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Japanese (Hiragana) locale. + * @language Japanese (Hiragana) + * @iso-639-2 jpn + * @author Eri Hiramatsu [@Eritutteo](https://github.com/Eritutteo) + */ +export declare const jaHira: Locale; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/localize.d.mts b/node_modules/date-fns/locale/ja-Hira/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ja-Hira/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ja-Hira/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/match.d.mts b/node_modules/date-fns/locale/ja-Hira/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ja-Hira/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ja-Hira/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ja.d.mts b/node_modules/date-fns/locale/ja.d.mts index ef6d50f4..a3b15047 100644 --- a/node_modules/date-fns/locale/ja.d.mts +++ b/node_modules/date-fns/locale/ja.d.mts @@ -1 +1,13 @@ -export type * from "./ja.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Japanese locale. + * @language Japanese + * @iso-639-2 jpn + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts) + * @author Luca Ban [@mesqueeb](https://github.com/mesqueeb) + * @author Terrence Lam [@skyuplam](https://github.com/skyuplam) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +export declare const ja: Locale; diff --git a/node_modules/date-fns/locale/ja/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ja/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ja/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ja/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ja/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ja/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/ja/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ja/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ja/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ja/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ja/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ja/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ja/_lib/localize.d.mts b/node_modules/date-fns/locale/ja/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ja/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ja/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ja/_lib/match.d.mts b/node_modules/date-fns/locale/ja/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ja/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ja/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ka.d.mts b/node_modules/date-fns/locale/ka.d.mts index 7ddab287..7da151ae 100644 --- a/node_modules/date-fns/locale/ka.d.mts +++ b/node_modules/date-fns/locale/ka.d.mts @@ -1 +1,10 @@ -export type * from "./ka.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Georgian locale. + * @language Georgian + * @iso-639-2 geo + * @author Lado Lomidze [@Landish](https://github.com/Landish) + * @author Nick Shvelidze [@shvelo](https://github.com/shvelo) + */ +export declare const ka: Locale; diff --git a/node_modules/date-fns/locale/ka/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ka/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ka/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ka/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ka/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ka/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/ka/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ka/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ka/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ka/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ka/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ka/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ka/_lib/localize.d.mts b/node_modules/date-fns/locale/ka/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ka/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ka/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ka/_lib/match.d.mts b/node_modules/date-fns/locale/ka/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ka/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ka/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/kk.d.mts b/node_modules/date-fns/locale/kk.d.mts index e50a3a88..a7aeb09d 100644 --- a/node_modules/date-fns/locale/kk.d.mts +++ b/node_modules/date-fns/locale/kk.d.mts @@ -1 +1,9 @@ -export type * from "./kk.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Kazakh locale. + * @language Kazakh + * @iso-639-2 kaz + * @author Nikita Bayev [@drugoi](https://github.com/drugoi) + */ +export declare const kk: Locale; diff --git a/node_modules/date-fns/locale/kk/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/kk/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/kk/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/kk/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/kk/_lib/formatLong.d.mts b/node_modules/date-fns/locale/kk/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/kk/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/kk/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/kk/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/kk/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/kk/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/kk/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/kk/_lib/localize.d.mts b/node_modules/date-fns/locale/kk/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/kk/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/kk/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/kk/_lib/match.d.mts b/node_modules/date-fns/locale/kk/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/kk/_lib/match.d.mts +++ b/node_modules/date-fns/locale/kk/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/km.d.mts b/node_modules/date-fns/locale/km.d.mts index d01f3621..580e9fcf 100644 --- a/node_modules/date-fns/locale/km.d.mts +++ b/node_modules/date-fns/locale/km.d.mts @@ -1 +1,9 @@ -export type * from "./km.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Khmer locale (Cambodian). + * @language Khmer + * @iso-639-2 khm + * @author Seanghay Yath [@seanghay](https://github.com/seanghay) + */ +export declare const km: Locale; diff --git a/node_modules/date-fns/locale/km/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/km/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/km/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/km/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/km/_lib/formatLong.d.mts b/node_modules/date-fns/locale/km/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/km/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/km/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/km/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/km/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/km/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/km/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/km/_lib/localize.d.mts b/node_modules/date-fns/locale/km/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/km/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/km/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/km/_lib/match.d.mts b/node_modules/date-fns/locale/km/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/km/_lib/match.d.mts +++ b/node_modules/date-fns/locale/km/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/kn.d.mts b/node_modules/date-fns/locale/kn.d.mts index 453ce056..840a4474 100644 --- a/node_modules/date-fns/locale/kn.d.mts +++ b/node_modules/date-fns/locale/kn.d.mts @@ -1 +1,9 @@ -export type * from "./kn.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Kannada locale (India). + * @language Kannada + * @iso-639-2 kan + * @author Manjunatha Gouli [@developergouli](https://github.com/developergouli) + */ +export declare const kn: Locale; diff --git a/node_modules/date-fns/locale/kn/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/kn/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/kn/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/kn/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/kn/_lib/formatLong.d.mts b/node_modules/date-fns/locale/kn/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/kn/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/kn/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/kn/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/kn/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/kn/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/kn/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/kn/_lib/localize.d.mts b/node_modules/date-fns/locale/kn/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/kn/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/kn/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/kn/_lib/match.d.mts b/node_modules/date-fns/locale/kn/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/kn/_lib/match.d.mts +++ b/node_modules/date-fns/locale/kn/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ko.d.mts b/node_modules/date-fns/locale/ko.d.mts index fc70ad7c..2bba537f 100644 --- a/node_modules/date-fns/locale/ko.d.mts +++ b/node_modules/date-fns/locale/ko.d.mts @@ -1 +1,11 @@ -export type * from "./ko.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Korean locale. + * @language Korean + * @iso-639-2 kor + * @author Hong Chulju [@angdev](https://github.com/angdev) + * @author Lee Seoyoen [@iamssen](https://github.com/iamssen) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +export declare const ko: Locale; diff --git a/node_modules/date-fns/locale/ko/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ko/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ko/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ko/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ko/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ko/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/ko/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ko/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ko/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ko/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ko/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ko/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ko/_lib/localize.d.mts b/node_modules/date-fns/locale/ko/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ko/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ko/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ko/_lib/match.d.mts b/node_modules/date-fns/locale/ko/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ko/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ko/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/lb.d.mts b/node_modules/date-fns/locale/lb.d.mts index 3762413e..a2a519c6 100644 --- a/node_modules/date-fns/locale/lb.d.mts +++ b/node_modules/date-fns/locale/lb.d.mts @@ -1 +1,9 @@ -export type * from "./lb.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Luxembourgish locale. + * @language Luxembourgish + * @iso-639-2 ltz + * @author Daniel Waxweiler [@dwaxweiler](https://github.com/dwaxweiler) + */ +export declare const lb: Locale; diff --git a/node_modules/date-fns/locale/lb/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/lb/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/lb/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/lb/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/lb/_lib/formatLong.d.mts b/node_modules/date-fns/locale/lb/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/lb/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/lb/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/lb/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/lb/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/lb/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/lb/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/lb/_lib/localize.d.mts b/node_modules/date-fns/locale/lb/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/lb/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/lb/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/lb/_lib/match.d.mts b/node_modules/date-fns/locale/lb/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/lb/_lib/match.d.mts +++ b/node_modules/date-fns/locale/lb/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/lt.d.mts b/node_modules/date-fns/locale/lt.d.mts index 90f09459..d1f94829 100644 --- a/node_modules/date-fns/locale/lt.d.mts +++ b/node_modules/date-fns/locale/lt.d.mts @@ -1 +1,10 @@ -export type * from "./lt.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Lithuanian locale. + * @language Lithuanian + * @iso-639-2 lit + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + */ +export declare const lt: Locale; diff --git a/node_modules/date-fns/locale/lt/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/lt/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/lt/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/lt/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/lt/_lib/formatLong.d.mts b/node_modules/date-fns/locale/lt/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/lt/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/lt/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/lt/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/lt/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/lt/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/lt/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/lt/_lib/localize.d.mts b/node_modules/date-fns/locale/lt/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/lt/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/lt/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/lt/_lib/match.d.mts b/node_modules/date-fns/locale/lt/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/lt/_lib/match.d.mts +++ b/node_modules/date-fns/locale/lt/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/lv.d.mts b/node_modules/date-fns/locale/lv.d.mts index c93eab16..09a079b8 100644 --- a/node_modules/date-fns/locale/lv.d.mts +++ b/node_modules/date-fns/locale/lv.d.mts @@ -1 +1,9 @@ -export type * from "./lv.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Latvian locale (Latvia). + * @language Latvian + * @iso-639-2 lav + * @author Rūdolfs Puķītis [@prudolfs](https://github.com/prudolfs) + */ +export declare const lv: Locale; diff --git a/node_modules/date-fns/locale/lv/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/lv/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/lv/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/lv/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/lv/_lib/formatLong.d.mts b/node_modules/date-fns/locale/lv/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/lv/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/lv/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/lv/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/lv/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/lv/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/lv/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/lv/_lib/localize.d.mts b/node_modules/date-fns/locale/lv/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/lv/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/lv/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/lv/_lib/match.d.mts b/node_modules/date-fns/locale/lv/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/lv/_lib/match.d.mts +++ b/node_modules/date-fns/locale/lv/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/mk.d.mts b/node_modules/date-fns/locale/mk.d.mts index 094a91f0..97ed6ae2 100644 --- a/node_modules/date-fns/locale/mk.d.mts +++ b/node_modules/date-fns/locale/mk.d.mts @@ -1 +1,10 @@ -export type * from "./mk.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Macedonian locale. + * @language Macedonian + * @iso-639-2 mkd + * @author Petar Vlahu [@vlahupetar](https://github.com/vlahupetar) + * @author Altrim Beqiri [@altrim](https://github.com/altrim) + */ +export declare const mk: Locale; diff --git a/node_modules/date-fns/locale/mk/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/mk/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/mk/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/mk/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/mk/_lib/formatLong.d.mts b/node_modules/date-fns/locale/mk/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/mk/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/mk/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/mk/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/mk/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/mk/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/mk/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/mk/_lib/localize.d.mts b/node_modules/date-fns/locale/mk/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/mk/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/mk/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/mk/_lib/match.d.mts b/node_modules/date-fns/locale/mk/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/mk/_lib/match.d.mts +++ b/node_modules/date-fns/locale/mk/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/mn.d.mts b/node_modules/date-fns/locale/mn.d.mts index 5f54b45b..09a44793 100644 --- a/node_modules/date-fns/locale/mn.d.mts +++ b/node_modules/date-fns/locale/mn.d.mts @@ -1 +1,9 @@ -export type * from "./mn.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Mongolian locale. + * @language Mongolian + * @iso-639-2 mon + * @author Bilguun Ochirbat [@bilguun0203](https://github.com/bilguun0203) + */ +export declare const mn: Locale; diff --git a/node_modules/date-fns/locale/mn/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/mn/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/mn/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/mn/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/mn/_lib/formatLong.d.mts b/node_modules/date-fns/locale/mn/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/mn/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/mn/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/mn/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/mn/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/mn/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/mn/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/mn/_lib/localize.d.mts b/node_modules/date-fns/locale/mn/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/mn/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/mn/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/mn/_lib/match.d.mts b/node_modules/date-fns/locale/mn/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/mn/_lib/match.d.mts +++ b/node_modules/date-fns/locale/mn/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ms.d.mts b/node_modules/date-fns/locale/ms.d.mts index 8ba90d18..0e6d84a3 100644 --- a/node_modules/date-fns/locale/ms.d.mts +++ b/node_modules/date-fns/locale/ms.d.mts @@ -1 +1,9 @@ -export type * from "./ms.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Malay locale. + * @language Malay + * @iso-639-2 msa + * @author Ruban Selvarajah [@Zyten](https://github.com/Zyten) + */ +export declare const ms: Locale; diff --git a/node_modules/date-fns/locale/ms/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ms/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ms/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ms/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ms/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ms/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/ms/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ms/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ms/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ms/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ms/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ms/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ms/_lib/localize.d.mts b/node_modules/date-fns/locale/ms/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ms/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ms/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ms/_lib/match.d.mts b/node_modules/date-fns/locale/ms/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ms/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ms/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/mt.d.mts b/node_modules/date-fns/locale/mt.d.mts index ad250255..a5bc6934 100644 --- a/node_modules/date-fns/locale/mt.d.mts +++ b/node_modules/date-fns/locale/mt.d.mts @@ -1 +1,10 @@ -export type * from "./mt.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Maltese locale. + * @language Maltese + * @iso-639-2 mlt + * @author Andras Matzon [@amatzon](@link https://github.com/amatzon) + * @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) + */ +export declare const mt: Locale; diff --git a/node_modules/date-fns/locale/mt/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/mt/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/mt/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/mt/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/mt/_lib/formatLong.d.mts b/node_modules/date-fns/locale/mt/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/mt/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/mt/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/mt/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/mt/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/mt/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/mt/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/mt/_lib/localize.d.mts b/node_modules/date-fns/locale/mt/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/mt/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/mt/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/mt/_lib/match.d.mts b/node_modules/date-fns/locale/mt/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/mt/_lib/match.d.mts +++ b/node_modules/date-fns/locale/mt/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/nb.d.mts b/node_modules/date-fns/locale/nb.d.mts index ebfc83eb..a8753886 100644 --- a/node_modules/date-fns/locale/nb.d.mts +++ b/node_modules/date-fns/locale/nb.d.mts @@ -1 +1,11 @@ -export type * from "./nb.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Norwegian Bokmål locale. + * @language Norwegian Bokmål + * @iso-639-2 nob + * @author Hans-Kristian Koren [@Hanse](https://github.com/Hanse) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Dag Stuan [@dagstuan](https://github.com/dagstuan) + */ +export declare const nb: Locale; diff --git a/node_modules/date-fns/locale/nb/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/nb/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/nb/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/nb/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/nb/_lib/formatLong.d.mts b/node_modules/date-fns/locale/nb/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/nb/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/nb/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/nb/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/nb/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/nb/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/nb/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/nb/_lib/localize.d.mts b/node_modules/date-fns/locale/nb/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/nb/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/nb/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/nb/_lib/match.d.mts b/node_modules/date-fns/locale/nb/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/nb/_lib/match.d.mts +++ b/node_modules/date-fns/locale/nb/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/nl-BE.d.mts b/node_modules/date-fns/locale/nl-BE.d.mts index eca259f3..ebc969fd 100644 --- a/node_modules/date-fns/locale/nl-BE.d.mts +++ b/node_modules/date-fns/locale/nl-BE.d.mts @@ -1 +1,12 @@ -export type * from "./nl-BE.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +export declare const nlBE: Locale; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatLong.d.mts b/node_modules/date-fns/locale/nl-BE/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/nl-BE/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/localize.d.mts b/node_modules/date-fns/locale/nl-BE/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/nl-BE/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/nl-BE/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/match.d.mts b/node_modules/date-fns/locale/nl-BE/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/nl-BE/_lib/match.d.mts +++ b/node_modules/date-fns/locale/nl-BE/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/nl.d.mts b/node_modules/date-fns/locale/nl.d.mts index cbd0df92..7f8f6731 100644 --- a/node_modules/date-fns/locale/nl.d.mts +++ b/node_modules/date-fns/locale/nl.d.mts @@ -1 +1,14 @@ -export type * from "./nl.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Edo Rivai [@edorivai](https://github.com/edorivai) + * @author Niels Keurentjes [@curry684](https://github.com/curry684) + * @author Stefan Vermaas [@stefanvermaas](https://github.com/stefanvermaas) + */ +export declare const nl: Locale; diff --git a/node_modules/date-fns/locale/nl/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/nl/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/nl/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/nl/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/nl/_lib/formatLong.d.mts b/node_modules/date-fns/locale/nl/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/nl/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/nl/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/nl/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/nl/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/nl/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/nl/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/nl/_lib/localize.d.mts b/node_modules/date-fns/locale/nl/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/nl/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/nl/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/nl/_lib/match.d.mts b/node_modules/date-fns/locale/nl/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/nl/_lib/match.d.mts +++ b/node_modules/date-fns/locale/nl/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/nn.d.mts b/node_modules/date-fns/locale/nn.d.mts index 8edd568a..0d8479ec 100644 --- a/node_modules/date-fns/locale/nn.d.mts +++ b/node_modules/date-fns/locale/nn.d.mts @@ -1 +1,9 @@ -export type * from "./nn.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Norwegian Nynorsk locale. + * @language Norwegian Nynorsk + * @iso-639-2 nno + * @author Mats Byrkjeland [@draperunner](https://github.com/draperunner) + */ +export declare const nn: Locale; diff --git a/node_modules/date-fns/locale/nn/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/nn/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/nn/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/nn/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/nn/_lib/formatLong.d.mts b/node_modules/date-fns/locale/nn/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/nn/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/nn/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/nn/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/nn/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/nn/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/nn/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/nn/_lib/localize.d.mts b/node_modules/date-fns/locale/nn/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/nn/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/nn/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/nn/_lib/match.d.mts b/node_modules/date-fns/locale/nn/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/nn/_lib/match.d.mts +++ b/node_modules/date-fns/locale/nn/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/oc.d.mts b/node_modules/date-fns/locale/oc.d.mts index 4451a56c..ffc54664 100644 --- a/node_modules/date-fns/locale/oc.d.mts +++ b/node_modules/date-fns/locale/oc.d.mts @@ -1 +1,9 @@ -export type * from "./oc.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Occitan locale. + * @language Occitan + * @iso-639-2 oci + * @author Quentin PAGÈS + */ +export declare const oc: Locale; diff --git a/node_modules/date-fns/locale/oc/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/oc/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/oc/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/oc/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/oc/_lib/formatLong.d.mts b/node_modules/date-fns/locale/oc/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/oc/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/oc/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/oc/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/oc/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/oc/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/oc/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/oc/_lib/localize.d.mts b/node_modules/date-fns/locale/oc/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/oc/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/oc/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/oc/_lib/match.d.mts b/node_modules/date-fns/locale/oc/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/oc/_lib/match.d.mts +++ b/node_modules/date-fns/locale/oc/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/pl.d.mts b/node_modules/date-fns/locale/pl.d.mts index 29f2f53d..4f965138 100644 --- a/node_modules/date-fns/locale/pl.d.mts +++ b/node_modules/date-fns/locale/pl.d.mts @@ -1 +1,12 @@ -export type * from "./pl.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Polish locale. + * @language Polish + * @iso-639-2 pol + * @author Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks) + * @author Just RAG [@justrag](https://github.com/justrag) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Mateusz Tokarski [@mutisz](https://github.com/mutisz) + */ +export declare const pl: Locale; diff --git a/node_modules/date-fns/locale/pl/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/pl/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/pl/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/pl/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/pl/_lib/formatLong.d.mts b/node_modules/date-fns/locale/pl/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/pl/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/pl/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/pl/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/pl/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/pl/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/pl/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/pl/_lib/localize.d.mts b/node_modules/date-fns/locale/pl/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/pl/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/pl/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/pl/_lib/match.d.mts b/node_modules/date-fns/locale/pl/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/pl/_lib/match.d.mts +++ b/node_modules/date-fns/locale/pl/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/pt-BR.d.mts b/node_modules/date-fns/locale/pt-BR.d.mts index 59b0ffaf..397c3c1c 100644 --- a/node_modules/date-fns/locale/pt-BR.d.mts +++ b/node_modules/date-fns/locale/pt-BR.d.mts @@ -1 +1,10 @@ -export type * from "./pt-BR.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Portuguese locale (Brazil). + * @language Portuguese + * @iso-639-2 por + * @author Lucas Duailibe [@duailibe](https://github.com/duailibe) + * @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo) + */ +export declare const ptBR: Locale; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatLong.d.mts b/node_modules/date-fns/locale/pt-BR/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/pt-BR/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/localize.d.mts b/node_modules/date-fns/locale/pt-BR/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/pt-BR/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/pt-BR/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/match.d.mts b/node_modules/date-fns/locale/pt-BR/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/pt-BR/_lib/match.d.mts +++ b/node_modules/date-fns/locale/pt-BR/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/pt.d.mts b/node_modules/date-fns/locale/pt.d.mts index 898037b4..7a4f85ea 100644 --- a/node_modules/date-fns/locale/pt.d.mts +++ b/node_modules/date-fns/locale/pt.d.mts @@ -1 +1,10 @@ -export type * from "./pt.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Portuguese locale. + * @language Portuguese + * @iso-639-2 por + * @author Dário Freire [@dfreire](https://github.com/dfreire) + * @author Adrián de la Rosa [@adrm](https://github.com/adrm) + */ +export declare const pt: Locale; diff --git a/node_modules/date-fns/locale/pt/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/pt/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/pt/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/pt/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/pt/_lib/formatLong.d.mts b/node_modules/date-fns/locale/pt/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/pt/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/pt/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/pt/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/pt/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/pt/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/pt/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/pt/_lib/localize.d.mts b/node_modules/date-fns/locale/pt/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/pt/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/pt/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/pt/_lib/match.d.mts b/node_modules/date-fns/locale/pt/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/pt/_lib/match.d.mts +++ b/node_modules/date-fns/locale/pt/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ro.d.mts b/node_modules/date-fns/locale/ro.d.mts index 15d2719e..52c45b96 100644 --- a/node_modules/date-fns/locale/ro.d.mts +++ b/node_modules/date-fns/locale/ro.d.mts @@ -1 +1,11 @@ -export type * from "./ro.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Romanian locale. + * @language Romanian + * @iso-639-2 ron + * @author Sergiu Munteanu [@jsergiu](https://github.com/jsergiu) + * @author Adrian Ocneanu [@aocneanu](https://github.com/aocneanu) + * @author Mihai Ocneanu [@gandesc](https://github.com/gandesc) + */ +export declare const ro: Locale; diff --git a/node_modules/date-fns/locale/ro/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ro/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ro/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ro/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ro/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ro/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/ro/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ro/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ro/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ro/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ro/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ro/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ro/_lib/localize.d.mts b/node_modules/date-fns/locale/ro/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ro/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ro/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ro/_lib/match.d.mts b/node_modules/date-fns/locale/ro/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ro/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ro/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ru.d.mts b/node_modules/date-fns/locale/ru.d.mts index 0286025d..e060128d 100644 --- a/node_modules/date-fns/locale/ru.d.mts +++ b/node_modules/date-fns/locale/ru.d.mts @@ -1 +1,10 @@ -export type * from "./ru.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Russian locale. + * @language Russian + * @iso-639-2 rus + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +export declare const ru: Locale; diff --git a/node_modules/date-fns/locale/ru/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ru/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ru/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ru/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ru/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ru/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/ru/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ru/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ru/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ru/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ru/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ru/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ru/_lib/localize.d.mts b/node_modules/date-fns/locale/ru/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ru/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ru/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ru/_lib/match.d.mts b/node_modules/date-fns/locale/ru/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ru/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ru/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sk.d.mts b/node_modules/date-fns/locale/sk.d.mts index cc41577e..b5901842 100644 --- a/node_modules/date-fns/locale/sk.d.mts +++ b/node_modules/date-fns/locale/sk.d.mts @@ -1 +1,9 @@ -export type * from "./sk.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Slovak locale. + * @language Slovak + * @iso-639-2 slk + * @author Marek Suscak [@mareksuscak](https://github.com/mareksuscak) + */ +export declare const sk: Locale; diff --git a/node_modules/date-fns/locale/sk/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/sk/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/sk/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/sk/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sk/_lib/formatLong.d.mts b/node_modules/date-fns/locale/sk/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/sk/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/sk/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sk/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/sk/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/sk/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/sk/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sk/_lib/localize.d.mts b/node_modules/date-fns/locale/sk/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/sk/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/sk/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sk/_lib/match.d.mts b/node_modules/date-fns/locale/sk/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/sk/_lib/match.d.mts +++ b/node_modules/date-fns/locale/sk/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sl.d.mts b/node_modules/date-fns/locale/sl.d.mts index 461d5c69..f265a1e1 100644 --- a/node_modules/date-fns/locale/sl.d.mts +++ b/node_modules/date-fns/locale/sl.d.mts @@ -1 +1,10 @@ -export type * from "./sl.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Slovenian locale. + * @language Slovenian + * @iso-639-2 slv + * @author Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph) + * @author Mato Žgajner [@mzgajner](https://github.com/mzgajner) + */ +export declare const sl: Locale; diff --git a/node_modules/date-fns/locale/sl/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/sl/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/sl/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/sl/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sl/_lib/formatLong.d.mts b/node_modules/date-fns/locale/sl/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/sl/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/sl/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sl/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/sl/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/sl/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/sl/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sl/_lib/localize.d.mts b/node_modules/date-fns/locale/sl/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/sl/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/sl/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sl/_lib/match.d.mts b/node_modules/date-fns/locale/sl/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/sl/_lib/match.d.mts +++ b/node_modules/date-fns/locale/sl/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sq.d.mts b/node_modules/date-fns/locale/sq.d.mts index 6bc106fc..7ac28e60 100644 --- a/node_modules/date-fns/locale/sq.d.mts +++ b/node_modules/date-fns/locale/sq.d.mts @@ -1 +1,9 @@ -export type * from "./sq.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Albanian locale. + * @language Shqip + * @iso-639-2 sqi + * @author Ardit Dine [@arditdine](https://github.com/arditdine) + */ +export declare const sq: Locale; diff --git a/node_modules/date-fns/locale/sq/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/sq/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/sq/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/sq/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sq/_lib/formatLong.d.mts b/node_modules/date-fns/locale/sq/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/sq/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/sq/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sq/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/sq/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/sq/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/sq/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sq/_lib/localize.d.mts b/node_modules/date-fns/locale/sq/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/sq/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/sq/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sq/_lib/match.d.mts b/node_modules/date-fns/locale/sq/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/sq/_lib/match.d.mts +++ b/node_modules/date-fns/locale/sq/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sr-Latn.d.mts b/node_modules/date-fns/locale/sr-Latn.d.mts index 7521d010..fabb0a39 100644 --- a/node_modules/date-fns/locale/sr-Latn.d.mts +++ b/node_modules/date-fns/locale/sr-Latn.d.mts @@ -1 +1,9 @@ -export type * from "./sr-Latn.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Serbian latin locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +export declare const srLatn: Locale; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.d.mts b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/localize.d.mts b/node_modules/date-fns/locale/sr-Latn/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/sr-Latn/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/sr-Latn/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/match.d.mts b/node_modules/date-fns/locale/sr-Latn/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/sr-Latn/_lib/match.d.mts +++ b/node_modules/date-fns/locale/sr-Latn/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sr.d.mts b/node_modules/date-fns/locale/sr.d.mts index b6659c59..32fe1c01 100644 --- a/node_modules/date-fns/locale/sr.d.mts +++ b/node_modules/date-fns/locale/sr.d.mts @@ -1 +1,9 @@ -export type * from "./sr.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Serbian cyrillic locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +export declare const sr: Locale; diff --git a/node_modules/date-fns/locale/sr/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/sr/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/sr/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/sr/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sr/_lib/formatLong.d.mts b/node_modules/date-fns/locale/sr/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/sr/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/sr/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sr/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/sr/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/sr/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/sr/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sr/_lib/localize.d.mts b/node_modules/date-fns/locale/sr/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/sr/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/sr/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sr/_lib/match.d.mts b/node_modules/date-fns/locale/sr/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/sr/_lib/match.d.mts +++ b/node_modules/date-fns/locale/sr/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sv.d.mts b/node_modules/date-fns/locale/sv.d.mts index 9dc11037..a9bb255e 100644 --- a/node_modules/date-fns/locale/sv.d.mts +++ b/node_modules/date-fns/locale/sv.d.mts @@ -1 +1,11 @@ -export type * from "./sv.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Swedish locale. + * @language Swedish + * @iso-639-2 swe + * @author Johannes Ulén [@ejulen](https://github.com/ejulen) + * @author Alexander Nanberg [@alexandernanberg](https://github.com/alexandernanberg) + * @author Henrik Andersson [@limelights](https://github.com/limelights) + */ +export declare const sv: Locale; diff --git a/node_modules/date-fns/locale/sv/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/sv/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/sv/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/sv/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sv/_lib/formatDistance.js b/node_modules/date-fns/locale/sv/_lib/formatDistance.js index 9fcfcabf..84617118 100644 --- a/node_modules/date-fns/locale/sv/_lib/formatDistance.js +++ b/node_modules/date-fns/locale/sv/_lib/formatDistance.js @@ -41,12 +41,12 @@ const formatDistanceLocale = { aboutXWeeks: { one: "ungefär en vecka", - other: "ungefär {{count}} vecka", + other: "ungefär {{count}} veckor", }, xWeeks: { one: "en vecka", - other: "{{count}} vecka", + other: "{{count}} veckor", }, aboutXMonths: { diff --git a/node_modules/date-fns/locale/sv/_lib/formatDistance.mjs b/node_modules/date-fns/locale/sv/_lib/formatDistance.mjs index 04437536..0633dcea 100644 --- a/node_modules/date-fns/locale/sv/_lib/formatDistance.mjs +++ b/node_modules/date-fns/locale/sv/_lib/formatDistance.mjs @@ -38,12 +38,12 @@ const formatDistanceLocale = { aboutXWeeks: { one: "ungefär en vecka", - other: "ungefär {{count}} vecka", + other: "ungefär {{count}} veckor", }, xWeeks: { one: "en vecka", - other: "{{count}} vecka", + other: "{{count}} veckor", }, aboutXMonths: { diff --git a/node_modules/date-fns/locale/sv/_lib/formatLong.d.mts b/node_modules/date-fns/locale/sv/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/sv/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/sv/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sv/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/sv/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/sv/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/sv/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sv/_lib/localize.d.mts b/node_modules/date-fns/locale/sv/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/sv/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/sv/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sv/_lib/match.d.mts b/node_modules/date-fns/locale/sv/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/sv/_lib/match.d.mts +++ b/node_modules/date-fns/locale/sv/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ta.d.mts b/node_modules/date-fns/locale/ta.d.mts index 43dfcbe5..9e338790 100644 --- a/node_modules/date-fns/locale/ta.d.mts +++ b/node_modules/date-fns/locale/ta.d.mts @@ -1 +1,9 @@ -export type * from "./ta.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Tamil locale (India). + * @language Tamil + * @iso-639-2 tam + * @author Sibiraj [@sibiraj-s](https://github.com/sibiraj-s) + */ +export declare const ta: Locale; diff --git a/node_modules/date-fns/locale/ta/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/ta/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/ta/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/ta/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ta/_lib/formatLong.d.mts b/node_modules/date-fns/locale/ta/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/ta/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/ta/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ta/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/ta/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/ta/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/ta/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ta/_lib/localize.d.mts b/node_modules/date-fns/locale/ta/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/ta/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/ta/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ta/_lib/match.d.mts b/node_modules/date-fns/locale/ta/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/ta/_lib/match.d.mts +++ b/node_modules/date-fns/locale/ta/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/te.d.mts b/node_modules/date-fns/locale/te.d.mts index cf619edc..a1764dd1 100644 --- a/node_modules/date-fns/locale/te.d.mts +++ b/node_modules/date-fns/locale/te.d.mts @@ -1 +1,9 @@ -export type * from "./te.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Telugu locale + * @language Telugu + * @iso-639-2 tel + * @author Kranthi Lakum [@kranthilakum](https://github.com/kranthilakum) + */ +export declare const te: Locale; diff --git a/node_modules/date-fns/locale/te/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/te/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/te/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/te/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/te/_lib/formatLong.d.mts b/node_modules/date-fns/locale/te/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/te/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/te/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/te/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/te/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/te/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/te/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/te/_lib/localize.d.mts b/node_modules/date-fns/locale/te/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/te/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/te/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/te/_lib/match.d.mts b/node_modules/date-fns/locale/te/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/te/_lib/match.d.mts +++ b/node_modules/date-fns/locale/te/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/th.d.mts b/node_modules/date-fns/locale/th.d.mts index 102b51e8..537997d6 100644 --- a/node_modules/date-fns/locale/th.d.mts +++ b/node_modules/date-fns/locale/th.d.mts @@ -1 +1,11 @@ -export type * from "./th.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Thai locale. + * @language Thai + * @iso-639-2 tha + * @author Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat) + * @author [@hawkup](https://github.com/hawkup) + * @author Jirawat I. [@nodtem66](https://github.com/nodtem66) + */ +export declare const th: Locale; diff --git a/node_modules/date-fns/locale/th/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/th/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/th/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/th/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/th/_lib/formatLong.d.mts b/node_modules/date-fns/locale/th/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/th/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/th/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/th/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/th/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/th/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/th/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/th/_lib/localize.d.mts b/node_modules/date-fns/locale/th/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/th/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/th/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/th/_lib/match.d.mts b/node_modules/date-fns/locale/th/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/th/_lib/match.d.mts +++ b/node_modules/date-fns/locale/th/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/tr.d.mts b/node_modules/date-fns/locale/tr.d.mts index 69a0e796..8d8f7efb 100644 --- a/node_modules/date-fns/locale/tr.d.mts +++ b/node_modules/date-fns/locale/tr.d.mts @@ -1 +1,15 @@ -export type * from "./tr.d.ts"; +import type { Locale } from "./types.js"; +/** + * @category Locales + * @summary Turkish locale. + * @language Turkish + * @iso-639-2 tur + * @author Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin) + * @author Berkay Sargın [@berkaey](https://github.com/berkaey) + * @author Fatih Bulut [@bulutfatih](https://github.com/bulutfatih) + * @author Ismail Demirbilek [@dbtek](https://github.com/dbtek) + * @author İsmail Kayar [@ikayar](https://github.com/ikayar) + * + * + */ +export declare const tr: Locale; diff --git a/node_modules/date-fns/locale/tr/_lib/formatDistance.d.mts b/node_modules/date-fns/locale/tr/_lib/formatDistance.d.mts index 9d6292d1..05f6cdb0 100644 --- a/node_modules/date-fns/locale/tr/_lib/formatDistance.d.mts +++ b/node_modules/date-fns/locale/tr/_lib/formatDistance.d.mts @@ -1 +1,2 @@ -export type * from "./formatDistance.d.ts"; +import type { FormatDistanceFn } from "../../types.js"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/tr/_lib/formatLong.d.mts b/node_modules/date-fns/locale/tr/_lib/formatLong.d.mts index 407b17ac..31114e6c 100644 --- a/node_modules/date-fns/locale/tr/_lib/formatLong.d.mts +++ b/node_modules/date-fns/locale/tr/_lib/formatLong.d.mts @@ -1 +1,2 @@ -export type * from "./formatLong.d.ts"; +import type { FormatLong } from "../../types.js"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/tr/_lib/formatRelative.d.mts b/node_modules/date-fns/locale/tr/_lib/formatRelative.d.mts index a233b0c6..8ed3049a 100644 --- a/node_modules/date-fns/locale/tr/_lib/formatRelative.d.mts +++ b/node_modules/date-fns/locale/tr/_lib/formatRelative.d.mts @@ -1 +1,2 @@ -export type * from "./formatRelative.d.ts"; +import type { FormatRelativeFn } from "../../types.js"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/tr/_lib/localize.d.mts b/node_modules/date-fns/locale/tr/_lib/localize.d.mts index 5ef1aa9b..0043a5a2 100644 --- a/node_modules/date-fns/locale/tr/_lib/localize.d.mts +++ b/node_modules/date-fns/locale/tr/_lib/localize.d.mts @@ -1 +1,2 @@ -export type * from "./localize.d.ts"; +import type { Localize } from "../../types.js"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/tr/_lib/match.d.mts b/node_modules/date-fns/locale/tr/_lib/match.d.mts index 29ce7c61..44aa6d7e 100644 --- a/node_modules/date-fns/locale/tr/_lib/match.d.mts +++ b/node_modules/date-fns/locale/tr/_lib/match.d.mts @@ -1 +1,2 @@ -export type * from "./match.d.ts"; +import type { Match } from "../../types.js"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/types.d.mts b/node_modules/date-fns/locale/types.d.mts index 357a0c8f..b806dd10 100644 --- a/node_modules/date-fns/locale/types.d.mts +++ b/node_modules/date-fns/locale/types.d.mts @@ -1 +1,366 @@ -export type * from "./types.d.ts"; +import type { + Day, + Era, + FirstWeekContainsDateOptions, + LocalizedOptions, + Month, + Quarter, + WeekOptions, +} from "../types.js"; +/** + * The locale object with all functions and data needed to parse and format + * dates. This is what each locale implements and exports. + */ +export interface Locale { + /** The locale code (ISO 639-1 + optional country code) */ + code: string; + /** The function to format distance */ + formatDistance: FormatDistanceFn; + /** The function to relative time */ + formatRelative: FormatRelativeFn; + /** The object with functions used to localize various values */ + localize: Localize; + /** The object with functions that return localized formats */ + formatLong: FormatLong; + /** The object with functions used to match and parse various localized values */ + match: Match; + /** An object with locale options */ + options?: LocaleOptions; +} +/** + * The locale options. + */ +export interface LocaleOptions + extends WeekOptions, + FirstWeekContainsDateOptions {} +/** + * The function that takes a token (i.e. halfAMinute) passed by `formatDistance` + * or `formatDistanceStrict` and payload, and returns localized distance. + * + * @param token - The token to localize + * @param count - The distance number + * @param options - The object with options + * + * @returns The localized distance in words + */ +export type FormatDistanceFn = ( + token: FormatDistanceToken, + count: number, + options?: FormatDistanceFnOptions, +) => string; +/** + * The {@link FormatDistanceFn} function options. + */ +export interface FormatDistanceFnOptions { + /** Add "X ago"/"in X" in the locale language */ + addSuffix?: boolean; + /** The distance vector. -1 represents past and 1 future. Tells which suffix + * to use. */ + comparison?: -1 | 0 | 1; +} +/** + * The function used inside the {@link FormatDistanceFn} function, implementing + * formatting for a particular token. + */ +export type FormatDistanceTokenFn = ( + /** The distance as number to format */ + count: number, + /** The object with options */ + options?: FormatDistanceFnOptions, +) => string; +/** + * The tokens map to string templates used in the format distance function. + * It looks like this: + * + * const formatDistanceLocale: FormatDistanceLocale = { + * lessThanXSeconds: 'តិចជាង {{count}} វិនាទី', + * xSeconds: '{{count}} វិនាទី', + * // ... + * } + * + * @typeParam Template - The property value type. + */ +export type FormatDistanceLocale