umt 2.0.0 → 2.1.1

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.
Files changed (139) hide show
  1. package/module/Consts/httpStatus/httpClientErrorStatus.d.ts +28 -0
  2. package/module/Consts/httpStatus/httpClientErrorStatus.js +27 -0
  3. package/module/Consts/httpStatus/httpClientErrorStatus.js.map +1 -0
  4. package/module/Consts/httpStatus/httpInformationalStatus.d.ts +8 -0
  5. package/module/Consts/httpStatus/httpInformationalStatus.js +7 -0
  6. package/module/Consts/httpStatus/httpInformationalStatus.js.map +1 -0
  7. package/module/Consts/httpStatus/httpRedirectionStatus.d.ts +11 -0
  8. package/module/Consts/httpStatus/httpRedirectionStatus.js +10 -0
  9. package/module/Consts/httpStatus/httpRedirectionStatus.js.map +1 -0
  10. package/module/Consts/httpStatus/httpServerErrorStatus.d.ts +10 -0
  11. package/module/Consts/httpStatus/httpServerErrorStatus.js +9 -0
  12. package/module/Consts/httpStatus/httpServerErrorStatus.js.map +1 -0
  13. package/module/Consts/httpStatus/httpSuccessStatus.d.ts +11 -0
  14. package/module/Consts/httpStatus/httpSuccessStatus.js +10 -0
  15. package/module/Consts/httpStatus/httpSuccessStatus.js.map +1 -0
  16. package/module/Consts/httpStatus/index.d.ts +57 -0
  17. package/module/Consts/httpStatus/index.js +18 -0
  18. package/module/Consts/httpStatus/index.js.map +1 -0
  19. package/module/Consts/index.d.ts +1 -0
  20. package/module/Consts/index.js +1 -0
  21. package/module/Consts/index.js.map +1 -1
  22. package/module/IP/index.d.ts +1 -0
  23. package/module/IP/index.js +1 -0
  24. package/module/IP/index.js.map +1 -1
  25. package/module/Math/index.d.ts +1 -0
  26. package/module/Math/index.js +1 -0
  27. package/module/Math/index.js.map +1 -1
  28. package/module/String/index.d.ts +2 -1
  29. package/module/String/index.js +2 -1
  30. package/module/String/index.js.map +1 -1
  31. package/module/Time/convertTime.d.ts +2 -1
  32. package/module/Time/convertTime.js +5 -2
  33. package/module/Time/convertTime.js.map +1 -1
  34. package/module/Time/index.d.ts +1 -0
  35. package/module/Time/index.js +1 -0
  36. package/module/Time/index.js.map +1 -1
  37. package/module/Time/normalizeTimeUnit.d.ts +10 -0
  38. package/module/Time/normalizeTimeUnit.js +14 -0
  39. package/module/Time/normalizeTimeUnit.js.map +1 -0
  40. package/module/Validate/index.d.ts +2 -1
  41. package/module/Validate/index.js +2 -1
  42. package/module/Validate/index.js.map +1 -1
  43. package/module/Validate/isDictionaryObject.d.ts +10 -0
  44. package/module/Validate/isDictionaryObject.js +11 -0
  45. package/module/Validate/isDictionaryObject.js.map +1 -0
  46. package/module/Validate/isEqual.d.ts +23 -0
  47. package/module/Validate/isEqual.js +24 -0
  48. package/module/Validate/isEqual.js.map +1 -0
  49. package/module/Validate/object/core.js +2 -2
  50. package/module/Validate/object/core.js.map +1 -1
  51. package/module/es5/Consts/httpStatus/httpClientErrorStatus.d.ts +28 -0
  52. package/module/es5/Consts/httpStatus/httpClientErrorStatus.js +32 -0
  53. package/module/es5/Consts/httpStatus/httpInformationalStatus.d.ts +8 -0
  54. package/module/es5/Consts/httpStatus/httpInformationalStatus.js +12 -0
  55. package/module/es5/Consts/httpStatus/httpRedirectionStatus.d.ts +11 -0
  56. package/module/es5/Consts/httpStatus/httpRedirectionStatus.js +15 -0
  57. package/module/es5/Consts/httpStatus/httpServerErrorStatus.d.ts +10 -0
  58. package/module/es5/Consts/httpStatus/httpServerErrorStatus.js +14 -0
  59. package/module/es5/Consts/httpStatus/httpSuccessStatus.d.ts +11 -0
  60. package/module/es5/Consts/httpStatus/httpSuccessStatus.js +15 -0
  61. package/module/es5/Consts/httpStatus/index.d.ts +57 -0
  62. package/module/es5/Consts/httpStatus/index.js +48 -0
  63. package/module/es5/Consts/index.d.ts +1 -0
  64. package/module/es5/Consts/index.js +11 -0
  65. package/module/es5/IP/index.d.ts +1 -0
  66. package/module/es5/IP/index.js +11 -0
  67. package/module/es5/Math/index.d.ts +1 -0
  68. package/module/es5/Math/index.js +11 -0
  69. package/module/es5/String/index.d.ts +2 -1
  70. package/module/es5/String/index.js +22 -11
  71. package/module/es5/Time/convertTime.d.ts +2 -1
  72. package/module/es5/Time/convertTime.js +5 -2
  73. package/module/es5/Time/index.d.ts +1 -0
  74. package/module/es5/Time/index.js +11 -0
  75. package/module/es5/Time/normalizeTimeUnit.d.ts +10 -0
  76. package/module/es5/Time/normalizeTimeUnit.js +51 -0
  77. package/module/es5/Validate/index.d.ts +2 -1
  78. package/module/es5/Validate/index.js +22 -11
  79. package/module/es5/Validate/isDictionaryObject.d.ts +10 -0
  80. package/module/es5/Validate/{isObject.js → isDictionaryObject.js} +6 -6
  81. package/module/es5/Validate/isEqual.d.ts +23 -0
  82. package/module/es5/Validate/isEqual.js +31 -0
  83. package/module/es5/Validate/object/core.js +2 -2
  84. package/module/es5/tests/unit/Consts/clock.test.js +12 -12
  85. package/module/es5/tests/unit/Consts/httpClientErrorStatus.test.js +33 -0
  86. package/module/es5/tests/unit/Consts/httpInformationalStatus.test.d.ts +1 -0
  87. package/module/es5/tests/unit/Consts/httpInformationalStatus.test.js +13 -0
  88. package/module/es5/tests/unit/Consts/httpRedirectionStatus.test.d.ts +1 -0
  89. package/module/es5/tests/unit/Consts/httpRedirectionStatus.test.js +16 -0
  90. package/module/es5/tests/unit/Consts/httpServerErrorStatus.test.d.ts +1 -0
  91. package/module/es5/tests/unit/Consts/httpServerErrorStatus.test.js +15 -0
  92. package/module/es5/tests/unit/Consts/httpStatus.test.d.ts +1 -0
  93. package/module/es5/tests/unit/Consts/httpStatus.test.js +73 -0
  94. package/module/es5/tests/unit/Consts/httpSuccessStatus.test.d.ts +1 -0
  95. package/module/es5/tests/unit/Consts/httpSuccessStatus.test.js +16 -0
  96. package/module/es5/tests/unit/Time/convertTime.test.js +99 -1
  97. package/module/es5/tests/unit/Time/normalizeTimeUnit.test.d.ts +1 -0
  98. package/module/es5/tests/unit/Time/normalizeTimeUnit.test.js +29 -0
  99. package/module/es5/tests/unit/Validate/isDictionaryObject.test.d.ts +1 -0
  100. package/module/es5/tests/unit/Validate/{isObject.test.js → isDictionaryObject.test.js} +11 -11
  101. package/module/es5/tests/unit/Validate/isEqual.test.d.ts +1 -0
  102. package/module/es5/tests/unit/Validate/isEqual.test.js +74 -0
  103. package/module/es5/tsconfig.tsbuildinfo +1 -1
  104. package/module/es5/types/enum/getEnumValues.d.ts +1 -0
  105. package/module/es5/types/enum/getEnumValues.js +5 -0
  106. package/module/es5/types/enum/index.d.ts +1 -0
  107. package/module/es5/types/enum/index.js +16 -0
  108. package/module/es5/types/index.d.ts +1 -0
  109. package/module/es5/types/index.js +11 -0
  110. package/module/es5/types/object/index.d.ts +1 -0
  111. package/module/es5/types/object/index.js +11 -0
  112. package/module/es5/types/time/index.d.ts +1 -0
  113. package/module/es5/types/time/index.js +11 -0
  114. package/module/es5/types/time/timeUnitShort.d.ts +4 -0
  115. package/module/es5/types/time/timeUnitShort.js +5 -0
  116. package/module/types/enum/getEnumValues.d.ts +1 -0
  117. package/module/types/enum/getEnumValues.js +2 -0
  118. package/module/types/enum/getEnumValues.js.map +1 -0
  119. package/module/types/enum/index.d.ts +1 -0
  120. package/module/types/enum/index.js +2 -0
  121. package/module/types/enum/index.js.map +1 -0
  122. package/module/types/index.d.ts +1 -0
  123. package/module/types/index.js +1 -0
  124. package/module/types/index.js.map +1 -1
  125. package/module/types/object/index.d.ts +1 -0
  126. package/module/types/object/index.js +1 -0
  127. package/module/types/object/index.js.map +1 -1
  128. package/module/types/time/index.d.ts +1 -0
  129. package/module/types/time/index.js +1 -0
  130. package/module/types/time/index.js.map +1 -1
  131. package/module/types/time/timeUnitShort.d.ts +4 -0
  132. package/module/types/time/timeUnitShort.js +2 -0
  133. package/module/types/time/timeUnitShort.js.map +1 -0
  134. package/package.json +10 -10
  135. package/module/Validate/isObject.d.ts +0 -10
  136. package/module/Validate/isObject.js +0 -11
  137. package/module/Validate/isObject.js.map +0 -1
  138. package/module/es5/Validate/isObject.d.ts +0 -10
  139. /package/module/es5/tests/unit/{Validate/isObject.test.d.ts → Consts/httpClientErrorStatus.test.d.ts} +0 -0
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HttpClientErrorStatus = void 0;
7
+ var HttpClientErrorStatus = exports.HttpClientErrorStatus = {
8
+ BAD_REQUEST: 400,
9
+ UNAUTHORIZED: 401,
10
+ PAYMENT_REQUIRED: 402,
11
+ FORBIDDEN: 403,
12
+ NOT_FOUND: 404,
13
+ METHOD_NOT_ALLOWED: 405,
14
+ NOT_ACCEPTABLE: 406,
15
+ PROXY_AUTHENTICATION_REQUIRED: 407,
16
+ REQUEST_TIMEOUT: 408,
17
+ CONFLICT: 409,
18
+ GONE: 410,
19
+ LENGTH_REQUIRED: 411,
20
+ PRECONDITION_FAILED: 412,
21
+ PAYLOAD_TOO_LARGE: 413,
22
+ URI_TOO_LONG: 414,
23
+ UNSUPPORTED_MEDIA_TYPE: 415,
24
+ REQUESTED_RANGE_NOT_SATISFIABLE: 416,
25
+ EXPECTATION_FAILED: 417,
26
+ I_AM_A_TEAPOT: 418,
27
+ MISDIRECTED: 421,
28
+ UNPROCESSABLE_ENTITY: 422,
29
+ FAILED_DEPENDENCY: 424,
30
+ PRECONDITION_REQUIRED: 428,
31
+ TOO_MANY_REQUESTS: 429
32
+ };
@@ -0,0 +1,8 @@
1
+ import type { GetEnumValues } from "$/enum/getEnumValues";
2
+ export declare const HttpInformationalStatus: {
3
+ readonly CONTINUE: 100;
4
+ readonly SWITCHING_PROTOCOLS: 101;
5
+ readonly PROCESSING: 102;
6
+ readonly EARLYHINTS: 103;
7
+ };
8
+ export type HttpInformationalStatus = GetEnumValues<typeof HttpInformationalStatus>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HttpInformationalStatus = void 0;
7
+ var HttpInformationalStatus = exports.HttpInformationalStatus = {
8
+ CONTINUE: 100,
9
+ SWITCHING_PROTOCOLS: 101,
10
+ PROCESSING: 102,
11
+ EARLYHINTS: 103
12
+ };
@@ -0,0 +1,11 @@
1
+ import type { GetEnumValues } from "$/enum/getEnumValues";
2
+ export declare const HttpRedirectionStatus: {
3
+ readonly AMBIGUOUS: 300;
4
+ readonly MOVED_PERMANENTLY: 301;
5
+ readonly FOUND: 302;
6
+ readonly SEE_OTHER: 303;
7
+ readonly NOT_MODIFIED: 304;
8
+ readonly TEMPORARY_REDIRECT: 307;
9
+ readonly PERMANENT_REDIRECT: 308;
10
+ };
11
+ export type HttpRedirectionStatus = GetEnumValues<typeof HttpRedirectionStatus>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HttpRedirectionStatus = void 0;
7
+ var HttpRedirectionStatus = exports.HttpRedirectionStatus = {
8
+ AMBIGUOUS: 300,
9
+ MOVED_PERMANENTLY: 301,
10
+ FOUND: 302,
11
+ SEE_OTHER: 303,
12
+ NOT_MODIFIED: 304,
13
+ TEMPORARY_REDIRECT: 307,
14
+ PERMANENT_REDIRECT: 308
15
+ };
@@ -0,0 +1,10 @@
1
+ import type { GetEnumValues } from "$/enum/getEnumValues";
2
+ export declare const HttpServerErrorStatus: {
3
+ readonly INTERNAL_SERVER_ERROR: 500;
4
+ readonly NOT_IMPLEMENTED: 501;
5
+ readonly BAD_GATEWAY: 502;
6
+ readonly SERVICE_UNAVAILABLE: 503;
7
+ readonly GATEWAY_TIMEOUT: 504;
8
+ readonly HTTP_VERSION_NOT_SUPPORTED: 505;
9
+ };
10
+ export type HttpServerErrorStatus = GetEnumValues<typeof HttpServerErrorStatus>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HttpServerErrorStatus = void 0;
7
+ var HttpServerErrorStatus = exports.HttpServerErrorStatus = {
8
+ INTERNAL_SERVER_ERROR: 500,
9
+ NOT_IMPLEMENTED: 501,
10
+ BAD_GATEWAY: 502,
11
+ SERVICE_UNAVAILABLE: 503,
12
+ GATEWAY_TIMEOUT: 504,
13
+ HTTP_VERSION_NOT_SUPPORTED: 505
14
+ };
@@ -0,0 +1,11 @@
1
+ import type { GetEnumValues } from "$/enum/getEnumValues";
2
+ export declare const HttpSuccessStatus: {
3
+ readonly OK: 200;
4
+ readonly CREATED: 201;
5
+ readonly ACCEPTED: 202;
6
+ readonly NON_AUTHORITATIVE_INFORMATION: 203;
7
+ readonly NO_CONTENT: 204;
8
+ readonly RESET_CONTENT: 205;
9
+ readonly PARTIAL_CONTENT: 206;
10
+ };
11
+ export type HttpSuccessStatus = GetEnumValues<typeof HttpSuccessStatus>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HttpSuccessStatus = void 0;
7
+ var HttpSuccessStatus = exports.HttpSuccessStatus = {
8
+ OK: 200,
9
+ CREATED: 201,
10
+ ACCEPTED: 202,
11
+ NON_AUTHORITATIVE_INFORMATION: 203,
12
+ NO_CONTENT: 204,
13
+ RESET_CONTENT: 205,
14
+ PARTIAL_CONTENT: 206
15
+ };
@@ -0,0 +1,57 @@
1
+ import type { GetEnumValues } from "$/enum/getEnumValues";
2
+ export declare const HttpStatus: {
3
+ readonly INTERNAL_SERVER_ERROR: 500;
4
+ readonly NOT_IMPLEMENTED: 501;
5
+ readonly BAD_GATEWAY: 502;
6
+ readonly SERVICE_UNAVAILABLE: 503;
7
+ readonly GATEWAY_TIMEOUT: 504;
8
+ readonly HTTP_VERSION_NOT_SUPPORTED: 505;
9
+ readonly BAD_REQUEST: 400;
10
+ readonly UNAUTHORIZED: 401;
11
+ readonly PAYMENT_REQUIRED: 402;
12
+ readonly FORBIDDEN: 403;
13
+ readonly NOT_FOUND: 404;
14
+ readonly METHOD_NOT_ALLOWED: 405;
15
+ readonly NOT_ACCEPTABLE: 406;
16
+ readonly PROXY_AUTHENTICATION_REQUIRED: 407;
17
+ readonly REQUEST_TIMEOUT: 408;
18
+ readonly CONFLICT: 409;
19
+ readonly GONE: 410;
20
+ readonly LENGTH_REQUIRED: 411;
21
+ readonly PRECONDITION_FAILED: 412;
22
+ readonly PAYLOAD_TOO_LARGE: 413;
23
+ readonly URI_TOO_LONG: 414;
24
+ readonly UNSUPPORTED_MEDIA_TYPE: 415;
25
+ readonly REQUESTED_RANGE_NOT_SATISFIABLE: 416;
26
+ readonly EXPECTATION_FAILED: 417;
27
+ readonly I_AM_A_TEAPOT: 418;
28
+ readonly MISDIRECTED: 421;
29
+ readonly UNPROCESSABLE_ENTITY: 422;
30
+ readonly FAILED_DEPENDENCY: 424;
31
+ readonly PRECONDITION_REQUIRED: 428;
32
+ readonly TOO_MANY_REQUESTS: 429;
33
+ readonly AMBIGUOUS: 300;
34
+ readonly MOVED_PERMANENTLY: 301;
35
+ readonly FOUND: 302;
36
+ readonly SEE_OTHER: 303;
37
+ readonly NOT_MODIFIED: 304;
38
+ readonly TEMPORARY_REDIRECT: 307;
39
+ readonly PERMANENT_REDIRECT: 308;
40
+ readonly OK: 200;
41
+ readonly CREATED: 201;
42
+ readonly ACCEPTED: 202;
43
+ readonly NON_AUTHORITATIVE_INFORMATION: 203;
44
+ readonly NO_CONTENT: 204;
45
+ readonly RESET_CONTENT: 205;
46
+ readonly PARTIAL_CONTENT: 206;
47
+ readonly CONTINUE: 100;
48
+ readonly SWITCHING_PROTOCOLS: 101;
49
+ readonly PROCESSING: 102;
50
+ readonly EARLYHINTS: 103;
51
+ };
52
+ export type HttpStatus = GetEnumValues<typeof HttpStatus>;
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";
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "HttpClientErrorStatus", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _httpClientErrorStatus.HttpClientErrorStatus;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "HttpInformationalStatus", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _httpInformationalStatus.HttpInformationalStatus;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "HttpRedirectionStatus", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _httpRedirectionStatus.HttpRedirectionStatus;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "HttpServerErrorStatus", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _httpServerErrorStatus.HttpServerErrorStatus;
28
+ }
29
+ });
30
+ exports.HttpStatus = void 0;
31
+ Object.defineProperty(exports, "HttpSuccessStatus", {
32
+ enumerable: true,
33
+ get: function get() {
34
+ return _httpSuccessStatus.HttpSuccessStatus;
35
+ }
36
+ });
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
+ 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
+ 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
+ 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; }
45
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
46
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
47
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
48
+ var HttpStatus = exports.HttpStatus = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _httpInformationalStatus.HttpInformationalStatus), _httpSuccessStatus.HttpSuccessStatus), _httpRedirectionStatus.HttpRedirectionStatus), _httpClientErrorStatus.HttpClientErrorStatus), _httpServerErrorStatus.HttpServerErrorStatus);
@@ -1 +1,2 @@
1
1
  export * from "./clock";
