aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/esm/parseJSON
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-06-29 11:49:28 -0700
committerPinapelz <yukais@pinapelz.com>2025-06-29 11:49:28 -0700
commitd55b767039605256c736166a942a9138e3eacfd7 (patch)
tree947063b634c50d438a794325f13275e134aa5993 /node_modules/date-fns/esm/parseJSON
parent864ce67d89c77d8ef9c3361f80d619853abcf91c (diff)
remove dev node_modules (oops)
Diffstat (limited to 'node_modules/date-fns/esm/parseJSON')
-rw-r--r--node_modules/date-fns/esm/parseJSON/index.d.ts4
-rw-r--r--node_modules/date-fns/esm/parseJSON/index.js48
-rw-r--r--node_modules/date-fns/esm/parseJSON/index.js.flow52
-rw-r--r--node_modules/date-fns/esm/parseJSON/package.json4
4 files changed, 0 insertions, 108 deletions
diff --git a/node_modules/date-fns/esm/parseJSON/index.d.ts b/node_modules/date-fns/esm/parseJSON/index.d.ts
deleted file mode 100644
index b6b186d..0000000
--- a/node_modules/date-fns/esm/parseJSON/index.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
-
-import { parseJSON } from 'date-fns'
-export default parseJSON
diff --git a/node_modules/date-fns/esm/parseJSON/index.js b/node_modules/date-fns/esm/parseJSON/index.js
deleted file mode 100644
index 8ac4457..0000000
--- a/node_modules/date-fns/esm/parseJSON/index.js
+++ /dev/null
@@ -1,48 +0,0 @@
-import toDate from "../toDate/index.js";
-import requiredArgs from "../_lib/requiredArgs/index.js";
-/**
- * @name parseJSON
- * @category Common Helpers
- * @summary Parse a JSON date string
- *
- * @description
- * Converts a complete ISO date string in UTC time, the typical format for transmitting
- * a date in JSON, to a JavaScript `Date` instance.
- *
- * This is a minimal implementation for converting dates retrieved from a JSON API to
- * a `Date` instance which can be used with other functions in the `date-fns` library.
- * The following formats are supported:
- *
- * - `2000-03-15T05:20:10.123Z`: The output of `.toISOString()` and `JSON.stringify(new Date())`
- * - `2000-03-15T05:20:10Z`: Without milliseconds
- * - `2000-03-15T05:20:10+00:00`: With a zero offset, the default JSON encoded format in some other languages
- * - `2000-03-15T05:20:10+05:45`: With a positive or negative offset, the default JSON encoded format in some other languages
- * - `2000-03-15T05:20:10+0000`: With a zero offset without a colon
- * - `2000-03-15T05:20:10`: Without a trailing 'Z' symbol
- * - `2000-03-15T05:20:10.1234567`: Up to 7 digits in milliseconds field. Only first 3 are taken into account since JS does not allow fractional milliseconds
- * - `2000-03-15 05:20:10`: With a space instead of a 'T' separator for APIs returning a SQL date without reformatting
- *
- * For convenience and ease of use these other input types are also supported
- * via [toDate]{@link https://date-fns.org/docs/toDate}:
- *
- * - A `Date` instance will be cloned
- * - A `number` will be treated as a timestamp
- *
- * Any other input type or invalid date strings will return an `Invalid Date`.
- *
- * @param {String|Number|Date} argument A fully formed ISO8601 date string to convert
- * @returns {Date} the parsed date in the local time zone
- * @throws {TypeError} 1 argument required
- */
-export default function parseJSON(argument) {
- requiredArgs(1, arguments);
- if (typeof argument === 'string') {
- var parts = argument.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);
- if (parts) {
- // Group 8 matches the sign
- return new Date(Date.UTC(+parts[1], +parts[2] - 1, +parts[3], +parts[4] - (+parts[9] || 0) * (parts[8] == '-' ? -1 : 1), +parts[5] - (+parts[10] || 0) * (parts[8] == '-' ? -1 : 1), +parts[6], +((parts[7] || '0') + '00').substring(0, 3)));
- }
- return new Date(NaN);
- }
- return toDate(argument);
-} \ No newline at end of file
diff --git a/node_modules/date-fns/esm/parseJSON/index.js.flow b/node_modules/date-fns/esm/parseJSON/index.js.flow
deleted file mode 100644
index c4801bf..0000000
--- a/node_modules/date-fns/esm/parseJSON/index.js.flow
+++ /dev/null
@@ -1,52 +0,0 @@
-// @flow
-// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
-
-export type Interval = {
- start: Date | number,
- end: Date | number,
-}
-
-export type Locale = {
- code?: string,
- formatDistance?: (...args: Array<any>) => any,
- formatRelative?: (...args: Array<any>) => any,
- localize?: {
- ordinalNumber: (...args: Array<any>) => any,
- era: (...args: Array<any>) => any,
- quarter: (...args: Array<any>) => any,
- month: (...args: Array<any>) => any,
- day: (...args: Array<any>) => any,
- dayPeriod: (...args: Array<any>) => any,
- },
- formatLong?: {
- date: (...args: Array<any>) => any,
- time: (...args: Array<any>) => any,
- dateTime: (...args: Array<any>) => any,
- },
- match?: {
- ordinalNumber: (...args: Array<any>) => any,
- era: (...args: Array<any>) => any,
- quarter: (...args: Array<any>) => any,
- month: (...args: Array<any>) => any,
- day: (...args: Array<any>) => any,
- dayPeriod: (...args: Array<any>) => any,
- },
- options?: {
- weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
- firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
- },
-}
-
-export type Duration = {
- years?: number,
- months?: number,
- weeks?: number,
- days?: number,
- hours?: number,
- minutes?: number,
- seconds?: number,
-}
-
-export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6
-
-declare module.exports: (argument: string | number | Date) => Date
diff --git a/node_modules/date-fns/esm/parseJSON/package.json b/node_modules/date-fns/esm/parseJSON/package.json
deleted file mode 100644
index b109f05..0000000
--- a/node_modules/date-fns/esm/parseJSON/package.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "sideEffects": false,
- "typings": "../../typings.d.ts"
-} \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage