aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/clamp
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/clamp
parent864ce67d89c77d8ef9c3361f80d619853abcf91c (diff)
remove dev node_modules (oops)
Diffstat (limited to 'node_modules/date-fns/clamp')
-rw-r--r--node_modules/date-fns/clamp/index.d.ts4
-rw-r--r--node_modules/date-fns/clamp/index.js43
-rw-r--r--node_modules/date-fns/clamp/index.js.flow52
-rw-r--r--node_modules/date-fns/clamp/package.json5
4 files changed, 0 insertions, 104 deletions
diff --git a/node_modules/date-fns/clamp/index.d.ts b/node_modules/date-fns/clamp/index.d.ts
deleted file mode 100644
index 957fb1f..0000000
--- a/node_modules/date-fns/clamp/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 { clamp } from 'date-fns'
-export default clamp
diff --git a/node_modules/date-fns/clamp/index.js b/node_modules/date-fns/clamp/index.js
deleted file mode 100644
index 8a004f1..0000000
--- a/node_modules/date-fns/clamp/index.js
+++ /dev/null
@@ -1,43 +0,0 @@
-"use strict";
-
-var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = clamp;
-var _index = _interopRequireDefault(require("../max/index.js"));
-var _index2 = _interopRequireDefault(require("../min/index.js"));
-var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.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.
- *
- * @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
- *
- * @param {Date | Number} date - the date to be bounded
- * @param {Interval} interval - the interval to bound to
- * @returns {Date} the date bounded by the start and the end of the interval
- * @throws {TypeError} 2 arguments required
- */
-function clamp(date, _ref) {
- var start = _ref.start,
- end = _ref.end;
- (0, _index3.default)(2, arguments);
- return (0, _index2.default)([(0, _index.default)([date, start]), end]);
-}
-module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/clamp/index.js.flow b/node_modules/date-fns/clamp/index.js.flow
deleted file mode 100644
index d592230..0000000
--- a/node_modules/date-fns/clamp/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, interval: Interval) => Date
diff --git a/node_modules/date-fns/clamp/package.json b/node_modules/date-fns/clamp/package.json
deleted file mode 100644
index c29ec18..0000000
--- a/node_modules/date-fns/clamp/package.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "sideEffects": false,
- "module": "../esm/clamp/index.js",
- "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