2
+ export * from "./httpStatus";
@@ -13,4 +13,15 @@ Object.keys(_clock).forEach(function (key) {
13
13
  return _clock[key];
14
14
  }
15
15
  });
16
+ });
17
+ var _httpStatus = require("./httpStatus");
18
+ Object.keys(_httpStatus).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _httpStatus[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _httpStatus[key];
25
+ }
26
+ });
16
27
  });
@@ -5,5 +5,6 @@ export * from "./getNetworkAddress";
5
5
  export * from "./ipToBinaryString";
6
6
  export * from "./ipToLong";
7
7
  export * from "./isInRange";
8
+ export * from "./isPrivateIp";
8
9
  export * from "./longToIp";
9
10
  export * from "./subnetMaskToCidr";
@@ -80,6 +80,17 @@ Object.keys(_isInRange).forEach(function (key) {
80
80
  }
81
81
  });
82
82
  });
83
+ var _isPrivateIp = require("./isPrivateIp");
84
+ Object.keys(_isPrivateIp).forEach(function (key) {
85
+ if (key === "default" || key === "__esModule") return;
86
+ if (key in exports && exports[key] === _isPrivateIp[key]) return;
87
+ Object.defineProperty(exports, key, {
88
+ enumerable: true,
89
+ get: function get() {
90
+ return _isPrivateIp[key];
91
+ }
92
+ });
93
+ });
83
94
  var _longToIp = require("./longToIp");
