From d55b767039605256c736166a942a9138e3eacfd7 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 29 Jun 2025 11:49:28 -0700 Subject: remove dev node_modules (oops) --- .../date-fns/formatDistanceToNow/index.d.ts | 4 - node_modules/date-fns/formatDistanceToNow/index.js | 100 --------------------- .../date-fns/formatDistanceToNow/index.js.flow | 59 ------------ .../date-fns/formatDistanceToNow/package.json | 5 -- 4 files changed, 168 deletions(-) delete mode 100644 node_modules/date-fns/formatDistanceToNow/index.d.ts delete mode 100644 node_modules/date-fns/formatDistanceToNow/index.js delete mode 100644 node_modules/date-fns/formatDistanceToNow/index.js.flow delete mode 100644 node_modules/date-fns/formatDistanceToNow/package.json (limited to 'node_modules/date-fns/formatDistanceToNow') diff --git a/node_modules/date-fns/formatDistanceToNow/index.d.ts b/node_modules/date-fns/formatDistanceToNow/index.d.ts deleted file mode 100644 index 1d8b750..0000000 --- a/node_modules/date-fns/formatDistanceToNow/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 { formatDistanceToNow } from 'date-fns' -export default formatDistanceToNow diff --git a/node_modules/date-fns/formatDistanceToNow/index.js b/node_modules/date-fns/formatDistanceToNow/index.js deleted file mode 100644 index 97bf91a..0000000 --- a/node_modules/date-fns/formatDistanceToNow/index.js +++ /dev/null @@ -1,100 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = formatDistanceToNow; -var _index = _interopRequireDefault(require("../formatDistance/index.js")); -var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); -/** - * @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 | - * - * > ⚠️ Please note that this function is not present in the FP submodule as - * > it uses `Date.now()` internally hence impure and can't be safely curried. - * - * @param {Date|Number} date - the given date - * @param {Object} [options] - the object with options - * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed - * @param {Boolean} [options.addSuffix=false] - result specifies if now is earlier or later than the passed date - * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} - * @returns {String} the distance in words - * @throws {TypeError} 1 argument required - * @throws {RangeError} `date` must not be Invalid Date - * @throws {RangeError} `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' - */ -function formatDistanceToNow(dirtyDate, options) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate, Date.now(), options); -} -module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/formatDistanceToNow/index.js.flow b/node_modules/date-fns/formatDistanceToNow/index.js.flow deleted file mode 100644 index 08687be..0000000 --- a/node_modules/date-fns/formatDistanceToNow/index.js.flow +++ /dev/null @@ -1,59 +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, - formatRelative?: (...args: Array) => any, - localize?: { - ordinalNumber: (...args: Array) => any, - era: (...args: Array) => any, - quarter: (...args: Array) => any, - month: (...args: Array) => any, - day: (...args: Array) => any, - dayPeriod: (...args: Array) => any, - }, - formatLong?: { - date: (...args: Array) => any, - time: (...args: Array) => any, - dateTime: (...args: Array) => any, - }, - match?: { - ordinalNumber: (...args: Array) => any, - era: (...args: Array) => any, - quarter: (...args: Array) => any, - month: (...args: Array) => any, - day: (...args: Array) => any, - dayPeriod: (...args: Array) => 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, - options?: { - includeSeconds?: boolean, - addSuffix?: boolean, - locale?: Locale, - } -) => string diff --git a/node_modules/date-fns/formatDistanceToNow/package.json b/node_modules/date-fns/formatDistanceToNow/package.json deleted file mode 100644 index c45b3a3..0000000 --- a/node_modules/date-fns/formatDistanceToNow/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "sideEffects": false, - "module": "../esm/formatDistanceToNow/index.js", - "typings": "../typings.d.ts" -} \ No newline at end of file -- cgit v1.2.3