umt 2.1.0 → 2.1.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.
Files changed (156) 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/Unit/index.d.ts +1 -0
  41. package/module/Unit/index.js +2 -0
  42. package/module/Unit/index.js.map +1 -0
  43. package/module/Unit/unitConverterInitialization.d.ts +1 -0
  44. package/module/Unit/unitConverterInitialization.js +4 -0
  45. package/module/Unit/unitConverterInitialization.js.map +1 -0
  46. package/module/Validate/index.d.ts +2 -1
  47. package/module/Validate/index.js +2 -1
  48. package/module/Validate/index.js.map +1 -1
  49. package/module/Validate/isDictionaryObject.d.ts +10 -0
  50. package/module/Validate/isDictionaryObject.js +11 -0
  51. package/module/Validate/isDictionaryObject.js.map +1 -0
  52. package/module/Validate/isEqual.d.ts +23 -0
  53. package/module/Validate/isEqual.js +24 -0
  54. package/module/Validate/isEqual.js.map +1 -0
  55. package/module/Validate/object/core.js +2 -2
  56. package/module/Validate/object/core.js.map +1 -1
  57. package/module/es5/Consts/httpStatus/httpClientErrorStatus.d.ts +28 -0
  58. package/module/es5/Consts/httpStatus/httpClientErrorStatus.js +32 -0
  59. package/module/es5/Consts/httpStatus/httpInformationalStatus.d.ts +8 -0
  60. package/module/es5/Consts/httpStatus/httpInformationalStatus.js +12 -0
  61. package/module/es5/Consts/httpStatus/httpRedirectionStatus.d.ts +11 -0
  62. package/module/es5/Consts/httpStatus/httpRedirectionStatus.js +15 -0
  63. package/module/es5/Consts/httpStatus/httpServerErrorStatus.d.ts +10 -0
  64. package/module/es5/Consts/httpStatus/httpServerErrorStatus.js +14 -0
  65. package/module/es5/Consts/httpStatus/httpSuccessStatus.d.ts +11 -0
  66. package/module/es5/Consts/httpStatus/httpSuccessStatus.js +15 -0
  67. package/module/es5/Consts/httpStatus/index.d.ts +57 -0
  68. package/module/es5/Consts/httpStatus/index.js +48 -0
  69. package/module/es5/Consts/index.d.ts +1 -0
  70. package/module/es5/Consts/index.js +11 -0
  71. package/module/es5/IP/index.d.ts +1 -0
  72. package/module/es5/IP/index.js +11 -0
  73. package/module/es5/Math/index.d.ts +1 -0
  74. package/module/es5/Math/index.js +11 -0
  75. package/module/es5/String/index.d.ts +2 -1
  76. package/module/es5/String/index.js +22 -11
  77. package/module/es5/Time/convertTime.d.ts +2 -1
  78. package/module/es5/Time/convertTime.js +5 -2
  79. package/module/es5/Time/index.d.ts +1 -0
  80. package/module/es5/Time/index.js +11 -0
  81. package/module/es5/Time/normalizeTimeUnit.d.ts +10 -0
  82. package/module/es5/Time/normalizeTimeUnit.js +51 -0
  83. package/module/es5/Unit/index.d.ts +1 -0
  84. package/module/es5/Unit/index.js +16 -0
  85. package/module/es5/Unit/unitConverterInitialization.d.ts +1 -0
  86. package/module/es5/Unit/unitConverterInitialization.js +13 -0
  87. package/module/es5/Validate/index.d.ts +2 -1
  88. package/module/es5/Validate/index.js +22 -11
  89. package/module/es5/Validate/isDictionaryObject.d.ts +10 -0
  90. package/module/es5/Validate/{isObject.js → isDictionaryObject.js} +6 -6
  91. package/module/es5/Validate/isEqual.d.ts +23 -0
  92. package/module/es5/Validate/isEqual.js +31 -0
  93. package/module/es5/Validate/object/core.js +2 -2
  94. package/module/es5/index.d.ts +1 -0
  95. package/module/es5/index.js +11 -0
  96. package/module/es5/tests/unit/Consts/clock.test.js +12 -12
  97. package/module/es5/tests/unit/Consts/httpClientErrorStatus.test.js +33 -0
  98. package/module/es5/tests/unit/Consts/httpInformationalStatus.test.d.ts +1 -0
  99. package/module/es5/tests/unit/Consts/httpInformationalStatus.test.js +13 -0
  100. package/module/es5/tests/unit/Consts/httpRedirectionStatus.test.d.ts +1 -0
  101. package/module/es5/tests/unit/Consts/httpRedirectionStatus.test.js +16 -0
  102. package/module/es5/tests/unit/Consts/httpServerErrorStatus.test.d.ts +1 -0
  103. package/module/es5/tests/unit/Consts/httpServerErrorStatus.test.js +15 -0
  104. package/module/es5/tests/unit/Consts/httpStatus.test.d.ts +1 -0
  105. package/module/es5/tests/unit/Consts/httpStatus.test.js +73 -0
  106. package/module/es5/tests/unit/Consts/httpSuccessStatus.test.d.ts +1 -0
  107. package/module/es5/tests/unit/Consts/httpSuccessStatus.test.js +16 -0
  108. package/module/es5/tests/unit/Time/convertTime.test.js +99 -1
  109. package/module/es5/tests/unit/Time/normalizeTimeUnit.test.d.ts +1 -0
  110. package/module/es5/tests/unit/Time/normalizeTimeUnit.test.js +29 -0
  111. package/module/es5/tests/unit/Unit/unitConverterInitialization.test.d.ts +1 -0
  112. package/module/es5/tests/unit/Unit/unitConverterInitialization.test.js +38 -0
  113. package/module/es5/tests/unit/Validate/isDictionaryObject.test.d.ts +1 -0
  114. package/module/es5/tests/unit/Validate/{isObject.test.js → isDictionaryObject.test.js} +11 -11
  115. package/module/es5/tests/unit/Validate/isEqual.test.d.ts +1 -0
  116. package/module/es5/tests/unit/Validate/isEqual.test.js +74 -0
  117. package/module/es5/tsconfig.tsbuildinfo +1 -1
  118. package/module/es5/types/enum/getEnumValues.d.ts +1 -0
  119. package/module/es5/types/enum/getEnumValues.js +5 -0
  120. package/module/es5/types/enum/index.d.ts +1 -0
  121. package/module/es5/types/enum/index.js +16 -0
  122. package/module/es5/types/index.d.ts +1 -0
  123. package/module/es5/types/index.js +11 -0
  124. package/module/es5/types/object/index.d.ts +1 -0
  125. package/module/es5/types/object/index.js +11 -0
  126. package/module/es5/types/time/index.d.ts +1 -0
  127. package/module/es5/types/time/index.js +11 -0
  128. package/module/es5/types/time/timeUnitShort.d.ts +4 -0
  129. package/module/es5/types/time/timeUnitShort.js +5 -0
  130. package/module/index.d.ts +1 -0
  131. package/module/index.js +1 -0
  132. package/module/index.js.map +1 -1
  133. package/module/types/enum/getEnumValues.d.ts +1 -0
  134. package/module/types/enum/getEnumValues.js +2 -0
  135. package/module/types/enum/getEnumValues.js.map +1 -0
  136. package/module/types/enum/index.d.ts +1 -0
  137. package/module/types/enum/index.js +2 -0
  138. package/module/types/enum/index.js.map +1 -0
  139. package/module/types/index.d.ts +1 -0
  140. package/module/types/index.js +1 -0
  141. package/module/types/index.js.map +1 -1
  142. package/module/types/object/index.d.ts +1 -0
  143. package/module/types/object/index.js +1 -0
  144. package/module/types/object/index.js.map +1 -1
  145. package/module/types/time/index.d.ts +1 -0
  146. package/module/types/time/index.js +1 -0
  147. package/module/types/time/index.js.map +1 -1
  148. package/module/types/time/timeUnitShort.d.ts +4 -0
  149. package/module/types/time/timeUnitShort.js +2 -0
  150. package/module/types/time/timeUnitShort.js.map +1 -0
  151. package/package.json +14 -14
  152. package/module/Validate/isObject.d.ts +0 -10
  153. package/module/Validate/isObject.js +0 -11
  154. package/module/Validate/isObject.js.map +0 -1
  155. package/module/es5/Validate/isObject.d.ts +0 -10
  156. /package/module/es5/tests/unit/{Validate/isObject.test.d.ts → Consts/httpClientErrorStatus.test.d.ts} +0 -0