84
95
  Object.keys(_longToIp).forEach(function (key) {
85
96
  if (key === "default" || key === "__esModule") return;
@@ -35,5 +35,6 @@ export * from "./subtract";
35
35
  export * from "./toBaseN";
36
36
  export * from "./toCelsius";
37
37
  export * from "./toKelvin";
38
+ export * from "./uuidv7";
38
39
  export * from "./valueSwap";
39
40
  export * from "./xoshiro256";
@@ -410,6 +410,17 @@ Object.keys(_toKelvin).forEach(function (key) {
410
410
  }
411
411
  });
412
412
  });
413
+ var _uuidv = require("./uuidv7");
414
+ Object.keys(_uuidv).forEach(function (key) {
415
+ if (key === "default" || key === "__esModule") return;
416
+ if (key in exports && exports[key] === _uuidv[key]) return;
417
+ Object.defineProperty(exports, key, {
418
+ enumerable: true,
419
+ get: function get() {
420
+ return _uuidv[key];
421
+ }
422
+ });
423
+ });
413
424
  var _valueSwap = require("./valueSwap");
414
425
  Object.keys(_valueSwap).forEach(function (key) {
415
426
  if (key === "default" || key === "__esModule") return;
@@ -1,13 +1,14 @@
1
1
  export * from "./deleteSpaces";
2
2
  export * from "./formatString";
3
3
  export * from "./fromBase64";
4
+ export * from "./hasNoLetters";
4
5
  export * from "./padEnd";
5
6
  export * from "./padStart";
6
7
  export * from "./randomString";
7
8
  export * from "./randomStringInitialization";
8
9
  export * from "./reverseString";
9
10
  export * from "./toBase64";
11
+ export * from "./toHalfWidth";
10
12
  export * from "./trimCharacters";
11
13
  export * from "./trimEndCharacters";
12
14
  export * from "./trimStartCharacters";
13
- export * from "./hasNoLetters";
@@ -36,6 +36,17 @@ Object.keys(_fromBase).forEach(function (key) {
36
36
  }
37
37
  });
38
38
  });
