@artstesh/postboy 1.2.0 → 1.2.3
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/i-postboy-depending.service.d.ts +1 -0
- package/lib/i-postboy-depending.service.d.ts.map +1 -1
- package/lib/models/postboy-executor.d.ts +1 -0
- package/lib/models/postboy-executor.d.ts.map +1 -1
- package/lib/models/postboy-executor.js.map +1 -1
- package/lib/postboy-abstract.registrator.d.ts.map +1 -1
- package/lib/postboy-abstract.registrator.js +1 -0
- package/lib/postboy-abstract.registrator.js.map +1 -1
- package/lib/services/namespace-registrator.d.ts +14 -0
- package/lib/services/namespace-registrator.d.ts.map +1 -0
- package/lib/services/namespace-registrator.js +21 -0
- package/lib/services/namespace-registrator.js.map +1 -0
- package/lib/services/postboy-message.store.d.ts.map +1 -1
- package/lib/services/postboy-message.store.js +6 -0
- package/lib/services/postboy-message.store.js.map +1 -1
- package/lib/services/postboy-namespace.store.d.ts +35 -0
- package/lib/services/postboy-namespace.store.d.ts.map +1 -0
- package/lib/services/postboy-namespace.store.js +54 -0
- package/lib/services/postboy-namespace.store.js.map +1 -0
- package/lib/utils/id.generator.d.ts +5 -0
- package/lib/utils/id.generator.d.ts.map +1 -0
- package/lib/utils/id.generator.js +18 -0
- package/lib/utils/id.generator.js.map +1 -0
- package/package.json +1 -1
- package/lib/models/message-queue.model.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-postboy-depending.service.d.ts","sourceRoot":"","sources":["../src/i-postboy-depending.service.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,EAAE,IAAI,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"i-postboy-depending.service.d.ts","sourceRoot":"","sources":["../src/i-postboy-depending.service.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,EAAE,IAAI,IAAI,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postboy-executor.d.ts","sourceRoot":"","sources":["../../src/models/postboy-executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,8BAAsB,eAAe,CAAC,CAAC,CAAE,SAAQ,cAAc;
|
|
1
|
+
{"version":3,"file":"postboy-executor.d.ts","sourceRoot":"","sources":["../../src/models/postboy-executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,8BAAsB,eAAe,CAAC,CAAC,CAAE,SAAQ,cAAc;IAC7D,mBAA2B,kBAAkB,CAAC,EAAE,CAAC,CAAC;CACnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postboy-executor.js","sourceRoot":"","sources":["../../src/models/postboy-executor.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAEnD,MAAsB,eAAmB,SAAQ,gCAAc;
|
|
1
|
+
{"version":3,"file":"postboy-executor.js","sourceRoot":"","sources":["../../src/models/postboy-executor.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAEnD,MAAsB,eAAmB,SAAQ,gCAAc;CAE9D;AAFD,0CAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postboy-abstract.registrator.d.ts","sourceRoot":"","sources":["../src/postboy-abstract.registrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAmB,UAAU,EAAiB,OAAO,EAAE,MAAM,MAAM,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAW,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CA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ACnC,OAAsC;QAEtC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CAuCF;AAlKD,gEAkKC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PostboyAbstractRegistrator } from '../postboy-abstract.registrator';
|
|
2
|
+
import { PostboyService } from '../postboy.service';
|
|
3
|
+
/**
|
|
4
|
+
* NamespaceRegistrator is a specialized class that extends PostboyAbstractRegistrator.
|
|
5
|
+
*
|
|
6
|
+
* @class NamespaceRegistrator
|
|
7
|
+
* @extends PostboyAbstractRegistrator
|
|
8
|
+
* @param {PostboyService} postboy - An instance of the PostboyService, used for managing registrations.
|
|
9
|
+
*/
|
|
10
|
+
export declare class NamespaceRegistrator extends PostboyAbstractRegistrator {
|
|
11
|
+
constructor(postboy: PostboyService);
|
|
12
|
+
protected _up(): void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=namespace-registrator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespace-registrator.d.ts","sourceRoot":"","sources":["../../src/services/namespace-registrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;GAMG;AACH,qBAAa,oBAAqB,SAAQ,0BAA0B;gBACtD,OAAO,EAAE,cAAc;IAInC,SAAS,CAAC,GAAG,IAAI,IAAI;CAGtB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NamespaceRegistrator = void 0;
|
|
4
|
+
const postboy_abstract_registrator_1 = require("../postboy-abstract.registrator");
|
|
5
|
+
/**
|
|
6
|
+
* NamespaceRegistrator is a specialized class that extends PostboyAbstractRegistrator.
|
|
7
|
+
*
|
|
8
|
+
* @class NamespaceRegistrator
|
|
9
|
+
* @extends PostboyAbstractRegistrator
|
|
10
|
+
* @param {PostboyService} postboy - An instance of the PostboyService, used for managing registrations.
|
|
11
|
+
*/
|
|
12
|
+
class NamespaceRegistrator extends postboy_abstract_registrator_1.PostboyAbstractRegistrator {
|
|
13
|
+
constructor(postboy) {
|
|
14
|
+
super(postboy);
|
|
15
|
+
}
|
|
16
|
+
_up() {
|
|
17
|
+
// ignore
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.NamespaceRegistrator = NamespaceRegistrator;
|
|
21
|
+
//# sourceMappingURL=namespace-registrator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespace-registrator.js","sourceRoot":"","sources":["../../src/services/namespace-registrator.ts"],"names":[],"mappings":";;;AAAA,kFAA6E;AAG7E;;;;;;GAMG;AACH,MAAa,oBAAqB,SAAQ,yDAA0B;IAClE,YAAY,OAAuB;QACjC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IAES,GAAG;QACX,SAAS;IACX,CAAC;CACF;AARD,oDAQC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postboy-message.store.d.ts","sourceRoot":"","sources":["../../src/services/postboy-message.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,SAAS,CAAC,YAAY,wCAA+C;IACrE,SAAS,CAAC,SAAS,kBAAuB,gBAAgB,GAAG,CAAC,KAAK,GAAG,EAAI;IAEnE,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,mBAAmB,CAAC,GAAG,CAAC,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"postboy-message.store.d.ts","sourceRoot":"","sources":["../../src/services/postboy-message.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,SAAS,CAAC,YAAY,wCAA+C;IACrE,SAAS,CAAC,SAAS,kBAAuB,gBAAgB,GAAG,CAAC,KAAK,GAAG,EAAI;IAEnE,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,mBAAmB,CAAC,GAAG,CAAC,GAAG,IAAI;IAMhE,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,eAAe,CAAC,GAAG,CAAC,KAAK,GAAG,GAAG,IAAI;IAM9E,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAC;IAM9D,WAAW,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC;IAMxD,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;CAKpC"}
|
|
@@ -11,9 +11,15 @@ class PostboyMessageStore {
|
|
|
11
11
|
this.executors = new Map();
|
|
12
12
|
}
|
|
13
13
|
registerMessage(id, sub) {
|
|
14
|
+
// tslint:disable-next-line:no-console
|
|
15
|
+
if (this.applications.has(id))
|
|
16
|
+
console.warn(`Message with id ${id} already registered. Overriding...`);
|
|
14
17
|
this.applications.set(id, sub);
|
|
15
18
|
}
|
|
16
19
|
registerExecutor(id, executor) {
|
|
20
|
+
// tslint:disable-next-line:no-console
|
|
21
|
+
if (this.executors.has(id))
|
|
22
|
+
console.warn(`Executor with id ${id} already registered. Overriding...`);
|
|
17
23
|
this.executors.set(id, executor);
|
|
18
24
|
}
|
|
19
25
|
getMessage(id, name) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postboy-message.store.js","sourceRoot":"","sources":["../../src/services/postboy-message.store.ts"],"names":[],"mappings":";;;AAGA;;;GAGG;AACH,MAAa,mBAAmB;IAAhC;QACY,iBAAY,GAAG,IAAI,GAAG,EAAoC,CAAC;QAC3D,cAAS,GAAG,IAAI,GAAG,EAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"postboy-message.store.js","sourceRoot":"","sources":["../../src/services/postboy-message.store.ts"],"names":[],"mappings":";;;AAGA;;;GAGG;AACH,MAAa,mBAAmB;IAAhC;QACY,iBAAY,GAAG,IAAI,GAAG,EAAoC,CAAC;QAC3D,cAAS,GAAG,IAAI,GAAG,EAA4C,CAAC;IA+B5E,CAAC;IA7BQ,eAAe,CAAC,EAAU,EAAE,GAA6B;QAC9D,sCAAsC;QACtC,IAAI,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;YAAE,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,oCAAoC,CAAC,CAAC;QACvG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IACjC,CAAC;IAEM,gBAAgB,CAAC,EAAU,EAAE,QAA0C;QAC5E,sCAAsC;QACtC,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;YAAE,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,oCAAoC,CAAC,CAAC;QACrG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;IACnC,CAAC;IAEM,UAAU,CAAC,EAAU,EAAE,IAAY;QACxC,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACtC,IAAI,CAAC,GAAG;YAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,IAAI,EAAE,CAAC,CAAC;QAClE,OAAO,GAAG,CAAC;IACb,CAAC;IAEM,WAAW,CAAI,EAAU;QAC9B,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChD,IAAI,CAAC,gBAAgB;YAAE,MAAM,IAAI,KAAK,CAAC,2CAA2C,EAAE,EAAE,CAAC,CAAC;QACxF,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAEM,UAAU,CAAC,EAAU;;QAC1B,MAAA,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,0CAAE,MAAM,EAAE,CAAC;QACpC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC7B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC5B,CAAC;CACF;AAjCD,kDAiCC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PostboyAbstractRegistrator } from '../postboy-abstract.registrator';
|
|
2
|
+
import { PostboyService } from '../postboy.service';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a store for managing namespaces in the Postboy system.
|
|
5
|
+
* Provides functionality to add, eliminate, and dispose namespaces.
|
|
6
|
+
*/
|
|
7
|
+
export declare class PostboyNamespaceStore {
|
|
8
|
+
private postboy;
|
|
9
|
+
private spaces;
|
|
10
|
+
constructor(postboy: PostboyService);
|
|
11
|
+
/**
|
|
12
|
+
* Adds a new namespace to the registry.
|
|
13
|
+
*
|
|
14
|
+
* @param {string} space - The name of the namespace to add or retrieve.
|
|
15
|
+
* @return {PostboyAbstractRegistrator} An instance of the registrator corresponding to the specified namespace.
|
|
16
|
+
*/
|
|
17
|
+
addSpace(space: string): PostboyAbstractRegistrator;
|
|
18
|
+
/**
|
|
19
|
+
* Removes a specified space from the spaces collection if it exists.
|
|
20
|
+
* If the space exists, it will be deleted after invoking its down method.
|
|
21
|
+
*
|
|
22
|
+
* @param {string} space - The name of the space to be removed.
|
|
23
|
+
* @return {void} This method does not return a value.
|
|
24
|
+
*/
|
|
25
|
+
eliminateSpace(space: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* Disposes of the current instance by performing cleanup operations.
|
|
28
|
+
* Iterates through all spaces, performs a "down" operation on each,
|
|
29
|
+
* and then clears the collection of spaces.
|
|
30
|
+
*
|
|
31
|
+
* @return {void} No return value.
|
|
32
|
+
*/
|
|
33
|
+
dispose(): void;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=postboy-namespace.store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postboy-namespace.store.d.ts","sourceRoot":"","sources":["../../src/services/postboy-namespace.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;GAGG;AACH,qBAAa,qBAAqB;IAGpB,OAAO,CAAC,OAAO;IAF3B,OAAO,CAAC,MAAM,CAAsD;gBAEhD,OAAO,EAAE,cAAc;IAE3C;;;;;OAKG;IACI,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,0BAA0B;IAO1D;;;;;;OAMG;IACI,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAM1C;;;;;;OAMG;IACI,OAAO,IAAI,IAAI;CAIvB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PostboyNamespaceStore = void 0;
|
|
4
|
+
const namespace_registrator_1 = require("./namespace-registrator");
|
|
5
|
+
/**
|
|
6
|
+
* Represents a store for managing namespaces in the Postboy system.
|
|
7
|
+
* Provides functionality to add, eliminate, and dispose namespaces.
|
|
8
|
+
*/
|
|
9
|
+
class PostboyNamespaceStore {
|
|
10
|
+
constructor(postboy) {
|
|
11
|
+
this.postboy = postboy;
|
|
12
|
+
this.spaces = new Map();
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Adds a new namespace to the registry.
|
|
16
|
+
*
|
|
17
|
+
* @param {string} space - The name of the namespace to add or retrieve.
|
|
18
|
+
* @return {PostboyAbstractRegistrator} An instance of the registrator corresponding to the specified namespace.
|
|
19
|
+
*/
|
|
20
|
+
addSpace(space) {
|
|
21
|
+
if (this.spaces.has(space))
|
|
22
|
+
return this.spaces.get(space);
|
|
23
|
+
const registrator = new namespace_registrator_1.NamespaceRegistrator(this.postboy);
|
|
24
|
+
this.spaces.set(space, registrator);
|
|
25
|
+
return registrator;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Removes a specified space from the spaces collection if it exists.
|
|
29
|
+
* If the space exists, it will be deleted after invoking its down method.
|
|
30
|
+
*
|
|
31
|
+
* @param {string} space - The name of the space to be removed.
|
|
32
|
+
* @return {void} This method does not return a value.
|
|
33
|
+
*/
|
|
34
|
+
eliminateSpace(space) {
|
|
35
|
+
var _a;
|
|
36
|
+
if (!this.spaces.has(space))
|
|
37
|
+
return;
|
|
38
|
+
(_a = this.spaces.get(space)) === null || _a === void 0 ? void 0 : _a.down();
|
|
39
|
+
this.spaces.delete(space);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Disposes of the current instance by performing cleanup operations.
|
|
43
|
+
* Iterates through all spaces, performs a "down" operation on each,
|
|
44
|
+
* and then clears the collection of spaces.
|
|
45
|
+
*
|
|
46
|
+
* @return {void} No return value.
|
|
47
|
+
*/
|
|
48
|
+
dispose() {
|
|
49
|
+
this.spaces.forEach((space) => space.down());
|
|
50
|
+
this.spaces.clear();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.PostboyNamespaceStore = PostboyNamespaceStore;
|
|
54
|
+
//# sourceMappingURL=postboy-namespace.store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postboy-namespace.store.js","sourceRoot":"","sources":["../../src/services/postboy-namespace.store.ts"],"names":[],"mappings":";;;AACA,mEAA+D;AAG/D;;;GAGG;AACH,MAAa,qBAAqB;IAGhC,YAAoB,OAAuB;QAAvB,YAAO,GAAP,OAAO,CAAgB;QAFnC,WAAM,GAA4C,IAAI,GAAG,EAAE,CAAC;IAEtB,CAAC;IAE/C;;;;;OAKG;IACI,QAAQ,CAAC,KAAa;QAC3B,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAE,CAAC;QAC3D,MAAM,WAAW,GAAG,IAAI,4CAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3D,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QACpC,OAAO,WAAW,CAAC;IACrB,CAAC;IAED;;;;;;OAMG;IACI,cAAc,CAAC,KAAa;;QACjC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;YAAE,OAAO;QACpC,MAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,0CAAE,IAAI,EAAE,CAAC;QAC/B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED;;;;;;OAMG;IACI,OAAO;QACZ,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;QAC7C,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CACF;AA1CD,sDA0CC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"id.generator.d.ts","sourceRoot":"","sources":["../../src/utils/id.generator.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAW;IACtB,OAAO,CAAC,MAAM,CAAC,UAAU,CAAoD;WAE/D,GAAG,IAAI,MAAM;CAY5B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdGenerator = void 0;
|
|
4
|
+
class IdGenerator {
|
|
5
|
+
static get() {
|
|
6
|
+
const result = [];
|
|
7
|
+
for (let i = 0; i < 7; i++) {
|
|
8
|
+
result.push(IdGenerator.collection
|
|
9
|
+
.sort(() => 0.5 - Math.random())
|
|
10
|
+
.slice(0, 5)
|
|
11
|
+
.join(''));
|
|
12
|
+
}
|
|
13
|
+
return result.join('-');
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.IdGenerator = IdGenerator;
|
|
17
|
+
IdGenerator.collection = 'ABCDEFGHIJKLMNOPQRSTUVWXTZ0123456789'.split('');
|
|
18
|
+
//# sourceMappingURL=id.generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"id.generator.js","sourceRoot":"","sources":["../../src/utils/id.generator.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;IAGf,MAAM,CAAC,GAAG;QACf,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3B,MAAM,CAAC,IAAI,CACT,WAAW,CAAC,UAAU;iBACnB,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;iBAC/B,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;iBACX,IAAI,CAAC,EAAE,CAAC,CACZ,CAAC;QACJ,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;;AAdH,kCAeC;AAdgB,sBAAU,GAAG,sCAAsC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-queue.model.js","sourceRoot":"","sources":["../../src/models/message-queue.model.ts"],"names":[],"mappings":";;;AACA,uDAA8C;AAE9C,MAAa,YAAY;IACvB;;;;OAIG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAMD,YAAoB,QAAiB,IAAI;QAArB,UAAK,GAAL,KAAK,CAAgB;QAJjC,YAAO,GAAqC,IAAI,mBAAK,EAA6B,CAAC;QACnF,uBAAkB,GAAY,IAAI,CAAC;QACnC,UAAK,GAAa,IAAI,CAAC;IAEa,CAAC;IAE7C;;;;;OAKG;IACI,KAAK;QACV,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;OAMG;IACI,SAAS,CAAC,KAAgC;QAC/C,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC;QAC5F,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACI,GAAG,CAAC,KAAgC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;IACzC,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,IAAO;QACnB,IAAI,IAAI,CAAC,KAAK;YAAE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClC,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QAChC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3C,CAAC;CACF;AA7DD,oCA6DC"}
|