@imqueue/core 1.11.10 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +6 -2
- package/package.json +17 -17
- package/src/IMessageQueue.d.ts +3 -3
- package/src/index.js +5 -1
- package/src/profile.d.ts +1 -1
package/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -52,7 +56,6 @@ class IMQ {
|
|
|
52
56
|
return new Adapter(name, options, mode);
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
|
-
exports.default = IMQ;
|
|
56
59
|
/**
|
|
57
60
|
* Base generic queue factory options
|
|
58
61
|
*
|
|
@@ -61,4 +64,5 @@ exports.default = IMQ;
|
|
|
61
64
|
IMQ.options = {
|
|
62
65
|
vendor: 'Redis', // default vendor
|
|
63
66
|
};
|
|
67
|
+
exports.default = IMQ;
|
|
64
68
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imqueue/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "Simple JSON-based messaging queue for inter service communication",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"message-queue",
|
|
@@ -37,32 +37,32 @@
|
|
|
37
37
|
"author": "imqueue.com <support@imqueue.com> (https://imqueue.com)",
|
|
38
38
|
"license": "ISC",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@types/redis": "^2.8.
|
|
40
|
+
"@types/redis": "^2.8.32",
|
|
41
41
|
"redis": "3.1.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@types/chai": "^4.
|
|
45
|
-
"@types/mocha": "^
|
|
46
|
-
"@types/mock-require": "^2.0.
|
|
47
|
-
"@types/node": "^
|
|
48
|
-
"@types/sinon": "^10.0.
|
|
49
|
-
"@types/yargs": "^17.0.
|
|
50
|
-
"chai": "^4.3.
|
|
44
|
+
"@types/chai": "^4.3.5",
|
|
45
|
+
"@types/mocha": "^10.0.1",
|
|
46
|
+
"@types/mock-require": "^2.0.1",
|
|
47
|
+
"@types/node": "^20.1.4",
|
|
48
|
+
"@types/sinon": "^10.0.15",
|
|
49
|
+
"@types/yargs": "^17.0.24",
|
|
50
|
+
"chai": "^4.3.7",
|
|
51
51
|
"codeclimate-test-reporter": "^0.5.1",
|
|
52
52
|
"coveralls": "^3.1.1",
|
|
53
|
-
"mocha": "^
|
|
53
|
+
"mocha": "^10.2.0",
|
|
54
54
|
"mocha-lcov-reporter": "^1.3.0",
|
|
55
55
|
"mock-require": "^3.0.3",
|
|
56
56
|
"nyc": "^15.1.0",
|
|
57
|
-
"open": "^
|
|
57
|
+
"open": "^9.1.0",
|
|
58
58
|
"reflect-metadata": "^0.1.13",
|
|
59
|
-
"sinon": "^
|
|
60
|
-
"source-map-support": "^0.5.
|
|
61
|
-
"ts-node": "^10.
|
|
59
|
+
"sinon": "^15.0.4",
|
|
60
|
+
"source-map-support": "^0.5.21",
|
|
61
|
+
"ts-node": "^10.9.1",
|
|
62
62
|
"tslint": "^6.1.3",
|
|
63
|
-
"typedoc": "^0.
|
|
64
|
-
"typescript": "^
|
|
65
|
-
"yargs": "^17.
|
|
63
|
+
"typedoc": "^0.24.7",
|
|
64
|
+
"typescript": "^5.0.4",
|
|
65
|
+
"yargs": "^17.7.2"
|
|
66
66
|
},
|
|
67
67
|
"main": "index.js",
|
|
68
68
|
"typescript": {
|
package/src/IMessageQueue.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export { EventEmitter } from 'events';
|
|
|
22
22
|
/**
|
|
23
23
|
* Represents any JSON-serializable value
|
|
24
24
|
*/
|
|
25
|
-
export
|
|
25
|
+
export type AnyJson = boolean | number | string | null | undefined | JsonArray | JsonObject;
|
|
26
26
|
/**
|
|
27
27
|
* Represents JSON serializable object
|
|
28
28
|
*/
|
|
@@ -40,7 +40,7 @@ export interface JsonArray extends Array<AnyJson> {
|
|
|
40
40
|
*
|
|
41
41
|
* @deprecated
|
|
42
42
|
*/
|
|
43
|
-
export
|
|
43
|
+
export type IJson = JsonObject;
|
|
44
44
|
/**
|
|
45
45
|
* Logger interface
|
|
46
46
|
*/
|
|
@@ -192,7 +192,7 @@ export interface IMQOptions {
|
|
|
192
192
|
port: number;
|
|
193
193
|
}[];
|
|
194
194
|
}
|
|
195
|
-
export
|
|
195
|
+
export type IMessageQueueConstructor = new (name: string, options?: Partial<IMQOptions>, mode?: IMQMode) => IMessageQueue;
|
|
196
196
|
/**
|
|
197
197
|
* Generic messaging queue implementation interface
|
|
198
198
|
*
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/src/profile.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export interface ProfileDecoratorOptions {
|
|
|
46
46
|
*/
|
|
47
47
|
export declare function verifyLogLevel(level: any): LogLevel;
|
|
48
48
|
export declare const IMQ_LOG_LEVEL: LogLevel;
|
|
49
|
-
export
|
|
49
|
+
export type AllowedTimeFormat = 'microseconds' | 'milliseconds' | 'seconds';
|
|
50
50
|
/**
|
|
51
51
|
* Environment variable IMQ_LOG_TIME=[1, 0] - enables/disables profiled
|
|
52
52
|
* timings logging
|