39
+ var _hasNoLetters = require("./hasNoLetters");
40
+ Object.keys(_hasNoLetters).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _hasNoLetters[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function get() {
46
+ return _hasNoLetters[key];
47
+ }
48
+ });
49
+ });
39
50
  var _padEnd = require("./padEnd");
40
51
  Object.keys(_padEnd).forEach(function (key) {
41
52
  if (key === "default" || key === "__esModule") return;
@@ -102,6 +113,17 @@ Object.keys(_toBase).forEach(function (key) {
102
113
  }
103
114
  });
104
115
  });
116
+ var _toHalfWidth = require("./toHalfWidth");
117
+ Object.keys(_toHalfWidth).forEach(function (key) {
118
+ if (key === "default" || key === "__esModule") return;
119
+ if (key in exports && exports[key] === _toHalfWidth[key]) return;
120
+ Object.defineProperty(exports, key, {
121
+ enumerable: true,
122
+ get: function get() {
123
+ return _toHalfWidth[key];
124
+ }
125
+ });
126
+ });
105
127
  var _trimCharacters = require("./trimCharacters");
106
128
  Object.keys(_trimCharacters).forEach(function (key) {
107
129
  if (key === "default" || key === "__esModule") return;
@@ -134,15 +156,4 @@ Object.keys(_trimStartCharacters).forEach(function (key) {
134
156
  return _trimStartCharacters[key];
135
157
  }
136
158
  });
137
- });
138
- var _hasNoLetters = require("./hasNoLetters");
139
- Object.keys(_hasNoLetters).forEach(function (key) {
140
- if (key === "default" || key === "__esModule") return;
141
- if (key in exports && exports[key] === _hasNoLetters[key]) return;
142
- Object.defineProperty(exports, key, {
143
- enumerable: true,
144
- get: function get() {
145
- return _hasNoLetters[key];
146
- }
147
- });
148
159
  });