@@ -0,0 +1,28 @@
1
+ import type { GetEnumValues } from "../../types/enum/getEnumValues";
2
+ export declare const HttpClientErrorStatus: {
3
+ readonly BAD_REQUEST: 400;
4
+ readonly UNAUTHORIZED: 401;
5
+ readonly PAYMENT_REQUIRED: 402;
6
+ readonly FORBIDDEN: 403;
7
+ readonly NOT_FOUND: 404;
8
+ readonly METHOD_NOT_ALLOWED: 405;
9
+ readonly NOT_ACCEPTABLE: 406;
10
+ readonly PROXY_AUTHENTICATION_REQUIRED: 407;
11
+ readonly REQUEST_TIMEOUT: 408;
12
+ readonly CONFLICT: 409;
13
+ readonly GONE: 410;
14
+ readonly LENGTH_REQUIRED: 411;
15
+ readonly PRECONDITION_FAILED: 412;
16
+ readonly PAYLOAD_TOO_LARGE: 413;
17
+ readonly URI_TOO_LONG: 414;
18
+ readonly UNSUPPORTED_MEDIA_TYPE: 415;
19
+ readonly REQUESTED_RANGE_NOT_SATISFIABLE: 416;
20
+ readonly EXPECTATION_FAILED: 417;
21
+ readonly I_AM_A_TEAPOT: 418;
22
+ readonly MISDIRECTED: 421;
23
+ readonly UNPROCESSABLE_ENTITY: 422;
24
+ readonly FAILED_DEPENDENCY: 424;
25
+ readonly PRECONDITION_REQUIRED: 428;
26
+ readonly TOO_MANY_REQUESTS: 429;
27
+ };
28
+ export type HttpClientErrorStatus = GetEnumValues<typeof HttpClientErrorStatus>;
@@ -0,0 +1,27 @@
1
+ export const HttpClientErrorStatus = {
2
+ BAD_REQUEST: 400,
3
+ UNAUTHORIZED: 401,
4
+ PAYMENT_REQUIRED: 402,
5
+ FORBIDDEN: 403,
6
+ NOT_FOUND: 404,
7
+ METHOD_NOT_ALLOWED: 405,
8
+ NOT_ACCEPTABLE: 406,
9
+ PROXY_AUTHENTICATION_REQUIRED: 407,
10
+ REQUEST_TIMEOUT: 408,
11
+ CONFLICT: 409,
12
+ GONE: 410,
13
+ LENGTH_REQUIRED: 411,
14
+ PRECONDITION_FAILED: 412,
15
+ PAYLOAD_TOO_LARGE: 413,
16
+ URI_TOO_LONG: 414,
17
+ UNSUPPORTED_MEDIA_TYPE: 415,
18
+ REQUESTED_RANGE_NOT_SATISFIABLE: 416,
19
+ EXPECTATION_FAILED: 417,
20
+ I_AM_A_TEAPOT: 418,
21
+ MISDIRECTED: 421,
22
+ UNPROCESSABLE_ENTITY: 422,
23
+ FAILED_DEPENDENCY: 424,
24
+ PRECONDITION_REQUIRED: 428,
25
+ TOO_MANY_REQUESTS: 429,
26
+ };
27
+ //# sourceMappingURL=httpClientErrorStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpClientErrorStatus.js","sourceRoot":"","sources":["../../../src/Consts/httpStatus/httpClientErrorStatus.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,WAAW,EAAE,GAAG;IAChB,YAAY,EAAE,GAAG;IACjB,gBAAgB,EAAE,GAAG;IACrB,SAAS,EAAE,GAAG;IACd,SAAS,EAAE,GAAG;IACd,kBAAkB,EAAE,GAAG;IACvB,cAAc,EAAE,GAAG;IACnB,6BAA6B,EAAE,GAAG;IAClC,eAAe,EAAE,GAAG;IACpB,QAAQ,EAAE,GAAG;IACb,IAAI,EAAE,GAAG;IACT,eAAe,EAAE,GAAG;IACpB,mBAAmB,EAAE,GAAG;IACxB,iBAAiB,EAAE,GAAG;IACtB,YAAY,EAAE,GAAG;IACjB,sBAAsB,EAAE,GAAG;IAC3B,+BAA+B,EAAE,GAAG;IACpC,kBAAkB,EAAE,GAAG;IACvB,aAAa,EAAE,GAAG;IAClB,WAAW,EAAE,GAAG;IAChB,oBAAoB,EAAE,GAAG;IACzB,iBAAiB,EAAE,GAAG;IACtB,qBAAqB,EAAE,GAAG;IAC1B,iBAAiB,EAAE,GAAG;CACd,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { GetEnumValues } from "../../types/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,7 @@
1
+ export const HttpInformationalStatus = {
2
+ CONTINUE: 100,
3
+ SWITCHING_PROTOCOLS: 101,
4
+ PROCESSING: 102,
5
+ EARLYHINTS: 103,
6
+ };
7
+ //# sourceMappingURL=httpInformationalStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpInformationalStatus.js","sourceRoot":"","sources":["../../../src/Consts/httpStatus/httpInformationalStatus.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,QAAQ,EAAE,GAAG;IACb,mBAAmB,EAAE,GAAG;IACxB,UAAU,EAAE,GAAG;IACf,UAAU,EAAE,GAAG;CACP,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { GetEnumValues } from "../../types/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,10 @@
1
+ export const HttpRedirectionStatus = {
2
+ AMBIGUOUS: 300,
3
+ MOVED_PERMANENTLY: 301,
4
+ FOUND: 302,
5
+ SEE_OTHER: 303,
6
+ NOT_MODIFIED: 304,
7
+ TEMPORARY_REDIRECT: 307,
8
+ PERMANENT_REDIRECT: 308,
9
+ };
10
+ //# sourceMappingURL=httpRedirectionStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpRedirectionStatus.js","sourceRoot":"","sources":["../../../src/Consts/httpStatus/httpRedirectionStatus.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,SAAS,EAAE,GAAG;IACd,iBAAiB,EAAE,GAAG;IACtB,KAAK,EAAE,GAAG;IACV,SAAS,EAAE,GAAG;IACd,YAAY,EAAE,GAAG;IACjB,kBAAkB,EAAE,GAAG;IACvB,kBAAkB,EAAE,GAAG;CACf,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { GetEnumValues } from "../../types/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,9 @@
1
+ export const HttpServerErrorStatus = {
2
+ INTERNAL_SERVER_ERROR: 500,
3
+ NOT_IMPLEMENTED: 501,
4
+ BAD_GATEWAY: 502,
5
+ SERVICE_UNAVAILABLE: 503,
6
+ GATEWAY_TIMEOUT: 504,
7
+ HTTP_VERSION_NOT_SUPPORTED: 505,
8
+ };
9
+ //# sourceMappingURL=httpServerErrorStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpServerErrorStatus.js","sourceRoot":"","sources":["../../../src/Consts/httpStatus/httpServerErrorStatus.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,qBAAqB,EAAE,GAAG;IAC1B,eAAe,EAAE,GAAG;IACpB,WAAW,EAAE,GAAG;IAChB,mBAAmB,EAAE,GAAG;IACxB,eAAe,EAAE,GAAG;IACpB,0BAA0B,EAAE,GAAG;CACvB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { GetEnumValues } from "../../types/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,10 @@
1
+ export const HttpSuccessStatus = {
2
+ OK: 200,
3
+ CREATED: 201,
4
+ ACCEPTED: 202,
5
+ NON_AUTHORITATIVE_INFORMATION: 203,
6
+ NO_CONTENT: 204,
7
+ RESET_CONTENT: 205,
8
+ PARTIAL_CONTENT: 206,
9
+ };
10
+ //# sourceMappingURL=httpSuccessStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpSuccessStatus.js","sourceRoot":"","sources":["../../../src/Consts/httpStatus/httpSuccessStatus.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,EAAE,EAAE,GAAG;IACP,OAAO,EAAE,GAAG;IACZ,QAAQ,EAAE,GAAG;IACb,6BAA6B,EAAE,GAAG;IAClC,UAAU,EAAE,GAAG;IACf,aAAa,EAAE,GAAG;IAClB,eAAe,EAAE,GAAG;CACZ,CAAC"}
@@ -0,0 +1,57 @@
1
+ import type { GetEnumValues } from "../../types/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,18 @@
1
+ import { HttpClientErrorStatus } from "../../Consts/httpStatus/httpClientErrorStatus";
2
+ import { HttpInformationalStatus } from "../../Consts/httpStatus/httpInformationalStatus";
3
+ import { HttpRedirectionStatus } from "../../Consts/httpStatus/httpRedirectionStatus";
4
+ import { HttpServerErrorStatus } from "../../Consts/httpStatus/httpServerErrorStatus";
5
+ import { HttpSuccessStatus } from "../../Consts/httpStatus/httpSuccessStatus";
6
+ export const HttpStatus = {
7
+ ...HttpInformationalStatus,
8
+ ...HttpSuccessStatus,
9
+ ...HttpRedirectionStatus,
10
+ ...HttpClientErrorStatus,
11
+ ...HttpServerErrorStatus,
12
+ };
13
+ export { HttpClientErrorStatus } from "../../Consts/httpStatus/httpClientErrorStatus";
14
+ export { HttpInformationalStatus } from "../../Consts/httpStatus/httpInformationalStatus";
15
+ export { HttpRedirectionStatus } from "../../Consts/httpStatus/httpRedirectionStatus";
16
+ export { HttpServerErrorStatus } from "../../Consts/httpStatus/httpServerErrorStatus";
17
+ export { HttpSuccessStatus } from "../../Consts/httpStatus/httpSuccessStatus";
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Consts/httpStatus/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,GAAG,uBAAuB;IAC1B,GAAG,iBAAiB;IACpB,GAAG,qBAAqB;IACxB,GAAG,qBAAqB;IACxB,GAAG,qBAAqB;CAChB,CAAC;AAIX,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC"}
@@ -1 +1,2 @@
1
1
  export * from "./clock";
