@powfix/core-js 0.23.6 → 0.23.8
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/index.browser.d.ts +2 -2
- package/dist/index.browser.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.node.d.ts +2 -2
- package/dist/index.node.js +2 -2
- package/dist/node/constants/index.d.ts +2 -2
- package/dist/node/constants/index.js +2 -2
- package/dist/node/index.d.ts +6 -6
- package/dist/node/index.js +6 -6
- package/dist/node/interfaces/db/index.d.ts +1 -1
- package/dist/node/interfaces/db/index.js +1 -1
- package/dist/node/interfaces/db/sequelize/Hook.d.ts +2 -2
- package/dist/node/interfaces/db/sequelize/HookFn.d.ts +1 -1
- package/dist/node/interfaces/db/sequelize/UpsertOptions.d.ts +2 -2
- package/dist/node/interfaces/db/sequelize/index.d.ts +6 -6
- package/dist/node/interfaces/db/sequelize/index.js +6 -6
- package/dist/node/interfaces/index.d.ts +1 -1
- package/dist/node/interfaces/index.js +1 -1
- package/dist/node/managers/TransactionManager.d.ts +2 -2
- package/dist/node/managers/TransactionManager.js +1 -1
- package/dist/node/managers/TransactionManager.types.d.ts +1 -1
- package/dist/node/managers/index.d.ts +2 -2
- package/dist/node/managers/index.js +2 -2
- package/dist/node/services/index.d.ts +1 -1
- package/dist/node/services/index.js +1 -1
- package/dist/node/services/redis/RedisPublisher.d.ts +1 -1
- package/dist/node/services/redis/RedisPublisher.js +1 -1
- package/dist/node/services/redis/RedisSubscriber.d.ts +2 -2
- package/dist/node/services/redis/RedisSubscriber.js +2 -2
- package/dist/node/services/redis/index.d.ts +3 -3
- package/dist/node/services/redis/index.js +3 -3
- package/dist/node/types/index.d.ts +2 -2
- package/dist/node/types/index.js +2 -2
- package/dist/node/types/mariaDb.d.ts +1 -1
- package/dist/node/utils/HookUtils.d.ts +1 -1
- package/dist/node/utils/index.d.ts +2 -2
- package/dist/node/utils/index.js +2 -2
- package/dist/node/utils/sequelize-utils/SequelizeUtils.d.ts +1 -1
- package/dist/node/utils/sequelize-utils/SequelizeUtils.js +1 -1
- package/dist/node/utils/sequelize-utils/index.d.ts +2 -2
- package/dist/node/utils/sequelize-utils/index.js +2 -2
- package/dist/shared/constants/index.d.ts +6 -6
- package/dist/shared/constants/index.js +6 -6
- package/dist/shared/exports/Uint8Array.js +1 -1
- package/dist/shared/exports/atob.js +1 -1
- package/dist/shared/exports/btoa.js +1 -1
- package/dist/shared/index.d.ts +7 -7
- package/dist/shared/index.js +7 -7
- package/dist/shared/interfaces/Point3.d.ts +1 -1
- package/dist/shared/interfaces/index.d.ts +4 -4
- package/dist/shared/interfaces/index.js +4 -4
- package/dist/shared/managers/SessionManager.d.ts +2 -2
- package/dist/shared/managers/SessionManager.type.d.ts +1 -1
- package/dist/shared/managers/index.d.ts +2 -2
- package/dist/shared/managers/index.js +2 -2
- package/dist/shared/scripts/index.d.ts +1 -1
- package/dist/shared/scripts/index.js +1 -1
- package/dist/shared/services/index.d.ts +1 -1
- package/dist/shared/services/index.js +1 -1
- package/dist/shared/services/time/TimeService.d.ts +1 -1
- package/dist/shared/services/time/index.d.ts +2 -2
- package/dist/shared/services/time/index.js +2 -2
- package/dist/shared/types/index.d.ts +2 -2
- package/dist/shared/types/index.js +2 -2
- package/dist/shared/utils/ArrayUtils.js +1 -1
- package/dist/shared/utils/CoordinateUtils.d.ts +1 -1
- package/dist/shared/utils/DateUtils.d.ts +1 -1
- package/dist/shared/utils/DateUtils.js +1 -1
- package/dist/shared/utils/Enum.d.ts +1 -1
- package/dist/shared/utils/JuminNumberUtils.js +1 -1
- package/dist/shared/utils/ObjectIdUtils.js +1 -1
- package/dist/shared/utils/Point3Utils.d.ts +1 -1
- package/dist/shared/utils/UuidUtils.js +1 -1
- package/dist/shared/utils/global/base64.js +2 -2
- package/dist/shared/utils/global/fallbackIfNull.js +1 -1
- package/dist/shared/utils/global/fallbackIfUndefined.js +1 -1
- package/dist/shared/utils/global/index.cjs +9 -0
- package/dist/shared/utils/global/index.d.ts +16 -15
- package/dist/shared/utils/global/index.js +16 -15
- package/dist/shared/utils/global/mapIfNotNullish.cjs +9 -0
- package/dist/shared/utils/global/mapIfNotNullish.d.ts +1 -0
- package/dist/shared/utils/global/mapIfNotNullish.js +8 -0
- package/dist/shared/utils/global/processFirstNonNullish.js +1 -1
- package/dist/shared/utils/index.d.ts +21 -21
- package/dist/shared/utils/index.js +21 -21
- package/dist/shared/utils/try-catch/index.d.ts +1 -1
- package/dist/shared/utils/try-catch/index.js +1 -1
- package/package.json +4 -3
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './shared';
|
|
2
|
-
export * from './browser';
|
|
1
|
+
export * from './shared/index.js';
|
|
2
|
+
export * from './browser/index.js';
|
package/dist/index.browser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './shared';
|
|
2
|
-
export * from './browser';
|
|
1
|
+
export * from './shared/index.js';
|
|
2
|
+
export * from './browser/index.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './shared';
|
|
1
|
+
export * from './shared/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './shared';
|
|
1
|
+
export * from './shared/index.js';
|
package/dist/index.node.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './shared';
|
|
2
|
-
export * from './node';
|
|
1
|
+
export * from './shared/index.js';
|
|
2
|
+
export * from './node/index.js';
|
package/dist/index.node.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './shared';
|
|
2
|
-
export * from './node';
|
|
1
|
+
export * from './shared/index.js';
|
|
2
|
+
export * from './node/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TransactionManagerLogLevel';
|
|
2
|
-
export * from './TransactionManagerTimeoutAction';
|
|
1
|
+
export * from './TransactionManagerLogLevel.js';
|
|
2
|
+
export * from './TransactionManagerTimeoutAction.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TransactionManagerLogLevel';
|
|
2
|
-
export * from './TransactionManagerTimeoutAction';
|
|
1
|
+
export * from './TransactionManagerLogLevel.js';
|
|
2
|
+
export * from './TransactionManagerTimeoutAction.js';
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './constants';
|
|
2
|
-
export * from './interfaces';
|
|
3
|
-
export * from './managers';
|
|
4
|
-
export * from './services';
|
|
5
|
-
export * from './types';
|
|
6
|
-
export * from './utils';
|
|
1
|
+
export * from './constants/index.js';
|
|
2
|
+
export * from './interfaces/index.js';
|
|
3
|
+
export * from './managers/index.js';
|
|
4
|
+
export * from './services/index.js';
|
|
5
|
+
export * from './types/index.js';
|
|
6
|
+
export * from './utils/index.js';
|
package/dist/node/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './constants';
|
|
2
|
-
export * from './interfaces';
|
|
3
|
-
export * from './managers';
|
|
4
|
-
export * from './services';
|
|
5
|
-
export * from './types';
|
|
6
|
-
export * from './utils';
|
|
1
|
+
export * from './constants/index.js';
|
|
2
|
+
export * from './interfaces/index.js';
|
|
3
|
+
export * from './managers/index.js';
|
|
4
|
+
export * from './services/index.js';
|
|
5
|
+
export * from './types/index.js';
|
|
6
|
+
export * from './utils/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './sequelize';
|
|
1
|
+
export * from './sequelize/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './sequelize';
|
|
1
|
+
export * from './sequelize/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModelCtor } from "sequelize-typescript";
|
|
2
|
-
import { HookType } from "./HookType";
|
|
3
|
-
import { HookFn } from "./HookFn";
|
|
2
|
+
import { HookType } from "./HookType.js";
|
|
3
|
+
import { HookFn } from "./HookFn.js";
|
|
4
4
|
export interface Hook {
|
|
5
5
|
model: ModelCtor;
|
|
6
6
|
hookType: HookType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Hooks, SequelizeHooks } from "sequelize/types/hooks";
|
|
2
2
|
import { Attributes, CreationAttributes } from "sequelize/types/model";
|
|
3
|
-
import { HookType } from "./HookType";
|
|
3
|
+
import { HookType } from "./HookType.js";
|
|
4
4
|
export type HookFn = SequelizeHooks<Hooks['_model'], Attributes<Hooks>, CreationAttributes<Hooks>>[HookType];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReloadOption } from "./ReloadOption";
|
|
2
|
-
import { TransactionOption } from "./TransactionOption";
|
|
1
|
+
import { ReloadOption } from "./ReloadOption.js";
|
|
2
|
+
import { TransactionOption } from "./TransactionOption.js";
|
|
3
3
|
export interface UpsertOptions extends ReloadOption, TransactionOption {
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './Hook';
|
|
2
|
-
export * from './HookFn';
|
|
3
|
-
export * from './HookType';
|
|
4
|
-
export * from './ReloadOption';
|
|
5
|
-
export * from './TransactionOption';
|
|
6
|
-
export * from './UpsertOptions';
|
|
1
|
+
export * from './Hook.js';
|
|
2
|
+
export * from './HookFn.js';
|
|
3
|
+
export * from './HookType.js';
|
|
4
|
+
export * from './ReloadOption.js';
|
|
5
|
+
export * from './TransactionOption.js';
|
|
6
|
+
export * from './UpsertOptions.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './Hook';
|
|
2
|
-
export * from './HookFn';
|
|
3
|
-
export * from './HookType';
|
|
4
|
-
export * from './ReloadOption';
|
|
5
|
-
export * from './TransactionOption';
|
|
6
|
-
export * from './UpsertOptions';
|
|
1
|
+
export * from './Hook.js';
|
|
2
|
+
export * from './HookFn.js';
|
|
3
|
+
export * from './HookType.js';
|
|
4
|
+
export * from './ReloadOption.js';
|
|
5
|
+
export * from './TransactionOption.js';
|
|
6
|
+
export * from './UpsertOptions.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './db';
|
|
1
|
+
export * from './db/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './db';
|
|
1
|
+
export * from './db/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Transaction } from "sequelize";
|
|
2
2
|
import EventEmitter from 'eventemitter3';
|
|
3
|
-
import { TransactionManagerLogLevel, TransactionManagerTimeoutAction } from "../constants";
|
|
4
|
-
import { TransactionManagerAddOption, TransactionManagerEventTypes } from "./TransactionManager.types";
|
|
3
|
+
import { TransactionManagerLogLevel, TransactionManagerTimeoutAction } from "../constants/index.js";
|
|
4
|
+
import { TransactionManagerAddOption, TransactionManagerEventTypes } from "./TransactionManager.types.js";
|
|
5
5
|
export declare class TransactionManager {
|
|
6
6
|
static DEFAULT_TIMEOUT: number;
|
|
7
7
|
static DEFAULT_ACTION: TransactionManagerTimeoutAction;
|
|
@@ -185,7 +185,7 @@ function _ts_generator(thisArg, body) {
|
|
|
185
185
|
}
|
|
186
186
|
import { __publicField } from '../../chunk-PKBMQBKP.js';
|
|
187
187
|
import EventEmitter from 'eventemitter3';
|
|
188
|
-
import { TransactionManagerTimeoutAction, TransactionManagerLogLevel } from '../constants';
|
|
188
|
+
import { TransactionManagerTimeoutAction, TransactionManagerLogLevel } from '../constants/index.js';
|
|
189
189
|
var LOG_TAG = "[TransactionManager]";
|
|
190
190
|
var _TransactionManager = /*#__PURE__*/ function() {
|
|
191
191
|
"use strict";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TransactionManager';
|
|
2
|
-
export * from './TransactionManager.types';
|
|
1
|
+
export * from './TransactionManager.js';
|
|
2
|
+
export * from './TransactionManager.types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TransactionManager';
|
|
2
|
-
export * from './TransactionManager.types';
|
|
1
|
+
export * from './TransactionManager.js';
|
|
2
|
+
export * from './TransactionManager.types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './redis';
|
|
1
|
+
export * from './redis/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './redis';
|
|
1
|
+
export * from './redis/index.js';
|
|
@@ -215,7 +215,7 @@ function _ts_generator(thisArg, body) {
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
import { __publicField } from '../../../chunk-PKBMQBKP.js';
|
|
218
|
-
import { RedisClient } from './RedisClient';
|
|
218
|
+
import { RedisClient } from './RedisClient.js';
|
|
219
219
|
var LOG_TAG = "[REDIS-PUB]";
|
|
220
220
|
var RedisPublisher = /*#__PURE__*/ function(RedisClient) {
|
|
221
221
|
"use strict";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RedisClient } from "./RedisClient";
|
|
2
|
-
import { PubSubListener } from "@redis/client/dist/lib/client/pub-sub";
|
|
1
|
+
import { RedisClient } from "./RedisClient.js";
|
|
2
|
+
import { PubSubListener } from "@redis/client/dist/lib/client/pub-sub.js";
|
|
3
3
|
export declare class RedisSubscriber extends RedisClient {
|
|
4
4
|
constructor(options?: RedisClient.RedisClientOptions);
|
|
5
5
|
subscribe<T extends boolean = false>(channels: string | string[], listener: PubSubListener<T>, bufferMode?: T | undefined): Promise<void>;
|
|
@@ -215,8 +215,8 @@ function _ts_generator(thisArg, body) {
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
import '../../../chunk-PKBMQBKP.js';
|
|
218
|
-
import { RedisClient } from './RedisClient';
|
|
219
|
-
import { castArray } from '../../../shared/utils';
|
|
218
|
+
import { RedisClient } from './RedisClient.js';
|
|
219
|
+
import { castArray } from '../../../shared/utils/index.js';
|
|
220
220
|
var RedisSubscriber = /*#__PURE__*/ function(RedisClient) {
|
|
221
221
|
"use strict";
|
|
222
222
|
_inherits(RedisSubscriber, RedisClient);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './RedisClient';
|
|
2
|
-
export * from './RedisPublisher';
|
|
3
|
-
export * from './RedisSubscriber';
|
|
1
|
+
export * from './RedisClient.js';
|
|
2
|
+
export * from './RedisPublisher.js';
|
|
3
|
+
export * from './RedisSubscriber.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './RedisClient';
|
|
2
|
-
export * from './RedisPublisher';
|
|
3
|
-
export * from './RedisSubscriber';
|
|
1
|
+
export * from './RedisClient.js';
|
|
2
|
+
export * from './RedisPublisher.js';
|
|
3
|
+
export * from './RedisSubscriber.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './UpsertResult';
|
|
2
|
-
export * from './mariaDb';
|
|
1
|
+
export * from './UpsertResult.js';
|
|
2
|
+
export * from './mariaDb.js';
|
package/dist/node/types/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './UpsertResult';
|
|
2
|
-
export * from './mariaDb';
|
|
1
|
+
export * from './UpsertResult.js';
|
|
2
|
+
export * from './mariaDb.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TransactionManager, TransactionManagerAddOption } from "../managers";
|
|
1
|
+
import type { TransactionManager, TransactionManagerAddOption } from "../managers/index.js";
|
|
2
2
|
import type { Sequelize } from "sequelize-typescript";
|
|
3
3
|
import type { Transaction, TransactionOptions } from "sequelize";
|
|
4
4
|
export interface MariaDbConnection {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Hook, HookFn } from "../interfaces";
|
|
1
|
+
import { Hook, HookFn } from "../interfaces/index.js";
|
|
2
2
|
import { ModelCtor } from "sequelize-typescript";
|
|
3
3
|
export declare class HookUtils {
|
|
4
4
|
static getFkChanges<T>(pFkValue: T | null | undefined, cFkValue: T | null | undefined): {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './sequelize-utils';
|
|
2
|
-
export * from './HookUtils';
|
|
1
|
+
export * from './sequelize-utils/index.js';
|
|
2
|
+
export * from './HookUtils.js';
|
package/dist/node/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './sequelize-utils';
|
|
2
|
-
export * from './HookUtils';
|
|
1
|
+
export * from './sequelize-utils/index.js';
|
|
2
|
+
export * from './HookUtils.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModelAttributeColumnOptions, WhereOptions } from "sequelize";
|
|
2
|
-
import { Model, NonKnownUuidStringKeys, UuidColumnOptionsBase, UuidColumnOptionsForModel } from "./types";
|
|
2
|
+
import { Model, NonKnownUuidStringKeys, UuidColumnOptionsBase, UuidColumnOptionsForModel } from "./types.js";
|
|
3
3
|
export declare class SequelizeUtils {
|
|
4
4
|
static decimal2Number(value: any): number | null | undefined;
|
|
5
5
|
static buildPrimaryUuidColumn: () => Partial<ModelAttributeColumnOptions>;
|
|
@@ -78,7 +78,7 @@ function _type_of(obj) {
|
|
|
78
78
|
}
|
|
79
79
|
import { __publicField } from '../../../chunk-PKBMQBKP.js';
|
|
80
80
|
import { Op } from 'sequelize';
|
|
81
|
-
import { NOT_NULL } from '../../../shared/constants';
|
|
81
|
+
import { NOT_NULL } from '../../../shared/constants/index.js';
|
|
82
82
|
import { UUID } from '@powfix/uuid/node';
|
|
83
83
|
var _SequelizeUtils = /*#__PURE__*/ function() {
|
|
84
84
|
"use strict";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './SequelizeUtils';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './SequelizeUtils.js';
|
|
2
|
+
export * from './types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './SequelizeUtils';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './SequelizeUtils.js';
|
|
2
|
+
export * from './types.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './COORDINATE';
|
|
2
|
-
export * from './CRUD';
|
|
3
|
-
export * from './DATE';
|
|
4
|
-
export * from './DISTANCE';
|
|
5
|
-
export * from './DURATION';
|
|
6
|
-
export * from './NOT_NULL';
|
|
1
|
+
export * from './COORDINATE.js';
|
|
2
|
+
export * from './CRUD.js';
|
|
3
|
+
export * from './DATE.js';
|
|
4
|
+
export * from './DISTANCE.js';
|
|
5
|
+
export * from './DURATION.js';
|
|
6
|
+
export * from './NOT_NULL.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './COORDINATE';
|
|
2
|
-
export * from './CRUD';
|
|
3
|
-
export * from './DATE';
|
|
4
|
-
export * from './DISTANCE';
|
|
5
|
-
export * from './DURATION';
|
|
6
|
-
export * from './NOT_NULL';
|
|
1
|
+
export * from './COORDINATE.js';
|
|
2
|
+
export * from './CRUD.js';
|
|
3
|
+
export * from './DATE.js';
|
|
4
|
+
export * from './DISTANCE.js';
|
|
5
|
+
export * from './DURATION.js';
|
|
6
|
+
export * from './NOT_NULL.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _Uint8Array, _Uint8Array1;
|
|
2
|
-
import { Uint8ArrayUtils } from '../utils';
|
|
2
|
+
import { Uint8ArrayUtils } from '../utils/index.js';
|
|
3
3
|
if (!((_Uint8Array = Uint8Array) === null || _Uint8Array === void 0 ? void 0 : _Uint8Array.fromHex)) {
|
|
4
4
|
Uint8Array.fromHex = Uint8ArrayUtils.fromHex;
|
|
5
5
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { atob } from '../utils';
|
|
1
|
+
import { atob } from '../utils/index.js';
|
|
2
2
|
global.atob = atob;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { btoa } from '../utils';
|
|
1
|
+
import { btoa } from '../utils/index.js';
|
|
2
2
|
global.btoa = btoa;
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './constants';
|
|
2
|
-
export * from './interfaces';
|
|
3
|
-
export * from './managers';
|
|
4
|
-
export * from './scripts';
|
|
5
|
-
export * from './services';
|
|
6
|
-
export * from './types';
|
|
7
|
-
export * from './utils';
|
|
1
|
+
export * from './constants/index.js';
|
|
2
|
+
export * from './interfaces/index.js';
|
|
3
|
+
export * from './managers/index.js';
|
|
4
|
+
export * from './scripts/index.js';
|
|
5
|
+
export * from './services/index.js';
|
|
6
|
+
export * from './types/index.js';
|
|
7
|
+
export * from './utils/index.js';
|
package/dist/shared/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './constants';
|
|
2
|
-
export * from './interfaces';
|
|
3
|
-
export * from './managers';
|
|
4
|
-
export * from './scripts';
|
|
5
|
-
export * from './services';
|
|
6
|
-
export * from './types';
|
|
7
|
-
export * from './utils';
|
|
1
|
+
export * from './constants/index.js';
|
|
2
|
+
export * from './interfaces/index.js';
|
|
3
|
+
export * from './managers/index.js';
|
|
4
|
+
export * from './scripts/index.js';
|
|
5
|
+
export * from './services/index.js';
|
|
6
|
+
export * from './types/index.js';
|
|
7
|
+
export * from './utils/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './Coordinate';
|
|
2
|
-
export * from './Point2';
|
|
3
|
-
export * from './Point3';
|
|
4
|
-
export * from './StorageProvider';
|
|
1
|
+
export * from './Coordinate.js';
|
|
2
|
+
export * from './Point2.js';
|
|
3
|
+
export * from './Point3.js';
|
|
4
|
+
export * from './StorageProvider.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './Coordinate';
|
|
2
|
-
export * from './Point2';
|
|
3
|
-
export * from './Point3';
|
|
4
|
-
export * from './StorageProvider';
|
|
1
|
+
export * from './Coordinate.js';
|
|
2
|
+
export * from './Point2.js';
|
|
3
|
+
export * from './Point3.js';
|
|
4
|
+
export * from './StorageProvider.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
|
-
import { StorageProvider } from "../interfaces/StorageProvider";
|
|
2
|
+
import { StorageProvider } from "../interfaces/StorageProvider.js";
|
|
3
3
|
import EventEmitter from 'eventemitter3';
|
|
4
|
-
import { SessionManagerEvent, SessionManagerOptions } from "./SessionManager.type";
|
|
4
|
+
import { SessionManagerEvent, SessionManagerOptions } from "./SessionManager.type.js";
|
|
5
5
|
export declare class SessionManager extends EventEmitter<SessionManagerEvent> {
|
|
6
6
|
private static readonly DEFAULT_AUTHORIZATION_STORAGE_KEY;
|
|
7
7
|
protected api: AxiosInstance;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
|
-
import { StorageProvider } from "../interfaces/StorageProvider";
|
|
2
|
+
import { StorageProvider } from "../interfaces/StorageProvider.js";
|
|
3
3
|
export interface SessionManagerOptions {
|
|
4
4
|
api: AxiosInstance;
|
|
5
5
|
storageProvider: StorageProvider;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './SessionManager';
|
|
2
|
-
export * from './SessionManager.type';
|
|
1
|
+
export * from './SessionManager.js';
|
|
2
|
+
export * from './SessionManager.type.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './SessionManager';
|
|
2
|
-
export * from './SessionManager.type';
|
|
1
|
+
export * from './SessionManager.js';
|
|
2
|
+
export * from './SessionManager.type.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './base64Polyfill';
|
|
1
|
+
export * from './base64Polyfill.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './base64Polyfill';
|
|
1
|
+
export * from './base64Polyfill.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './time';
|
|
1
|
+
export * from './time/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './time';
|
|
1
|
+
export * from './time/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import EventEmitter from 'eventemitter3';
|
|
2
|
-
import type { TimeServiceClientTimeProvider, TimeServiceEvent, TimeServiceNtpResult, TimeServiceOffset, TimeServiceOptions, TimeServiceServerTimeProvider, TimeServiceTimeStamp } from "./TimeService.type";
|
|
2
|
+
import type { TimeServiceClientTimeProvider, TimeServiceEvent, TimeServiceNtpResult, TimeServiceOffset, TimeServiceOptions, TimeServiceServerTimeProvider, TimeServiceTimeStamp } from "./TimeService.type.js";
|
|
3
3
|
export declare class TimeService extends EventEmitter<TimeServiceEvent> {
|
|
4
4
|
private syncHandler?;
|
|
5
5
|
private offset?;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./TimeService";
|
|
2
|
-
export * from "./TimeService.type";
|
|
1
|
+
export * from "./TimeService.js";
|
|
2
|
+
export * from "./TimeService.type.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TimeService';
|
|
2
|
-
export * from './TimeService.type';
|
|
1
|
+
export * from './TimeService.js';
|
|
2
|
+
export * from './TimeService.type.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './IntRage';
|
|
2
|
-
export * from './PartialExcept';
|
|
1
|
+
export * from './IntRage.js';
|
|
2
|
+
export * from './PartialExcept.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './IntRage';
|
|
2
|
-
export * from './PartialExcept';
|
|
1
|
+
export * from './IntRage.js';
|
|
2
|
+
export * from './PartialExcept.js';
|
|
@@ -43,7 +43,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
43
43
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
44
44
|
}
|
|
45
45
|
import '../../chunk-PKBMQBKP.js';
|
|
46
|
-
import { castArray } from './global';
|
|
46
|
+
import { castArray } from './global/index.js';
|
|
47
47
|
var ArrayUtils = /*#__PURE__*/ function() {
|
|
48
48
|
"use strict";
|
|
49
49
|
function ArrayUtils() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Coordinate } from "../interfaces/Coordinate";
|
|
1
|
+
import { Coordinate } from "../interfaces/Coordinate.js";
|
|
2
2
|
export declare class CoordinateUtils {
|
|
3
3
|
static isValidLatitude(latitude: Coordinate['latitude'] | string): boolean;
|
|
4
4
|
static isValidLongitude(longitude: Coordinate['longitude'] | string): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MomentInput, RelativeTimeSpec } from "moment";
|
|
2
|
-
import { DATE } from "../constants/DATE";
|
|
2
|
+
import { DATE } from "../constants/DATE.js";
|
|
3
3
|
export declare class DateUtils {
|
|
4
4
|
static isPositiveInteger(value: unknown, strict?: boolean): boolean;
|
|
5
5
|
static isMilliseconds(value: unknown, strict?: boolean): boolean;
|
|
@@ -30,7 +30,7 @@ function _type_of(obj) {
|
|
|
30
30
|
}
|
|
31
31
|
import { __publicField } from '../../chunk-PKBMQBKP.js';
|
|
32
32
|
import moment from 'moment';
|
|
33
|
-
import { DATE } from '../constants/DATE';
|
|
33
|
+
import { DATE } from '../constants/DATE.js';
|
|
34
34
|
var _DateUtils = /*#__PURE__*/ function() {
|
|
35
35
|
"use strict";
|
|
36
36
|
function _DateUtils() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EnumEntries } from "./Enum.types";
|
|
1
|
+
import type { EnumEntries } from "./Enum.types.js";
|
|
2
2
|
export declare class Enum<E extends object> {
|
|
3
3
|
static entries<E extends object>(e: E): EnumEntries<E>;
|
|
4
4
|
static keys<E extends object>(e: E): ({ [K in keyof E]: E[K] extends Function ? never : K; }[keyof E] extends infer R ? R extends never ? never : R : never)[];
|
|
@@ -18,7 +18,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
20
|
import '../../chunk-PKBMQBKP.js';
|
|
21
|
-
import { between } from './global/between';
|
|
21
|
+
import { between } from './global/between.js';
|
|
22
22
|
var JuminNumberUtils = /*#__PURE__*/ function() {
|
|
23
23
|
"use strict";
|
|
24
24
|
function JuminNumberUtils() {
|
|
@@ -18,7 +18,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
20
|
import '../../chunk-PKBMQBKP.js';
|
|
21
|
-
import { Uint8ArrayUtils } from './Uint8ArrayUtils';
|
|
21
|
+
import { Uint8ArrayUtils } from './Uint8ArrayUtils.js';
|
|
22
22
|
import { UUID } from '@powfix/uuid/node';
|
|
23
23
|
var ObjectIdUtils = /*#__PURE__*/ function() {
|
|
24
24
|
"use strict";
|
|
@@ -19,7 +19,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
19
19
|
}
|
|
20
20
|
import '../../chunk-PKBMQBKP.js';
|
|
21
21
|
import * as uuid from 'uuid';
|
|
22
|
-
import { Uint8ArrayUtils } from './Uint8ArrayUtils';
|
|
22
|
+
import { Uint8ArrayUtils } from './Uint8ArrayUtils.js';
|
|
23
23
|
var UuidUtils = /*#__PURE__*/ function() {
|
|
24
24
|
"use strict";
|
|
25
25
|
function UuidUtils() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../chunk-PKBMQBKP.js';
|
|
2
|
-
import { btoa } from './btoa';
|
|
3
|
-
import { atob } from './atob';
|
|
2
|
+
import { btoa } from './btoa.js';
|
|
3
|
+
import { atob } from './atob.js';
|
|
4
4
|
function encodeBase64(str) {
|
|
5
5
|
var encoder = new TextEncoder();
|
|
6
6
|
var bytes = encoder.encode(str);
|
|
@@ -12,6 +12,7 @@ var fallbackIfNullish = require('./fallbackIfNullish');
|
|
|
12
12
|
var fallbackIfUndefined = require('./fallbackIfUndefined');
|
|
13
13
|
var firstNonNullish = require('./firstNonNullish');
|
|
14
14
|
var flat = require('./flat');
|
|
15
|
+
var mapIfNotNullish = require('./mapIfNotNullish');
|
|
15
16
|
var processFirstNonNullish = require('./processFirstNonNullish');
|
|
16
17
|
var pureEnum = require('./pureEnum');
|
|
17
18
|
Object.keys(atob).forEach(function(k) {
|
|
@@ -118,6 +119,14 @@ Object.keys(flat).forEach(function(k) {
|
|
|
118
119
|
}
|
|
119
120
|
});
|
|
120
121
|
});
|
|
122
|
+
Object.keys(mapIfNotNullish).forEach(function(k) {
|
|
123
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function get() {
|
|
126
|
+
return mapIfNotNullish[k];
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
});
|
|
121
130
|
Object.keys(processFirstNonNullish).forEach(function(k) {
|
|
122
131
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
123
132
|
enumerable: true,
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
export * from './atob';
|
|
2
|
-
export * from './base64';
|
|
3
|
-
export * from './between';
|
|
4
|
-
export * from './btoa';
|
|
5
|
-
export * from './castArray';
|
|
6
|
-
export * from './circularDistance';
|
|
7
|
-
export * from './sleep';
|
|
8
|
-
export * from './fallbackIfMatch';
|
|
9
|
-
export * from './fallbackIfNull';
|
|
10
|
-
export * from './fallbackIfNullish';
|
|
11
|
-
export * from './fallbackIfUndefined';
|
|
12
|
-
export * from './firstNonNullish';
|
|
13
|
-
export * from './flat';
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
1
|
+
export * from './atob.js';
|
|
2
|
+
export * from './base64.js';
|
|
3
|
+
export * from './between.js';
|
|
4
|
+
export * from './btoa.js';
|
|
5
|
+
export * from './castArray.js';
|
|
6
|
+
export * from './circularDistance.js';
|
|
7
|
+
export * from './sleep.js';
|
|
8
|
+
export * from './fallbackIfMatch.js';
|
|
9
|
+
export * from './fallbackIfNull.js';
|
|
10
|
+
export * from './fallbackIfNullish.js';
|
|
11
|
+
export * from './fallbackIfUndefined.js';
|
|
12
|
+
export * from './firstNonNullish.js';
|
|
13
|
+
export * from './flat.js';
|
|
14
|
+
export * from './mapIfNotNullish.js';
|
|
15
|
+
export * from './processFirstNonNullish.js';
|
|
16
|
+
export * from './pureEnum.js';
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
export * from './atob';
|
|
2
|
-
export * from './base64';
|
|
3
|
-
export * from './between';
|
|
4
|
-
export * from './btoa';
|
|
5
|
-
export * from './castArray';
|
|
6
|
-
export * from './circularDistance';
|
|
7
|
-
export * from './sleep';
|
|
8
|
-
export * from './fallbackIfMatch';
|
|
9
|
-
export * from './fallbackIfNull';
|
|
10
|
-
export * from './fallbackIfNullish';
|
|
11
|
-
export * from './fallbackIfUndefined';
|
|
12
|
-
export * from './firstNonNullish';
|
|
13
|
-
export * from './flat';
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
1
|
+
export * from './atob.js';
|
|
2
|
+
export * from './base64.js';
|
|
3
|
+
export * from './between.js';
|
|
4
|
+
export * from './btoa.js';
|
|
5
|
+
export * from './castArray.js';
|
|
6
|
+
export * from './circularDistance.js';
|
|
7
|
+
export * from './sleep.js';
|
|
8
|
+
export * from './fallbackIfMatch.js';
|
|
9
|
+
export * from './fallbackIfNull.js';
|
|
10
|
+
export * from './fallbackIfNullish.js';
|
|
11
|
+
export * from './fallbackIfUndefined.js';
|
|
12
|
+
export * from './firstNonNullish.js';
|
|
13
|
+
export * from './flat.js';
|
|
14
|
+
export * from './mapIfNotNullish.js';
|
|
15
|
+
export * from './processFirstNonNullish.js';
|
|
16
|
+
export * from './pureEnum.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function mapIfNotNullish<T, R>(input: T, callback: (value: NonNullable<T>) => R): R | (T & (null | undefined));
|
|
@@ -24,7 +24,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
24
24
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
25
25
|
}
|
|
26
26
|
import '../../../chunk-PKBMQBKP.js';
|
|
27
|
-
import { firstNonNullish } from './firstNonNullish';
|
|
27
|
+
import { firstNonNullish } from './firstNonNullish.js';
|
|
28
28
|
function processFirstNonNullish(processor) {
|
|
29
29
|
for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
30
30
|
args[_key - 1] = arguments[_key];
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export * from './global';
|
|
2
|
-
export * from './ArrayUtils';
|
|
3
|
-
export * from './AxiosUtils';
|
|
4
|
-
export * from './StringUtils';
|
|
5
|
-
export * from './Uint8ArrayUtils';
|
|
6
|
-
export * from './UuidUtils';
|
|
7
|
-
export * from './BooleanUtils';
|
|
8
|
-
export * from './Calc';
|
|
9
|
-
export * from './CoordinateUtils';
|
|
10
|
-
export * from './DateUtils';
|
|
11
|
-
export * from './Enum';
|
|
12
|
-
export * from './Enum.types';
|
|
13
|
-
export * from './I18nUtils';
|
|
14
|
-
export * from './NumberUtils';
|
|
15
|
-
export * from './ObjectIdUtils';
|
|
16
|
-
export * from './Point3Utils';
|
|
17
|
-
export * from './RandomUtils';
|
|
18
|
-
export * from './Validator';
|
|
19
|
-
export * from './JuminNumberUtils';
|
|
20
|
-
export * from './Sequencer';
|
|
21
|
-
export * from './try-catch';
|
|
1
|
+
export * from './global/index.js';
|
|
2
|
+
export * from './ArrayUtils.js';
|
|
3
|
+
export * from './AxiosUtils.js';
|
|
4
|
+
export * from './StringUtils.js';
|
|
5
|
+
export * from './Uint8ArrayUtils.js';
|
|
6
|
+
export * from './UuidUtils.js';
|
|
7
|
+
export * from './BooleanUtils.js';
|
|
8
|
+
export * from './Calc.js';
|
|
9
|
+
export * from './CoordinateUtils.js';
|
|
10
|
+
export * from './DateUtils.js';
|
|
11
|
+
export * from './Enum.js';
|
|
12
|
+
export * from './Enum.types.js';
|
|
13
|
+
export * from './I18nUtils.js';
|
|
14
|
+
export * from './NumberUtils.js';
|
|
15
|
+
export * from './ObjectIdUtils.js';
|
|
16
|
+
export * from './Point3Utils.js';
|
|
17
|
+
export * from './RandomUtils.js';
|
|
18
|
+
export * from './Validator.js';
|
|
19
|
+
export * from './JuminNumberUtils.js';
|
|
20
|
+
export * from './Sequencer.js';
|
|
21
|
+
export * from './try-catch/index.js';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export * from './global';
|
|
2
|
-
export * from './ArrayUtils';
|
|
3
|
-
export * from './AxiosUtils';
|
|
4
|
-
export * from './StringUtils';
|
|
5
|
-
export * from './Uint8ArrayUtils';
|
|
6
|
-
export * from './UuidUtils';
|
|
7
|
-
export * from './BooleanUtils';
|
|
8
|
-
export * from './Calc';
|
|
9
|
-
export * from './CoordinateUtils';
|
|
10
|
-
export * from './DateUtils';
|
|
11
|
-
export * from './Enum';
|
|
12
|
-
export * from './Enum.types';
|
|
13
|
-
export * from './I18nUtils';
|
|
14
|
-
export * from './NumberUtils';
|
|
15
|
-
export * from './ObjectIdUtils';
|
|
16
|
-
export * from './Point3Utils';
|
|
17
|
-
export * from './RandomUtils';
|
|
18
|
-
export * from './Validator';
|
|
19
|
-
export * from './JuminNumberUtils';
|
|
20
|
-
export * from './Sequencer';
|
|
21
|
-
export * from './try-catch';
|
|
1
|
+
export * from './global/index.js';
|
|
2
|
+
export * from './ArrayUtils.js';
|
|
3
|
+
export * from './AxiosUtils.js';
|
|
4
|
+
export * from './StringUtils.js';
|
|
5
|
+
export * from './Uint8ArrayUtils.js';
|
|
6
|
+
export * from './UuidUtils.js';
|
|
7
|
+
export * from './BooleanUtils.js';
|
|
8
|
+
export * from './Calc.js';
|
|
9
|
+
export * from './CoordinateUtils.js';
|
|
10
|
+
export * from './DateUtils.js';
|
|
11
|
+
export * from './Enum.js';
|
|
12
|
+
export * from './Enum.types.js';
|
|
13
|
+
export * from './I18nUtils.js';
|
|
14
|
+
export * from './NumberUtils.js';
|
|
15
|
+
export * from './ObjectIdUtils.js';
|
|
16
|
+
export * from './Point3Utils.js';
|
|
17
|
+
export * from './RandomUtils.js';
|
|
18
|
+
export * from './Validator.js';
|
|
19
|
+
export * from './JuminNumberUtils.js';
|
|
20
|
+
export * from './Sequencer.js';
|
|
21
|
+
export * from './try-catch/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./TryCatch";
|
|
1
|
+
export * from "./TryCatch.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './TryCatch';
|
|
1
|
+
export * from './TryCatch.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powfix/core-js",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.8",
|
|
4
4
|
"description": "core package",
|
|
5
5
|
"author": "Kwon Kyung-Min <powfix@gmail.com>",
|
|
6
6
|
"private": false,
|
|
@@ -21,12 +21,13 @@
|
|
|
21
21
|
"types": "./dist/index.d.ts",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"clean": "rm -rf dist | wc -l",
|
|
24
|
-
"esmfix": "tsc-esm-fix --ext='.
|
|
24
|
+
"esmfix": "tsc-esm-fix --ext='.js' dist/**/*.js",
|
|
25
25
|
"compile": "tsc",
|
|
26
26
|
"prebuild": "yarn clean",
|
|
27
27
|
"build": "yarn compile && yarn build:tsup && yarn build:dts",
|
|
28
28
|
"build:tsup": "tsup --config tsup.config.ts",
|
|
29
|
-
"build:dts": "tsc -p tsconfig.declaration.json"
|
|
29
|
+
"build:dts": "tsc -p tsconfig.declaration.json",
|
|
30
|
+
"postbuild": "yarn esmfix"
|
|
30
31
|
},
|
|
31
32
|
"files": [
|
|
32
33
|
"dist",
|