@@ -1,4 +1,5 @@
1
1
  import type { TimeUnit } from "$/time/timeUnit";
2
+ import type { TimeUnitShort } from "$/time/timeUnitShort";
2
3
  /**
3
4
  * 時間を変換する関数
4
5
  * @param value 変換する値(文字列)
@@ -7,4 +8,4 @@ import type { TimeUnit } from "$/time/timeUnit";
7
8
  * @returns 変換後の値(数値)
8
9
  * @throws {Error} 無効な数値入力の場合
9
10
  */
10
- export declare const convertTime: (value: string | number, fromUnit: TimeUnit, toUnit: TimeUnit) => number;
11
+ export declare const convertTime: (value: string | number, fromUnit: TimeUnit | TimeUnitShort, toUnit: TimeUnit | TimeUnitShort) => number;
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.convertTime = void 0;
7
+ var _normalizeTimeUnit = require("@/Time/normalizeTimeUnit");
7
8
  /**
8
9
  * 時間単位間の変換率を定義
9
10
  */
@@ -24,6 +25,8 @@ var conversionRates = {
24
25
  */
25
26
  var convertTime = exports.convertTime = function convertTime(value, fromUnit, toUnit) {
26
27
  var numericValue = typeof value === "string" ? Number.parseFloat(value) : value;
27
- var milliseconds = numericValue * conversionRates[fromUnit];
28
- return milliseconds / conversionRates[toUnit];
28
+ var normalizedFromUnit = (0, _normalizeTimeUnit.normalizeTimeUnit)(fromUnit, "long");
29
+ var normalizedToUnit = (0, _normalizeTimeUnit.normalizeTimeUnit)(toUnit, "long");
30
+ var milliseconds = numericValue * conversionRates[normalizedFromUnit];
31
+ return milliseconds / conversionRates[normalizedToUnit];
29
32
  };
@@ -1 +1,2 @@
1
1
  export * from "./convertTime";
2
+ export * from "./normalizeTimeUnit";
@@ -13,4 +13,15 @@ Object.keys(_convertTime).forEach(function (key) {
13
13
  return _convertTime[key];
14
14
  }
15
15
  });
