@futdevpro/fsm-dynamo 1.5.74 → 1.5.76
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/lib/_constants/error-defaults.const.d.ts +2 -2
- package/lib/_constants/error-defaults.const.js +11 -11
- package/lib/_constants/index.d.ts +3 -3
- package/lib/_constants/index.js +8 -8
- package/lib/_constants/location/country-codes-ISO-3166.json +3239 -3239
- package/lib/_constants/location/country-divisions-ISO-3166-all-list.json +19036 -19036
- package/lib/_constants/location/country-phone-codes.json +1202 -1202
- package/lib/_constants/module-settings/custom-data-module-settings.const.d.ts +2 -2
- package/lib/_constants/module-settings/custom-data-module-settings.const.js +10 -10
- package/lib/_constants/module-settings/index.d.ts +3 -3
- package/lib/_constants/module-settings/index.js +7 -7
- package/lib/_constants/module-settings/test-module-settings.const.d.ts +2 -2
- package/lib/_constants/module-settings/test-module-settings.const.js +14 -14
- package/lib/_constants/module-settings/usage-module-settings.const.d.ts +2 -2
- package/lib/_constants/module-settings/usage-module-settings.const.js +12 -12
- package/lib/_constants/times.const.d.ts +7 -7
- package/lib/_constants/times.const.js +10 -10
- package/lib/_enums/basic-property-type.enum.d.ts +7 -7
- package/lib/_enums/basic-property-type.enum.js +11 -11
- package/lib/_enums/basic-property-type.enum.js.map +1 -1
- package/lib/_enums/data-model-type.enum.d.ts +5 -5
- package/lib/_enums/data-model-type.enum.js +9 -9
- package/lib/_enums/data-model-type.enum.js.map +1 -1
- package/lib/_enums/index.d.ts +6 -6
- package/lib/_enums/index.js +10 -10
- package/lib/_enums/log-style.enum.d.ts +25 -25
- package/lib/_enums/log-style.enum.js +29 -29
- package/lib/_enums/log-style.enum.js.map +1 -1
- package/lib/_enums/region.enum.d.ts +7 -7
- package/lib/_enums/region.enum.js +11 -11
- package/lib/_enums/region.enum.js.map +1 -1
- package/lib/_enums/sub-region.enum.d.ts +19 -19
- package/lib/_enums/sub-region.enum.js +23 -23
- package/lib/_enums/sub-region.enum.js.map +1 -1
- package/lib/_enums/subdivision-region-type.enum.d.ts +40 -40
- package/lib/_enums/subdivision-region-type.enum.js +45 -45
- package/lib/_enums/subdivision-region-type.enum.js.map +1 -1
- package/lib/_models/control-models/daily-usage-data.control-model.d.ts +11 -11
- package/lib/_models/control-models/daily-usage-data.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/daily-usage-data.control-model.js +17 -16
- package/lib/_models/control-models/daily-usage-data.control-model.js.map +1 -1
- package/lib/_models/control-models/data-params.control-model.d.ts +12 -12
- package/lib/_models/control-models/data-params.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/data-params.control-model.js +22 -19
- package/lib/_models/control-models/data-params.control-model.js.map +1 -1
- package/lib/_models/control-models/data-property-params.control-model.d.ts +28 -28
- package/lib/_models/control-models/data-property-params.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/data-property-params.control-model.js +69 -54
- package/lib/_models/control-models/data-property-params.control-model.js.map +1 -1
- package/lib/_models/control-models/error.control-model.d.ts +281 -281
- package/lib/_models/control-models/error.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/error.control-model.js +180 -173
- package/lib/_models/control-models/error.control-model.js.map +1 -1
- package/lib/_models/control-models/error.control-model.spec.d.ts +1 -1
- package/lib/_models/control-models/error.control-model.spec.js +551 -573
- package/lib/_models/control-models/error.control-model.spec.js.map +1 -1
- package/lib/_models/control-models/index.d.ts +9 -9
- package/lib/_models/control-models/index.js +13 -13
- package/lib/_models/control-models/poll.control-model.d.ts +31 -31
- package/lib/_models/control-models/poll.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/poll.control-model.js +95 -87
- package/lib/_models/control-models/poll.control-model.js.map +1 -1
- package/lib/_models/control-models/range-value.control-model.d.ts +7 -7
- package/lib/_models/control-models/range-value.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/range-value.control-model.js +12 -10
- package/lib/_models/control-models/range-value.control-model.js.map +1 -1
- package/lib/_models/control-models/usage-action.control-model.d.ts +6 -6
- package/lib/_models/control-models/usage-action.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/usage-action.control-model.js +14 -12
- package/lib/_models/control-models/usage-action.control-model.js.map +1 -1
- package/lib/_models/control-models/usage-data.control-model.d.ts +10 -10
- package/lib/_models/control-models/usage-data.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/usage-data.control-model.js +15 -12
- package/lib/_models/control-models/usage-data.control-model.js.map +1 -1
- package/lib/_models/data-models/custom-data.data-model.d.ts +9 -9
- package/lib/_models/data-models/custom-data.data-model.d.ts.map +1 -1
- package/lib/_models/data-models/custom-data.data-model.js +21 -20
- package/lib/_models/data-models/custom-data.data-model.js.map +1 -1
- package/lib/_models/data-models/index.d.ts +3 -3
- package/lib/_models/data-models/index.js +7 -7
- package/lib/_models/data-models/metadata.data-model.d.ts +14 -14
- package/lib/_models/data-models/metadata.data-model.d.ts.map +1 -1
- package/lib/_models/data-models/metadata.data-model.js +45 -39
- package/lib/_models/data-models/metadata.data-model.js.map +1 -1
- package/lib/_models/data-models/usage-session.data-model.d.ts +18 -18
- package/lib/_models/data-models/usage-session.data-model.d.ts.map +1 -1
- package/lib/_models/data-models/usage-session.data-model.js +44 -36
- package/lib/_models/data-models/usage-session.data-model.js.map +1 -1
- package/lib/_models/index.d.ts +3 -3
- package/lib/_models/index.js +10 -10
- package/lib/_models/interfaces/error-defaults.interface.d.ts +8 -8
- package/lib/_models/interfaces/error-defaults.interface.js +2 -2
- package/lib/_models/interfaces/index.d.ts +4 -4
- package/lib/_models/interfaces/index.js +9 -9
- package/lib/_models/interfaces/location/country-division.interface.d.ts +5 -5
- package/lib/_models/interfaces/location/country-division.interface.js +2 -2
- package/lib/_models/interfaces/location/country-iso.interface.d.ts +18 -18
- package/lib/_models/interfaces/location/country-iso.interface.js +2 -2
- package/lib/_models/interfaces/location/country-phone-code.interface.d.ts +5 -5
- package/lib/_models/interfaces/location/country-phone-code.interface.js +2 -2
- package/lib/_models/interfaces/location/division-collection.interface.d.ts +8 -8
- package/lib/_models/interfaces/location/division-collection.interface.js +2 -2
- package/lib/_models/interfaces/location/division-region-data.interface.d.ts +5 -5
- package/lib/_models/interfaces/location/division-region-data.interface.js +2 -2
- package/lib/_models/interfaces/location/geo-ip-location.interface.d.ts +25 -25
- package/lib/_models/interfaces/location/geo-ip-location.interface.js +2 -2
- package/lib/_models/interfaces/location/index.d.ts +7 -7
- package/lib/_models/interfaces/location/index.js +11 -11
- package/lib/_models/interfaces/location/location-coordinates.interface.d.ts +4 -4
- package/lib/_models/interfaces/location/location-coordinates.interface.js +2 -2
- package/lib/_models/interfaces/random-weight.interface.d.ts +4 -4
- package/lib/_models/interfaces/random-weight.interface.js +2 -2
- package/lib/_models/interfaces/route-settings.interface.d.ts +8 -8
- package/lib/_models/interfaces/route-settings.interface.d.ts.map +1 -1
- package/lib/_models/interfaces/route-settings.interface.js +2 -2
- package/lib/_modules/collections.index.d.ts +1 -1
- package/lib/_modules/collections.index.js +4 -4
- package/lib/_modules/constants.index.d.ts +1 -1
- package/lib/_modules/constants.index.js +4 -4
- package/lib/_modules/custom-data-module.index.d.ts +2 -2
- package/lib/_modules/custom-data-module.index.js +6 -6
- package/lib/_modules/data-modules.index.d.ts +5 -5
- package/lib/_modules/data-modules.index.js +9 -9
- package/lib/_modules/enums.index.d.ts +1 -1
- package/lib/_modules/enums.index.js +4 -4
- package/lib/_modules/error-module.index.d.ts +3 -3
- package/lib/_modules/error-module.index.js +7 -7
- package/lib/_modules/location.index.d.ts +7 -0
- package/lib/_modules/location.index.d.ts.map +1 -0
- package/lib/_modules/location.index.js +13 -0
- package/lib/_modules/location.index.js.map +1 -0
- package/lib/_modules/models.index.d.ts +1 -1
- package/lib/_modules/models.index.js +4 -4
- package/lib/_modules/shared-service.index.d.ts +7 -7
- package/lib/_modules/shared-service.index.js +11 -11
- package/lib/_modules/test-module.index.d.ts +1 -1
- package/lib/_modules/test-module.index.js +5 -5
- package/lib/_modules/usage-module.index.d.ts +5 -5
- package/lib/_modules/usage-module.index.js +9 -9
- package/lib/_utils/array.util.d.ts +7 -7
- package/lib/_utils/array.util.d.ts.map +1 -1
- package/lib/_utils/array.util.js +32 -37
- package/lib/_utils/array.util.js.map +1 -1
- package/lib/_utils/array.util.spec.d.ts +1 -1
- package/lib/_utils/array.util.spec.js +29 -30
- package/lib/_utils/array.util.spec.js.map +1 -1
- package/lib/_utils/index.d.ts +13 -13
- package/lib/_utils/index.js +17 -17
- package/lib/_utils/location.util.d.ts +6 -6
- package/lib/_utils/location.util.d.ts.map +1 -1
- package/lib/_utils/location.util.js +39 -39
- package/lib/_utils/log.util.d.ts +54 -54
- package/lib/_utils/log.util.d.ts.map +1 -1
- package/lib/_utils/log.util.js +189 -189
- package/lib/_utils/log.util.js.map +1 -1
- package/lib/_utils/metadata.util.d.ts +4 -4
- package/lib/_utils/metadata.util.js +24 -24
- package/lib/_utils/random.util.d.ts +8 -8
- package/lib/_utils/random.util.d.ts.map +1 -1
- package/lib/_utils/random.util.js +59 -59
- package/lib/_utils/random.util.js.map +1 -1
- package/lib/_utils/regex.util.d.ts +1 -1
- package/lib/_utils/regex.util.js +4 -4
- package/lib/_utils/regions.util.d.ts +16 -16
- package/lib/_utils/regions.util.d.ts.map +1 -1
- package/lib/_utils/regions.util.js +66 -67
- package/lib/_utils/regions.util.js.map +1 -1
- package/lib/_utils/round-list.util.d.ts +8 -8
- package/lib/_utils/round-list.util.d.ts.map +1 -1
- package/lib/_utils/round-list.util.js +38 -38
- package/lib/_utils/shared.static-service.d.ts +73 -73
- package/lib/_utils/shared.static-service.d.ts.map +1 -1
- package/lib/_utils/shared.static-service.js +150 -150
- package/lib/_utils/shared.static-service.js.map +1 -1
- package/lib/_utils/time.util.d.ts +13 -13
- package/lib/_utils/time.util.d.ts.map +1 -1
- package/lib/_utils/time.util.js +40 -40
- package/lib/_utils/trigonometry.util.d.ts +45 -45
- package/lib/_utils/trigonometry.util.d.ts.map +1 -1
- package/lib/_utils/trigonometry.util.js +61 -61
- package/lib/_utils/utilities.util.d.ts +36 -36
- package/lib/_utils/utilities.util.js +94 -94
- package/lib/_utils/vector.util.d.ts +37 -37
- package/lib/_utils/vector.util.js +109 -106
- package/lib/_utils/vector.util.js.map +1 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.js +11 -11
- package/lib/tsconfig.tsbuildinfo +1 -3519
- package/nodemon.json +7 -4
- package/package.json +28 -15
- package/src/_models/control-models/error.control-model.spec.ts +1 -1
- package/src/_models/control-models/error.control-model.ts +1 -1
- package/src/_modules/location.index.ts +15 -0
- package/tsconfig.json +2 -1
- package/src/sync.ffs_db +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './country-division.interface';
|
|
2
|
-
export * from './country-iso.interface';
|
|
3
|
-
export * from './country-phone-code.interface';
|
|
4
|
-
export * from './division-collection.interface';
|
|
5
|
-
export * from './division-region-data.interface';
|
|
6
|
-
export * from './geo-ip-location.interface';
|
|
7
|
-
export * from './location-coordinates.interface';
|
|
1
|
+
export * from './country-division.interface';
|
|
2
|
+
export * from './country-iso.interface';
|
|
3
|
+
export * from './country-phone-code.interface';
|
|
4
|
+
export * from './division-collection.interface';
|
|
5
|
+
export * from './division-region-data.interface';
|
|
6
|
+
export * from './geo-ip-location.interface';
|
|
7
|
+
export * from './location-coordinates.interface';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
// LOCATION INTERFACES
|
|
5
|
-
tslib_1.__exportStar(require("./country-division.interface"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./country-iso.interface"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./country-phone-code.interface"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./division-collection.interface"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./division-region-data.interface"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./geo-ip-location.interface"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./location-coordinates.interface"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// LOCATION INTERFACES
|
|
5
|
+
tslib_1.__exportStar(require("./country-division.interface"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./country-iso.interface"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./country-phone-code.interface"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./division-collection.interface"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./division-region-data.interface"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./geo-ip-location.interface"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./location-coordinates.interface"), exports);
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface LocationCoordinates {
|
|
2
|
-
longitude: number;
|
|
3
|
-
latitude: number;
|
|
4
|
-
}
|
|
1
|
+
export interface LocationCoordinates {
|
|
2
|
+
longitude: number;
|
|
3
|
+
latitude: number;
|
|
4
|
+
}
|
|
5
5
|
//# sourceMappingURL=location-coordinates.interface.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=location-coordinates.interface.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface RandomWeight<T> {
|
|
2
|
-
chance: number;
|
|
3
|
-
result: T;
|
|
4
|
-
}
|
|
1
|
+
export interface RandomWeight<T> {
|
|
2
|
+
chance: number;
|
|
3
|
+
result: T;
|
|
4
|
+
}
|
|
5
5
|
//# sourceMappingURL=random-weight.interface.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=random-weight.interface.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export interface Dynamo_RouteSettings {
|
|
4
|
-
mainRoute: string;
|
|
5
|
-
endPoints: {
|
|
6
|
-
[endpoint: string]: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
1
|
+
export type D_RouteSettings = Dynamo_RouteSettings;
|
|
2
|
+
export type D_RouteS = Dynamo_RouteSettings;
|
|
3
|
+
export interface Dynamo_RouteSettings {
|
|
4
|
+
mainRoute: string;
|
|
5
|
+
endPoints: {
|
|
6
|
+
[endpoint: string]: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=route-settings.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-settings.interface.d.ts","sourceRoot":"","sources":["../../../src/_models/interfaces/route-settings.interface.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"route-settings.interface.d.ts","sourceRoot":"","sources":["../../../src/_models/interfaces/route-settings.interface.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,oBAAoB,CAAC;AAC5C,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE;QACT,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;KAC3B,CAAC;CACH"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=route-settings.interface.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '../_utils';
|
|
1
|
+
export * from '../_utils';
|
|
2
2
|
//# sourceMappingURL=collections.index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("../_utils"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("../_utils"), exports);
|
|
5
5
|
//# sourceMappingURL=collections.index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '../_constants';
|
|
1
|
+
export * from '../_constants';
|
|
2
2
|
//# sourceMappingURL=constants.index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("../_constants"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("../_constants"), exports);
|
|
5
5
|
//# sourceMappingURL=constants.index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from '../_models/data-models/custom-data.data-model';
|
|
2
|
-
export * from '../_constants/module-settings/custom-data-module-settings.const';
|
|
1
|
+
export * from '../_models/data-models/custom-data.data-model';
|
|
2
|
+
export * from '../_constants/module-settings/custom-data-module-settings.const';
|
|
3
3
|
//# sourceMappingURL=custom-data-module.index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
// CUSTOM-DATA MODULE
|
|
5
|
-
tslib_1.__exportStar(require("../_models/data-models/custom-data.data-model"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("../_constants/module-settings/custom-data-module-settings.const"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// CUSTOM-DATA MODULE
|
|
5
|
+
tslib_1.__exportStar(require("../_models/data-models/custom-data.data-model"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("../_constants/module-settings/custom-data-module-settings.const"), exports);
|
|
7
7
|
//# sourceMappingURL=custom-data-module.index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from '../_models/data-models/metadata.data-model';
|
|
2
|
-
export * from '../_models/control-models/data-params.control-model';
|
|
3
|
-
export * from '../_models/control-models/data-property-params.control-model';
|
|
4
|
-
export * from '../_models/control-models/error.control-model';
|
|
5
|
-
export * from '../_enums/data-model-type.enum';
|
|
1
|
+
export * from '../_models/data-models/metadata.data-model';
|
|
2
|
+
export * from '../_models/control-models/data-params.control-model';
|
|
3
|
+
export * from '../_models/control-models/data-property-params.control-model';
|
|
4
|
+
export * from '../_models/control-models/error.control-model';
|
|
5
|
+
export * from '../_enums/data-model-type.enum';
|
|
6
6
|
//# sourceMappingURL=data-modules.index.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
// DATA MODULE
|
|
5
|
-
tslib_1.__exportStar(require("../_models/data-models/metadata.data-model"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("../_models/control-models/data-params.control-model"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("../_models/control-models/data-property-params.control-model"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("../_models/control-models/error.control-model"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("../_enums/data-model-type.enum"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// DATA MODULE
|
|
5
|
+
tslib_1.__exportStar(require("../_models/data-models/metadata.data-model"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("../_models/control-models/data-params.control-model"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("../_models/control-models/data-property-params.control-model"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("../_models/control-models/error.control-model"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("../_enums/data-model-type.enum"), exports);
|
|
10
10
|
//# sourceMappingURL=data-modules.index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '../_enums';
|
|
1
|
+
export * from '../_enums';
|
|
2
2
|
//# sourceMappingURL=enums.index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("../_enums"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("../_enums"), exports);
|
|
5
5
|
//# sourceMappingURL=enums.index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from '../_models/control-models/error.control-model';
|
|
2
|
-
export * from '../_constants/error-defaults.const';
|
|
3
|
-
export * from '../_models/interfaces/error-defaults.interface';
|
|
1
|
+
export * from '../_models/control-models/error.control-model';
|
|
2
|
+
export * from '../_constants/error-defaults.const';
|
|
3
|
+
export * from '../_models/interfaces/error-defaults.interface';
|
|
4
4
|
//# sourceMappingURL=error-module.index.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
// ERROR MODULE
|
|
5
|
-
tslib_1.__exportStar(require("../_models/control-models/error.control-model"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("../_constants/error-defaults.const"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("../_models/interfaces/error-defaults.interface"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// ERROR MODULE
|
|
5
|
+
tslib_1.__exportStar(require("../_models/control-models/error.control-model"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("../_constants/error-defaults.const"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("../_models/interfaces/error-defaults.interface"), exports);
|
|
8
8
|
//# sourceMappingURL=error-module.index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from '../_models/interfaces/location';
|
|
2
|
+
export * from '../_enums/region.enum';
|
|
3
|
+
export * from '../_enums/sub-region.enum';
|
|
4
|
+
export * from '../_enums/subdivision-region-type.enum';
|
|
5
|
+
export * from '../_utils/location.util';
|
|
6
|
+
export * from '../_utils/regions.util';
|
|
7
|
+
//# sourceMappingURL=location.index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.index.d.ts","sourceRoot":"","sources":["../../src/_modules/location.index.ts"],"names":[],"mappings":"AAEA,cAAc,gCAAgC,CAAC;AAG/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wCAAwC,CAAC;AAGvD,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// INTERFACES
|
|
5
|
+
tslib_1.__exportStar(require("../_models/interfaces/location"), exports);
|
|
6
|
+
// ENUMS
|
|
7
|
+
tslib_1.__exportStar(require("../_enums/region.enum"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("../_enums/sub-region.enum"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("../_enums/subdivision-region-type.enum"), exports);
|
|
10
|
+
// UTILS
|
|
11
|
+
tslib_1.__exportStar(require("../_utils/location.util"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("../_utils/regions.util"), exports);
|
|
13
|
+
//# sourceMappingURL=location.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.index.js","sourceRoot":"","sources":["../../src/_modules/location.index.ts"],"names":[],"mappings":";;;AACA,aAAa;AACb,yEAA+C;AAE/C,QAAQ;AACR,gEAAsC;AACtC,oEAA0C;AAC1C,iFAAuD;AAEvD,QAAQ;AACR,kEAAwC;AACxC,iEAAuC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '../_models';
|
|
1
|
+
export * from '../_models';
|
|
2
2
|
//# sourceMappingURL=models.index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("../_models"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("../_models"), exports);
|
|
5
5
|
//# sourceMappingURL=models.index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from '../_utils/shared.static-service';
|
|
2
|
-
export * from '../_constants/times.const';
|
|
3
|
-
export * from '../_enums/log-style.enum';
|
|
4
|
-
export * from '../_models/control-models/error.control-model';
|
|
5
|
-
export * from '../_models/control-models/poll.control-model';
|
|
6
|
-
export * from '../_models/interfaces/location/location-coordinates.interface';
|
|
7
|
-
export * from '../_models/interfaces/location/geo-ip-location.interface';
|
|
1
|
+
export * from '../_utils/shared.static-service';
|
|
2
|
+
export * from '../_constants/times.const';
|
|
3
|
+
export * from '../_enums/log-style.enum';
|
|
4
|
+
export * from '../_models/control-models/error.control-model';
|
|
5
|
+
export * from '../_models/control-models/poll.control-model';
|
|
6
|
+
export * from '../_models/interfaces/location/location-coordinates.interface';
|
|
7
|
+
export * from '../_models/interfaces/location/geo-ip-location.interface';
|
|
8
8
|
//# sourceMappingURL=shared-service.index.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
// SHARED SERVICE MODULE
|
|
5
|
-
tslib_1.__exportStar(require("../_utils/shared.static-service"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("../_constants/times.const"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("../_enums/log-style.enum"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("../_models/control-models/error.control-model"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("../_models/control-models/poll.control-model"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("../_models/interfaces/location/location-coordinates.interface"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("../_models/interfaces/location/geo-ip-location.interface"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// SHARED SERVICE MODULE
|
|
5
|
+
tslib_1.__exportStar(require("../_utils/shared.static-service"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("../_constants/times.const"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("../_enums/log-style.enum"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("../_models/control-models/error.control-model"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("../_models/control-models/poll.control-model"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("../_models/interfaces/location/location-coordinates.interface"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("../_models/interfaces/location/geo-ip-location.interface"), exports);
|
|
12
12
|
//# sourceMappingURL=shared-service.index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '../_constants/module-settings/test-module-settings.const';
|
|
1
|
+
export * from '../_constants/module-settings/test-module-settings.const';
|
|
2
2
|
//# sourceMappingURL=test-module.index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
// TEST MODULE
|
|
5
|
-
tslib_1.__exportStar(require("../_constants/module-settings/test-module-settings.const"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// TEST MODULE
|
|
5
|
+
tslib_1.__exportStar(require("../_constants/module-settings/test-module-settings.const"), exports);
|
|
6
6
|
//# sourceMappingURL=test-module.index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from '../_models/data-models/usage-session.data-model';
|
|
2
|
-
export * from '../_constants/module-settings/usage-module-settings.const';
|
|
3
|
-
export * from '../_models/control-models/usage-data.control-model';
|
|
4
|
-
export * from '../_models/control-models/daily-usage-data.control-model';
|
|
5
|
-
export * from '../_models/control-models/usage-action.control-model';
|
|
1
|
+
export * from '../_models/data-models/usage-session.data-model';
|
|
2
|
+
export * from '../_constants/module-settings/usage-module-settings.const';
|
|
3
|
+
export * from '../_models/control-models/usage-data.control-model';
|
|
4
|
+
export * from '../_models/control-models/daily-usage-data.control-model';
|
|
5
|
+
export * from '../_models/control-models/usage-action.control-model';
|
|
6
6
|
//# sourceMappingURL=usage-module.index.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
// USAGE MODULE
|
|
5
|
-
tslib_1.__exportStar(require("../_models/data-models/usage-session.data-model"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("../_constants/module-settings/usage-module-settings.const"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("../_models/control-models/usage-data.control-model"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("../_models/control-models/daily-usage-data.control-model"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("../_models/control-models/usage-action.control-model"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// USAGE MODULE
|
|
5
|
+
tslib_1.__exportStar(require("../_models/data-models/usage-session.data-model"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("../_constants/module-settings/usage-module-settings.const"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("../_models/control-models/usage-data.control-model"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("../_models/control-models/daily-usage-data.control-model"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("../_models/control-models/usage-action.control-model"), exports);
|
|
10
10
|
//# sourceMappingURL=usage-module.index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare class Dynamo_Array {
|
|
3
|
-
static asyncForEach<T>(list: T[], func: (element: T, index?: number, array?: T[]) => Promise<void>): Promise<void>;
|
|
4
|
-
static asyncMapArray<T, R>(list: T[], mapFunc: (element: T, index?: number, array?: T[]) => Promise<R>): Promise<R[]>;
|
|
5
|
-
static remove<T>(array: T[], element: T): T[];
|
|
6
|
-
static findNRemove<T>(array: T[], func: (element: T, index?: number, array?: T[]) => boolean): T[];
|
|
7
|
-
}
|
|
1
|
+
export type D_Array = Dynamo_Array;
|
|
2
|
+
export declare class Dynamo_Array {
|
|
3
|
+
static asyncForEach<T>(list: T[], func: (element: T, index?: number, array?: T[]) => Promise<void>): Promise<void>;
|
|
4
|
+
static asyncMapArray<T, R>(list: T[], mapFunc: (element: T, index?: number, array?: T[]) => Promise<R>): Promise<R[]>;
|
|
5
|
+
static remove<T>(array: T[], element: T): T[];
|
|
6
|
+
static findNRemove<T>(array: T[], func: (element: T, index?: number, array?: T[]) => boolean): T[];
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=array.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.util.d.ts","sourceRoot":"","sources":["../../src/_utils/array.util.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"array.util.d.ts","sourceRoot":"","sources":["../../src/_utils/array.util.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,GAAG,YAAY,CAAC;AACnC,qBAAa,YAAY;WAEV,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;WAM3G,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,EAAE,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAU3H,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE;IAU7C,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,EAAE,KAAK,OAAO,GAAG,CAAC,EAAE;CASnG"}
|
package/lib/_utils/array.util.js
CHANGED
|
@@ -1,38 +1,33 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Dynamo_Array = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
return array;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.Dynamo_Array = Dynamo_Array;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Dynamo_Array = void 0;
|
|
4
|
+
class Dynamo_Array {
|
|
5
|
+
static async asyncForEach(list, func) {
|
|
6
|
+
for (let i = 0; i < list.length; i++) {
|
|
7
|
+
await func(list[i], i, list);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
static async asyncMapArray(list, mapFunc) {
|
|
11
|
+
const resultList = [];
|
|
12
|
+
for (let i = 0; i < list.length; i++) {
|
|
13
|
+
resultList.push(await mapFunc(list[i], i, list));
|
|
14
|
+
}
|
|
15
|
+
return resultList;
|
|
16
|
+
}
|
|
17
|
+
static remove(array, element) {
|
|
18
|
+
const index = array.indexOf(element);
|
|
19
|
+
if (-1 < index) {
|
|
20
|
+
array.splice(index, 1);
|
|
21
|
+
}
|
|
22
|
+
return array;
|
|
23
|
+
}
|
|
24
|
+
static findNRemove(array, func) {
|
|
25
|
+
const index = array.findIndex(func);
|
|
26
|
+
if (-1 < index) {
|
|
27
|
+
array.splice(index, 1);
|
|
28
|
+
}
|
|
29
|
+
return array;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.Dynamo_Array = Dynamo_Array;
|
|
38
33
|
//# sourceMappingURL=array.util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.util.js","sourceRoot":"","sources":["../../src/_utils/array.util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"array.util.js","sourceRoot":"","sources":["../../src/_utils/array.util.ts"],"names":[],"mappings":";;;AAGA,MAAa,YAAY;IAEvB,MAAM,CAAC,KAAK,CAAC,YAAY,CAAI,IAAS,EAAE,IAAgE;QACtG,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpC,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;SAC9B;IACH,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,aAAa,CAAO,IAAS,EAAE,OAAgE;QAC1G,MAAM,UAAU,GAAQ,EAAE,CAAC;QAE3B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpC,UAAU,CAAC,IAAI,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;SAClD;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,MAAM,CAAC,MAAM,CAAI,KAAU,EAAE,OAAU;QACrC,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAErC,IAAI,CAAC,CAAC,GAAG,KAAK,EAAE;YACd,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;SACxB;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,CAAC,WAAW,CAAI,KAAU,EAAE,IAA0D;QAC1F,MAAM,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAEpC,IAAI,CAAC,CAAC,GAAG,KAAK,EAAE;YACd,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;SACxB;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AArCD,oCAqCC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=array.util.spec.d.ts.map
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
describe('
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const array_util_1 = require("./array.util");
|
|
4
|
+
const utilities_util_1 = require("./utilities.util");
|
|
5
|
+
describe('Dynamo_Array', () => {
|
|
6
|
+
describe('asyncForEach', () => {
|
|
7
|
+
it('should call the function for each element in the list', async () => {
|
|
8
|
+
const list = [1, 2, 3];
|
|
9
|
+
const result = [];
|
|
10
|
+
const func = async (e, i) => {
|
|
11
|
+
await (0, utilities_util_1.delay)(30);
|
|
12
|
+
result.push(e);
|
|
13
|
+
};
|
|
14
|
+
await array_util_1.Dynamo_Array.asyncForEach(list, func);
|
|
15
|
+
expect(result).toEqual(list);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
describe('asyncMapArray', () => {
|
|
19
|
+
it('should call the function for each element in the list', async () => {
|
|
20
|
+
const list = [1, 2, 3];
|
|
21
|
+
const func = async (e, i) => {
|
|
22
|
+
await (0, utilities_util_1.delay)(30);
|
|
23
|
+
return e * 2;
|
|
24
|
+
};
|
|
25
|
+
const result = await array_util_1.Dynamo_Array.asyncMapArray(list, func);
|
|
26
|
+
expect(result).toEqual([2, 4, 6]);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
});
|
|
31
30
|
//# sourceMappingURL=array.util.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.util.spec.js","sourceRoot":"","sources":["../../src/_utils/array.util.spec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"array.util.spec.js","sourceRoot":"","sources":["../../src/_utils/array.util.spec.ts"],"names":[],"mappings":";;AAEA,6CAA4C;AAC5C,qDAAyC;AAEzC,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAE5B,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;QAC5B,EAAE,CAAC,uDAAuD,EAAE,KAAK,IAAI,EAAE;YACrE,MAAM,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;YACvB,MAAM,MAAM,GAAG,EAAE,CAAC;YAClB,MAAM,IAAI,GAAG,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE;gBAC1B,MAAM,IAAA,sBAAK,EAAC,EAAE,CAAC,CAAC;gBAChB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACjB,CAAC,CAAC;YAEF,MAAM,yBAAY,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAE5C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;QAC7B,EAAE,CAAC,uDAAuD,EAAE,KAAK,IAAI,EAAE;YACrE,MAAM,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;YAEvB,MAAM,IAAI,GAAG,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE;gBAC1B,MAAM,IAAA,sBAAK,EAAC,EAAE,CAAC,CAAC;gBAChB,OAAO,CAAC,GAAG,CAAC,CAAC;YACf,CAAC,CAAC;YAEF,MAAM,MAAM,GAAG,MAAM,yBAAY,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAE5D,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
|
package/lib/_utils/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from './array.util';
|
|
2
|
-
export * from './location.util';
|
|
3
|
-
export * from './log.util';
|
|
4
|
-
export * from './metadata.util';
|
|
5
|
-
export * from './random.util';
|
|
6
|
-
export * from './regex.util';
|
|
7
|
-
export * from './regions.util';
|
|
8
|
-
export * from './round-list.util';
|
|
9
|
-
export * from './shared.static-service';
|
|
10
|
-
export * from './time.util';
|
|
11
|
-
export * from './trigonometry.util';
|
|
12
|
-
export * from './utilities.util';
|
|
13
|
-
export * from './vector.util';
|
|
1
|
+
export * from './array.util';
|
|
2
|
+
export * from './location.util';
|
|
3
|
+
export * from './log.util';
|
|
4
|
+
export * from './metadata.util';
|
|
5
|
+
export * from './random.util';
|
|
6
|
+
export * from './regex.util';
|
|
7
|
+
export * from './regions.util';
|
|
8
|
+
export * from './round-list.util';
|
|
9
|
+
export * from './shared.static-service';
|
|
10
|
+
export * from './time.util';
|
|
11
|
+
export * from './trigonometry.util';
|
|
12
|
+
export * from './utilities.util';
|
|
13
|
+
export * from './vector.util';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|