@powfix/core-js 0.14.5 → 0.15.0-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/constants/COORDINATE.js +6 -0
- package/dist/client/constants/CRUD.js +19 -0
- package/dist/client/constants/DATE.js +22 -0
- package/dist/client/constants/DISTANCE.js +14 -0
- package/dist/client/constants/DURATION.js +17 -0
- package/dist/client/constants/NOT_NULL.js +1 -0
- package/dist/client/constants/index.browser.d.ts +6 -0
- package/dist/client/constants/index.browser.js +6 -0
- package/dist/client/index.browser.d.ts +7 -0
- package/dist/client/index.browser.js +7 -0
- package/dist/client/interfaces/Coordinate.js +1 -0
- package/dist/client/interfaces/Point2.js +1 -0
- package/dist/{src → client}/interfaces/Point3.d.ts +1 -1
- package/dist/client/interfaces/Point3.js +1 -0
- package/dist/client/interfaces/StorageProvider.js +1 -0
- package/dist/client/interfaces/index.browser.d.ts +4 -0
- package/dist/client/interfaces/index.browser.js +4 -0
- package/dist/{src → client}/managers/SessionManager.d.ts +2 -2
- package/dist/client/managers/SessionManager.js +127 -0
- package/dist/{src → client}/managers/SessionManager.type.d.ts +1 -1
- package/dist/client/managers/SessionManager.type.js +1 -0
- package/dist/client/managers/index.browser.d.ts +2 -0
- package/dist/client/managers/index.browser.js +2 -0
- package/dist/client/scripts/base64Polyfill.js +10 -0
- package/dist/client/scripts/index.browser.d.ts +1 -0
- package/dist/client/scripts/index.browser.js +1 -0
- package/dist/client/services/index.browser.d.ts +1 -0
- package/dist/client/services/index.browser.js +1 -0
- package/dist/{src → client}/services/time/TimeService.d.ts +1 -1
- package/dist/client/services/time/TimeService.js +173 -0
- package/dist/client/services/time/TimeService.type.js +1 -0
- package/dist/client/services/time/index.d.ts +2 -0
- package/dist/client/services/time/index.js +2 -0
- package/dist/client/types/IntRage.js +1 -0
- package/dist/client/types/PartialExcept.js +1 -0
- package/dist/client/types/index.browser.d.ts +2 -0
- package/dist/client/types/index.browser.js +2 -0
- package/dist/client/utils/ArrayUtils.js +26 -0
- package/dist/client/utils/AxiosUtils.js +49 -0
- package/dist/client/utils/BooleanUtils.js +5 -0
- package/dist/client/utils/Calc.js +23 -0
- package/dist/{src → client}/utils/CoordinateUtils.d.ts +1 -1
- package/dist/client/utils/CoordinateUtils.js +38 -0
- package/dist/{src → client}/utils/DateUtils.d.ts +1 -1
- package/dist/client/utils/DateUtils.js +303 -0
- package/dist/client/utils/JuminNumberUtils.js +46 -0
- package/dist/client/utils/NumberUtils.js +21 -0
- package/dist/client/utils/ObjectIdUtils.js +20 -0
- package/dist/{src → client}/utils/Point3Utils.d.ts +1 -1
- package/dist/client/utils/Point3Utils.js +8 -0
- package/dist/client/utils/RandomUtils.js +60 -0
- package/dist/client/utils/Sequencer.js +141 -0
- package/dist/client/utils/StringUtils.js +33 -0
- package/dist/{src → client}/utils/UuidUtils.js +2 -6
- package/dist/client/utils/Validator.js +114 -0
- package/dist/client/utils/global/between.js +3 -0
- package/dist/client/utils/global/castArray.js +3 -0
- package/dist/client/utils/global/circularDistance.js +11 -0
- package/dist/client/utils/global/fallbackIfEqual.js +6 -0
- package/dist/client/utils/global/fallbackIfNull.js +4 -0
- package/dist/client/utils/global/fallbackIfUndefined.js +4 -0
- package/dist/client/utils/global/firstNonNullish.js +10 -0
- package/dist/client/utils/global/flat.js +113 -0
- package/dist/client/utils/global/index.d.ts +11 -0
- package/dist/client/utils/global/index.js +11 -0
- package/dist/client/utils/global/processFirstNonNullish.js +8 -0
- package/dist/client/utils/global/pureEnum.js +9 -0
- package/dist/client/utils/global/sleep.js +1 -0
- package/dist/client/utils/index.browser.d.ts +17 -0
- package/dist/client/utils/index.browser.js +17 -0
- package/dist/client/utils/try-catch/TryCatch.js +74 -0
- package/dist/client/utils/try-catch/index.d.ts +1 -0
- package/dist/client/utils/try-catch/index.js +1 -0
- package/dist/server/constants/COORDINATE.d.ts +7 -0
- package/dist/server/constants/CRUD.d.ts +9 -0
- package/dist/server/constants/DATE.d.ts +13 -0
- package/dist/server/constants/DISTANCE.d.ts +13 -0
- package/dist/server/constants/DURATION.d.ts +16 -0
- package/dist/server/constants/NOT_NULL.d.ts +1 -0
- package/dist/server/constants/index.browser.d.ts +6 -0
- package/dist/{src → server}/constants/index.browser.js +6 -6
- package/dist/server/constants/index.d.ts +2 -0
- package/dist/{src/interfaces → server/constants}/index.js +2 -2
- package/dist/server/constants/nodejs/index.d.ts +2 -0
- package/dist/{src → server}/constants/nodejs/index.js +2 -2
- package/dist/server/index.browser.d.ts +7 -0
- package/dist/{src → server}/index.browser.js +7 -7
- package/dist/server/index.d.ts +8 -0
- package/dist/{src → server}/index.js +8 -8
- package/dist/server/interfaces/Coordinate.d.ts +8 -0
- package/dist/server/interfaces/Point2.d.ts +4 -0
- package/dist/server/interfaces/Point3.d.ts +4 -0
- package/dist/server/interfaces/StorageProvider.d.ts +7 -0
- package/dist/server/interfaces/index.browser.d.ts +4 -0
- package/dist/{src → server}/interfaces/index.browser.js +4 -4
- package/dist/server/interfaces/index.d.ts +2 -0
- package/dist/{index.js → server/interfaces/index.js} +2 -1
- package/dist/server/interfaces/nodejs/db/index.d.ts +1 -0
- package/dist/{src/interfaces/nodejs → server/interfaces/nodejs/db}/index.js +1 -1
- package/dist/{src → server}/interfaces/nodejs/db/sequelize/Hook.d.ts +2 -2
- package/dist/{src → server}/interfaces/nodejs/db/sequelize/HookFn.d.ts +1 -1
- package/dist/server/interfaces/nodejs/db/sequelize/UpsertOptions.d.ts +4 -0
- package/dist/server/interfaces/nodejs/db/sequelize/index.d.ts +6 -0
- package/dist/server/interfaces/nodejs/db/sequelize/index.js +22 -0
- package/dist/server/interfaces/nodejs/index.d.ts +1 -0
- package/dist/{src/interfaces/nodejs/db → server/interfaces/nodejs}/index.js +1 -1
- package/dist/server/managers/SessionManager.d.ts +15 -0
- package/dist/server/managers/SessionManager.type.d.ts +9 -0
- package/dist/{src → server}/managers/TransactionManager.d.ts +2 -2
- package/dist/{src → server}/managers/TransactionManager.js +13 -13
- package/dist/{src → server}/managers/TransactionManager.types.d.ts +1 -1
- package/dist/server/managers/index.browser.d.ts +2 -0
- package/dist/{src → server}/managers/index.browser.js +2 -2
- package/dist/server/managers/index.d.ts +2 -0
- package/dist/server/managers/index.js +18 -0
- package/dist/server/scripts/base64Polyfill.d.ts +1 -0
- package/dist/server/scripts/index.browser.d.ts +1 -0
- package/dist/{src → server}/scripts/index.browser.js +1 -1
- package/dist/server/scripts/index.d.ts +1 -0
- package/dist/{src → server}/scripts/index.js +1 -1
- package/dist/server/services/index.browser.d.ts +1 -0
- package/dist/{src → server}/services/index.browser.js +1 -1
- package/dist/server/services/index.d.ts +2 -0
- package/dist/{src/constants → server/services}/index.js +2 -2
- package/dist/{src → server}/services/redis/RedisPublisher.d.ts +1 -1
- package/dist/{src → server}/services/redis/RedisPublisher.js +2 -2
- package/dist/{src → server}/services/redis/RedisSubscriber.d.ts +2 -2
- package/dist/{src → server}/services/redis/RedisSubscriber.js +5 -5
- package/dist/server/services/redis/index.d.ts +3 -0
- package/dist/{src → server}/services/redis/index.js +3 -3
- package/dist/server/services/time/TimeService.d.ts +31 -0
- package/dist/server/services/time/TimeService.type.d.ts +21 -0
- package/dist/server/services/time/index.d.ts +2 -0
- package/dist/server/services/time/index.js +18 -0
- package/dist/server/types/IntRage.d.ts +3 -0
- package/dist/server/types/PartialExcept.d.ts +1 -0
- package/dist/server/types/index.browser.d.ts +2 -0
- package/dist/{index.browser.js → server/types/index.browser.js} +2 -1
- package/dist/server/types/index.d.ts +2 -0
- package/dist/server/types/index.js +18 -0
- package/dist/server/utils/ArrayUtils.d.ts +12 -0
- package/dist/{src → server}/utils/ArrayUtils.js +2 -2
- package/dist/server/utils/AxiosUtils.d.ts +5 -0
- package/dist/server/utils/BooleanUtils.d.ts +1 -0
- package/dist/server/utils/Calc.d.ts +4 -0
- package/dist/server/utils/CoordinateUtils.d.ts +8 -0
- package/dist/server/utils/DateUtils.d.ts +24 -0
- package/dist/{src → server}/utils/DateUtils.js +17 -17
- package/dist/server/utils/JuminNumberUtils.d.ts +4 -0
- package/dist/{src → server}/utils/JuminNumberUtils.js +2 -2
- package/dist/server/utils/NumberUtils.d.ts +4 -0
- package/dist/server/utils/ObjectIdUtils.d.ts +4 -0
- package/dist/{src → server}/utils/ObjectIdUtils.js +3 -3
- package/dist/server/utils/Point3Utils.d.ts +4 -0
- package/dist/server/utils/RandomUtils.d.ts +8 -0
- package/dist/server/utils/Sequencer.d.ts +38 -0
- package/dist/{src → server}/utils/Sequencer.js +2 -2
- package/dist/server/utils/StringUtils.d.ts +5 -0
- package/dist/server/utils/UuidUtils.d.ts +14 -0
- package/dist/server/utils/UuidUtils.js +79 -0
- package/dist/server/utils/Validator.d.ts +48 -0
- package/dist/server/utils/global/between.d.ts +1 -0
- package/dist/server/utils/global/castArray.d.ts +1 -0
- package/dist/server/utils/global/circularDistance.d.ts +1 -0
- package/dist/server/utils/global/fallbackIfEqual.d.ts +1 -0
- package/dist/server/utils/global/fallbackIfNull.d.ts +1 -0
- package/dist/{src → server}/utils/global/fallbackIfNull.js +2 -2
- package/dist/server/utils/global/fallbackIfUndefined.d.ts +1 -0
- package/dist/{src → server}/utils/global/fallbackIfUndefined.js +2 -2
- package/dist/server/utils/global/firstNonNullish.d.ts +1 -0
- package/dist/server/utils/global/flat.d.ts +14 -0
- package/dist/server/utils/global/index.d.ts +11 -0
- package/dist/server/utils/global/index.js +27 -0
- package/dist/server/utils/global/processFirstNonNullish.d.ts +1 -0
- package/dist/{src → server}/utils/global/processFirstNonNullish.js +2 -2
- package/dist/server/utils/global/pureEnum.d.ts +8 -0
- package/dist/server/utils/global/sleep.d.ts +1 -0
- package/dist/server/utils/index.browser.d.ts +17 -0
- package/dist/server/utils/index.browser.js +33 -0
- package/dist/server/utils/index.d.ts +2 -0
- package/dist/server/utils/index.js +18 -0
- package/dist/{src → server}/utils/nodejs/HookUtils.d.ts +1 -1
- package/dist/server/utils/nodejs/index.d.ts +2 -0
- package/dist/{src → server}/utils/nodejs/index.js +3 -3
- package/dist/{src → server}/utils/nodejs/sequelize-utils/SequelizeUtils.d.ts +1 -1
- package/dist/{src → server}/utils/nodejs/sequelize-utils/SequelizeUtils.js +8 -8
- package/dist/server/utils/nodejs/sequelize-utils/index.d.ts +1 -0
- package/dist/{src → server}/utils/nodejs/sequelize-utils/index.js +2 -2
- package/dist/server/utils/try-catch/TryCatch.d.ts +24 -0
- package/dist/server/utils/try-catch/index.d.ts +1 -0
- package/dist/{src → server}/utils/try-catch/index.js +1 -1
- package/package.json +56 -52
- package/dist/index.browser.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/src/constants/index.browser.d.ts +0 -6
- package/dist/src/constants/index.d.ts +0 -2
- package/dist/src/constants/nodejs/index.d.ts +0 -2
- package/dist/src/index.browser.d.ts +0 -7
- package/dist/src/index.d.ts +0 -8
- package/dist/src/interfaces/index.browser.d.ts +0 -4
- package/dist/src/interfaces/index.d.ts +0 -2
- package/dist/src/interfaces/nodejs/db/index.d.ts +0 -1
- package/dist/src/interfaces/nodejs/db/sequelize/UpsertOptions.d.ts +0 -4
- package/dist/src/interfaces/nodejs/db/sequelize/index.d.ts +0 -6
- package/dist/src/interfaces/nodejs/db/sequelize/index.js +0 -22
- package/dist/src/interfaces/nodejs/index.d.ts +0 -1
- package/dist/src/managers/index.browser.d.ts +0 -2
- package/dist/src/managers/index.d.ts +0 -2
- package/dist/src/managers/index.js +0 -18
- package/dist/src/scripts/index.browser.d.ts +0 -1
- package/dist/src/scripts/index.d.ts +0 -1
- package/dist/src/services/index.browser.d.ts +0 -1
- package/dist/src/services/index.d.ts +0 -2
- package/dist/src/services/index.js +0 -18
- package/dist/src/services/redis/index.d.ts +0 -3
- package/dist/src/services/time/index.d.ts +0 -2
- package/dist/src/services/time/index.js +0 -18
- package/dist/src/types/index.browser.d.ts +0 -2
- package/dist/src/types/index.browser.js +0 -18
- package/dist/src/types/index.d.ts +0 -2
- package/dist/src/types/index.js +0 -18
- package/dist/src/utils/global/index.d.ts +0 -11
- package/dist/src/utils/global/index.js +0 -27
- package/dist/src/utils/index.browser.d.ts +0 -17
- package/dist/src/utils/index.browser.js +0 -33
- package/dist/src/utils/index.d.ts +0 -2
- package/dist/src/utils/index.js +0 -18
- package/dist/src/utils/nodejs/index.d.ts +0 -2
- package/dist/src/utils/nodejs/sequelize-utils/index.d.ts +0 -1
- package/dist/src/utils/try-catch/index.d.ts +0 -1
- /package/dist/{src → client}/constants/COORDINATE.d.ts +0 -0
- /package/dist/{src → client}/constants/CRUD.d.ts +0 -0
- /package/dist/{src → client}/constants/DATE.d.ts +0 -0
- /package/dist/{src → client}/constants/DISTANCE.d.ts +0 -0
- /package/dist/{src → client}/constants/DURATION.d.ts +0 -0
- /package/dist/{src → client}/constants/NOT_NULL.d.ts +0 -0
- /package/dist/{src → client}/interfaces/Coordinate.d.ts +0 -0
- /package/dist/{src → client}/interfaces/Point2.d.ts +0 -0
- /package/dist/{src → client}/interfaces/StorageProvider.d.ts +0 -0
- /package/dist/{src → client}/scripts/base64Polyfill.d.ts +0 -0
- /package/dist/{src → client}/services/time/TimeService.type.d.ts +0 -0
- /package/dist/{src → client}/types/IntRage.d.ts +0 -0
- /package/dist/{src → client}/types/PartialExcept.d.ts +0 -0
- /package/dist/{src → client}/utils/ArrayUtils.d.ts +0 -0
- /package/dist/{src → client}/utils/AxiosUtils.d.ts +0 -0
- /package/dist/{src → client}/utils/BooleanUtils.d.ts +0 -0
- /package/dist/{src → client}/utils/Calc.d.ts +0 -0
- /package/dist/{src → client}/utils/JuminNumberUtils.d.ts +0 -0
- /package/dist/{src → client}/utils/NumberUtils.d.ts +0 -0
- /package/dist/{src → client}/utils/ObjectIdUtils.d.ts +0 -0
- /package/dist/{src → client}/utils/RandomUtils.d.ts +0 -0
- /package/dist/{src → client}/utils/Sequencer.d.ts +0 -0
- /package/dist/{src → client}/utils/StringUtils.d.ts +0 -0
- /package/dist/{src → client}/utils/UuidUtils.d.ts +0 -0
- /package/dist/{src → client}/utils/Validator.d.ts +0 -0
- /package/dist/{src → client}/utils/global/between.d.ts +0 -0
- /package/dist/{src → client}/utils/global/castArray.d.ts +0 -0
- /package/dist/{src → client}/utils/global/circularDistance.d.ts +0 -0
- /package/dist/{src → client}/utils/global/fallbackIfEqual.d.ts +0 -0
- /package/dist/{src → client}/utils/global/fallbackIfNull.d.ts +0 -0
- /package/dist/{src → client}/utils/global/fallbackIfUndefined.d.ts +0 -0
- /package/dist/{src → client}/utils/global/firstNonNullish.d.ts +0 -0
- /package/dist/{src → client}/utils/global/flat.d.ts +0 -0
- /package/dist/{src → client}/utils/global/processFirstNonNullish.d.ts +0 -0
- /package/dist/{src → client}/utils/global/pureEnum.d.ts +0 -0
- /package/dist/{src → client}/utils/global/sleep.d.ts +0 -0
- /package/dist/{src → client}/utils/try-catch/TryCatch.d.ts +0 -0
- /package/dist/{src → server}/constants/COORDINATE.js +0 -0
- /package/dist/{src → server}/constants/CRUD.js +0 -0
- /package/dist/{src → server}/constants/DATE.js +0 -0
- /package/dist/{src → server}/constants/DISTANCE.js +0 -0
- /package/dist/{src → server}/constants/DURATION.js +0 -0
- /package/dist/{src → server}/constants/NOT_NULL.js +0 -0
- /package/dist/{src → server}/constants/nodejs/TransactionManagerLogLevel.d.ts +0 -0
- /package/dist/{src → server}/constants/nodejs/TransactionManagerLogLevel.js +0 -0
- /package/dist/{src → server}/constants/nodejs/TransactionManagerTimeoutAction.d.ts +0 -0
- /package/dist/{src → server}/constants/nodejs/TransactionManagerTimeoutAction.js +0 -0
- /package/dist/{src → server}/interfaces/Coordinate.js +0 -0
- /package/dist/{src → server}/interfaces/Point2.js +0 -0
- /package/dist/{src → server}/interfaces/Point3.js +0 -0
- /package/dist/{src → server}/interfaces/StorageProvider.js +0 -0
- /package/dist/{src → server}/interfaces/nodejs/db/sequelize/Hook.js +0 -0
- /package/dist/{src → server}/interfaces/nodejs/db/sequelize/HookFn.js +0 -0
- /package/dist/{src → server}/interfaces/nodejs/db/sequelize/HookType.d.ts +0 -0
- /package/dist/{src → server}/interfaces/nodejs/db/sequelize/HookType.js +0 -0
- /package/dist/{src → server}/interfaces/nodejs/db/sequelize/ReloadOption.d.ts +0 -0
- /package/dist/{src → server}/interfaces/nodejs/db/sequelize/ReloadOption.js +0 -0
- /package/dist/{src → server}/interfaces/nodejs/db/sequelize/TransactionOption.d.ts +0 -0
- /package/dist/{src → server}/interfaces/nodejs/db/sequelize/TransactionOption.js +0 -0
- /package/dist/{src → server}/interfaces/nodejs/db/sequelize/UpsertOptions.js +0 -0
- /package/dist/{src → server}/managers/SessionManager.js +0 -0
- /package/dist/{src → server}/managers/SessionManager.type.js +0 -0
- /package/dist/{src → server}/managers/TransactionManager.types.js +0 -0
- /package/dist/{src → server}/scripts/base64Polyfill.js +0 -0
- /package/dist/{src → server}/services/redis/RedisClient.d.ts +0 -0
- /package/dist/{src → server}/services/redis/RedisClient.js +0 -0
- /package/dist/{src → server}/services/time/TimeService.js +0 -0
- /package/dist/{src → server}/services/time/TimeService.type.js +0 -0
- /package/dist/{src → server}/types/IntRage.js +0 -0
- /package/dist/{src → server}/types/PartialExcept.js +0 -0
- /package/dist/{src → server}/types/UpsertResult.d.ts +0 -0
- /package/dist/{src → server}/types/UpsertResult.js +0 -0
- /package/dist/{src → server}/utils/AxiosUtils.js +0 -0
- /package/dist/{src → server}/utils/BooleanUtils.js +0 -0
- /package/dist/{src → server}/utils/Calc.js +0 -0
- /package/dist/{src → server}/utils/CoordinateUtils.js +0 -0
- /package/dist/{src → server}/utils/NumberUtils.js +0 -0
- /package/dist/{src → server}/utils/Point3Utils.js +0 -0
- /package/dist/{src → server}/utils/RandomUtils.js +0 -0
- /package/dist/{src → server}/utils/StringUtils.js +0 -0
- /package/dist/{src → server}/utils/Validator.js +0 -0
- /package/dist/{src → server}/utils/global/between.js +0 -0
- /package/dist/{src → server}/utils/global/castArray.js +0 -0
- /package/dist/{src → server}/utils/global/circularDistance.js +0 -0
- /package/dist/{src → server}/utils/global/fallbackIfEqual.js +0 -0
- /package/dist/{src → server}/utils/global/firstNonNullish.js +0 -0
- /package/dist/{src → server}/utils/global/flat.js +0 -0
- /package/dist/{src → server}/utils/global/pureEnum.js +0 -0
- /package/dist/{src → server}/utils/global/sleep.js +0 -0
- /package/dist/{src → server}/utils/nodejs/HookUtils.js +0 -0
- /package/dist/{src → server}/utils/nodejs/sequelize-utils/types.d.ts +0 -0
- /package/dist/{src → server}/utils/nodejs/sequelize-utils/types.js +0 -0
- /package/dist/{src → server}/utils/try-catch/TryCatch.js +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export class StringUtils {
|
|
2
|
+
static numberWithCommas(x) {
|
|
3
|
+
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
4
|
+
}
|
|
5
|
+
static getByte(s) {
|
|
6
|
+
const getByteLength = (decimal) => {
|
|
7
|
+
const LINE_FEED = 10;
|
|
8
|
+
return (decimal >> 7) || (LINE_FEED === decimal) ? 2 : 1;
|
|
9
|
+
};
|
|
10
|
+
return s
|
|
11
|
+
.split('')
|
|
12
|
+
.map((s) => s.charCodeAt(0))
|
|
13
|
+
.reduce((prev, unicodeDecimalValue) => prev + getByteLength(unicodeDecimalValue), 0);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
StringUtils.levenshteinDistance = (str1 = '', str2 = '') => {
|
|
17
|
+
const track = Array(str2.length + 1).fill(null).map(() => Array(str1.length + 1).fill(null));
|
|
18
|
+
for (let i = 0; i <= str1.length; i += 1) {
|
|
19
|
+
track[0][i] = i;
|
|
20
|
+
}
|
|
21
|
+
for (let j = 0; j <= str2.length; j += 1) {
|
|
22
|
+
track[j][0] = j;
|
|
23
|
+
}
|
|
24
|
+
for (let j = 1; j <= str2.length; j += 1) {
|
|
25
|
+
for (let i = 1; i <= str1.length; i += 1) {
|
|
26
|
+
const indicator = str1[i - 1] === str2[j - 1] ? 0 : 1;
|
|
27
|
+
track[j][i] = Math.min(track[j][i - 1] + 1, // deletion
|
|
28
|
+
track[j - 1][i] + 1, // insertion
|
|
29
|
+
track[j - 1][i - 1] + indicator);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return track[str2.length][str1.length];
|
|
33
|
+
};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UuidUtils = void 0;
|
|
4
|
-
const uuid = require('uuid');
|
|
1
|
+
import * as uuid from "uuid";
|
|
5
2
|
function binaryToString(binary) {
|
|
6
3
|
return Buffer.from(binary).toString('hex');
|
|
7
4
|
}
|
|
8
|
-
class UuidUtils {
|
|
5
|
+
export class UuidUtils {
|
|
9
6
|
static v4() {
|
|
10
7
|
return uuid.v4();
|
|
11
8
|
}
|
|
@@ -43,4 +40,3 @@ class UuidUtils {
|
|
|
43
40
|
return RegExp(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/i).test(uuid);
|
|
44
41
|
}
|
|
45
42
|
}
|
|
46
|
-
exports.UuidUtils = UuidUtils;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export class Validator {
|
|
2
|
+
static validate(value, options) {
|
|
3
|
+
value = value || '';
|
|
4
|
+
const validations = [];
|
|
5
|
+
const errors = [];
|
|
6
|
+
const { length } = value;
|
|
7
|
+
const spaceCount = (value.match(/\s/g) || []).length;
|
|
8
|
+
const numberCount = (value.match(/\d/g) || []).length;
|
|
9
|
+
const alphabetCount = (value.match(/[A-Za-z]/g) || []).length;
|
|
10
|
+
const alphabetLowerCaseCount = (value.match(/[a-z]/g) || []).length;
|
|
11
|
+
const alphabetUpperCaseCount = (value.match(/[A-Z]/g) || []).length;
|
|
12
|
+
const specialCount = (value.match(/[~`!@#$%^&*()\-+={[}\]|\\:;"'<,>.?/]/g) || []).length;
|
|
13
|
+
const startsWithNumber = /^\d/.test(value);
|
|
14
|
+
const startsWithAlphabet = /^[A-Za-z]/.test(value);
|
|
15
|
+
const startsWithSpecialCharacter = /^[~`!@#$%^&*()\-+={[}\]|\\:;"'<,>.?/]/.test(value);
|
|
16
|
+
// 최소 길이
|
|
17
|
+
if (options.minLength !== undefined && options.minLength > -1) {
|
|
18
|
+
validations.push(Validator.VALIDATION.MIN_LENGTH);
|
|
19
|
+
if (length < options.minLength) {
|
|
20
|
+
errors.push(Validator.VALIDATION.MIN_LENGTH);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
// 최대 길이
|
|
24
|
+
if (options.maxLength !== undefined && options.maxLength > -1) {
|
|
25
|
+
validations.push(Validator.VALIDATION.MAX_LENGTH);
|
|
26
|
+
if (length > options.maxLength) {
|
|
27
|
+
errors.push(Validator.VALIDATION.MAX_LENGTH);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const validateMin = (option, value, validation) => {
|
|
31
|
+
if (option !== undefined && option > -1) {
|
|
32
|
+
validations.push(validation);
|
|
33
|
+
if (value < option) {
|
|
34
|
+
errors.push(validation);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const validateMax = (option, value, validation) => {
|
|
39
|
+
if (option !== undefined && option > -1) {
|
|
40
|
+
validations.push(validation);
|
|
41
|
+
if (value > option) {
|
|
42
|
+
errors.push(validation);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
// 공백 개수
|
|
47
|
+
validateMin(options.spaceMinCount, spaceCount, Validator.VALIDATION.SPACE_MIN_COUNT);
|
|
48
|
+
validateMax(options.spaceMaxCount, spaceCount, Validator.VALIDATION.SPACE_MAX_COUNT);
|
|
49
|
+
// 숫자 개수
|
|
50
|
+
validateMin(options.numberMinCount, numberCount, Validator.VALIDATION.NUMBER_MIN_COUNT);
|
|
51
|
+
validateMax(options.numberMaxCount, numberCount, Validator.VALIDATION.NUMBER_MAX_COUNT);
|
|
52
|
+
// 알파벳 개수
|
|
53
|
+
validateMin(options.alphabetMinCount, alphabetCount, Validator.VALIDATION.ALPHABET_MIN_COUNT);
|
|
54
|
+
validateMax(options.alphabetMaxCount, alphabetCount, Validator.VALIDATION.ALPHABET_MAX_COUNT);
|
|
55
|
+
// 알파벳(소문자) 개수
|
|
56
|
+
validateMin(options.alphabetLowerCaseMinCount, alphabetLowerCaseCount, Validator.VALIDATION.ALPHABET_LOWER_CASE_MIN_COUNT);
|
|
57
|
+
validateMax(options.alphabetLowerCaseMaxCount, alphabetLowerCaseCount, Validator.VALIDATION.ALPHABET_LOWER_CASE_MAX_COUNT);
|
|
58
|
+
// 알파벳(대문자) 개수
|
|
59
|
+
validateMin(options.alphabetUpperCaseMinCount, alphabetUpperCaseCount, Validator.VALIDATION.ALPHABET_UPPER_CASE_MIN_COUNT);
|
|
60
|
+
validateMax(options.alphabetUpperCaseMaxCount, alphabetUpperCaseCount, Validator.VALIDATION.ALPHABET_UPPER_CASE_MAX_COUNT);
|
|
61
|
+
// 특수문자 개수
|
|
62
|
+
validateMin(options.specialCharacterMinCount, specialCount, Validator.VALIDATION.SPECIAL_CHARACTER_MIN_COUNT);
|
|
63
|
+
validateMax(options.specialCharacterMaxCount, specialCount, Validator.VALIDATION.SPECIAL_CHARACTER_MAX_COUNT);
|
|
64
|
+
// 숫자로 시작
|
|
65
|
+
if (options.startsWithNumber) {
|
|
66
|
+
validations.push(Validator.VALIDATION.STARTS_WITH_NUMBER);
|
|
67
|
+
if (!startsWithNumber) {
|
|
68
|
+
errors.push(Validator.VALIDATION.STARTS_WITH_NUMBER);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
// 영문으로 시작
|
|
72
|
+
if (options.startsWithAlphabet) {
|
|
73
|
+
validations.push(Validator.VALIDATION.STARTS_WITH_ALPHABET);
|
|
74
|
+
if (!startsWithAlphabet) {
|
|
75
|
+
errors.push(Validator.VALIDATION.STARTS_WITH_ALPHABET);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
// 특수문자로 시작
|
|
79
|
+
if (options.startsWithSpecialCharacter) {
|
|
80
|
+
validations.push(Validator.VALIDATION.STARTS_WITH_SPECIAL_CHARACTER);
|
|
81
|
+
if (!startsWithSpecialCharacter) {
|
|
82
|
+
errors.push(Validator.VALIDATION.STARTS_WITH_SPECIAL_CHARACTER);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
result: errors.length === 0,
|
|
87
|
+
validations,
|
|
88
|
+
passes: validations.filter(e => !errors.includes(e)),
|
|
89
|
+
errors,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
(function (Validator) {
|
|
94
|
+
let VALIDATION;
|
|
95
|
+
(function (VALIDATION) {
|
|
96
|
+
VALIDATION["MIN_LENGTH"] = "MIN_LENGTH";
|
|
97
|
+
VALIDATION["MAX_LENGTH"] = "MAX_LENGTH";
|
|
98
|
+
VALIDATION["SPACE_MIN_COUNT"] = "SPACE_MIN_COUNT";
|
|
99
|
+
VALIDATION["SPACE_MAX_COUNT"] = "SPACE_MAX_COUNT";
|
|
100
|
+
VALIDATION["NUMBER_MIN_COUNT"] = "NUMBER_MIN_COUNT";
|
|
101
|
+
VALIDATION["NUMBER_MAX_COUNT"] = "NUMBER_MAX_COUNT";
|
|
102
|
+
VALIDATION["ALPHABET_MIN_COUNT"] = "ALPHABET_MIN_COUNT";
|
|
103
|
+
VALIDATION["ALPHABET_MAX_COUNT"] = "ALPHABET_MAX_COUNT";
|
|
104
|
+
VALIDATION["ALPHABET_LOWER_CASE_MIN_COUNT"] = "ALPHABET_LOWER_CASE_MIN_COUNT";
|
|
105
|
+
VALIDATION["ALPHABET_LOWER_CASE_MAX_COUNT"] = "ALPHABET_LOWER_CASE_MAX_COUNT";
|
|
106
|
+
VALIDATION["ALPHABET_UPPER_CASE_MIN_COUNT"] = "ALPHABET_UPPER_CASE_MIN_COUNT";
|
|
107
|
+
VALIDATION["ALPHABET_UPPER_CASE_MAX_COUNT"] = "ALPHABET_UPPER_CASE_MAX_COUNT";
|
|
108
|
+
VALIDATION["SPECIAL_CHARACTER_MIN_COUNT"] = "SPECIAL_CHARACTER_MIN_COUNT";
|
|
109
|
+
VALIDATION["SPECIAL_CHARACTER_MAX_COUNT"] = "SPECIAL_CHARACTER_MAX_COUNT";
|
|
110
|
+
VALIDATION["STARTS_WITH_ALPHABET"] = "STARTS_WITH_ALPHABET";
|
|
111
|
+
VALIDATION["STARTS_WITH_NUMBER"] = "STARTS_WITH_NUMBER";
|
|
112
|
+
VALIDATION["STARTS_WITH_SPECIAL_CHARACTER"] = "STARTS_WITH_SPECIAL_CHARACTER";
|
|
113
|
+
})(VALIDATION = Validator.VALIDATION || (Validator.VALIDATION = {}));
|
|
114
|
+
})(Validator || (Validator = {}));
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
// flat.ts
|
|
2
|
+
function isBuffer(obj) {
|
|
3
|
+
return !!(obj &&
|
|
4
|
+
obj.constructor &&
|
|
5
|
+
typeof obj.constructor.isBuffer === 'function' &&
|
|
6
|
+
obj.constructor.isBuffer(obj));
|
|
7
|
+
}
|
|
8
|
+
function keyIdentity(key) {
|
|
9
|
+
return key;
|
|
10
|
+
}
|
|
11
|
+
export function flatten(target, opts = {}) {
|
|
12
|
+
const delimiter = opts.delimiter || '.';
|
|
13
|
+
const maxDepth = opts.maxDepth;
|
|
14
|
+
const transformKey = opts.transformKey || keyIdentity;
|
|
15
|
+
const output = {};
|
|
16
|
+
function step(object, prev, currentDepth = 1) {
|
|
17
|
+
Object.keys(object).forEach((key) => {
|
|
18
|
+
const value = object[key];
|
|
19
|
+
const isarray = opts.safe && Array.isArray(value);
|
|
20
|
+
const type = Object.prototype.toString.call(value);
|
|
21
|
+
const isbuffer = isBuffer(value);
|
|
22
|
+
const isobject = type === '[object Object]' || type === '[object Array]';
|
|
23
|
+
const newKey = prev
|
|
24
|
+
? `${prev}${delimiter}${transformKey(key)}`
|
|
25
|
+
: transformKey(key);
|
|
26
|
+
if (!isarray &&
|
|
27
|
+
!isbuffer &&
|
|
28
|
+
isobject &&
|
|
29
|
+
Object.keys(value).length &&
|
|
30
|
+
(!maxDepth || currentDepth < maxDepth)) {
|
|
31
|
+
return step(value, newKey, currentDepth + 1);
|
|
32
|
+
}
|
|
33
|
+
output[newKey] = value;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
step(target);
|
|
37
|
+
return output;
|
|
38
|
+
}
|
|
39
|
+
export function unflatten(target, opts = {}) {
|
|
40
|
+
const delimiter = opts.delimiter || '.';
|
|
41
|
+
const overwrite = opts.overwrite || false;
|
|
42
|
+
const transformKey = opts.transformKey || keyIdentity;
|
|
43
|
+
const result = {};
|
|
44
|
+
if (isBuffer(target) ||
|
|
45
|
+
Object.prototype.toString.call(target) !== '[object Object]') {
|
|
46
|
+
return target;
|
|
47
|
+
}
|
|
48
|
+
function getkey(key) {
|
|
49
|
+
const parsedKey = Number(key);
|
|
50
|
+
return isNaN(parsedKey) || key.indexOf('.') !== -1 || opts.object
|
|
51
|
+
? key
|
|
52
|
+
: parsedKey;
|
|
53
|
+
}
|
|
54
|
+
function addKeys(keyPrefix, recipient, target) {
|
|
55
|
+
return Object.keys(target).reduce((res, key) => {
|
|
56
|
+
res[`${keyPrefix}${delimiter}${key}`] = target[key];
|
|
57
|
+
return res;
|
|
58
|
+
}, recipient);
|
|
59
|
+
}
|
|
60
|
+
function isEmpty(val) {
|
|
61
|
+
const type = Object.prototype.toString.call(val);
|
|
62
|
+
const isArray = type === '[object Array]';
|
|
63
|
+
const isObject = type === '[object Object]';
|
|
64
|
+
if (!val) {
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
else if (isArray) {
|
|
68
|
+
return !val.length;
|
|
69
|
+
}
|
|
70
|
+
else if (isObject) {
|
|
71
|
+
return !Object.keys(val).length;
|
|
72
|
+
}
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
const target2 = Object.keys(target).reduce((res, key) => {
|
|
76
|
+
const value = target[key];
|
|
77
|
+
const type = Object.prototype.toString.call(value);
|
|
78
|
+
const isObject = type === '[object Object]' || type === '[object Array]';
|
|
79
|
+
if (!isObject || isEmpty(value)) {
|
|
80
|
+
res[key] = value;
|
|
81
|
+
return res;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
return addKeys(key, res, flatten(value, opts));
|
|
85
|
+
}
|
|
86
|
+
}, {});
|
|
87
|
+
Object.keys(target2).forEach((key) => {
|
|
88
|
+
const split = key.split(delimiter).map(transformKey);
|
|
89
|
+
let key1 = getkey(split.shift());
|
|
90
|
+
let key2 = getkey(split[0]);
|
|
91
|
+
let recipient = result;
|
|
92
|
+
while (key2 !== undefined) {
|
|
93
|
+
if (key1 === '__proto__')
|
|
94
|
+
return;
|
|
95
|
+
const type = Object.prototype.toString.call(recipient[key1]);
|
|
96
|
+
const isobject = type === '[object Object]' || type === '[object Array]';
|
|
97
|
+
if (!overwrite && !isobject && typeof recipient[key1] !== 'undefined') {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if ((overwrite && !isobject) || (!overwrite && recipient[key1] == null)) {
|
|
101
|
+
recipient[key1] =
|
|
102
|
+
typeof key2 === 'number' && !opts.object ? [] : {};
|
|
103
|
+
}
|
|
104
|
+
recipient = recipient[key1];
|
|
105
|
+
if (split.length > 0) {
|
|
106
|
+
key1 = getkey(split.shift());
|
|
107
|
+
key2 = getkey(split[0]);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
recipient[key1] = unflatten(target2[key], opts);
|
|
111
|
+
});
|
|
112
|
+
return result;
|
|
113
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './between.js';
|
|
2
|
+
export * from './castArray.js';
|
|
3
|
+
export * from './circularDistance.js';
|
|
4
|
+
export * from './sleep.js';
|
|
5
|
+
export * from './fallbackIfEqual.js';
|
|
6
|
+
export * from './fallbackIfNull.js';
|
|
7
|
+
export * from './fallbackIfUndefined.js';
|
|
8
|
+
export * from './firstNonNullish.js';
|
|
9
|
+
export * from './flat.js';
|
|
10
|
+
export * from './processFirstNonNullish.js';
|
|
11
|
+
export * from './pureEnum.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './between.js';
|
|
2
|
+
export * from './castArray.js';
|
|
3
|
+
export * from './circularDistance.js';
|
|
4
|
+
export * from './sleep.js';
|
|
5
|
+
export * from './fallbackIfEqual.js';
|
|
6
|
+
export * from './fallbackIfNull.js';
|
|
7
|
+
export * from './fallbackIfUndefined.js';
|
|
8
|
+
export * from './firstNonNullish.js';
|
|
9
|
+
export * from './flat.js';
|
|
10
|
+
export * from './processFirstNonNullish.js';
|
|
11
|
+
export * from './pureEnum.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function pureEnum(e) {
|
|
2
|
+
return Object.entries(e).filter(([key, value]) => !/^-?\d+$/g.test(key) && typeof value !== 'function');
|
|
3
|
+
}
|
|
4
|
+
export function pureEnumKeys(e) {
|
|
5
|
+
return pureEnum(e).map(([key]) => key);
|
|
6
|
+
}
|
|
7
|
+
export function pureEnumValues(e) {
|
|
8
|
+
return pureEnum(e).map(([, value]) => value);
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './global/index.js';
|
|
2
|
+
export * from './ArrayUtils.js';
|
|
3
|
+
export * from './AxiosUtils.js';
|
|
4
|
+
export * from './StringUtils.js';
|
|
5
|
+
export * from './UuidUtils.js';
|
|
6
|
+
export * from './BooleanUtils.js';
|
|
7
|
+
export * from './Calc.js';
|
|
8
|
+
export * from './CoordinateUtils.js';
|
|
9
|
+
export * from './DateUtils.js';
|
|
10
|
+
export * from './NumberUtils.js';
|
|
11
|
+
export * from './ObjectIdUtils.js';
|
|
12
|
+
export * from './Point3Utils.js';
|
|
13
|
+
export * from './RandomUtils.js';
|
|
14
|
+
export * from './Validator.js';
|
|
15
|
+
export * from './JuminNumberUtils.js';
|
|
16
|
+
export * from './Sequencer.js';
|
|
17
|
+
export * from './try-catch/index.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './global/index.js';
|
|
2
|
+
export * from './ArrayUtils.js';
|
|
3
|
+
export * from './AxiosUtils.js';
|
|
4
|
+
export * from './StringUtils.js';
|
|
5
|
+
export * from './UuidUtils.js';
|
|
6
|
+
export * from './BooleanUtils.js';
|
|
7
|
+
export * from './Calc.js';
|
|
8
|
+
export * from './CoordinateUtils.js';
|
|
9
|
+
export * from './DateUtils.js';
|
|
10
|
+
export * from './NumberUtils.js';
|
|
11
|
+
export * from './ObjectIdUtils.js';
|
|
12
|
+
export * from './Point3Utils.js';
|
|
13
|
+
export * from './RandomUtils.js';
|
|
14
|
+
export * from './Validator.js';
|
|
15
|
+
export * from './JuminNumberUtils.js';
|
|
16
|
+
export * from './Sequencer.js';
|
|
17
|
+
export * from './try-catch/index.js';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Provides a utility class for handling synchronous and asynchronous operations with a consistent try-catch pattern.
|
|
12
|
+
* It returns a tuple where the first element is the error (or null on success) and the second element is the result (or undefined on error).
|
|
13
|
+
*/
|
|
14
|
+
export class TryCatch {
|
|
15
|
+
/**
|
|
16
|
+
* Executes a synchronous function within a try-catch block.
|
|
17
|
+
* @template T The return type of the function.
|
|
18
|
+
* @template E The type of the error that might be thrown (defaults to Error).
|
|
19
|
+
* @param fn The synchronous function to execute.
|
|
20
|
+
*@param disableLogging console.error is default way of logging on error. You can disable it by setting it true
|
|
21
|
+
* @returns A tuple containing the result of the function and an error (null if successful).
|
|
22
|
+
*/
|
|
23
|
+
static function(fn, disableLogging) {
|
|
24
|
+
try {
|
|
25
|
+
return [
|
|
26
|
+
null,
|
|
27
|
+
fn(),
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
catch (e) {
|
|
31
|
+
if (!disableLogging) {
|
|
32
|
+
console.error("ERROR in TryCatch: ", e);
|
|
33
|
+
}
|
|
34
|
+
if (e == null) {
|
|
35
|
+
e = new Error("Unknown error");
|
|
36
|
+
}
|
|
37
|
+
return [
|
|
38
|
+
e,
|
|
39
|
+
undefined,
|
|
40
|
+
];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Executes an asynchronous function (Promise) within a try-catch block.
|
|
45
|
+
* @template T The resolved value type of the Promise.
|
|
46
|
+
* @template E The type of the error that might be rejected (defaults to Error).
|
|
47
|
+
* @param fn The Promise to await.
|
|
48
|
+
* @param disableLogging console.error is default way of logging on error. You can disable it by setting it true
|
|
49
|
+
* @returns A tuple containing the resolved value of the Promise and an error (null if successful).
|
|
50
|
+
*/
|
|
51
|
+
static asyncFunction(fn, disableLogging) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
try {
|
|
54
|
+
const data = yield fn;
|
|
55
|
+
return [
|
|
56
|
+
null,
|
|
57
|
+
data,
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
catch (e) {
|
|
61
|
+
if (!disableLogging) {
|
|
62
|
+
console.error("ERROR in TryCatch: ", e);
|
|
63
|
+
}
|
|
64
|
+
if (e == null) {
|
|
65
|
+
e = new Error("Unknown error");
|
|
66
|
+
}
|
|
67
|
+
return [
|
|
68
|
+
e,
|
|
69
|
+
undefined,
|
|
70
|
+
];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TryCatch.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TryCatch.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class DISTANCE {
|
|
2
|
+
}
|
|
3
|
+
export declare namespace DISTANCE {
|
|
4
|
+
enum UNIT {
|
|
5
|
+
FEET = "FEET",
|
|
6
|
+
KILOMETERS = "KILOMETERS",
|
|
7
|
+
MILLIMETERS = "MILLIMETERS",
|
|
8
|
+
CENTIMETERS = "CENTIMETERS",
|
|
9
|
+
METERS = "METERS",
|
|
10
|
+
MILES = "MILES",
|
|
11
|
+
YARDS = "YARDS"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class DURATION {
|
|
2
|
+
}
|
|
3
|
+
export declare namespace DURATION {
|
|
4
|
+
enum UNIT {
|
|
5
|
+
NANOSECONDS = "NANOSECONDS",
|
|
6
|
+
MICROSECONDS = "MICROSECONDS",
|
|
7
|
+
MILLISECONDS = "MILLISECONDS",
|
|
8
|
+
SECONDS = "SECONDS",
|
|
9
|
+
MINUTES = "MINUTES",
|
|
10
|
+
HOURS = "HOURS",
|
|
11
|
+
DAYS = "DAYS",
|
|
12
|
+
YEARS = "YEARS",
|
|
13
|
+
DECADES = "DECADES",
|
|
14
|
+
CENTURIES = "CENTURIES"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NOT_NULL: unique symbol;
|
|
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./COORDINATE"), exports);
|
|
18
|
-
__exportStar(require("./CRUD"), exports);
|
|
19
|
-
__exportStar(require("./DATE"), exports);
|
|
20
|
-
__exportStar(require("./DISTANCE"), exports);
|
|
21
|
-
__exportStar(require("./DURATION"), exports);
|
|
22
|
-
__exportStar(require("./NOT_NULL"), exports);
|
|
17
|
+
__exportStar(require("./COORDINATE.js"), exports);
|
|
18
|
+
__exportStar(require("./CRUD.js"), exports);
|
|
19
|
+
__exportStar(require("./DATE.js"), exports);
|
|
20
|
+
__exportStar(require("./DISTANCE.js"), exports);
|
|
21
|
+
__exportStar(require("./DURATION.js"), exports);
|
|
22
|
+
__exportStar(require("./NOT_NULL.js"), exports);
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./index.browser"), exports);
|
|
18
|
-
__exportStar(require("./nodejs"), exports);
|
|
17
|
+
__exportStar(require("./index.browser.js"), exports);
|
|
18
|
+
__exportStar(require("./nodejs/index.js"), exports);
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./TransactionManagerLogLevel"), exports);
|
|
18
|
-
__exportStar(require("./TransactionManagerTimeoutAction"), exports);
|
|
17
|
+
__exportStar(require("./TransactionManagerLogLevel.js"), exports);
|
|
18
|
+
__exportStar(require("./TransactionManagerTimeoutAction.js"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './constants/index.browser.js';
|
|
2
|
+
export * from './interfaces/index.browser.js';
|
|
3
|
+
export * from './managers/index.browser.js';
|
|
4
|
+
export * from './scripts/index.browser.js';
|
|
5
|
+
export * from './services/index.browser.js';
|
|
6
|
+
export * from './types/index.browser.js';
|
|
7
|
+
export * from './utils/index.browser.js';
|
|
@@ -14,10 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./constants/index.browser"), exports);
|
|
18
|
-
__exportStar(require("./interfaces/index.browser"), exports);
|
|
19
|
-
__exportStar(require("./managers/index.browser"), exports);
|
|
20
|
-
__exportStar(require("./scripts/index.browser"), exports);
|
|
21
|
-
__exportStar(require("./services/index.browser"), exports);
|
|
22
|
-
__exportStar(require("./types/index.browser"), exports);
|
|
23
|
-
__exportStar(require("./utils/index.browser"), exports);
|
|
17
|
+
__exportStar(require("./constants/index.browser.js"), exports);
|
|
18
|
+
__exportStar(require("./interfaces/index.browser.js"), exports);
|
|
19
|
+
__exportStar(require("./managers/index.browser.js"), exports);
|
|
20
|
+
__exportStar(require("./scripts/index.browser.js"), exports);
|
|
21
|
+
__exportStar(require("./services/index.browser.js"), exports);
|
|
22
|
+
__exportStar(require("./types/index.browser.js"), exports);
|
|
23
|
+
__exportStar(require("./utils/index.browser.js"), exports);
|