16
+ });
17
+ var _normalizeTimeUnit = require("./normalizeTimeUnit");
18
+ Object.keys(_normalizeTimeUnit).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _normalizeTimeUnit[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _normalizeTimeUnit[key];
25
+ }
26
+ });
16
27
  });
@@ -0,0 +1,10 @@
1
+ import type { TimeUnit } from "$/time/timeUnit";
2
+ import type { TimeUnitShort } from "$/time/timeUnitShort";
3
+ /**
4
+ * Normalize time unit.
5
+ * @param unit Time unit
6
+ * @param to "long" or "short"
7
+ * @returns Normalized time unit
8
+ */
9
+ export declare function normalizeTimeUnit(unit: TimeUnit | TimeUnitShort, to: "long"): TimeUnit;
10
+ export declare function normalizeTimeUnit(unit: TimeUnit | TimeUnitShort, to: "short"): TimeUnitShort;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.normalizeTimeUnit = normalizeTimeUnit;
7
+ var TIME_UNIT_MAP = {
8
+ milliseconds: {
9
+ "long": "milliseconds",
10
+ "short": "ms"
11
+ },
12
+ seconds: {
13
+ "long": "seconds",
14
+ "short": "s"
15
+ },
16
+ minutes: {
17
+ "long": "minutes",
18
+ "short": "m"
19
+ },
20
+ hours: {
21
+ "long": "hours",
22
+ "short": "h"
23
+ },
24
+ ms: {
25
+ "long": "milliseconds",
26
+ "short": "ms"
27
+ },
28
+ s: {
29
+ "long": "seconds",
30
+ "short": "s"
31
+ },
32
+ m: {
33
+ "long": "minutes",
34
+ "short": "m"
35
+ },
36
+ h: {
37
+ "long": "hours",
38
+ "short": "h"
39
+ }
40
+ };
41
+
42
+ /**
43
+ * Normalize time unit.
44
+ * @param unit Time unit
45
+ * @param to "long" or "short"
46
+ * @returns Normalized time unit
47
+ */
48
+
49
+ function normalizeTimeUnit(unit, to) {
50
+ return TIME_UNIT_MAP[unit][to];
51
+ }
@@ -6,12 +6,13 @@ export * from "./string";
6
6
  export * from "./isArray";