2
+ export * from "./httpStatus";
@@ -1,2 +1,3 @@
1
1
  export * from "./clock";
2
+ export * from "./httpStatus";
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Consts/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Consts/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
@@ -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";
@@ -5,6 +5,7 @@ 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";
10
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/IP/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/IP/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
@@ -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";
@@ -35,6 +35,7 @@ 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";
40
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Math/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,OAAO,CAAC;AACtB,cAAc,oBAAoB,CAAC;AACnC,cAAc,OAAO,CAAC;AACtB,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Math/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,OAAO,CAAC;AACtB,cAAc,oBAAoB,CAAC;AACnC,cAAc,OAAO,CAAC;AACtB,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
@@ -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";
@@ -1,14 +1,15 @@
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";
14
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/String/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/String/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type { TimeUnit } from "../types/time/timeUnit";
2
+ import type { TimeUnitShort } from "../types/time/timeUnitShort";
2
3
  /**
3
4
  * 時間を変換する関数
4
5
  * @param value 変換する値(文字列)
@@ -7,4 +8,4 @@ import type { TimeUnit } from "../types/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;
@@ -1,3 +1,4 @@
1
+ import { normalizeTimeUnit } from "../Time/normalizeTimeUnit";
1
2
  /**
2
3
  * 時間単位間の変換率を定義
3
4
  */
