@powfix/core-js 0.17.3 → 0.18.0
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/browser/cjs/browser/index.js +17 -0
- package/dist/browser/cjs/{utils → browser/utils}/UUID.js +1 -1
- package/dist/browser/cjs/browser/utils/index.js +17 -0
- package/dist/browser/cjs/index.browser.js +2 -7
- package/dist/{node/cjs → browser/cjs/shared}/index.js +0 -1
- package/dist/{node/cjs/utils/index.browser.js → browser/cjs/shared/utils/index.js} +0 -1
- package/dist/browser/esm/browser/index.mjs +1 -0
- package/dist/browser/esm/{utils → browser/utils}/UUID.mjs +1 -1
- package/dist/browser/esm/browser/utils/index.mjs +1 -0
- package/dist/browser/esm/index.browser.mjs +2 -7
- package/dist/{node/esm → browser/esm/shared}/index.mjs +0 -1
- package/dist/{node/esm/utils/index.browser.mjs → browser/esm/shared/utils/index.mjs} +0 -1
- package/dist/browser/types/browser/index.d.ts +1 -0
- package/dist/browser/types/browser/utils/index.d.ts +1 -0
- package/dist/browser/types/index.browser.d.ts +2 -7
- package/dist/{node/types → browser/types/shared}/index.d.ts +0 -1
- package/dist/{node/types/utils/index.browser.d.ts → browser/types/shared/utils/index.d.ts} +0 -1
- package/dist/node/cjs/{utils → browser/utils}/UUID.js +1 -1
- package/dist/node/cjs/{interfaces/index.js → index.nodejs.js} +1 -1
- package/dist/node/cjs/nodejs/index.js +17 -0
- package/dist/node/cjs/nodejs/utils/UUID.js +7 -0
- package/dist/node/cjs/{constants/nodejs → nodejs/utils}/index.js +3 -2
- package/dist/node/cjs/{utils/nodejs → nodejs/utils}/sequelize-utils/SequelizeUtils.js +2 -2
- package/dist/node/cjs/{constants → nodejs/utils/sequelize-utils}/index.js +2 -2
- package/dist/node/cjs/shared/index.js +23 -0
- package/dist/{browser/cjs/utils/index.browser.js → node/cjs/shared/utils/index.js} +0 -1
- package/dist/node/esm/{utils → browser/utils}/UUID.mjs +1 -1
- package/dist/node/esm/index.nodejs.mjs +2 -0
- package/dist/node/esm/nodejs/index.mjs +1 -0
- package/dist/node/esm/nodejs/utils/UUID.mjs +3 -0
- package/dist/node/esm/nodejs/utils/index.mjs +3 -0
- package/dist/node/esm/{utils/nodejs → nodejs/utils}/sequelize-utils/SequelizeUtils.mjs +2 -2
- package/dist/node/esm/nodejs/utils/sequelize-utils/index.mjs +2 -0
- package/dist/node/esm/shared/index.mjs +7 -0
- package/dist/{browser/esm/utils/index.browser.mjs → node/esm/shared/utils/index.mjs} +0 -1
- package/dist/node/types/index.nodejs.d.ts +2 -0
- package/dist/node/types/nodejs/index.d.ts +1 -0
- package/dist/node/types/{utils/nodejs → nodejs/utils}/HookUtils.d.ts +1 -1
- package/dist/node/types/nodejs/utils/UUID.d.ts +3 -0
- package/dist/node/types/nodejs/utils/index.d.ts +3 -0
- package/dist/node/types/nodejs/utils/sequelize-utils/index.d.ts +2 -0
- package/dist/node/types/shared/index.d.ts +7 -0
- package/dist/{browser/types/utils/index.browser.d.ts → node/types/shared/utils/index.d.ts} +0 -1
- package/package.json +5 -5
- package/dist/node/cjs/constants/nodejs/TransactionManagerLogLevel.js +0 -11
- package/dist/node/cjs/constants/nodejs/TransactionManagerTimeoutAction.js +0 -8
- package/dist/node/cjs/index.browser.js +0 -23
- package/dist/node/cjs/managers/TransactionManager.js +0 -151
- package/dist/node/cjs/managers/TransactionManager.types.js +0 -2
- package/dist/node/cjs/managers/index.js +0 -18
- package/dist/node/cjs/scripts/index.js +0 -17
- package/dist/node/cjs/services/index.js +0 -18
- package/dist/node/cjs/services/redis/RedisClient.js +0 -75
- package/dist/node/cjs/services/redis/RedisPublisher.js +0 -64
- package/dist/node/cjs/services/redis/RedisSubscriber.js +0 -73
- package/dist/node/cjs/services/redis/index.js +0 -20
- package/dist/node/cjs/types/UpsertResult.js +0 -2
- package/dist/node/cjs/types/index.js +0 -19
- package/dist/node/cjs/types/mariaDb.js +0 -2
- package/dist/node/cjs/utils/index.js +0 -18
- package/dist/node/cjs/utils/nodejs/index.js +0 -20
- package/dist/node/cjs/utils/nodejs/sequelize-utils/index.js +0 -5
- package/dist/node/esm/constants/index.mjs +0 -2
- package/dist/node/esm/constants/nodejs/TransactionManagerLogLevel.mjs +0 -8
- package/dist/node/esm/constants/nodejs/TransactionManagerTimeoutAction.mjs +0 -5
- package/dist/node/esm/constants/nodejs/index.mjs +0 -2
- package/dist/node/esm/index.browser.mjs +0 -7
- package/dist/node/esm/interfaces/index.mjs +0 -2
- package/dist/node/esm/managers/TransactionManager.mjs +0 -144
- package/dist/node/esm/managers/TransactionManager.types.mjs +0 -1
- package/dist/node/esm/managers/index.mjs +0 -2
- package/dist/node/esm/scripts/index.mjs +0 -1
- package/dist/node/esm/services/index.mjs +0 -2
- package/dist/node/esm/services/redis/RedisClient.mjs +0 -71
- package/dist/node/esm/services/redis/RedisPublisher.mjs +0 -60
- package/dist/node/esm/services/redis/RedisSubscriber.mjs +0 -69
- package/dist/node/esm/services/redis/index.mjs +0 -4
- package/dist/node/esm/types/UpsertResult.mjs +0 -1
- package/dist/node/esm/types/index.mjs +0 -3
- package/dist/node/esm/types/mariaDb.mjs +0 -1
- package/dist/node/esm/utils/index.mjs +0 -2
- package/dist/node/esm/utils/nodejs/index.mjs +0 -2
- package/dist/node/esm/utils/nodejs/sequelize-utils/index.mjs +0 -1
- package/dist/node/types/constants/index.d.ts +0 -2
- package/dist/node/types/constants/nodejs/TransactionManagerLogLevel.d.ts +0 -7
- package/dist/node/types/constants/nodejs/TransactionManagerTimeoutAction.d.ts +0 -4
- package/dist/node/types/constants/nodejs/index.d.ts +0 -2
- package/dist/node/types/index.browser.d.ts +0 -7
- package/dist/node/types/interfaces/index.d.ts +0 -2
- package/dist/node/types/managers/TransactionManager.d.ts +0 -27
- package/dist/node/types/managers/TransactionManager.types.d.ts +0 -9
- package/dist/node/types/managers/index.d.ts +0 -2
- package/dist/node/types/scripts/index.d.ts +0 -1
- package/dist/node/types/services/index.d.ts +0 -2
- package/dist/node/types/services/redis/RedisClient.d.ts +0 -21
- package/dist/node/types/services/redis/RedisPublisher.d.ts +0 -13
- package/dist/node/types/services/redis/RedisSubscriber.d.ts +0 -11
- package/dist/node/types/services/redis/index.d.ts +0 -3
- package/dist/node/types/types/UpsertResult.d.ts +0 -2
- package/dist/node/types/types/index.d.ts +0 -3
- package/dist/node/types/types/mariaDb.d.ts +0 -8
- package/dist/node/types/utils/index.d.ts +0 -2
- package/dist/node/types/utils/nodejs/index.d.ts +0 -2
- package/dist/node/types/utils/nodejs/sequelize-utils/index.d.ts +0 -1
- /package/dist/browser/cjs/{constants → shared/constants}/COORDINATE.js +0 -0
- /package/dist/browser/cjs/{constants → shared/constants}/CRUD.js +0 -0
- /package/dist/browser/cjs/{constants → shared/constants}/DATE.js +0 -0
- /package/dist/browser/cjs/{constants → shared/constants}/DISTANCE.js +0 -0
- /package/dist/browser/cjs/{constants → shared/constants}/DURATION.js +0 -0
- /package/dist/browser/cjs/{constants → shared/constants}/NOT_NULL.js +0 -0
- /package/dist/browser/cjs/{constants/index.browser.js → shared/constants/index.js} +0 -0
- /package/dist/browser/cjs/{interfaces → shared/interfaces}/Coordinate.js +0 -0
- /package/dist/browser/cjs/{interfaces → shared/interfaces}/Point2.js +0 -0
- /package/dist/browser/cjs/{interfaces → shared/interfaces}/Point3.js +0 -0
- /package/dist/browser/cjs/{interfaces → shared/interfaces}/StorageProvider.js +0 -0
- /package/dist/browser/cjs/{interfaces/index.browser.js → shared/interfaces/index.js} +0 -0
- /package/dist/browser/cjs/{managers → shared/managers}/SessionManager.js +0 -0
- /package/dist/browser/cjs/{managers → shared/managers}/SessionManager.type.js +0 -0
- /package/dist/browser/cjs/{managers/index.browser.js → shared/managers/index.js} +0 -0
- /package/dist/browser/cjs/{scripts → shared/scripts}/base64Polyfill.js +0 -0
- /package/dist/browser/cjs/{scripts/index.browser.js → shared/scripts/index.js} +0 -0
- /package/dist/browser/cjs/{services/index.browser.js → shared/services/index.js} +0 -0
- /package/dist/browser/cjs/{services → shared/services}/time/TimeService.js +0 -0
- /package/dist/browser/cjs/{services → shared/services}/time/TimeService.type.js +0 -0
- /package/dist/browser/cjs/{services → shared/services}/time/index.js +0 -0
- /package/dist/browser/cjs/{types → shared/types}/IntRage.js +0 -0
- /package/dist/browser/cjs/{types → shared/types}/PartialExcept.js +0 -0
- /package/dist/browser/cjs/{types/index.browser.js → shared/types/index.js} +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/ArrayUtils.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/AxiosUtils.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/BooleanUtils.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/Calc.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/CoordinateUtils.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/DateUtils.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/I18nUtils.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/JuminNumberUtils.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/NumberUtils.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/ObjectIdUtils.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/Point3Utils.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/RandomUtils.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/Sequencer.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/StringUtils.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/Uint8ArrayUtils.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/UuidUtils.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/Validator.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/atob.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/base64.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/between.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/btoa.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/castArray.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/circularDistance.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/fallbackIfEqual.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/fallbackIfNull.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/fallbackIfUndefined.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/firstNonNullish.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/flat.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/index.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/processFirstNonNullish.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/pureEnum.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/global/sleep.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/try-catch/TryCatch.js +0 -0
- /package/dist/browser/cjs/{utils → shared/utils}/try-catch/index.js +0 -0
- /package/dist/browser/esm/{constants → shared/constants}/COORDINATE.mjs +0 -0
- /package/dist/browser/esm/{constants → shared/constants}/CRUD.mjs +0 -0
- /package/dist/browser/esm/{constants → shared/constants}/DATE.mjs +0 -0
- /package/dist/browser/esm/{constants → shared/constants}/DISTANCE.mjs +0 -0
- /package/dist/browser/esm/{constants → shared/constants}/DURATION.mjs +0 -0
- /package/dist/browser/esm/{constants → shared/constants}/NOT_NULL.mjs +0 -0
- /package/dist/browser/esm/{constants/index.browser.mjs → shared/constants/index.mjs} +0 -0
- /package/dist/browser/esm/{interfaces → shared/interfaces}/Coordinate.mjs +0 -0
- /package/dist/browser/esm/{interfaces → shared/interfaces}/Point2.mjs +0 -0
- /package/dist/browser/esm/{interfaces → shared/interfaces}/Point3.mjs +0 -0
- /package/dist/browser/esm/{interfaces → shared/interfaces}/StorageProvider.mjs +0 -0
- /package/dist/browser/esm/{interfaces/index.browser.mjs → shared/interfaces/index.mjs} +0 -0
- /package/dist/browser/esm/{managers → shared/managers}/SessionManager.mjs +0 -0
- /package/dist/browser/esm/{managers → shared/managers}/SessionManager.type.mjs +0 -0
- /package/dist/browser/esm/{managers/index.browser.mjs → shared/managers/index.mjs} +0 -0
- /package/dist/browser/esm/{scripts → shared/scripts}/base64Polyfill.mjs +0 -0
- /package/dist/browser/esm/{scripts/index.browser.mjs → shared/scripts/index.mjs} +0 -0
- /package/dist/browser/esm/{services/index.browser.mjs → shared/services/index.mjs} +0 -0
- /package/dist/browser/esm/{services → shared/services}/time/TimeService.mjs +0 -0
- /package/dist/browser/esm/{services → shared/services}/time/TimeService.type.mjs +0 -0
- /package/dist/browser/esm/{services → shared/services}/time/index.mjs +0 -0
- /package/dist/browser/esm/{types → shared/types}/IntRage.mjs +0 -0
- /package/dist/browser/esm/{types → shared/types}/PartialExcept.mjs +0 -0
- /package/dist/browser/esm/{types/index.browser.mjs → shared/types/index.mjs} +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/ArrayUtils.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/AxiosUtils.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/BooleanUtils.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/Calc.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/CoordinateUtils.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/DateUtils.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/I18nUtils.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/JuminNumberUtils.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/NumberUtils.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/ObjectIdUtils.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/Point3Utils.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/RandomUtils.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/Sequencer.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/StringUtils.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/Uint8ArrayUtils.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/UuidUtils.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/Validator.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/atob.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/base64.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/between.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/btoa.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/castArray.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/circularDistance.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/fallbackIfEqual.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/fallbackIfNull.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/fallbackIfUndefined.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/firstNonNullish.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/flat.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/index.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/processFirstNonNullish.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/pureEnum.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/global/sleep.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/try-catch/TryCatch.mjs +0 -0
- /package/dist/browser/esm/{utils → shared/utils}/try-catch/index.mjs +0 -0
- /package/dist/browser/types/{utils → browser/utils}/UUID.d.ts +0 -0
- /package/dist/browser/types/{constants → shared/constants}/COORDINATE.d.ts +0 -0
- /package/dist/browser/types/{constants → shared/constants}/CRUD.d.ts +0 -0
- /package/dist/browser/types/{constants → shared/constants}/DATE.d.ts +0 -0
- /package/dist/browser/types/{constants → shared/constants}/DISTANCE.d.ts +0 -0
- /package/dist/browser/types/{constants → shared/constants}/DURATION.d.ts +0 -0
- /package/dist/browser/types/{constants → shared/constants}/NOT_NULL.d.ts +0 -0
- /package/dist/browser/types/{constants/index.browser.d.ts → shared/constants/index.d.ts} +0 -0
- /package/dist/browser/types/{interfaces → shared/interfaces}/Coordinate.d.ts +0 -0
- /package/dist/browser/types/{interfaces → shared/interfaces}/Point2.d.ts +0 -0
- /package/dist/browser/types/{interfaces → shared/interfaces}/Point3.d.ts +0 -0
- /package/dist/browser/types/{interfaces → shared/interfaces}/StorageProvider.d.ts +0 -0
- /package/dist/browser/types/{interfaces/index.browser.d.ts → shared/interfaces/index.d.ts} +0 -0
- /package/dist/browser/types/{managers → shared/managers}/SessionManager.d.ts +0 -0
- /package/dist/browser/types/{managers → shared/managers}/SessionManager.type.d.ts +0 -0
- /package/dist/browser/types/{managers/index.browser.d.ts → shared/managers/index.d.ts} +0 -0
- /package/dist/browser/types/{scripts → shared/scripts}/base64Polyfill.d.ts +0 -0
- /package/dist/browser/types/{scripts/index.browser.d.ts → shared/scripts/index.d.ts} +0 -0
- /package/dist/browser/types/{services/index.browser.d.ts → shared/services/index.d.ts} +0 -0
- /package/dist/browser/types/{services → shared/services}/time/TimeService.d.ts +0 -0
- /package/dist/browser/types/{services → shared/services}/time/TimeService.type.d.ts +0 -0
- /package/dist/browser/types/{services → shared/services}/time/index.d.ts +0 -0
- /package/dist/browser/types/{types → shared/types}/IntRage.d.ts +0 -0
- /package/dist/browser/types/{types → shared/types}/PartialExcept.d.ts +0 -0
- /package/dist/browser/types/{types/index.browser.d.ts → shared/types/index.d.ts} +0 -0
- /package/dist/browser/types/{utils → shared/utils}/ArrayUtils.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/AxiosUtils.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/BooleanUtils.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/Calc.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/CoordinateUtils.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/DateUtils.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/I18nUtils.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/JuminNumberUtils.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/NumberUtils.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/ObjectIdUtils.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/Point3Utils.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/RandomUtils.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/Sequencer.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/StringUtils.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/Uint8ArrayUtils.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/UuidUtils.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/Validator.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/atob.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/base64.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/between.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/btoa.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/castArray.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/circularDistance.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/fallbackIfEqual.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/fallbackIfNull.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/fallbackIfUndefined.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/firstNonNullish.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/flat.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/index.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/processFirstNonNullish.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/pureEnum.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/global/sleep.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/try-catch/TryCatch.d.ts +0 -0
- /package/dist/browser/types/{utils → shared/utils}/try-catch/index.d.ts +0 -0
- /package/dist/node/cjs/{interfaces/nodejs → nodejs/interfaces}/db/index.js +0 -0
- /package/dist/node/cjs/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/Hook.js +0 -0
- /package/dist/node/cjs/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/HookFn.js +0 -0
- /package/dist/node/cjs/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/HookType.js +0 -0
- /package/dist/node/cjs/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/ReloadOption.js +0 -0
- /package/dist/node/cjs/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/TransactionOption.js +0 -0
- /package/dist/node/cjs/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/UpsertOptions.js +0 -0
- /package/dist/node/cjs/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/index.js +0 -0
- /package/dist/node/cjs/{interfaces/nodejs → nodejs/interfaces}/index.js +0 -0
- /package/dist/node/cjs/{utils/nodejs → nodejs/utils}/HookUtils.js +0 -0
- /package/dist/node/cjs/{utils/nodejs → nodejs/utils}/sequelize-utils/types.js +0 -0
- /package/dist/node/cjs/{constants → shared/constants}/COORDINATE.js +0 -0
- /package/dist/node/cjs/{constants → shared/constants}/CRUD.js +0 -0
- /package/dist/node/cjs/{constants → shared/constants}/DATE.js +0 -0
- /package/dist/node/cjs/{constants → shared/constants}/DISTANCE.js +0 -0
- /package/dist/node/cjs/{constants → shared/constants}/DURATION.js +0 -0
- /package/dist/node/cjs/{constants → shared/constants}/NOT_NULL.js +0 -0
- /package/dist/node/cjs/{constants/index.browser.js → shared/constants/index.js} +0 -0
- /package/dist/node/cjs/{interfaces → shared/interfaces}/Coordinate.js +0 -0
- /package/dist/node/cjs/{interfaces → shared/interfaces}/Point2.js +0 -0
- /package/dist/node/cjs/{interfaces → shared/interfaces}/Point3.js +0 -0
- /package/dist/node/cjs/{interfaces → shared/interfaces}/StorageProvider.js +0 -0
- /package/dist/node/cjs/{interfaces/index.browser.js → shared/interfaces/index.js} +0 -0
- /package/dist/node/cjs/{managers → shared/managers}/SessionManager.js +0 -0
- /package/dist/node/cjs/{managers → shared/managers}/SessionManager.type.js +0 -0
- /package/dist/node/cjs/{managers/index.browser.js → shared/managers/index.js} +0 -0
- /package/dist/node/cjs/{scripts → shared/scripts}/base64Polyfill.js +0 -0
- /package/dist/node/cjs/{scripts/index.browser.js → shared/scripts/index.js} +0 -0
- /package/dist/node/cjs/{services/index.browser.js → shared/services/index.js} +0 -0
- /package/dist/node/cjs/{services → shared/services}/time/TimeService.js +0 -0
- /package/dist/node/cjs/{services → shared/services}/time/TimeService.type.js +0 -0
- /package/dist/node/cjs/{services → shared/services}/time/index.js +0 -0
- /package/dist/node/cjs/{types → shared/types}/IntRage.js +0 -0
- /package/dist/node/cjs/{types → shared/types}/PartialExcept.js +0 -0
- /package/dist/node/cjs/{types/index.browser.js → shared/types/index.js} +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/ArrayUtils.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/AxiosUtils.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/BooleanUtils.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/Calc.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/CoordinateUtils.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/DateUtils.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/I18nUtils.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/JuminNumberUtils.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/NumberUtils.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/ObjectIdUtils.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/Point3Utils.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/RandomUtils.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/Sequencer.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/StringUtils.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/Uint8ArrayUtils.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/UuidUtils.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/Validator.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/atob.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/base64.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/between.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/btoa.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/castArray.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/circularDistance.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/fallbackIfEqual.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/fallbackIfNull.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/fallbackIfUndefined.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/firstNonNullish.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/flat.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/index.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/processFirstNonNullish.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/pureEnum.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/global/sleep.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/try-catch/TryCatch.js +0 -0
- /package/dist/node/cjs/{utils → shared/utils}/try-catch/index.js +0 -0
- /package/dist/node/esm/{interfaces/nodejs → nodejs/interfaces}/db/index.mjs +0 -0
- /package/dist/node/esm/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/Hook.mjs +0 -0
- /package/dist/node/esm/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/HookFn.mjs +0 -0
- /package/dist/node/esm/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/HookType.mjs +0 -0
- /package/dist/node/esm/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/ReloadOption.mjs +0 -0
- /package/dist/node/esm/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/TransactionOption.mjs +0 -0
- /package/dist/node/esm/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/UpsertOptions.mjs +0 -0
- /package/dist/node/esm/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/index.mjs +0 -0
- /package/dist/node/esm/{interfaces/nodejs → nodejs/interfaces}/index.mjs +0 -0
- /package/dist/node/esm/{utils/nodejs → nodejs/utils}/HookUtils.mjs +0 -0
- /package/dist/node/esm/{utils/nodejs → nodejs/utils}/sequelize-utils/types.mjs +0 -0
- /package/dist/node/esm/{constants → shared/constants}/COORDINATE.mjs +0 -0
- /package/dist/node/esm/{constants → shared/constants}/CRUD.mjs +0 -0
- /package/dist/node/esm/{constants → shared/constants}/DATE.mjs +0 -0
- /package/dist/node/esm/{constants → shared/constants}/DISTANCE.mjs +0 -0
- /package/dist/node/esm/{constants → shared/constants}/DURATION.mjs +0 -0
- /package/dist/node/esm/{constants → shared/constants}/NOT_NULL.mjs +0 -0
- /package/dist/node/esm/{constants/index.browser.mjs → shared/constants/index.mjs} +0 -0
- /package/dist/node/esm/{interfaces → shared/interfaces}/Coordinate.mjs +0 -0
- /package/dist/node/esm/{interfaces → shared/interfaces}/Point2.mjs +0 -0
- /package/dist/node/esm/{interfaces → shared/interfaces}/Point3.mjs +0 -0
- /package/dist/node/esm/{interfaces → shared/interfaces}/StorageProvider.mjs +0 -0
- /package/dist/node/esm/{interfaces/index.browser.mjs → shared/interfaces/index.mjs} +0 -0
- /package/dist/node/esm/{managers → shared/managers}/SessionManager.mjs +0 -0
- /package/dist/node/esm/{managers → shared/managers}/SessionManager.type.mjs +0 -0
- /package/dist/node/esm/{managers/index.browser.mjs → shared/managers/index.mjs} +0 -0
- /package/dist/node/esm/{scripts → shared/scripts}/base64Polyfill.mjs +0 -0
- /package/dist/node/esm/{scripts/index.browser.mjs → shared/scripts/index.mjs} +0 -0
- /package/dist/node/esm/{services/index.browser.mjs → shared/services/index.mjs} +0 -0
- /package/dist/node/esm/{services → shared/services}/time/TimeService.mjs +0 -0
- /package/dist/node/esm/{services → shared/services}/time/TimeService.type.mjs +0 -0
- /package/dist/node/esm/{services → shared/services}/time/index.mjs +0 -0
- /package/dist/node/esm/{types → shared/types}/IntRage.mjs +0 -0
- /package/dist/node/esm/{types → shared/types}/PartialExcept.mjs +0 -0
- /package/dist/node/esm/{types/index.browser.mjs → shared/types/index.mjs} +0 -0
- /package/dist/node/esm/{utils → shared/utils}/ArrayUtils.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/AxiosUtils.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/BooleanUtils.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/Calc.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/CoordinateUtils.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/DateUtils.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/I18nUtils.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/JuminNumberUtils.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/NumberUtils.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/ObjectIdUtils.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/Point3Utils.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/RandomUtils.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/Sequencer.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/StringUtils.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/Uint8ArrayUtils.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/UuidUtils.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/Validator.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/atob.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/base64.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/between.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/btoa.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/castArray.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/circularDistance.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/fallbackIfEqual.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/fallbackIfNull.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/fallbackIfUndefined.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/firstNonNullish.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/flat.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/index.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/processFirstNonNullish.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/pureEnum.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/global/sleep.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/try-catch/TryCatch.mjs +0 -0
- /package/dist/node/esm/{utils → shared/utils}/try-catch/index.mjs +0 -0
- /package/dist/node/types/{utils → browser/utils}/UUID.d.ts +0 -0
- /package/dist/node/types/{interfaces/nodejs → nodejs/interfaces}/db/index.d.ts +0 -0
- /package/dist/node/types/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/Hook.d.ts +0 -0
- /package/dist/node/types/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/HookFn.d.ts +0 -0
- /package/dist/node/types/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/HookType.d.ts +0 -0
- /package/dist/node/types/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/ReloadOption.d.ts +0 -0
- /package/dist/node/types/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/TransactionOption.d.ts +0 -0
- /package/dist/node/types/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/UpsertOptions.d.ts +0 -0
- /package/dist/node/types/{interfaces/nodejs → nodejs/interfaces}/db/sequelize/index.d.ts +0 -0
- /package/dist/node/types/{interfaces/nodejs → nodejs/interfaces}/index.d.ts +0 -0
- /package/dist/node/types/{utils/nodejs → nodejs/utils}/sequelize-utils/SequelizeUtils.d.ts +0 -0
- /package/dist/node/types/{utils/nodejs → nodejs/utils}/sequelize-utils/types.d.ts +0 -0
- /package/dist/node/types/{constants → shared/constants}/COORDINATE.d.ts +0 -0
- /package/dist/node/types/{constants → shared/constants}/CRUD.d.ts +0 -0
- /package/dist/node/types/{constants → shared/constants}/DATE.d.ts +0 -0
- /package/dist/node/types/{constants → shared/constants}/DISTANCE.d.ts +0 -0
- /package/dist/node/types/{constants → shared/constants}/DURATION.d.ts +0 -0
- /package/dist/node/types/{constants → shared/constants}/NOT_NULL.d.ts +0 -0
- /package/dist/node/types/{constants/index.browser.d.ts → shared/constants/index.d.ts} +0 -0
- /package/dist/node/types/{interfaces → shared/interfaces}/Coordinate.d.ts +0 -0
- /package/dist/node/types/{interfaces → shared/interfaces}/Point2.d.ts +0 -0
- /package/dist/node/types/{interfaces → shared/interfaces}/Point3.d.ts +0 -0
- /package/dist/node/types/{interfaces → shared/interfaces}/StorageProvider.d.ts +0 -0
- /package/dist/node/types/{interfaces/index.browser.d.ts → shared/interfaces/index.d.ts} +0 -0
- /package/dist/node/types/{managers → shared/managers}/SessionManager.d.ts +0 -0
- /package/dist/node/types/{managers → shared/managers}/SessionManager.type.d.ts +0 -0
- /package/dist/node/types/{managers/index.browser.d.ts → shared/managers/index.d.ts} +0 -0
- /package/dist/node/types/{scripts → shared/scripts}/base64Polyfill.d.ts +0 -0
- /package/dist/node/types/{scripts/index.browser.d.ts → shared/scripts/index.d.ts} +0 -0
- /package/dist/node/types/{services/index.browser.d.ts → shared/services/index.d.ts} +0 -0
- /package/dist/node/types/{services → shared/services}/time/TimeService.d.ts +0 -0
- /package/dist/node/types/{services → shared/services}/time/TimeService.type.d.ts +0 -0
- /package/dist/node/types/{services → shared/services}/time/index.d.ts +0 -0
- /package/dist/node/types/{types → shared/types}/IntRage.d.ts +0 -0
- /package/dist/node/types/{types → shared/types}/PartialExcept.d.ts +0 -0
- /package/dist/node/types/{types/index.browser.d.ts → shared/types/index.d.ts} +0 -0
- /package/dist/node/types/{utils → shared/utils}/ArrayUtils.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/AxiosUtils.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/BooleanUtils.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/Calc.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/CoordinateUtils.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/DateUtils.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/I18nUtils.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/JuminNumberUtils.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/NumberUtils.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/ObjectIdUtils.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/Point3Utils.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/RandomUtils.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/Sequencer.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/StringUtils.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/Uint8ArrayUtils.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/UuidUtils.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/Validator.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/atob.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/base64.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/between.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/btoa.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/castArray.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/circularDistance.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/fallbackIfEqual.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/fallbackIfNull.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/fallbackIfUndefined.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/firstNonNullish.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/flat.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/index.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/processFirstNonNullish.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/pureEnum.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/global/sleep.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/try-catch/TryCatch.d.ts +0 -0
- /package/dist/node/types/{utils → shared/utils}/try-catch/index.d.ts +0 -0
|
@@ -1,60 +0,0 @@
|
|
|
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
|
-
import { RedisClient } from "./RedisClient.mjs";
|
|
11
|
-
const LOG_TAG = '[REDIS-PUB]';
|
|
12
|
-
export class RedisPublisher extends RedisClient {
|
|
13
|
-
constructor(options) {
|
|
14
|
-
super(options);
|
|
15
|
-
this.logging = 'length';
|
|
16
|
-
console.log(Date.now(), "RedisPublisher", 'initialized');
|
|
17
|
-
}
|
|
18
|
-
start() {
|
|
19
|
-
const _super = Object.create(null, {
|
|
20
|
-
start: { get: () => super.start }
|
|
21
|
-
});
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
return _super.start.call(this);
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
stop() {
|
|
27
|
-
const _super = Object.create(null, {
|
|
28
|
-
stop: { get: () => super.stop }
|
|
29
|
-
});
|
|
30
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
return _super.stop.call(this);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
setLogging(logging) {
|
|
35
|
-
this.logging = logging;
|
|
36
|
-
}
|
|
37
|
-
getLogging() {
|
|
38
|
-
return this.logging;
|
|
39
|
-
}
|
|
40
|
-
// Make public method
|
|
41
|
-
publish(channel, data) {
|
|
42
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
const stringifyData = typeof data !== 'string' ? JSON.stringify(data) : data;
|
|
44
|
-
switch (this.logging) {
|
|
45
|
-
case "none": {
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
case "length": {
|
|
49
|
-
console.log(new Date().toISOString(), LOG_TAG, channel, `[len=${stringifyData.length}]`);
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
case "data": {
|
|
53
|
-
console.log(new Date().toISOString(), LOG_TAG, channel, stringifyData);
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
yield this.client.publish(channel, stringifyData);
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
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
|
-
import { RedisClient } from "./RedisClient.mjs";
|
|
11
|
-
import { castArray } from "../../utils/index.mjs";
|
|
12
|
-
export class RedisSubscriber extends RedisClient {
|
|
13
|
-
constructor(options) {
|
|
14
|
-
super(options);
|
|
15
|
-
console.log(Date.now(), 'Subscriber', 'initialized');
|
|
16
|
-
}
|
|
17
|
-
subscribe(channels, listener, bufferMode) {
|
|
18
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
for (const channel of castArray(channels)) {
|
|
20
|
-
if ((/\*/g).test(channel)) {
|
|
21
|
-
yield this.client.pSubscribe(channel, listener, bufferMode);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
yield this.client.subscribe(channel, listener, bufferMode);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
unsubscribe(channels, listener, bufferMode) {
|
|
30
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
for (const channel of castArray(channels)) {
|
|
32
|
-
if ((/\*/g).test(channel)) {
|
|
33
|
-
yield this.client.pUnsubscribe(channel, listener, bufferMode);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
yield this.client.unsubscribe(channel, listener, bufferMode);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
start() {
|
|
42
|
-
const _super = Object.create(null, {
|
|
43
|
-
start: { get: () => super.start }
|
|
44
|
-
});
|
|
45
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
const status = yield _super.start.call(this);
|
|
47
|
-
yield this.registerListeners();
|
|
48
|
-
return status;
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
stop() {
|
|
52
|
-
const _super = Object.create(null, {
|
|
53
|
-
stop: { get: () => super.stop }
|
|
54
|
-
});
|
|
55
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
const status = yield _super.stop.call(this);
|
|
57
|
-
yield this.unregisterListeners();
|
|
58
|
-
return status;
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
registerListeners() {
|
|
62
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
unregisterListeners() {
|
|
66
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SequelizeUtils } from './SequelizeUtils.mjs';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './constants/index.browser';
|
|
2
|
-
export * from './interfaces/index.browser';
|
|
3
|
-
export * from './managers/index.browser';
|
|
4
|
-
export * from './scripts/index.browser';
|
|
5
|
-
export * from './services/index.browser';
|
|
6
|
-
export * from './types/index.browser';
|
|
7
|
-
export * from './utils/index.browser';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Transaction } from "sequelize";
|
|
2
|
-
import EventEmitter from 'eventemitter3';
|
|
3
|
-
import { TransactionManagerLogLevel, TransactionManagerTimeoutAction } from "../constants";
|
|
4
|
-
import { TransactionManagerAddOption, TransactionManagerEventTypes } from "./TransactionManager.types";
|
|
5
|
-
export declare class TransactionManager {
|
|
6
|
-
static DEFAULT_TIMEOUT: number;
|
|
7
|
-
static DEFAULT_ACTION: TransactionManagerTimeoutAction;
|
|
8
|
-
private static instance;
|
|
9
|
-
private logLevel;
|
|
10
|
-
private transactionTimeoutMap;
|
|
11
|
-
private readonly emitter;
|
|
12
|
-
constructor();
|
|
13
|
-
static getInstance(): TransactionManager;
|
|
14
|
-
private getTransactionLogArg;
|
|
15
|
-
setLogLevel(logLevel: TransactionManagerLogLevel): void;
|
|
16
|
-
addListener<T extends EventEmitter.EventNames<TransactionManagerEventTypes>>(event: T, fn: EventEmitter.EventListener<TransactionManagerEventTypes, T>): void;
|
|
17
|
-
removeListener<T extends EventEmitter.EventNames<TransactionManagerEventTypes>>(event: T, fn: EventEmitter.EventListener<TransactionManagerEventTypes, T>): void;
|
|
18
|
-
add(transaction: Transaction, option?: TransactionManagerAddOption): void;
|
|
19
|
-
remove(transaction: Transaction): void;
|
|
20
|
-
flush(action?: TransactionManagerTimeoutAction): Promise<PromiseSettledResult<{
|
|
21
|
-
handled: boolean;
|
|
22
|
-
transaction: Transaction;
|
|
23
|
-
}>[]>;
|
|
24
|
-
private execute;
|
|
25
|
-
private timeout;
|
|
26
|
-
private afterCommit;
|
|
27
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TransactionManagerTimeoutAction } from "../constants";
|
|
2
|
-
import { Transaction } from "sequelize";
|
|
3
|
-
export interface TransactionManagerAddOption {
|
|
4
|
-
timeout?: number;
|
|
5
|
-
timeoutAction?: TransactionManagerTimeoutAction;
|
|
6
|
-
}
|
|
7
|
-
export type TransactionManagerEventTypes = {
|
|
8
|
-
onUnhandledTransaction: (transaction: Transaction, handled: boolean) => any;
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './index.browser';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import redis, { RedisClientType, RedisDefaultModules, RedisFunctions, RedisModules, RedisScripts } from 'redis';
|
|
2
|
-
export declare class RedisClient {
|
|
3
|
-
private readonly options;
|
|
4
|
-
private status;
|
|
5
|
-
readonly client: RedisClientType<RedisDefaultModules & RedisModules, RedisFunctions, RedisScripts>;
|
|
6
|
-
constructor(options?: RedisClient.RedisClientOptions);
|
|
7
|
-
getStatus(): RedisClient.Status;
|
|
8
|
-
start(): Promise<RedisClient.Status>;
|
|
9
|
-
stop(): Promise<RedisClient.Status>;
|
|
10
|
-
private handleOnConnect;
|
|
11
|
-
private handleOnError;
|
|
12
|
-
}
|
|
13
|
-
export declare namespace RedisClient {
|
|
14
|
-
enum Status {
|
|
15
|
-
RUNNING = 0,
|
|
16
|
-
STOPPED = 1
|
|
17
|
-
}
|
|
18
|
-
interface RedisClientOptions {
|
|
19
|
-
redisOptions?: redis.RedisClientOptions;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { RedisClient } from "./RedisClient";
|
|
2
|
-
export declare class RedisPublisher extends RedisClient {
|
|
3
|
-
private logging;
|
|
4
|
-
constructor(options?: RedisClient.RedisClientOptions);
|
|
5
|
-
start(): Promise<RedisClient.Status>;
|
|
6
|
-
stop(): Promise<RedisClient.Status>;
|
|
7
|
-
setLogging(logging: RedisPublisher.LOGGING): void;
|
|
8
|
-
getLogging(): RedisPublisher.LOGGING;
|
|
9
|
-
publish(channel: string, data: string | object): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
export declare namespace RedisPublisher {
|
|
12
|
-
type LOGGING = 'none' | 'length' | 'data';
|
|
13
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { RedisClient } from "./RedisClient";
|
|
2
|
-
import { PubSubListener } from "@redis/client/dist/lib/client/pub-sub";
|
|
3
|
-
export declare class RedisSubscriber extends RedisClient {
|
|
4
|
-
constructor(options?: RedisClient.RedisClientOptions);
|
|
5
|
-
subscribe<T extends boolean = false>(channels: string | string[], listener: PubSubListener<T>, bufferMode?: T | undefined): Promise<void>;
|
|
6
|
-
unsubscribe<T extends boolean = false>(channels: string | string[], listener?: PubSubListener<T> | undefined, bufferMode?: T | undefined): Promise<void>;
|
|
7
|
-
start(): Promise<RedisClient.Status>;
|
|
8
|
-
stop(): Promise<RedisClient.Status>;
|
|
9
|
-
protected registerListeners(): Promise<void>;
|
|
10
|
-
protected unregisterListeners(): Promise<void>;
|
|
11
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { TransactionManager, TransactionManagerAddOption } from "../managers";
|
|
2
|
-
import type { Sequelize } from "sequelize-typescript";
|
|
3
|
-
import type { Transaction, TransactionOptions } from "sequelize";
|
|
4
|
-
export interface MariaDbConnection {
|
|
5
|
-
transactionManager: TransactionManager;
|
|
6
|
-
sequelize: Sequelize;
|
|
7
|
-
transaction: (options?: TransactionOptions, managerOptions?: TransactionManagerAddOption) => Promise<Transaction>;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SequelizeUtils } from './SequelizeUtils';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|