@futdevpro/nts-dynamo 1.4.13 → 1.4.14
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/_enums/index.d.ts +0 -1
- package/lib/_enums/index.d.ts.map +1 -1
- package/lib/_enums/index.js +0 -27
- package/lib/_enums/index.js.map +1 -1
- package/lib/_modules/email.index.d.ts +4 -0
- package/lib/_modules/email.index.d.ts.map +1 -0
- package/lib/_modules/email.index.js +9 -0
- package/lib/_modules/email.index.js.map +1 -0
- package/lib/_services/dynamobe-shared-be.service.d.ts +2 -3
- package/lib/_services/dynamobe-shared-be.service.d.ts.map +1 -1
- package/lib/_services/dynamobe-shared-be.service.js +4 -4
- package/lib/_services/dynamobe-shared-be.service.js.map +1 -1
- package/lib/_services/dynamobe-shared.service.d.ts +2 -84
- package/lib/_services/dynamobe-shared.service.d.ts.map +1 -1
- package/lib/_services/dynamobe-shared.service.js +2 -254
- package/lib/_services/dynamobe-shared.service.js.map +1 -1
- package/lib/_services/index.d.ts +0 -1
- package/lib/_services/index.d.ts.map +1 -1
- package/lib/_services/index.js +0 -23
- package/lib/_services/index.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +212 -100
- package/package.json +11 -2
- package/src/_enums/index.ts +0 -32
- package/src/_modules/email.index.ts +7 -0
- package/src/_services/dynamobe-shared.service.ts +2 -275
- package/src/_services/index.ts +0 -23
- package/src/index.ts +3 -3
- package/src/_enums/log-style.enum.ts +0 -30
- package/src/_services/dynamobe-shared-be.service.ts +0 -44
package/lib/_enums/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from './data-model-type.enum';
|
|
2
2
|
export * from './dynamobe-data-service-function.enum';
|
|
3
3
|
export * from './dynamobe-route-security.enum';
|
|
4
|
-
export * from './log-style.enum';
|
|
5
4
|
export * from './predefined-data-types.enum';
|
|
6
5
|
export * from './http/http-call-type.enum';
|
|
7
6
|
export * from './http/http-response-type.enum';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/_enums/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/_enums/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAE7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC"}
|
package/lib/_enums/index.js
CHANGED
|
@@ -5,35 +5,8 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
tslib_1.__exportStar(require("./data-model-type.enum"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./dynamobe-data-service-function.enum"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./dynamobe-route-security.enum"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./log-style.enum"), exports);
|
|
9
8
|
tslib_1.__exportStar(require("./predefined-data-types.enum"), exports);
|
|
10
9
|
// HTTP ENUMS
|
|
11
10
|
tslib_1.__exportStar(require("./http/http-call-type.enum"), exports);
|
|
12
11
|
tslib_1.__exportStar(require("./http/http-response-type.enum"), exports);
|
|
13
|
-
/*
|
|
14
|
-
import { DataModelType } from './data-model-type.enum';
|
|
15
|
-
import { DynamoBEDSF } from './dynamobe-data-service-function.enum';
|
|
16
|
-
import { DynamoBERouteSecurity } from './dynamobe-route-security.enum';
|
|
17
|
-
import { HttpCallType } from './http/http-call-type.enum';
|
|
18
|
-
import { HttpResponseType } from './http/http-response-type.enum';
|
|
19
|
-
import { LogStyle } from './log-style.enum';
|
|
20
|
-
import { PredefinedDataTypes } from './predefined-data-types.enum';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
module.exports = {
|
|
24
|
-
DataModelType, DynamoBEDSF, DynamoBERouteSecurity,
|
|
25
|
-
LogStyle, PredefinedDataTypes, HttpCallType, HttpResponseType
|
|
26
|
-
} */
|
|
27
|
-
/* declare module 'enums' {
|
|
28
|
-
export var DynamoBEDSF;
|
|
29
|
-
|
|
30
|
-
export * from './data-model-type.enum';
|
|
31
|
-
export * from './dynamobe-data-service-function.enum';
|
|
32
|
-
export * from './dynamobe-route-security.enum';
|
|
33
|
-
export * from './log-style.enum';
|
|
34
|
-
export * from './predefined-data-types.enum';
|
|
35
|
-
// HTTP ENUMS
|
|
36
|
-
export * from './http/http-call-type.enum';
|
|
37
|
-
export * from './http/http-response-type.enum';
|
|
38
|
-
} */
|
|
39
12
|
//# sourceMappingURL=index.js.map
|
package/lib/_enums/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/_enums/index.ts"],"names":[],"mappings":";;;AAEA,QAAQ;AACR,iEAAuC;AACvC,gFAAsD;AACtD,yEAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/_enums/index.ts"],"names":[],"mappings":";;;AAEA,QAAQ;AACR,iEAAuC;AACvC,gFAAsD;AACtD,yEAA+C;AAC/C,uEAA6C;AAC3C,aAAa;AACf,qEAA2C;AAC3C,yEAA+C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.index.d.ts","sourceRoot":"","sources":["../../src/_modules/email.index.ts"],"names":[],"mappings":"AAEA,cAAc,qCAAqC,CAAC;AACpD,cAAc,wDAAwD,CAAC;AAGvE,cAAc,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// SERVICES
|
|
5
|
+
tslib_1.__exportStar(require("../_services/dynamobe-email.service"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("../_services/dynamobe-email-service-collection.service"), exports);
|
|
7
|
+
// MODELS
|
|
8
|
+
tslib_1.__exportStar(require("@futdevpro/fsm-dynamo/error-module"), exports);
|
|
9
|
+
//# sourceMappingURL=email.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.index.js","sourceRoot":"","sources":["../../src/_modules/email.index.ts"],"names":[],"mappings":";;;AACA,WAAW;AACX,8EAAoD;AACpD,iGAAuE;AAEvE,SAAS;AACT,6EAAmD"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Request } from 'express';
|
|
2
|
-
import { GeoIpLocation } from '@futdevpro/fsm-dynamo';
|
|
3
|
-
|
|
4
|
-
export declare class DBE_Shared_BE extends DBE_Shared {
|
|
2
|
+
import { GeoIpLocation, D_Shared } from '@futdevpro/fsm-dynamo/shared-service';
|
|
3
|
+
export declare class DBE_Shared extends D_Shared {
|
|
5
4
|
static getIpFromRequest(request: Request): string;
|
|
6
5
|
static getLocationDataByRequest(request: Request): GeoIpLocation;
|
|
7
6
|
static prompt(question: string): Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamobe-shared-be.service.d.ts","sourceRoot":"","sources":["../../src/_services/dynamobe-shared-be.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"dynamobe-shared-be.service.d.ts","sourceRoot":"","sources":["../../src/_services/dynamobe-shared-be.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAE/E,qBAAa,UAAW,SAAQ,QAAQ;IAEtC,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM;IAYjD,MAAM,CAAC,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa;WAInD,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAiBvD"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DBE_Shared = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ReadLine = tslib_1.__importStar(require("readline"));
|
|
6
6
|
const GeoIp = tslib_1.__importStar(require("geoip-lite"));
|
|
7
|
-
const
|
|
8
|
-
class
|
|
7
|
+
const shared_service_1 = require("@futdevpro/fsm-dynamo/shared-service");
|
|
8
|
+
class DBE_Shared extends shared_service_1.D_Shared {
|
|
9
9
|
static getIpFromRequest(request) {
|
|
10
10
|
let ip;
|
|
11
11
|
if (request.headers['x-forwarded-for']) {
|
|
@@ -41,5 +41,5 @@ class DBE_Shared_BE extends dynamobe_shared_service_1.DBE_Shared {
|
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
exports.
|
|
44
|
+
exports.DBE_Shared = DBE_Shared;
|
|
45
45
|
//# sourceMappingURL=dynamobe-shared-be.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamobe-shared-be.service.js","sourceRoot":"","sources":["../../src/_services/dynamobe-shared-be.service.ts"],"names":[],"mappings":";;;;AACA,2DAAqC;AAErC,0DAAoC;
|
|
1
|
+
{"version":3,"file":"dynamobe-shared-be.service.js","sourceRoot":"","sources":["../../src/_services/dynamobe-shared-be.service.ts"],"names":[],"mappings":";;;;AACA,2DAAqC;AAErC,0DAAoC;AACpC,yEAA+E;AAE/E,MAAa,UAAW,SAAQ,yBAAQ;IAEtC,MAAM,CAAC,gBAAgB,CAAC,OAAgB;QACtC,IAAI,EAAU,CAAC;QACf,IAAI,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE;YACtC,MAAM,KAAK,GAAc,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACnF,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;YACrC,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;SAC9B;aAAM;YACL,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC;SACnC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,CAAC,wBAAwB,CAAC,OAAgB;QAC9C,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,CAAO,MAAM,CAAC,QAAgB;;YAClC,MAAM,QAAQ,GAAG,QAAQ,CAAC,eAAe,CAAC;gBACxC,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,MAAM,EAAE,OAAO,CAAC,MAAM;aACvB,CAAC,CAAC;YAEH,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACrC,IAAI;oBACF,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAc,EAAE,EAAE;wBAC7C,OAAO,CAAC,MAAM,CAAC,CAAC;wBAChB,QAAQ,CAAC,KAAK,EAAE,CAAC;oBACnB,CAAC,CAAC,CAAC;iBACJ;gBAAC,OAAO,KAAK,EAAE;oBACd,MAAM,CAAC,KAAK,CAAC,CAAC;iBACf;YACH,CAAC,CAAC,CAAC;QACL,CAAC;KAAA;CACF;AAnCD,gCAmCC"}
|
|
@@ -1,90 +1,8 @@
|
|
|
1
1
|
import { Request } from 'express';
|
|
2
|
-
import { GeoIpLocation,
|
|
3
|
-
|
|
4
|
-
export declare class DBE_Shared {
|
|
5
|
-
/**
|
|
6
|
-
* returns remapped object list by path list
|
|
7
|
-
* @param objList object list to map
|
|
8
|
-
* @param paths string list of path etc.:
|
|
9
|
-
* [ [ 'first', 'sub', 'label' ], [ 'first', 'dif', 'name' ]] will be...
|
|
10
|
-
* from
|
|
11
|
-
* {
|
|
12
|
-
* first: {
|
|
13
|
-
* sub: {
|
|
14
|
-
* label: 'vlmi'
|
|
15
|
-
* },
|
|
16
|
-
* dif: {
|
|
17
|
-
* name: 'asd'
|
|
18
|
-
* }
|
|
19
|
-
* }
|
|
20
|
-
* }[]
|
|
21
|
-
* to
|
|
22
|
-
* { label: 'vlmi', name: 'asd' }[]
|
|
23
|
-
* @returns remapped object list (the final obj will use the deepest keys)
|
|
24
|
-
*/
|
|
25
|
-
static mapObjList(objList: object[], paths: string[][]): object[];
|
|
26
|
-
/**
|
|
27
|
-
* returns nested value from object
|
|
28
|
-
* @param parentObj data source object
|
|
29
|
-
* @param nestedDataKeys path of value as string list
|
|
30
|
-
* etc.: ['nestLvl1', 'nestLvl2', 'nestLvl3'] as parentObj.nestLvl1.nestLvl2.nestLvl3
|
|
31
|
-
* @returns data from object by path
|
|
32
|
-
*/
|
|
33
|
-
static getNestedData(parentObj: object, nestedDataKeys: string[]): any;
|
|
34
|
-
/**
|
|
35
|
-
* recursive function that nests data
|
|
36
|
-
* @param newData the object that that is needed to be updated
|
|
37
|
-
* @param nestKeys the path where the data should be updated
|
|
38
|
-
* @param dataToSet the actual value that will be setted
|
|
39
|
-
* @returns modified data
|
|
40
|
-
*/
|
|
41
|
-
static nestData(parentObj: object, nestKeys: string[], dataToSet: any): object;
|
|
42
|
-
/**
|
|
43
|
-
* recursive function that adds to nested data
|
|
44
|
-
* @param newData the object that that is needed to be updated
|
|
45
|
-
* @param nestKeys the path where the data should be updated
|
|
46
|
-
* @param dataToAdd the actual value that will be setted
|
|
47
|
-
* @returns modified data
|
|
48
|
-
*/
|
|
49
|
-
static addToNestedData(parentObj: object, nestKeys: string[], dataToAdd: any): object;
|
|
50
|
-
/**
|
|
51
|
-
* recursive function that pushes to nested data
|
|
52
|
-
* @param newData the object that that is needed to be updated
|
|
53
|
-
* @param nestKeys the path where the data should be updated
|
|
54
|
-
* @param dataToPush the actual value that will be setted
|
|
55
|
-
* @returns modified data
|
|
56
|
-
*/
|
|
57
|
-
static pushToNestedData(parentObj: object, nestKeys: string[], dataToPush: any): object;
|
|
58
|
-
/**
|
|
59
|
-
* recursive function that nests data on recursive data structure etc.: xData: { ..., 'nestedListKey': xData[] }
|
|
60
|
-
* @param newData the object that that is needed to be updated
|
|
61
|
-
* @param nestedListKey the location of nested dataList
|
|
62
|
-
* @param nestIndexes path to the subject ect.: xData.listKey[1].listKey[4].listKey[0] will be [1, 4, 0]
|
|
63
|
-
* @param dataToSet the actual value that will be setted on location
|
|
64
|
-
* @returns modified data
|
|
65
|
-
*/
|
|
66
|
-
static nestRecursiveListedData<T>(parentObj: T, nestedListKey: string, nestIndexes: number[], dataToSet: any): T;
|
|
67
|
-
static getAge(birthDate: Date | number | string): number;
|
|
68
|
-
static getYear(date: Date | number | string): number;
|
|
69
|
-
static getHour(date: Date | number | string): number;
|
|
70
|
-
static getDateByAge(age: number): Date;
|
|
71
|
-
static getDistanceInKilometres(from: LocationCoordinates, to: LocationCoordinates): number;
|
|
72
|
-
static getLocationDegByKilometers(latiOrLong: 'latitude' | 'longitude', distanceInKm: number, latitude?: number): number;
|
|
73
|
-
static toRadians(deg: number): number;
|
|
74
|
-
static addMetadataToSchema(schema: any): any;
|
|
75
|
-
static oneHourAgo(): Date;
|
|
76
|
-
static oneDayAgo(): Date;
|
|
77
|
-
static oneWeekAgo(): Date;
|
|
78
|
-
static oneMonthAgo(): Date;
|
|
79
|
-
static oneYearAgo(): Date;
|
|
2
|
+
import { GeoIpLocation, D_Shared } from '@futdevpro/fsm-dynamo/shared-service';
|
|
3
|
+
export declare class DBE_Shared extends D_Shared {
|
|
80
4
|
static getIpFromRequest(request: Request): string;
|
|
81
5
|
static getLocationDataByRequest(request: Request): GeoIpLocation;
|
|
82
|
-
static setLogStyle(styles: LogStyle[]): void;
|
|
83
|
-
static resetLogStyle(): void;
|
|
84
|
-
static logStyle(input: string, styles: LogStyle[], dontReset?: boolean): string;
|
|
85
|
-
static logSuccess(message: string, ...optionalParams: any[]): void;
|
|
86
|
-
static logError(message: string, ...optionalParams: any[]): void;
|
|
87
|
-
static logWarning(message: string, ...optionalParams: any[]): void;
|
|
88
6
|
static prompt(question: string): Promise<string>;
|
|
89
7
|
}
|
|
90
8
|
//# sourceMappingURL=dynamobe-shared.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamobe-shared.service.d.ts","sourceRoot":"","sources":["../../src/_services/dynamobe-shared.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,OAAO,
|
|
1
|
+
{"version":3,"file":"dynamobe-shared.service.d.ts","sourceRoot":"","sources":["../../src/_services/dynamobe-shared.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAE/E,qBAAa,UAAW,SAAQ,QAAQ;IAEtC,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM;IAYjD,MAAM,CAAC,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa;WAInD,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAiBvD"}
|
|
@@ -4,215 +4,9 @@ exports.DBE_Shared = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ReadLine = tslib_1.__importStar(require("readline"));
|
|
6
6
|
const GeoIp = tslib_1.__importStar(require("geoip-lite"));
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
class DBE_Shared {
|
|
10
|
-
/**
|
|
11
|
-
* returns remapped object list by path list
|
|
12
|
-
* @param objList object list to map
|
|
13
|
-
* @param paths string list of path etc.:
|
|
14
|
-
* [ [ 'first', 'sub', 'label' ], [ 'first', 'dif', 'name' ]] will be...
|
|
15
|
-
* from
|
|
16
|
-
* {
|
|
17
|
-
* first: {
|
|
18
|
-
* sub: {
|
|
19
|
-
* label: 'vlmi'
|
|
20
|
-
* },
|
|
21
|
-
* dif: {
|
|
22
|
-
* name: 'asd'
|
|
23
|
-
* }
|
|
24
|
-
* }
|
|
25
|
-
* }[]
|
|
26
|
-
* to
|
|
27
|
-
* { label: 'vlmi', name: 'asd' }[]
|
|
28
|
-
* @returns remapped object list (the final obj will use the deepest keys)
|
|
29
|
-
*/
|
|
30
|
-
static mapObjList(objList, paths) {
|
|
31
|
-
let newObjList = [...objList];
|
|
32
|
-
newObjList = newObjList.map(obj => {
|
|
33
|
-
const newObj = {};
|
|
34
|
-
paths.forEach((path) => {
|
|
35
|
-
newObj[path[path.length - 1]] = this.getNestedData(obj, path);
|
|
36
|
-
});
|
|
37
|
-
return newObj;
|
|
38
|
-
});
|
|
39
|
-
return newObjList;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* returns nested value from object
|
|
43
|
-
* @param parentObj data source object
|
|
44
|
-
* @param nestedDataKeys path of value as string list
|
|
45
|
-
* etc.: ['nestLvl1', 'nestLvl2', 'nestLvl3'] as parentObj.nestLvl1.nestLvl2.nestLvl3
|
|
46
|
-
* @returns data from object by path
|
|
47
|
-
*/
|
|
48
|
-
static getNestedData(parentObj, nestedDataKeys) {
|
|
49
|
-
let newData = Object.assign({}, parentObj);
|
|
50
|
-
nestedDataKeys.forEach((dk) => {
|
|
51
|
-
if (newData) {
|
|
52
|
-
newData = newData[dk];
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
return newData;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* recursive function that nests data
|
|
59
|
-
* @param newData the object that that is needed to be updated
|
|
60
|
-
* @param nestKeys the path where the data should be updated
|
|
61
|
-
* @param dataToSet the actual value that will be setted
|
|
62
|
-
* @returns modified data
|
|
63
|
-
*/
|
|
64
|
-
static nestData(parentObj, nestKeys, dataToSet) {
|
|
65
|
-
const newData = Object.assign({}, parentObj);
|
|
66
|
-
if (nestKeys.length > 1) {
|
|
67
|
-
const keys = [...nestKeys];
|
|
68
|
-
const nextNestKey = keys.shift();
|
|
69
|
-
newData[nextNestKey] = this.nestData(newData[nextNestKey], keys, dataToSet);
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
newData[nestKeys[0]] = dataToSet;
|
|
73
|
-
}
|
|
74
|
-
return newData;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* recursive function that adds to nested data
|
|
78
|
-
* @param newData the object that that is needed to be updated
|
|
79
|
-
* @param nestKeys the path where the data should be updated
|
|
80
|
-
* @param dataToAdd the actual value that will be setted
|
|
81
|
-
* @returns modified data
|
|
82
|
-
*/
|
|
83
|
-
static addToNestedData(parentObj, nestKeys, dataToAdd) {
|
|
84
|
-
const newData = Object.assign({}, parentObj);
|
|
85
|
-
if (nestKeys.length > 1) {
|
|
86
|
-
const keys = [...nestKeys];
|
|
87
|
-
const nextNestKey = keys.shift();
|
|
88
|
-
newData[nextNestKey] = this.addToNestedData(newData[nextNestKey], keys, dataToAdd);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
newData[nestKeys[0]] += dataToAdd;
|
|
92
|
-
}
|
|
93
|
-
return newData;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* recursive function that pushes to nested data
|
|
97
|
-
* @param newData the object that that is needed to be updated
|
|
98
|
-
* @param nestKeys the path where the data should be updated
|
|
99
|
-
* @param dataToPush the actual value that will be setted
|
|
100
|
-
* @returns modified data
|
|
101
|
-
*/
|
|
102
|
-
static pushToNestedData(parentObj, nestKeys, dataToPush) {
|
|
103
|
-
const newData = Object.assign({}, parentObj);
|
|
104
|
-
if (nestKeys.length > 1) {
|
|
105
|
-
const keys = [...nestKeys];
|
|
106
|
-
const nextNestKey = keys.shift();
|
|
107
|
-
newData[nextNestKey] = this.pushToNestedData(newData[nextNestKey], keys, dataToPush);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
if (Array.isArray(newData[nestKeys[0]])) {
|
|
111
|
-
newData[nestKeys[0]].push(dataToPush);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
newData[nestKeys[0]] = [dataToPush];
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return newData;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* recursive function that nests data on recursive data structure etc.: xData: { ..., 'nestedListKey': xData[] }
|
|
121
|
-
* @param newData the object that that is needed to be updated
|
|
122
|
-
* @param nestedListKey the location of nested dataList
|
|
123
|
-
* @param nestIndexes path to the subject ect.: xData.listKey[1].listKey[4].listKey[0] will be [1, 4, 0]
|
|
124
|
-
* @param dataToSet the actual value that will be setted on location
|
|
125
|
-
* @returns modified data
|
|
126
|
-
*/
|
|
127
|
-
static nestRecursiveListedData(parentObj, nestedListKey, nestIndexes, dataToSet) {
|
|
128
|
-
const newData = Object.assign({}, parentObj);
|
|
129
|
-
if (nestIndexes.length > 1) {
|
|
130
|
-
const indexes = [...nestIndexes];
|
|
131
|
-
const nextLevelKey = indexes.shift();
|
|
132
|
-
newData[nestedListKey][nextLevelKey] = this.nestRecursiveListedData(newData[nestedListKey][nextLevelKey], nestedListKey, indexes, dataToSet);
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
newData[nestedListKey][nestIndexes[0]] = dataToSet;
|
|
136
|
-
}
|
|
137
|
-
return newData;
|
|
138
|
-
}
|
|
139
|
-
static getAge(birthDate) {
|
|
140
|
-
return this.getYear(+new Date() - +new Date(birthDate));
|
|
141
|
-
}
|
|
142
|
-
static getYear(date) {
|
|
143
|
-
if (typeof date === 'string') {
|
|
144
|
-
date = new Date(date);
|
|
145
|
-
}
|
|
146
|
-
return (+date / fsm_dynamo_1.year);
|
|
147
|
-
}
|
|
148
|
-
static getHour(date) {
|
|
149
|
-
if (typeof date === 'string') {
|
|
150
|
-
date = new Date(date);
|
|
151
|
-
}
|
|
152
|
-
return (+date / fsm_dynamo_1.hour);
|
|
153
|
-
}
|
|
154
|
-
static getDateByAge(age) {
|
|
155
|
-
return new Date(+new Date() - (fsm_dynamo_1.year * age));
|
|
156
|
-
}
|
|
157
|
-
static getDistanceInKilometres(from, to) {
|
|
158
|
-
const R = 6371; // kilometres
|
|
159
|
-
const φ1 = this.toRadians(from.latitude);
|
|
160
|
-
const φ2 = this.toRadians(to.latitude);
|
|
161
|
-
const Δφ = this.toRadians(to.latitude - from.latitude);
|
|
162
|
-
const Δλ = this.toRadians(to.longitude - from.longitude);
|
|
163
|
-
const a = Math.sin(Δφ / 2) * Math.sin(Δφ / 2) +
|
|
164
|
-
Math.cos(φ1) * Math.cos(φ2) *
|
|
165
|
-
Math.sin(Δλ / 2) * Math.sin(Δλ / 2);
|
|
166
|
-
const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
|
|
167
|
-
return R * c;
|
|
168
|
-
}
|
|
169
|
-
static getLocationDegByKilometers(latiOrLong, distanceInKm, latitude) {
|
|
170
|
-
if (latiOrLong === 'latitude') {
|
|
171
|
-
return distanceInKm / 110.574;
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
if (latitude) {
|
|
175
|
-
return distanceInKm / (Math.cos(this.toRadians(latitude)) * 111.320);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
throw new fsm_dynamo_1.DynamoBEError({ status: 417, message: 'When using getLocationDegByKilometers for longitude, you need to give latitude!' });
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
static toRadians(deg) {
|
|
183
|
-
return deg * (Math.PI / 180);
|
|
184
|
-
}
|
|
185
|
-
static addMetadataToSchema(schema) {
|
|
186
|
-
schema.__created = { type: Date };
|
|
187
|
-
schema.__createdBy = { type: String };
|
|
188
|
-
schema.__lastModified = { type: Date };
|
|
189
|
-
schema.__lastModifiedBy = { type: String };
|
|
190
|
-
return schema;
|
|
191
|
-
}
|
|
192
|
-
static oneHourAgo() {
|
|
193
|
-
return new Date(+new Date() - fsm_dynamo_1.hour);
|
|
194
|
-
}
|
|
195
|
-
static oneDayAgo() {
|
|
196
|
-
return new Date(+new Date() - fsm_dynamo_1.day);
|
|
197
|
-
}
|
|
198
|
-
static oneWeekAgo() {
|
|
199
|
-
return new Date(+new Date() - fsm_dynamo_1.week);
|
|
200
|
-
}
|
|
201
|
-
static oneMonthAgo() {
|
|
202
|
-
return new Date(+new Date() - fsm_dynamo_1.month);
|
|
203
|
-
}
|
|
204
|
-
static oneYearAgo() {
|
|
205
|
-
return new Date(+new Date() - fsm_dynamo_1.year);
|
|
206
|
-
}
|
|
7
|
+
const shared_service_1 = require("@futdevpro/fsm-dynamo/shared-service");
|
|
8
|
+
class DBE_Shared extends shared_service_1.D_Shared {
|
|
207
9
|
static getIpFromRequest(request) {
|
|
208
|
-
/* console.log('TESTTTT route:\n',
|
|
209
|
-
`\n|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\n
|
|
210
|
-
HEADERS\n`, request.headers,
|
|
211
|
-
`\n|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\n
|
|
212
|
-
ELSE\n`,
|
|
213
|
-
`\nremote `, request.socket.remoteAddress,
|
|
214
|
-
`\nlocal `, request.socket.localAddress,
|
|
215
|
-
); */
|
|
216
10
|
let ip;
|
|
217
11
|
if (request.headers['x-forwarded-for']) {
|
|
218
12
|
const route = request.headers['x-forwarded-for'].split(', ');
|
|
@@ -222,57 +16,11 @@ class DBE_Shared {
|
|
|
222
16
|
else {
|
|
223
17
|
ip = request.socket.remoteAddress;
|
|
224
18
|
}
|
|
225
|
-
/* console.log(`ip from request: ${ip}`); */
|
|
226
19
|
return ip;
|
|
227
20
|
}
|
|
228
21
|
static getLocationDataByRequest(request) {
|
|
229
22
|
return GeoIp.lookup(this.getIpFromRequest(request));
|
|
230
23
|
}
|
|
231
|
-
static setLogStyle(styles) {
|
|
232
|
-
let styleSets = '';
|
|
233
|
-
styles.forEach((style) => {
|
|
234
|
-
styleSets += style;
|
|
235
|
-
});
|
|
236
|
-
console.log(styleSets);
|
|
237
|
-
}
|
|
238
|
-
static resetLogStyle() {
|
|
239
|
-
console.log(log_style_enum_1.LogStyle.reset);
|
|
240
|
-
}
|
|
241
|
-
static logStyle(input, styles, dontReset) {
|
|
242
|
-
let result = '';
|
|
243
|
-
styles.forEach((style) => {
|
|
244
|
-
result += style;
|
|
245
|
-
});
|
|
246
|
-
result += input;
|
|
247
|
-
if (!dontReset) {
|
|
248
|
-
result += log_style_enum_1.LogStyle.reset;
|
|
249
|
-
}
|
|
250
|
-
return result;
|
|
251
|
-
}
|
|
252
|
-
static logSuccess(message, ...optionalParams) {
|
|
253
|
-
if (0 < optionalParams.length) {
|
|
254
|
-
console.error(`${log_style_enum_1.LogStyle.green}${log_style_enum_1.LogStyle.bright}${message}`, ...optionalParams, log_style_enum_1.LogStyle.reset);
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
console.error(`${log_style_enum_1.LogStyle.green}${log_style_enum_1.LogStyle.bright}${message}${log_style_enum_1.LogStyle.reset}`);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
static logError(message, ...optionalParams) {
|
|
261
|
-
if (0 < optionalParams.length) {
|
|
262
|
-
console.error(`${log_style_enum_1.LogStyle.red}${log_style_enum_1.LogStyle.bright}${message}`, ...optionalParams, log_style_enum_1.LogStyle.reset);
|
|
263
|
-
}
|
|
264
|
-
else {
|
|
265
|
-
console.error(`${log_style_enum_1.LogStyle.red}${log_style_enum_1.LogStyle.bright}${message}${log_style_enum_1.LogStyle.reset}`);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
static logWarning(message, ...optionalParams) {
|
|
269
|
-
if (0 < optionalParams.length) {
|
|
270
|
-
console.warn(`${log_style_enum_1.LogStyle.yellow}${log_style_enum_1.LogStyle.bright}${message}`, ...optionalParams, log_style_enum_1.LogStyle.reset);
|
|
271
|
-
}
|
|
272
|
-
else {
|
|
273
|
-
console.warn(`${log_style_enum_1.LogStyle.yellow}${log_style_enum_1.LogStyle.bright}${message}${log_style_enum_1.LogStyle.reset}`);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
24
|
static prompt(question) {
|
|
277
25
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
278
26
|
const readLine = ReadLine.createInterface({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamobe-shared.service.js","sourceRoot":"","sources":["../../src/_services/dynamobe-shared.service.ts"],"names":[],"mappings":";;;;AACA,2DAAqC;AAErC,0DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"dynamobe-shared.service.js","sourceRoot":"","sources":["../../src/_services/dynamobe-shared.service.ts"],"names":[],"mappings":";;;;AACA,2DAAqC;AAErC,0DAAoC;AACpC,yEAA+E;AAE/E,MAAa,UAAW,SAAQ,yBAAQ;IAEtC,MAAM,CAAC,gBAAgB,CAAC,OAAgB;QACtC,IAAI,EAAU,CAAC;QACf,IAAI,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE;YACtC,MAAM,KAAK,GAAc,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACnF,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;YACrC,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;SAC9B;aAAM;YACL,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC;SACnC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,CAAC,wBAAwB,CAAC,OAAgB;QAC9C,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,CAAO,MAAM,CAAC,QAAgB;;YAClC,MAAM,QAAQ,GAAG,QAAQ,CAAC,eAAe,CAAC;gBACxC,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,MAAM,EAAE,OAAO,CAAC,MAAM;aACvB,CAAC,CAAC;YAEH,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACrC,IAAI;oBACF,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAc,EAAE,EAAE;wBAC7C,OAAO,CAAC,MAAM,CAAC,CAAC;wBAChB,QAAQ,CAAC,KAAK,EAAE,CAAC;oBACnB,CAAC,CAAC,CAAC;iBACJ;gBAAC,OAAO,KAAK,EAAE;oBACd,MAAM,CAAC,KAAK,CAAC,CAAC;iBACf;YACH,CAAC,CAAC,CAAC;QACL,CAAC;KAAA;CACF;AAnCD,gCAmCC"}
|
package/lib/_services/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export * from './dynamobe-email-service-collection.service';
|
|
|
9
9
|
export * from './dynamobe-email.service';
|
|
10
10
|
export * from './dynamobe-global.service';
|
|
11
11
|
export * from './dynamobe-routing-module.service';
|
|
12
|
-
export * from './dynamobe-shared-be.service';
|
|
13
12
|
export * from './dynamobe-shared.service';
|
|
14
13
|
export * from './dynamobe-singleton.service';
|
|
15
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/_services/index.ts"],"names":[],"mappings":"AAIA,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0CAA0C,CAAC;AACzD,cAAc,uBAAuB,CAAC;AACtC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/_services/index.ts"],"names":[],"mappings":"AAIA,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0CAA0C,CAAC;AACzD,cAAc,uBAAuB,CAAC;AACtC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC"}
|
package/lib/_services/index.js
CHANGED
|
@@ -13,29 +13,6 @@ tslib_1.__exportStar(require("./dynamobe-email-service-collection.service"), exp
|
|
|
13
13
|
tslib_1.__exportStar(require("./dynamobe-email.service"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./dynamobe-global.service"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./dynamobe-routing-module.service"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./dynamobe-shared-be.service"), exports);
|
|
17
16
|
tslib_1.__exportStar(require("./dynamobe-shared.service"), exports);
|
|
18
17
|
tslib_1.__exportStar(require("./dynamobe-singleton.service"), exports);
|
|
19
|
-
/*
|
|
20
|
-
import { DynamoBEApiService } from './dynamobe-api.service';
|
|
21
|
-
import { DynamoBEApp } from './dynamobe-app';
|
|
22
|
-
import { DynamoBEAuthService } from './dynamobe-auth.service';
|
|
23
|
-
import { DynamoBEController } from './dynamobe-controller.service';
|
|
24
|
-
import { DynamoBEDataService } from './dynamobe-data.service';
|
|
25
|
-
import { DynamoBEDBServiceCollection } from './dynamobe-db-service-collection.service';
|
|
26
|
-
import { DynamoBEDBService } from './dynamobe-db.service';
|
|
27
|
-
import { DynamoBEEmailServiceCollection } from './dynamobe-email-service-collection.service';
|
|
28
|
-
import { DynamoBEEmailService } from './dynamobe-email.service';
|
|
29
|
-
import { DBE_Global_S } from './dynamobe-global.service';
|
|
30
|
-
import { DynamoBERountingModule } from './dynamobe-routing-module.service';
|
|
31
|
-
import { DynamoBEServer } from './dynamobe-server';
|
|
32
|
-
import { DBE_Shared } from './dynamobe-shared.service';
|
|
33
|
-
import { DynamoBESingletonService } from './dynamobe-singleton.service';
|
|
34
|
-
|
|
35
|
-
module.exports = {
|
|
36
|
-
DynamoBEApiService, DynamoBEApp, DynamoBEAuthService, DynamoBEController,
|
|
37
|
-
DynamoBEDataService, DynamoBEDBServiceCollection, DynamoBEDBService,
|
|
38
|
-
DynamoBEEmailServiceCollection, DynamoBEEmailService, DBE_Global_S,
|
|
39
|
-
DynamoBERountingModule, DynamoBEServer, DBE_Shared, DynamoBESingletonService
|
|
40
|
-
} */
|
|
41
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/_services/index.ts"],"names":[],"mappings":";;;AAGA,WAAW;AACX,iEAAuC;AACvC,yDAA+B;AAC/B,kEAAwC;AACxC,wEAA8C;AAC9C,kEAAwC;AACxC,mFAAyD;AACzD,gEAAsC;AACtC,sFAA4D;AAC5D,mEAAyC;AACzC,oEAA0C;AAC1C,4EAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/_services/index.ts"],"names":[],"mappings":";;;AAGA,WAAW;AACX,iEAAuC;AACvC,yDAA+B;AAC/B,kEAAwC;AACxC,wEAA8C;AAC9C,kEAAwC;AACxC,mFAAyD;AACzD,gEAAsC;AACtC,sFAA4D;AAC5D,mEAAyC;AACzC,oEAA0C;AAC1C,4EAAkD;AAClD,oEAA0C;AAC1C,uEAA6C"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './_constants';
|
|
2
2
|
export * from './_enums';
|
|
3
3
|
export * from './_models';
|
|
4
|
-
export * from './_services';
|
|
5
4
|
export * from './_modules/test/index';
|
|
6
5
|
export * from './_modules/usage/index';
|
|
6
|
+
export * from './_services';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAG7B,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC;AAG1B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAG7B,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC;AAG1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AAGvC,cAAc,aAAa,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -7,9 +7,9 @@ tslib_1.__exportStar(require("./_constants"), exports);
|
|
|
7
7
|
tslib_1.__exportStar(require("./_enums"), exports);
|
|
8
8
|
// MODELS
|
|
9
9
|
tslib_1.__exportStar(require("./_models"), exports);
|
|
10
|
-
// SERVICES
|
|
11
|
-
tslib_1.__exportStar(require("./_services"), exports);
|
|
12
10
|
// MODULES
|
|
13
11
|
tslib_1.__exportStar(require("./_modules/test/index"), exports);
|
|
14
12
|
tslib_1.__exportStar(require("./_modules/usage/index"), exports);
|
|
13
|
+
// SERVICES
|
|
14
|
+
tslib_1.__exportStar(require("./_services"), exports);
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,YAAY;AACZ,uDAA6B;AAE7B,QAAQ;AACR,mDAAyB;AAEzB,SAAS;AACT,oDAA0B;AAE1B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,YAAY;AACZ,uDAA6B;AAE7B,QAAQ;AACR,mDAAyB;AAEzB,SAAS;AACT,oDAA0B;AAE1B,UAAU;AACV,gEAAsC;AACtC,iEAAuC;AAEvC,WAAW;AACX,sDAA4B"}
|