aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/esm/formatRFC7231
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/formatRFC7231
parent864ce67d89c77d8ef9c3361f80d619853abcf91c (diff)
remove dev node_modules (oops)
Diffstat (limited to 'node_modules/date-fns/esm/formatRFC7231')
-rw-r--r--node_modules/date-fns/esm/formatRFC7231/index.d.ts4
-rw-r--r--node_modules/date-fns/esm/formatRFC7231/index.js44
-rw-r--r--node_modules/date-fns/esm/formatRFC7231/index.js.flow52
-rw-r--r--node_modules/date-fns/esm/formatRFC7231/package.json4
4 files changed, 0 insertions, 104 deletions
diff --git a/node_modules/date-fns/esm/formatRFC7231/index.d.ts b/node_modules/date-fns/esm/formatRFC7231/index.d.ts
deleted file mode 100644
index 2caa714..0000000
--- a/node_modules/date-fns/esm/formatRFC7231/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 { formatRFC7231 } from 'date-fns'
-export default formatRFC7231
diff --git a/node_modules/date-fns/esm/formatRFC7231/index.js b/node_modules/date-fns/esm/formatRFC7231/index.js
deleted file mode 100644
index 1b90bc2..0000000
--- a/node_modules/date-fns/esm/formatRFC7231/index.js
+++ /dev/null
@@ -1,44 +0,0 @@
-import toDate from "../toDate/index.js";
-import isValid from "../isValid/index.js";
-import addLeadingZeros from "../_lib/addLeadingZeros/index.js";
-var days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
-var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
-
-/**
- * @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.
- *
- * @param {Date|Number} date - the original date
- * @returns {String} the formatted date string
- * @throws {TypeError} 1 argument required
- * @throws {RangeError} `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 default function formatRFC7231(dirtyDate) {
- if (arguments.length < 1) {
- throw new TypeError("1 arguments required, but only ".concat(arguments.length, " present"));
- }
- var originalDate = toDate(dirtyDate);
- if (!isValid(originalDate)) {
- throw new RangeError('Invalid time value');
- }
- var dayName = days[originalDate.getUTCDay()];
- var dayOfMonth = addLeadingZeros(originalDate.getUTCDate(), 2);
- var monthName = months[originalDate.getUTCMonth()];
- var year = originalDate.getUTCFullYear();
- var hour = addLeadingZeros(originalDate.getUTCHours(), 2);
- var minute = addLeadingZeros(originalDate.getUTCMinutes(), 2);
- var second = addLeadingZeros(originalDate.getUTCSeconds(), 2);
-
- // Result variables.
- return "".concat(dayName, ", ").concat(dayOfMonth, " ").concat(monthName, " ").concat(year, " ").concat(hour, ":").concat(minute, ":").concat(second, " GMT");
-} \ No newline at end of file
diff --git a/node_modules/date-fns/esm/formatRFC7231/index.js.flow b/node_modules/date-fns/esm/formatRFC7231/index.js.flow
deleted file mode 100644
index 8462b25..0000000
--- a/node_modules/date-fns/esm/formatRFC7231/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: (date: Date | number) => string
diff --git a/node_modules/date-fns/esm/formatRFC7231/package.json b/node_modules/date-fns/esm/formatRFC7231/package.json
deleted file mode 100644
index b109f05..0000000
--- a/node_modules/date-fns/esm/formatRFC7231/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