7
7
  export * from "./isBrowser";
8
8
  export * from "./isBun";
9
+ export * from "./isDictionaryObject";
9
10
  export * from "./isDouble";
11
+ export * from "./isEqual";
10
12
  export * from "./isNode";
11
13
  export * from "./isNodeWebkit";
12
14
  export * from "./isNotEmpty";
13
15
  export * from "./isNumber";
14
- export * from "./isObject";
15
16
  export * from "./isPerfectSquare";
16
17
  export * from "./isPrimeNumber";
17
18
  export * from "./isValueNaN";
@@ -91,6 +91,17 @@ Object.keys(_isBun).forEach(function (key) {
91
91
  }
92
92
  });
93
93
  });
94
+ var _isDictionaryObject = require("./isDictionaryObject");
95
+ Object.keys(_isDictionaryObject).forEach(function (key) {
96
+ if (key === "default" || key === "__esModule") return;
97
+ if (key in exports && exports[key] === _isDictionaryObject[key]) return;
98
+ Object.defineProperty(exports, key, {
99
+ enumerable: true,
100
+ get: function get() {
101
+ return _isDictionaryObject[key];
102
+ }
103
+ });
104
+ });
94
105
  var _isDouble = require("./isDouble");
95
106
  Object.keys(_isDouble).forEach(function (key) {
96
107
  if (key === "default" || key === "__esModule") return;
@@ -102,6 +113,17 @@ Object.keys(_isDouble).forEach(function (key) {
102
113
  }
103
114
  });
104
115
  });
