umt 2.12.1 → 2.12.3
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/index.d.ts +20 -20
- package/module/es5/index.js +80 -80
- 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/module/index.d.ts +20 -20
- package/module/index.js +20 -20
- package/module/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
// biome-ignore lint/correctness/noNodejsModules: ignore
|
|
2
|
-
import process from "node:process";
|
|
3
1
|
/**
|
|
4
2
|
* Determines if the current environment is Node.js
|
|
5
3
|
*/
|
|
6
4
|
export const isNode = () => {
|
|
7
5
|
try {
|
|
8
|
-
|
|
6
|
+
// biome-ignore lint/correctness/noProcessGlobal: ignore
|
|
7
|
+
return typeof process !== "undefined" && typeof require !== "undefined";
|
|
9
8
|
}
|
|
10
9
|
catch {
|
|
11
10
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isNode.js","sourceRoot":"","sources":["../../src/Validate/isNode.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"isNode.js","sourceRoot":"","sources":["../../src/Validate/isNode.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,EAAE;IACzB,IAAI,CAAC;QACH,wDAAwD;QACxD,OAAO,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,OAAO,KAAK,WAAW,CAAC;IAC1E,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.rangeAdvance = void 0;
|
|
7
|
-
var _range = require("
|
|
7
|
+
var _range = require("../Array/range");
|
|
8
8
|
/**
|
|
9
9
|
* Returns an array of numbers that satisfy the conditional expression
|
|
10
10
|
* @param start - Starting number
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CompareFunction } from "
|
|
1
|
+
import type { CompareFunction } from "../types/array/compareFunction";
|
|
2
2
|
/**
|
|
3
3
|
* Sort array using dual-pivot quicksort algorithm
|
|
4
4
|
* More efficient than traditional quicksort for arrays with many duplicate values
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.generateNumberArray = void 0;
|
|
7
|
-
var _addition = require("
|
|
8
|
-
var _division = require("
|
|
9
|
-
var _multiplication = require("
|
|
10
|
-
var _subtract = require("
|
|
7
|
+
var _addition = require("../Math/addition");
|
|
8
|
+
var _division = require("../Math/division");
|
|
9
|
+
var _multiplication = require("../Math/multiplication");
|
|
10
|
+
var _subtract = require("../Math/subtract");
|
|
11
11
|
/**
|
|
12
12
|
* Generates an array of numbers with the specified length
|
|
13
13
|
* @param length The length of the array
|
package/module/es5/Array/sum.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.sum = void 0;
|
|
7
|
-
var _addition = require("
|
|
7
|
+
var _addition = require("../Math/addition");
|
|
8
8
|
/**
|
|
9
9
|
* Returns the sum of an array of numbers
|
|
10
10
|
* @param {number[]} x Array of numbers
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CompareFunction } from "
|
|
1
|
+
import type { CompareFunction } from "../types/array/compareFunction";
|
|
2
2
|
/**
|
|
3
3
|
* Implementation of the TimSort algorithm, which combines the best features of
|
|
4
4
|
* insertion sort and merge sort. It provides a stable sort with O(n log n)
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.cmykToRgba = void 0;
|
|
7
|
-
var _division = require("
|
|
8
|
-
var _max = require("
|
|
9
|
-
var _min = require("
|
|
10
|
-
var _multiplication = require("
|
|
11
|
-
var _roundOf = require("
|
|
12
|
-
var _subtract = require("
|
|
7
|
+
var _division = require("../Math/division");
|
|
8
|
+
var _max = require("../Math/max");
|
|
9
|
+
var _min = require("../Math/min");
|
|
10
|
+
var _multiplication = require("../Math/multiplication");
|
|
11
|
+
var _roundOf = require("../Math/roundOf");
|
|
12
|
+
var _subtract = require("../Math/subtract");
|
|
13
13
|
/**
|
|
14
14
|
* Convert CMYK color values to RGBA color space
|
|
15
15
|
* @param {number} c Cyan percentage (0-100)
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.hexaToRgba = void 0;
|
|
7
|
-
var _division = require("
|
|
8
|
-
var _roundOf = require("
|
|
7
|
+
var _division = require("../Math/division");
|
|
8
|
+
var _roundOf = require("../Math/roundOf");
|
|
9
9
|
/**
|
|
10
10
|
* Convert hexadecimal color code to RGBA color values
|
|
11
11
|
* @param hex Hexadecimal color code (3, 6, or 8 digits with #)
|
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.hslaToRgba = void 0;
|
|
7
|
-
var _addition = require("
|
|
8
|
-
var _division = require("
|
|
9
|
-
var _max = require("
|
|
10
|
-
var _min = require("
|
|
11
|
-
var _multiplication = require("
|
|
12
|
-
var _roundOf = require("
|
|
13
|
-
var _subtract = require("
|
|
7
|
+
var _addition = require("../Math/addition");
|
|
8
|
+
var _division = require("../Math/division");
|
|
9
|
+
var _max = require("../Math/max");
|
|
10
|
+
var _min = require("../Math/min");
|
|
11
|
+
var _multiplication = require("../Math/multiplication");
|
|
12
|
+
var _roundOf = require("../Math/roundOf");
|
|
13
|
+
var _subtract = require("../Math/subtract");
|
|
14
14
|
/**
|
|
15
15
|
* Convert HSLA color values to RGBA color space
|
|
16
16
|
* @param h Hue angle in degrees (0-360)
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.rgbaToCmyk = void 0;
|
|
7
|
-
var _division = require("
|
|
8
|
-
var _roundOf = require("
|
|
9
|
-
var _subtract = require("
|
|
7
|
+
var _division = require("../Math/division");
|
|
8
|
+
var _roundOf = require("../Math/roundOf");
|
|
9
|
+
var _subtract = require("../Math/subtract");
|
|
10
10
|
/**
|
|
11
11
|
* Convert RGBA color to CMYK color model
|
|
12
12
|
* @param rgba Object containing r, g, b values (0-255) and optional a (0-1)
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.rgbaToHsla = void 0;
|
|
7
|
-
var _addition = require("
|
|
8
|
-
var _division = require("
|
|
9
|
-
var _multiplication = require("
|
|
10
|
-
var _roundOf = require("
|
|
11
|
-
var _subtract = require("
|
|
7
|
+
var _addition = require("../Math/addition");
|
|
8
|
+
var _division = require("../Math/division");
|
|
9
|
+
var _multiplication = require("../Math/multiplication");
|
|
10
|
+
var _roundOf = require("../Math/roundOf");
|
|
11
|
+
var _subtract = require("../Math/subtract");
|
|
12
12
|
/**
|
|
13
13
|
* Convert RGBA color values to HSLA color space
|
|
14
14
|
* @param rgba Object containing r, g, b values (0-255) and optional a (0-1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GetEnumValues } from "
|
|
1
|
+
import type { GetEnumValues } from "../../types/enum/getEnumValues";
|
|
2
2
|
/**
|
|
3
3
|
* HTTP 3xx Redirection Status Codes
|
|
4
4
|
* Indicates that further action needs to be taken by the user agent in order to fulfill the request
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GetEnumValues } from "
|
|
1
|
+
import type { GetEnumValues } from "../../types/enum/getEnumValues";
|
|
2
2
|
export declare const HttpStatus: {
|
|
3
3
|
readonly INTERNAL_SERVER_ERROR: 500;
|
|
4
4
|
readonly NOT_IMPLEMENTED: 501;
|
|
@@ -50,8 +50,8 @@ export declare const HttpStatus: {
|
|
|
50
50
|
readonly EARLYHINTS: 103;
|
|
51
51
|
};
|
|
52
52
|
export type HttpStatus = GetEnumValues<typeof HttpStatus>;
|
|
53
|
-
export { HttpClientErrorStatus } from "
|
|
54
|
-
export { HttpInformationalStatus } from "
|
|
55
|
-
export { HttpRedirectionStatus } from "
|
|
56
|
-
export { HttpServerErrorStatus } from "
|
|
57
|
-
export { HttpSuccessStatus } from "
|
|
53
|
+
export { HttpClientErrorStatus } from "../../Consts/httpStatus/httpClientErrorStatus";
|
|
54
|
+
export { HttpInformationalStatus } from "../../Consts/httpStatus/httpInformationalStatus";
|
|
55
|
+
export { HttpRedirectionStatus } from "../../Consts/httpStatus/httpRedirectionStatus";
|
|
56
|
+
export { HttpServerErrorStatus } from "../../Consts/httpStatus/httpServerErrorStatus";
|
|
57
|
+
export { HttpSuccessStatus } from "../../Consts/httpStatus/httpSuccessStatus";
|
|
@@ -34,11 +34,11 @@ Object.defineProperty(exports, "HttpSuccessStatus", {
|
|
|
34
34
|
return _httpSuccessStatus.HttpSuccessStatus;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
var _httpClientErrorStatus = require("
|
|
38
|
-
var _httpInformationalStatus = require("
|
|
39
|
-
var _httpRedirectionStatus = require("
|
|
40
|
-
var _httpServerErrorStatus = require("
|
|
41
|
-
var _httpSuccessStatus = require("
|
|
37
|
+
var _httpClientErrorStatus = require("../../Consts/httpStatus/httpClientErrorStatus");
|
|
38
|
+
var _httpInformationalStatus = require("../../Consts/httpStatus/httpInformationalStatus");
|
|
39
|
+
var _httpRedirectionStatus = require("../../Consts/httpStatus/httpRedirectionStatus");
|
|
40
|
+
var _httpServerErrorStatus = require("../../Consts/httpStatus/httpServerErrorStatus");
|
|
41
|
+
var _httpSuccessStatus = require("../../Consts/httpStatus/httpSuccessStatus");
|
|
42
42
|
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); }
|
|
43
43
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
44
44
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.PriorityQueue = void 0;
|
|
7
|
-
var _unwrap = require("
|
|
7
|
+
var _unwrap = require("../Tool/unwrap");
|
|
8
8
|
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); }
|
|
9
9
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
10
10
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { HoursTypeInt } from "
|
|
2
|
-
import type { DayTypeInt } from "
|
|
3
|
-
import type { MonTypeInt } from "
|
|
1
|
+
import type { HoursTypeInt } from "../types/clock/hoursTypeInt";
|
|
2
|
+
import type { DayTypeInt } from "../types/date/dayTypeInt";
|
|
3
|
+
import type { MonTypeInt } from "../types/date/monTypeInt";
|
|
4
4
|
/**
|
|
5
5
|
* Calculate age based on birthdate
|
|
6
6
|
* @param {number} year - Birth year
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.birthday = void 0;
|
|
7
|
-
var _new = require("
|
|
8
|
-
var _now = require("
|
|
7
|
+
var _new = require("../Date/new");
|
|
8
|
+
var _now = require("../Date/now");
|
|
9
9
|
/**
|
|
10
10
|
* Calculate age based on birthdate
|
|
11
11
|
* @param {number} year - Birth year
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.dateRange = void 0;
|
|
7
|
-
var _clock = require("
|
|
7
|
+
var _clock = require("../Consts/clock");
|
|
8
8
|
/**
|
|
9
9
|
* Generate an array containing all dates between the specified start and end dates.
|
|
10
10
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { HoursTypeInt } from "
|
|
2
|
-
import type { DayTypeInt } from "
|
|
3
|
-
import type { MonTypeInt } from "
|
|
1
|
+
import type { HoursTypeInt } from "../types/clock/hoursTypeInt";
|
|
2
|
+
import type { DayTypeInt } from "../types/date/dayTypeInt";
|
|
3
|
+
import type { MonTypeInt } from "../types/date/monTypeInt";
|
|
4
4
|
/**
|
|
5
5
|
* Get the day of the week
|
|
6
6
|
* @param properties Object containing year, month, and day
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.dayOfWeek = void 0;
|
|
7
|
-
var _new = require("
|
|
8
|
-
var _now = require("
|
|
7
|
+
var _new = require("../Date/new");
|
|
8
|
+
var _now = require("../Date/now");
|
|
9
9
|
/**
|
|
10
10
|
* Get the day of the week
|
|
11
11
|
* @param properties Object containing year, month, and day
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.format = void 0;
|
|
7
|
-
var _getTimezoneOffsetString = require("
|
|
8
|
-
var _padStart = require("
|
|
7
|
+
var _getTimezoneOffsetString = require("../Date/getTimezoneOffsetString");
|
|
8
|
+
var _padStart = require("../String/padStart");
|
|
9
9
|
/**
|
|
10
10
|
* Converts a date to a string according to the specified format pattern.
|
|
11
11
|
* @param {Date} date - The date object to format
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getTimezoneOffsetString = void 0;
|
|
7
|
-
var _padStart = require("
|
|
7
|
+
var _padStart = require("../String/padStart");
|
|
8
8
|
/**
|
|
9
9
|
* Get timezone offset string in format "+HH:mm" or "-HH:mm"
|
|
10
10
|
* @param {Date} instance - The date object to get timezone offset from
|
package/module/es5/Date/new.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { HoursType } from "
|
|
2
|
-
import type { HoursTypeInt } from "
|
|
3
|
-
import type { MillisecondsType } from "
|
|
4
|
-
import type { MillisecondsTypeInt } from "
|
|
5
|
-
import type { MinutesType } from "
|
|
6
|
-
import type { MinutesTypeInt } from "
|
|
7
|
-
import type { SecondsType } from "
|
|
8
|
-
import type { SecondsTypeInt } from "
|
|
9
|
-
import type { DayType } from "
|
|
10
|
-
import type { DayTypeInt } from "
|
|
11
|
-
import type { MonTypeInt } from "
|
|
12
|
-
import type { MonTypeZero } from "
|
|
1
|
+
import type { HoursType } from "../types/clock/hoursType";
|
|
2
|
+
import type { HoursTypeInt } from "../types/clock/hoursTypeInt";
|
|
3
|
+
import type { MillisecondsType } from "../types/clock/millisecondsType";
|
|
4
|
+
import type { MillisecondsTypeInt } from "../types/clock/millisecondsTypeInt";
|
|
5
|
+
import type { MinutesType } from "../types/clock/minutesType";
|
|
6
|
+
import type { MinutesTypeInt } from "../types/clock/minutesTypeInt";
|
|
7
|
+
import type { SecondsType } from "../types/clock/secondsType";
|
|
8
|
+
import type { SecondsTypeInt } from "../types/clock/secondsTypeInt";
|
|
9
|
+
import type { DayType } from "../types/date/dayType";
|
|
10
|
+
import type { DayTypeInt } from "../types/date/dayTypeInt";
|
|
11
|
+
import type { MonTypeInt } from "../types/date/monTypeInt";
|
|
12
|
+
import type { MonTypeZero } from "../types/date/monTypeZero";
|
|
13
13
|
/**
|
|
14
14
|
* Create a new Date object from numeric values
|
|
15
15
|
* @param year - The year
|
package/module/es5/Date/now.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HoursTypeInt } from "
|
|
1
|
+
import type { HoursTypeInt } from "../types/clock/hoursTypeInt";
|
|
2
2
|
/**
|
|
3
3
|
* Get the current time with a specified UTC offset, regardless of the local timezone
|
|
4
4
|
* @param {hoursTypeInt} [timeDifference=9] Hours offset from UTC (default: 9 for Japan Standard Time)
|
package/module/es5/Date/now.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.now = void 0;
|
|
7
|
-
var _clock = require("
|
|
7
|
+
var _clock = require("../Consts/clock");
|
|
8
8
|
/**
|
|
9
9
|
* Get the current time with a specified UTC offset, regardless of the local timezone
|
|
10
10
|
* @param {hoursTypeInt} [timeDifference=9] Hours offset from UTC (default: 9 for Japan Standard Time)
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.convertCurrency = void 0;
|
|
7
|
-
var _multiplication = require("
|
|
8
|
-
var _isNumber = require("
|
|
7
|
+
var _multiplication = require("../../Math/multiplication");
|
|
8
|
+
var _isNumber = require("../../Validate/isNumber");
|
|
9
9
|
/**
|
|
10
10
|
* Converts currency amounts in a string using currency symbols.
|
|
11
11
|
*
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.calculatorCore = void 0;
|
|
7
7
|
var _convertCurrency = require("./convertCurrency");
|
|
8
|
-
var _addition = require("
|
|
9
|
-
var _division = require("
|
|
10
|
-
var _multiplication = require("
|
|
11
|
-
var _subtract = require("
|
|
12
|
-
var _isNumber = require("
|
|
8
|
+
var _addition = require("../../Math/addition");
|
|
9
|
+
var _division = require("../../Math/division");
|
|
10
|
+
var _multiplication = require("../../Math/multiplication");
|
|
11
|
+
var _subtract = require("../../Math/subtract");
|
|
12
|
+
var _isNumber = require("../../Validate/isNumber");
|
|
13
13
|
var calculatorCore = exports.calculatorCore = function calculatorCore(expression, currencyExchange) {
|
|
14
14
|
// Handle empty string
|
|
15
15
|
if (expression === "") {
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.literalExpression = void 0;
|
|
7
7
|
var _core = require("./core");
|
|
8
|
-
var _division = require("
|
|
9
|
-
var _gcd = require("
|
|
8
|
+
var _division = require("../../Math/division");
|
|
9
|
+
var _gcd = require("../../Math/gcd");
|
|
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; } }
|
|
12
12
|
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; }
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.flexibleNumberConversion = void 0;
|
|
7
|
-
var _isValueNaN = require("
|
|
7
|
+
var _isValueNaN = require("../Validate/isValueNaN");
|
|
8
8
|
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); }
|
|
9
9
|
/**
|
|
10
10
|
* Flexible function to convert various inputs to numbers whenever possible
|
package/module/es5/Math/gcd.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.gcd = void 0;
|
|
7
|
-
var _isDouble = require("
|
|
7
|
+
var _isDouble = require("../Validate/isDouble");
|
|
8
8
|
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; } } }; }
|
|
9
9
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
10
10
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.mathSeparator = void 0;
|
|
7
|
-
var _isNumber = require("
|
|
7
|
+
var _isNumber = require("../Validate/isNumber");
|
|
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; } }
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.median = void 0;
|
|
7
|
-
var _quickSort = require("
|
|
7
|
+
var _quickSort = require("../Array/quickSort");
|
|
8
8
|
/**
|
|
9
9
|
* Calculate the median of an array of numbers
|
|
10
10
|
* @param {number[]} array Array of numbers
|
package/module/es5/Math/mode.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.mode = void 0;
|
|
7
|
-
var _ultraNumberSort = require("
|
|
7
|
+
var _ultraNumberSort = require("../Array/ultraNumberSort");
|
|
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 _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.percentile = void 0;
|
|
7
|
-
var _quickSort = require("
|
|
7
|
+
var _quickSort = require("../Array/quickSort");
|
|
8
8
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
9
9
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread 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; } }
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.standardDeviation = void 0;
|
|
7
7
|
var _average = require("./average");
|
|
8
|
-
var _multiplication = require("
|
|
9
|
-
var _subtract = require("
|
|
8
|
+
var _multiplication = require("../Math/multiplication");
|
|
9
|
+
var _subtract = require("../Math/subtract");
|
|
10
10
|
/**
|
|
11
11
|
* Calculates the standard deviation of a set of values
|
|
12
12
|
* @param {number[]} values Array of numeric values
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UnionToIntersection } from "
|
|
1
|
+
import type { UnionToIntersection } from "../types/logic/unionToIntersection";
|
|
2
2
|
/**
|
|
3
3
|
* Merges multiple objects into a single object (shallow merge)
|
|
4
4
|
* @param target - The target object to merge into
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PickDeep } from "
|
|
2
|
-
import type { PickDeepKey } from "
|
|
1
|
+
import type { PickDeep } from "../types/object/pickDeep";
|
|
2
|
+
import type { PickDeepKey } from "../types/object/pickDeepKey";
|
|
3
3
|
/**
|
|
4
4
|
* Creates a new object by deeply selecting properties from the source object based on specified keys.
|
|
5
5
|
*
|