umt 2.12.0 → 2.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/module/Validate/isNode.js +2 -3
- package/module/Validate/isNode.js.map +1 -1
- package/module/es5/Advance/rangeAdvance.js +1 -1
- package/module/es5/Array/chunk.d.ts +1 -1
- package/module/es5/Array/dualPivotQuickSort.d.ts +1 -1
- package/module/es5/Array/first.d.ts +1 -1
- package/module/es5/Array/generateNumberArray.js +4 -4
- package/module/es5/Array/insertionSort.d.ts +1 -1
- package/module/es5/Array/mergeSort.d.ts +1 -1
- package/module/es5/Array/quickSort.d.ts +1 -1
- package/module/es5/Array/sortingHelpers/applyInsertionSortIfNeeded.d.ts +1 -1
- package/module/es5/Array/sortingHelpers/insertionSortRange.d.ts +1 -1
- package/module/es5/Array/sum.js +1 -1
- package/module/es5/Array/timSort.d.ts +1 -1
- package/module/es5/Array/zip.d.ts +1 -1
- package/module/es5/Array/zipLongest.d.ts +1 -1
- package/module/es5/Color/cmykToRgba.js +6 -6
- package/module/es5/Color/hexaToRgba.js +2 -2
- package/module/es5/Color/hslaToRgba.js +7 -7
- package/module/es5/Color/rgbaToCmyk.js +3 -3
- package/module/es5/Color/rgbaToHsla.js +5 -5
- package/module/es5/Consts/httpStatus/httpClientErrorStatus.d.ts +1 -1
- package/module/es5/Consts/httpStatus/httpInformationalStatus.d.ts +1 -1
- package/module/es5/Consts/httpStatus/httpRedirectionStatus.d.ts +1 -1
- package/module/es5/Consts/httpStatus/httpServerErrorStatus.d.ts +1 -1
- package/module/es5/Consts/httpStatus/httpSuccessStatus.d.ts +1 -1
- package/module/es5/Consts/httpStatus/index.d.ts +6 -6
- package/module/es5/Consts/httpStatus/index.js +5 -5
- package/module/es5/DataStructure/priorityQueue.js +1 -1
- package/module/es5/Date/birthday.d.ts +3 -3
- package/module/es5/Date/birthday.js +2 -2
- package/module/es5/Date/dateRange.js +1 -1
- package/module/es5/Date/dayOfWeek.d.ts +3 -3
- package/module/es5/Date/dayOfWeek.js +2 -2
- package/module/es5/Date/format.js +2 -2
- package/module/es5/Date/getDay.d.ts +1 -1
- package/module/es5/Date/getTimezoneOffsetString.js +1 -1
- package/module/es5/Date/new.d.ts +12 -12
- package/module/es5/Date/now.d.ts +1 -1
- package/module/es5/Date/now.js +1 -1
- package/module/es5/Math/calculator/convertCurrency.js +2 -2
- package/module/es5/Math/calculator/core.js +5 -5
- package/module/es5/Math/calculator/literalExpression.js +2 -2
- package/module/es5/Math/flexibleNumberConversion.js +1 -1
- package/module/es5/Math/gcd.js +1 -1
- package/module/es5/Math/mathSeparator.js +1 -1
- package/module/es5/Math/median.js +1 -1
- package/module/es5/Math/mode.js +1 -1
- package/module/es5/Math/percentile.js +1 -1
- package/module/es5/Math/standardDeviation.js +2 -2
- package/module/es5/Object/merge.d.ts +1 -1
- package/module/es5/Object/mergeDeep.d.ts +1 -1
- package/module/es5/Object/pickDeep.d.ts +2 -2
- package/module/es5/Simple/Array/quickSortSimple.d.ts +1 -1
- package/module/es5/Simple/Array/quickSortSimple.js +2 -2
- package/module/es5/Simple/Date/birthdaySimple.d.ts +3 -3
- package/module/es5/Simple/Date/birthdaySimple.js +1 -1
- package/module/es5/Simple/Date/dayOfWeekSimple.d.ts +8 -8
- package/module/es5/Simple/Date/dayOfWeekSimple.js +1 -1
- package/module/es5/Simple/Date/nowSimple.d.ts +2 -2
- package/module/es5/Simple/Date/nowSimple.js +2 -2
- package/module/es5/Simple/Math/deviationValueSimple.js +3 -3
- package/module/es5/String/formatString/applyFormatter.d.ts +1 -1
- package/module/es5/String/formatString/defaultFormatters.d.ts +1 -1
- package/module/es5/String/formatString/detectMode.d.ts +3 -3
- package/module/es5/String/formatString/index.d.ts +3 -3
- package/module/es5/String/fromBase64.js +1 -1
- package/module/es5/String/fuzzySearch.js +1 -1
- package/module/es5/Time/convertTime.d.ts +2 -2
- package/module/es5/Time/convertTime.js +2 -2
- package/module/es5/Time/normalizeTimeUnit.d.ts +2 -2
- package/module/es5/Tool/pipe.d.ts +1 -1
- package/module/es5/Tool/pipe.js +1 -1
- package/module/es5/UA/extractBrowserFromUserAgent.d.ts +1 -1
- package/module/es5/UA/extractDeviceFromUserAgent.d.ts +1 -1
- package/module/es5/UA/extractOsFromUserAgent.d.ts +1 -1
- package/module/es5/UA/parseUserAgent.d.ts +1 -1
- package/module/es5/Unit/unitConverterInitialization.js +2 -2
- package/module/es5/Validate/array/core.d.ts +1 -1
- package/module/es5/Validate/array/core.js +2 -2
- package/module/es5/Validate/boolean/core.d.ts +1 -1
- package/module/es5/Validate/boolean/core.js +1 -1
- package/module/es5/Validate/core/index.d.ts +1 -1
- package/module/es5/Validate/isNode.js +2 -5
- package/module/es5/Validate/number/core.d.ts +2 -2
- package/module/es5/Validate/number/core.js +1 -1
- package/module/es5/Validate/number/double.d.ts +1 -1
- package/module/es5/Validate/number/double.js +1 -1
- package/module/es5/Validate/number/even.d.ts +1 -1
- package/module/es5/Validate/number/even.js +1 -1
- package/module/es5/Validate/number/maxValue.d.ts +1 -1
- package/module/es5/Validate/number/minValue.d.ts +1 -1
- package/module/es5/Validate/number/odd.d.ts +1 -1
- package/module/es5/Validate/number/odd.js +1 -1
- package/module/es5/Validate/number/prime.d.ts +1 -1
- package/module/es5/Validate/number/prime.js +1 -1
- package/module/es5/Validate/object/core.d.ts +2 -2
- package/module/es5/Validate/object/core.js +1 -1
- package/module/es5/Validate/object/optional.d.ts +1 -1
- package/module/es5/Validate/string/core.d.ts +2 -2
- package/module/es5/Validate/string/core.js +1 -1
- package/module/es5/Validate/string/length.d.ts +1 -1
- package/module/es5/Validate/string/maxLength.d.ts +1 -1
- package/module/es5/Validate/string/minLength.d.ts +1 -1
- package/module/es5/Validate/string/numberString.d.ts +1 -1
- package/module/es5/Validate/string/numberString.js +1 -1
- package/module/es5/Validate/string/regexMatch.d.ts +1 -1
- package/module/es5/Validate/string/uuid.d.ts +1 -1
- package/module/es5/Validate/string/validateEmail.d.ts +2 -2
- package/module/es5/Validate/string/validateEmail.js +1 -1
- package/module/es5/tsconfig.tsbuildinfo +1 -1
- package/module/es5/types/array/chunk.d.ts +1 -1
- package/module/es5/types/array/compareFunction.d.ts +1 -1
- package/module/es5/types/clock/hoursAm.d.ts +1 -1
- package/module/es5/types/clock/hoursAmInt.d.ts +1 -1
- package/module/es5/types/clock/millisecondsType.d.ts +3 -3
- package/module/es5/types/clock/millisecondsTypeInt.d.ts +3 -3
- package/module/es5/types/clock/minutesType.d.ts +6 -6
- package/module/es5/types/clock/minutesTypeInt.d.ts +6 -6
- package/module/es5/types/joke/threeStepsForwardTwoStepsBack.d.ts +3 -3
- package/module/es5/types/logic/bGreaterThanA.d.ts +1 -1
- package/module/es5/types/logic/slice.d.ts +1 -1
- package/module/es5/types/math/add.d.ts +1 -1
- package/module/es5/types/math/divide.d.ts +1 -1
- package/module/es5/types/math/modulo.d.ts +1 -1
- package/module/es5/types/math/subtract.d.ts +1 -1
- package/module/es5/types/object/pickDeep.d.ts +1 -1
- package/module/es5/types/object/shallowObjectValue.d.ts +1 -1
- package/package.json +5 -6
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.quickSortSimple = void 0;
|
|
7
|
-
var _compareFunctionDefault = require("
|
|
8
|
-
var _quickSort = require("
|
|
7
|
+
var _compareFunctionDefault = require("../../Array/compareFunctionDefault");
|
|
8
|
+
var _quickSort = require("../../Array/quickSort");
|
|
9
9
|
/**
|
|
10
10
|
* Quick sort implementation for arrays
|
|
11
11
|
* @template T Type of array elements
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { HoursTypeInt } from "
|
|
2
|
-
import type { DayType } from "
|
|
3
|
-
import type { MonType } from "
|
|
1
|
+
import type { HoursTypeInt } from "../../types/clock/hoursTypeInt";
|
|
2
|
+
import type { DayType } from "../../types/date/dayType";
|
|
3
|
+
import type { MonType } from "../../types/date/monType";
|
|
4
4
|
export type BIRTHDAYSIMPLE = <T extends MonType>(birthdays: Date | `${number}-${T}-${DayType<T>}` | `${number}:${T}:${DayType<T>}` | `${number}/${T}/${DayType<T>}` | {
|
|
5
5
|
year: number;
|
|
6
6
|
mon: number;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.birthdaySimple = void 0;
|
|
7
|
-
var _birthday = require("
|
|
7
|
+
var _birthday = require("../../Date/birthday");
|
|
8
8
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
9
9
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
10
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { HoursTypeInt } from "
|
|
2
|
-
import type { ConvertMonTypeZero } from "
|
|
3
|
-
import type { DayType } from "
|
|
4
|
-
import type { DayTypeInt } from "
|
|
5
|
-
import type { MonthsWith31Days } from "
|
|
6
|
-
import type { MonthsWith31DaysInt } from "
|
|
7
|
-
import type { MonthsWithout31Days } from "
|
|
8
|
-
import type { MonthsWithout31DaysInt } from "
|
|
1
|
+
import type { HoursTypeInt } from "../../types/clock/hoursTypeInt";
|
|
2
|
+
import type { ConvertMonTypeZero } from "../../types/date/convertMonTypeZero";
|
|
3
|
+
import type { DayType } from "../../types/date/dayType";
|
|
4
|
+
import type { DayTypeInt } from "../../types/date/dayTypeInt";
|
|
5
|
+
import type { MonthsWith31Days } from "../../types/date/monthsWith31Days";
|
|
6
|
+
import type { MonthsWith31DaysInt } from "../../types/date/monthsWith31DaysInt";
|
|
7
|
+
import type { MonthsWithout31Days } from "../../types/date/monthsWithout31Days";
|
|
8
|
+
import type { MonthsWithout31DaysInt } from "../../types/date/monthsWithout31DaysInt";
|
|
9
9
|
/**
|
|
10
10
|
* Get day of the week
|
|
11
11
|
* @param properties - Date in various formats (year, month, day)
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.dayOfWeekSimple = dayOfWeekSimple;
|
|
7
|
-
var _dayOfWeek = require("
|
|
7
|
+
var _dayOfWeek = require("../../Date/dayOfWeek");
|
|
8
8
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
9
9
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
10
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HoursType } from "
|
|
2
|
-
import type { HoursTypeInt } from "
|
|
1
|
+
import type { HoursType } from "../../types/clock/hoursType";
|
|
2
|
+
import type { HoursTypeInt } from "../../types/clock/hoursTypeInt";
|
|
3
3
|
/**
|
|
4
4
|
* Get current date and time
|
|
5
5
|
* @param timeDifference - Time zone difference in hours (default: 9)
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.nowSimple = void 0;
|
|
7
|
-
var _now = require("
|
|
8
|
-
var _isNumber = require("
|
|
7
|
+
var _now = require("../../Date/now");
|
|
8
|
+
var _isNumber = require("../../Validate/isNumber");
|
|
9
9
|
/**
|
|
10
10
|
* Get current date and time
|
|
11
11
|
* @param timeDifference - Time zone difference in hours (default: 9)
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.deviationValueSimple = deviationValueSimple;
|
|
7
|
-
var _average = require("
|
|
8
|
-
var _deviationValue = require("
|
|
9
|
-
var _standardDeviation = require("
|
|
7
|
+
var _average = require("../../Math/average");
|
|
8
|
+
var _deviationValue = require("../../Math/deviationValue");
|
|
9
|
+
var _standardDeviation = require("../../Math/standardDeviation");
|
|
10
10
|
/**
|
|
11
11
|
* Calculate deviation score (T-score)
|
|
12
12
|
* @param {number} value Input value
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { FormatData } from "
|
|
2
|
-
import type { FormatOptions } from "
|
|
3
|
-
import type { FormatValue } from "
|
|
1
|
+
import type { FormatData } from "../../types/string/formatString/formatData";
|
|
2
|
+
import type { FormatOptions } from "../../types/string/formatString/formatOptions";
|
|
3
|
+
import type { FormatValue } from "../../types/string/formatString/formatValue";
|
|
4
4
|
/**
|
|
5
5
|
* Detects whether formatString should use indexed or named mode based on arguments.
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { FormatData } from "
|
|
2
|
-
import type { FormatOptions } from "
|
|
3
|
-
import type { FormatValue } from "
|
|
1
|
+
import type { FormatData } from "../../types/string/formatString/formatData";
|
|
2
|
+
import type { FormatOptions } from "../../types/string/formatString/formatOptions";
|
|
3
|
+
import type { FormatValue } from "../../types/string/formatString/formatValue";
|
|
4
4
|
/**
|
|
5
5
|
* Replaces placeholders in a template string with specified values.
|
|
6
6
|
*
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.fromBase64 = void 0;
|
|
7
|
-
var _unwrap = require("
|
|
7
|
+
var _unwrap = require("../Tool/unwrap");
|
|
8
8
|
/**
|
|
9
9
|
* Converts Base64 to string
|
|
10
10
|
* @param {string} base64String - Base64 encoded string
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.fuzzySearch = void 0;
|
|
7
7
|
var _levenshteinDistance = require("./levenshteinDistance");
|
|
8
|
-
var _quickSort = require("
|
|
8
|
+
var _quickSort = require("../Array/quickSort");
|
|
9
9
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
10
10
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
11
11
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TimeUnit } from "
|
|
2
|
-
import type { TimeUnitShort } from "
|
|
1
|
+
import type { TimeUnit } from "../types/time/timeUnit";
|
|
2
|
+
import type { TimeUnitShort } from "../types/time/timeUnitShort";
|
|
3
3
|
/**
|
|
4
4
|
* Converts time between different units
|
|
5
5
|
* @param value Value to convert (string or number)
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.convertTime = void 0;
|
|
7
|
-
var _Math = require("
|
|
8
|
-
var _normalizeTimeUnit = require("
|
|
7
|
+
var _Math = require("../Math");
|
|
8
|
+
var _normalizeTimeUnit = require("../Time/normalizeTimeUnit");
|
|
9
9
|
/**
|
|
10
10
|
* Defines conversion rates between time units
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TimeUnit } from "
|
|
2
|
-
import type { TimeUnitShort } from "
|
|
1
|
+
import type { TimeUnit } from "../types/time/timeUnit";
|
|
2
|
+
import type { TimeUnitShort } from "../types/time/timeUnitShort";
|
|
3
3
|
/**
|
|
4
4
|
* Normalize time unit.
|
|
5
5
|
* @param unit Time unit
|
package/module/es5/Tool/pipe.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.Pipe = void 0;
|
|
7
7
|
exports.pipe = pipe;
|
|
8
|
-
var _safeExecute = require("
|
|
8
|
+
var _safeExecute = require("../Error/safeExecute");
|
|
9
9
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
10
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
11
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.unitConverterInitialization = void 0;
|
|
7
|
-
var _division = require("
|
|
8
|
-
var _multiplication = require("
|
|
7
|
+
var _division = require("../Math/division");
|
|
8
|
+
var _multiplication = require("../Math/multiplication");
|
|
9
9
|
/**
|
|
10
10
|
* Unit converter initialization function
|
|
11
11
|
* Creates a converter function that can convert between different units using base unit ratios
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Array validation core module
|
|
3
3
|
* Provides functionality to validate arrays with type-specific validation rules
|
|
4
4
|
*/
|
|
5
|
-
import type { Types, ValidateCoreReturnType, ValidateType } from "
|
|
5
|
+
import type { Types, ValidateCoreReturnType, ValidateType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates an array validator with type-specific validation rules
|
|
8
8
|
* @template A - Type of array elements (string | number | boolean)
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.array = void 0;
|
|
7
|
-
var _isArray = require("
|
|
8
|
-
var _isNotEmpty = require("
|
|
7
|
+
var _isArray = require("../../Validate/isArray");
|
|
8
|
+
var _isNotEmpty = require("../../Validate/isNotEmpty");
|
|
9
9
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
10
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
11
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Boolean validation core module
|
|
3
3
|
* Provides the base validation functionality for boolean values
|
|
4
4
|
*/
|
|
5
|
-
import type { ValidateCoreReturnType } from "
|
|
5
|
+
import type { ValidateCoreReturnType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates a boolean validator
|
|
8
8
|
* @param {string} [message] - Custom error message for type validation
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["boolean"] = void 0;
|
|
7
|
-
var _core = require("
|
|
7
|
+
var _core = require("../../Validate/core");
|
|
8
8
|
/**
|
|
9
9
|
* Boolean validation core module
|
|
10
10
|
* Provides the base validation functionality for boolean values
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Core validation module
|
|
3
3
|
* Provides the base validation functionality used by all other validation modules
|
|
4
4
|
*/
|
|
5
|
-
import type { Types, ValidateCoreReturnType, ValidateReturnType } from "
|
|
5
|
+
import type { Types, ValidateCoreReturnType, ValidateReturnType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates a validator function that checks type and additional validation rules
|
|
8
8
|
* @template T - The type of value to validate
|
|
@@ -4,16 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isNode = void 0;
|
|
7
|
-
var _nodeProcess = _interopRequireDefault(require("node:process"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
-
// biome-ignore lint/correctness/noNodejsModules: ignore
|
|
10
|
-
|
|
11
7
|
/**
|
|
12
8
|
* Determines if the current environment is Node.js
|
|
13
9
|
*/
|
|
14
10
|
var isNode = exports.isNode = function isNode() {
|
|
15
11
|
try {
|
|
16
|
-
|
|
12
|
+
// biome-ignore lint/correctness/noProcessGlobal: ignore
|
|
13
|
+
return typeof process !== "undefined" && typeof require !== "undefined";
|
|
17
14
|
} catch (_unused) {
|
|
18
15
|
return false;
|
|
19
16
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Number validation core module
|
|
3
3
|
* Provides the base validation functionality for number values
|
|
4
4
|
*/
|
|
5
|
-
import type { ValidateReturnType } from "
|
|
5
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates a number validator with optional validation rules
|
|
8
8
|
* @template T - Array of validation rules for numbers
|
|
@@ -10,4 +10,4 @@ import type { ValidateReturnType } from "@/Validate/type";
|
|
|
10
10
|
* @param {string} [message] - Custom error message for type validation
|
|
11
11
|
* @returns {Function} - Validator function that checks if the value is a number and applies validation rules
|
|
12
12
|
*/
|
|
13
|
-
export declare const number: <T extends ValidateReturnType<number>[]>(option?: T, message?: string) => (value: number) => import("
|
|
13
|
+
export declare const number: <T extends ValidateReturnType<number>[]>(option?: T, message?: string) => (value: number) => import("../../Validate/type").ValidateCoreReturnType<number>;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.number = void 0;
|
|
7
|
-
var _core = require("
|
|
7
|
+
var _core = require("../../Validate/core");
|
|
8
8
|
/**
|
|
9
9
|
* Number validation core module
|
|
10
10
|
* Provides the base validation functionality for number values
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Number validation module for double (floating point) numbers
|
|
3
3
|
* Provides validation functionality for checking if a number is a floating point value
|
|
4
4
|
*/
|
|
5
|
-
import type { ValidateReturnType } from "
|
|
5
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates a validator for checking if a number is a floating point value
|
|
8
8
|
* @param {string} [message] - Custom error message for validation failure
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["double"] = void 0;
|
|
7
|
-
var _isDouble = require("
|
|
7
|
+
var _isDouble = require("../../Validate/isDouble");
|
|
8
8
|
/**
|
|
9
9
|
* Number validation module for double (floating point) numbers
|
|
10
10
|
* Provides validation functionality for checking if a number is a floating point value
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Number validation module for even numbers
|
|
3
3
|
* Provides validation functionality for checking if a number is even
|
|
4
4
|
*/
|
|
5
|
-
import type { ValidateReturnType } from "
|
|
5
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates a validator for checking if a number is even
|
|
8
8
|
* @param {string} [message] - Custom error message for validation failure
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.even = void 0;
|
|
7
|
-
var _isDouble = require("
|
|
7
|
+
var _isDouble = require("../../Validate/isDouble");
|
|
8
8
|
/**
|
|
9
9
|
* Number validation module for even numbers
|
|
10
10
|
* Provides validation functionality for checking if a number is even
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Number validation module for maximum value check
|
|
3
3
|
* Provides validation functionality for checking if a number is less than or equal to a maximum value
|
|
4
4
|
*/
|
|
5
|
-
import type { ValidateReturnType } from "
|
|
5
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates a validator for checking if a number is less than or equal to a maximum value
|
|
8
8
|
* @param {number} maxValue - Maximum allowed value
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Number validation module for minimum value check
|
|
3
3
|
* Provides validation functionality for checking if a number is greater than or equal to a minimum value
|
|
4
4
|
*/
|
|
5
|
-
import type { ValidateReturnType } from "
|
|
5
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates a validator for checking if a number is greater than or equal to a minimum value
|
|
8
8
|
* @param {number} minValue - Minimum allowed value
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ValidateReturnType } from "
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const odd: (message?: string) => ValidateReturnType<number>;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.odd = void 0;
|
|
7
|
-
var _isDouble = require("
|
|
7
|
+
var _isDouble = require("../../Validate/isDouble");
|
|
8
8
|
var odd = exports.odd = function odd(message) {
|
|
9
9
|
return {
|
|
10
10
|
type: "number",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Number validation module for prime numbers
|
|
3
3
|
* Provides validation functionality for checking if a number is prime
|
|
4
4
|
*/
|
|
5
|
-
import type { ValidateReturnType } from "
|
|
5
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates a validator for checking if a number is prime
|
|
8
8
|
* @param {string} [message] - Custom error message for validation failure
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.prime = void 0;
|
|
7
|
-
var _isPrimeNumber = require("
|
|
7
|
+
var _isPrimeNumber = require("../../Validate/isPrimeNumber");
|
|
8
8
|
/**
|
|
9
9
|
* Number validation module for prime numbers
|
|
10
10
|
* Provides validation functionality for checking if a number is prime
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Object validation core module
|
|
3
3
|
* Provides validation functionality for objects with type-specific validation rules for each property
|
|
4
4
|
*/
|
|
5
|
-
import type { PickPartial } from "
|
|
6
|
-
import type { OptionalKeys, ValidateCoreReturnType, ValidateType } from "
|
|
5
|
+
import type { PickPartial } from "../../types/object";
|
|
6
|
+
import type { OptionalKeys, ValidateCoreReturnType, ValidateType } from "../../Validate/type";
|
|
7
7
|
/**
|
|
8
8
|
* Creates an object validator with property-specific validation rules
|
|
9
9
|
* @template T - Object type containing validation functions for each property
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.object = void 0;
|
|
7
|
-
var _isDictionaryObject = require("
|
|
7
|
+
var _isDictionaryObject = require("../../Validate/isDictionaryObject");
|
|
8
8
|
/**
|
|
9
9
|
* Object validation core module
|
|
10
10
|
* Provides validation functionality for objects with type-specific validation rules for each property
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ValidateCoreReturnType } from "
|
|
1
|
+
import type { ValidateCoreReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const optional: <T>(validator: (value: T) => ValidateCoreReturnType<T>) => ((value?: T) => ValidateCoreReturnType<T | undefined>);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* String validation core module
|
|
3
3
|
* Provides the base validation functionality for string values
|
|
4
4
|
*/
|
|
5
|
-
import type { ValidateReturnType } from "
|
|
5
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates a string validator with optional validation rules
|
|
8
8
|
* @template T - Array of validation rules for strings
|
|
@@ -10,4 +10,4 @@ import type { ValidateReturnType } from "@/Validate/type";
|
|
|
10
10
|
* @param {string} [message] - Custom error message for type validation
|
|
11
11
|
* @returns {Function} - Validator function that checks if the value is a string and applies validation rules
|
|
12
12
|
*/
|
|
13
|
-
export declare const string: <T extends ValidateReturnType<string>[]>(option?: T, message?: string) => (value: string) => import("
|
|
13
|
+
export declare const string: <T extends ValidateReturnType<string>[]>(option?: T, message?: string) => (value: string) => import("../../Validate/type").ValidateCoreReturnType<string>;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.string = void 0;
|
|
7
|
-
var _core = require("
|
|
7
|
+
var _core = require("../../Validate/core");
|
|
8
8
|
/**
|
|
9
9
|
* String validation core module
|
|
10
10
|
* Provides the base validation functionality for string values
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* String validation module for exact length check
|
|
3
3
|
* Provides validation functionality for checking if a string has an exact length
|
|
4
4
|
*/
|
|
5
|
-
import type { ValidateReturnType } from "
|
|
5
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates a validator for checking if a string has an exact length
|
|
8
8
|
* Note: The function name has an underscore suffix to avoid conflict with the `length` property
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* String validation module for maximum length check
|
|
3
3
|
* Provides validation functionality for checking if a string's length is less than or equal to a maximum value
|
|
4
4
|
*/
|
|
5
|
-
import type { ValidateReturnType } from "
|
|
5
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates a validator for checking if a string's length is less than or equal to a maximum value
|
|
8
8
|
* @param {number} maxLength - Maximum allowed length of the string
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* String validation module for minimum length check
|
|
3
3
|
* Provides validation functionality for checking if a string's length is greater than or equal to a minimum value
|
|
4
4
|
*/
|
|
5
|
-
import type { ValidateReturnType } from "
|
|
5
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates a validator for checking if a string's length is greater than or equal to a minimum value
|
|
8
8
|
* @param {number} minLength - Minimum allowed length of the string
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* String validation module for checking if a string represents a number
|
|
3
3
|
* Provides validation functionality for checking if a string can be converted to a number
|
|
4
4
|
*/
|
|
5
|
-
import type { ValidateReturnType } from "
|
|
5
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates a validator for checking if a string represents a valid number
|
|
8
8
|
* @param {string} [message] - Custom error message for validation failure
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.numberString = void 0;
|
|
7
|
-
var _isNumber = require("
|
|
7
|
+
var _isNumber = require("../../Validate/isNumber");
|
|
8
8
|
/**
|
|
9
9
|
* String validation module for checking if a string represents a number
|
|
10
10
|
* Provides validation functionality for checking if a string can be converted to a number
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* String validation module for regular expression matching
|
|
3
3
|
* Provides validation functionality for checking if a string matches a regular expression pattern
|
|
4
4
|
*/
|
|
5
|
-
import type { ValidateReturnType } from "
|
|
5
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
6
6
|
/**
|
|
7
7
|
* Creates a validator for checking if a string matches a regular expression pattern
|
|
8
8
|
* @param {RegExp} pattern - Regular expression pattern to match against
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* String validation module for email addresses
|
|
3
3
|
* Provides validation functionality for checking if a string is a valid email address
|
|
4
4
|
*/
|
|
5
|
-
import { type ParseEmailOptions } from "
|
|
6
|
-
import type { ValidateReturnType } from "
|
|
5
|
+
import { type ParseEmailOptions } from "../../Validate/parseEmail";
|
|
6
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
7
7
|
/**
|
|
8
8
|
* Creates a validator for checking if a string is a valid email address
|
|
9
9
|
* @param {string} [message] - Custom error message for validation failure
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.validateEmail = void 0;
|
|
7
|
-
var _parseEmail = require("
|
|
7
|
+
var _parseEmail = require("../../Validate/parseEmail");
|
|
8
8
|
/**
|
|
9
9
|
* String validation module for email addresses
|
|
10
10
|
* Provides validation functionality for checking if a string is a valid email address
|