116
+ var _isEqual = require("./isEqual");
117
+ Object.keys(_isEqual).forEach(function (key) {
118
+ if (key === "default" || key === "__esModule") return;
119
+ if (key in exports && exports[key] === _isEqual[key]) return;
120
+ Object.defineProperty(exports, key, {
121
+ enumerable: true,
122
+ get: function get() {
123
+ return _isEqual[key];
124
+ }
125
+ });
126
+ });
105
127
  var _isNode = require("./isNode");
106
128
  Object.keys(_isNode).forEach(function (key) {
107
129
  if (key === "default" || key === "__esModule") return;
@@ -146,17 +168,6 @@ Object.keys(_isNumber).forEach(function (key) {
146
168
  }
147
169
  });
148
170
  });
149
- var _isObject = require("./isObject");
150
- Object.keys(_isObject).forEach(function (key) {
151
- if (key === "default" || key === "__esModule") return;
152
- if (key in exports && exports[key] === _isObject[key]) return;
153
- Object.defineProperty(exports, key, {
154
- enumerable: true,
155
- get: function get() {
156
- return _isObject[key];
157
- }
158
- });
159
- });
160
171
  var _isPerfectSquare = require("./isPerfectSquare");
161
172
  Object.keys(_isPerfectSquare).forEach(function (key) {
162
173
  if (key === "default" || key === "__esModule") return;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 辞書型のオブジェクトかどうかを判定する
3
+ * @param object
4
+ * @returns {boolean} true: 辞書型オブジェクト, false: 辞書型オブジェクトでない
5
+ * @example isDictionaryObject({}); // true
6
+ * isDictionaryObject([]); // false
7
+ */
8
+ export declare const isDictionaryObject: <T extends {
9
+ [key: string]: unknown;
10
+ }>(object: unknown) => object is T;
@@ -3,15 +3,15 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.isObject = void 0;
6
+ exports.isDictionaryObject = void 0;
7
7
  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); }
8
8
  /**
9
- * オブジェクトかどうかを判定する
9
+ * 辞書型のオブジェクトかどうかを判定する
10
10
  * @param object
11
- * @returns {boolean} true: オブジェクト, false: オブジェクトでない
12
- * @example isObject({}); // true
13
- * isObject([]); // false
11
+ * @returns {boolean} true: 辞書型オブジェクト, false: 辞書型オブジェクトでない
12
+ * @example isDictionaryObject({}); // true
13
+ * isDictionaryObject([]); // false
14
14
  */
15
- var isObject = exports.isObject = function isObject(object) {
15
+ var isDictionaryObject = exports.isDictionaryObject = function isDictionaryObject(object) {
16
16
  return _typeof(object) === "object" && object !== null && !Array.isArray(object);
17
17
  };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Evaluates true strict equality
3
+ * @param {unknown} a
4
+ * @param {unknown} b
5
+ * @returns boolean
6
+ *
7
+ * @example
8
+ * isEqual(1, 1); // true
9
+ * isEqual("test", "test"); // true
10
+ * isEqual(Number.NaN, Number.NaN); // true
11
+ * isEqual(-0, +0); // false
12
+ *
13
+ * @example
14
+ * const obj = { a: 1 };
15
+ * isEqual(obj, obj); // true
16
+ * isEqual(obj, { a: 1 }); // false
17
+ *
18
+ * @example
19
+ * const arr = [1, 2, 3];
20
+ * isEqual(arr, arr); // true
21
+ * isEqual(arr, [1, 2, 3]); // false
22
+ */
23
+ export declare const isEqual: (a: unknown, b: unknown) => boolean;