@@ -17,7 +18,9 @@ const conversionRates = {
17
18
  */
18
19
  export const convertTime = (value, fromUnit, toUnit) => {
19
20
  const numericValue = typeof value === "string" ? Number.parseFloat(value) : value;
20
- const milliseconds = numericValue * conversionRates[fromUnit];
21
- return milliseconds / conversionRates[toUnit];
21
+ const normalizedFromUnit = normalizeTimeUnit(fromUnit, "long");
22
+ const normalizedToUnit = normalizeTimeUnit(toUnit, "long");
23
+ const milliseconds = numericValue * conversionRates[normalizedFromUnit];
24
+ return milliseconds / conversionRates[normalizedToUnit];
22
25
  };
23
26
  //# sourceMappingURL=convertTime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"convertTime.js","sourceRoot":"","sources":["../../src/Time/convertTime.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,eAAe,GAA6B;IAChD,YAAY,EAAE,CAAC;IACf,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,EAAE,GAAG,IAAI;IAClB,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;CACtB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,KAAsB,EACtB,QAAkB,EAClB,MAAgB,EACR,EAAE;IACV,MAAM,YAAY,GAChB,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAE/D,MAAM,YAAY,GAAG,YAAY,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IAC9D,OAAO,YAAY,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC,CAAC"}
1
+ {"version":3,"file":"convertTime.js","sourceRoot":"","sources":["../../src/Time/convertTime.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D;;GAEG;AACH,MAAM,eAAe,GAA6B;IAChD,YAAY,EAAE,CAAC;IACf,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,EAAE,GAAG,IAAI;IAClB,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;CACtB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,KAAsB,EACtB,QAAkC,EAClC,MAAgC,EACxB,EAAE;IACV,MAAM,YAAY,GAChB,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC/D,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC/D,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3D,MAAM,YAAY,GAAG,YAAY,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;IACxE,OAAO,YAAY,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC;AAC1D,CAAC,CAAC"}
@@ -1 +1,2 @@
1
1
  export * from "./convertTime";
2
+ export * from "./normalizeTimeUnit";
@@ -1,2 +1,3 @@
1
1
  export * from "./convertTime";
2
+ export * from "./normalizeTimeUnit";
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Time/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Time/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { TimeUnit } from "../types/time/timeUnit";
2
+ import type { TimeUnitShort } from "../types/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,14 @@
1
+ const TIME_UNIT_MAP = {
2
+ milliseconds: { long: "milliseconds", short: "ms" },
3
+ seconds: { long: "seconds", short: "s" },
4
+ minutes: { long: "minutes", short: "m" },
5
+ hours: { long: "hours", short: "h" },
6
+ ms: { long: "milliseconds", short: "ms" },
7
+ s: { long: "seconds", short: "s" },
8
+ m: { long: "minutes", short: "m" },
9
+ h: { long: "hours", short: "h" },
10
+ };
11
+ export function normalizeTimeUnit(unit, to) {
12
+ return TIME_UNIT_MAP[unit][to];
13
+ }
14
+ //# sourceMappingURL=normalizeTimeUnit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeTimeUnit.js","sourceRoot":"","sources":["../../src/Time/normalizeTimeUnit.ts"],"names":[],"mappings":"AAGA,MAAM,aAAa,GAGf;IACF,YAAY,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE;IACnD,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE;IACxC,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE;IACxC,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE;IACpC,EAAE,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE;IACzC,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE;IAClC,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE;IAClC,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE;CACxB,CAAC;AAgBX,MAAM,UAAU,iBAAiB,CAC/B,IAA8B,EAC9B,EAAoB;IAEpB,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;AACjC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./unitConverterInitialization";
@@ -0,0 +1,2 @@
1
+ export * from "./unitConverterInitialization";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Unit/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const unitConverterInitialization: <T extends { [k in K]: number; }, K extends string | number | symbol>(toBaseUnitRatios: T) => (value: number, from: keyof T, to: keyof T) => number;
@@ -0,0 +1,4 @@
1
+ import { division } from "../Math/division";
2
+ import { multiplication } from "../Math/multiplication";
3
+ export const unitConverterInitialization = (toBaseUnitRatios) => (value, from, to) => multiplication(division(value, toBaseUnitRatios[from]), toBaseUnitRatios[to]);
4
+ //# sourceMappingURL=unitConverterInitialization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unitConverterInitialization.js","sourceRoot":"","sources":["../../src/Unit/unitConverterInitialization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,CAAC,MAAM,2BAA2B,GACtC,CAME,gBAAmB,EACnB,EAAE,CACJ,CAAC,KAAa,EAAE,IAAa,EAAE,EAAW,EAAE,EAAE,CAC5C,cAAc,CACZ,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC,EACvC,gBAAgB,CAAC,EAAE,CAAC,CACrB,CAAC"}
@@ -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";
@@ -8,12 +8,13 @@ export * from "./string";
8
8
  export * from "./isArray";
9
9
  export * from "./isBrowser";
10
10
  export * from "./isBun";
11
+ export * from "./isDictionaryObject";
11
12
  export * from "./isDouble";
13
+ export * from "./isEqual";
12
14
  export * from "./isNode";
13
15
  export * from "./isNodeWebkit";
14
16
  export * from "./isNotEmpty";
15
17
  export * from "./isNumber";
16
- export * from "./isObject";
17
18
  export * from "./isPerfectSquare";
18
19
  export * from "./isPrimeNumber";
19
20
  export * from "./isValueNaN";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Validate/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AAEzB,iBAAiB;AACjB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Validate/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AAEzB,iBAAiB;AACjB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
@@ -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;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 辞書型のオブジェクトかどうかを判定する
3
+ * @param object
4
+ * @returns {boolean} true: 辞書型オブジェクト, false: 辞書型オブジェクトでない
5
+ * @example isDictionaryObject({}); // true
6
+ * isDictionaryObject([]); // false
7
+ */
8
+ export const isDictionaryObject = (object) => {
9
+ return (typeof object === "object" && object !== null && !Array.isArray(object));
10
+ };
11
+ //# sourceMappingURL=isDictionaryObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isDictionaryObject.js","sourceRoot":"","sources":["../../src/Validate/isDictionaryObject.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,MAAe,EACF,EAAE;IACf,OAAO,CACL,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CACxE,CAAC;AACJ,CAAC,CAAC"}
@@ -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;
@@ -0,0 +1,24 @@
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 const isEqual = (a, b) => Object.is(a, b);
24
+ //# sourceMappingURL=isEqual.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEqual.js","sourceRoot":"","sources":["../../src/Validate/isEqual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAU,EAAE,CAAU,EAAW,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
- import { isObject } from "../../Validate/isObject";
1
+ import { isDictionaryObject } from "../../Validate/isDictionaryObject";
2
2
  export const object = (option = {}, message) => {
3
3
  return (value) => {
4
- if (!isObject(value)) {
4
+ if (!isDictionaryObject(value)) {
5
5
  return {
6
6
  validate: false,
7
7
  message: message || "",
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","sourceRoot":"","sources":["../../../src/Validate/object/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAG/C,MAAM,CAAC,MAAM,MAAM,GAAG,CAMpB,SAAY,EAAO,EACnB,OAAgB,EAChB,EAAE;IACF,OAAO,CACL,KAEC,EAKD,EAAE;QACF,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO;gBACL,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,OAAO,IAAI,EAAE;gBACtB,IAAI,EAAE,KAAK;aACZ,CAAC;QACJ,CAAC;QACD,KAAK,MAAM,QAAQ,IAAI,MAAM,EAAE,CAAC;YAC9B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;gBAChD,OAAO;oBACL,QAAQ,EAAE,KAAK;oBACf,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO;oBACxC,IAAI,EAAE,KAAK;iBACZ,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO;YACL,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,KAAK;SACZ,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["../../../src/Validate/object/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGnE,MAAM,CAAC,MAAM,MAAM,GAAG,CAMpB,SAAY,EAAO,EACnB,OAAgB,EAChB,EAAE;IACF,OAAO,CACL,KAEC,EAKD,EAAE;QACF,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/B,OAAO;gBACL,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,OAAO,IAAI,EAAE;gBACtB,IAAI,EAAE,KAAK;aACZ,CAAC;QACJ,CAAC;QACD,KAAK,MAAM,QAAQ,IAAI,MAAM,EAAE,CAAC;YAC9B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;gBAChD,OAAO;oBACL,QAAQ,EAAE,KAAK;oBACf,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO;oBACxC,IAAI,EAAE,KAAK;iBACZ,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO;YACL,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,KAAK;SACZ,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}