@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 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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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.11.10",
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.31",
40
+ "@types/redis": "^2.8.32",
41
41
  "redis": "3.1.2"
42
42
  },
43
43
  "devDependencies": {
44
- "@types/chai": "^4.2.21",
45
- "@types/mocha": "^9.0.0",
46
- "@types/mock-require": "^2.0.0",
47
- "@types/node": "^16.7.10",
48
- "@types/sinon": "^10.0.2",
49
- "@types/yargs": "^17.0.2",
50
- "chai": "^4.3.4",
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": "^9.1.1",
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": "^8.2.1",
57
+ "open": "^9.1.0",
58
58
  "reflect-metadata": "^0.1.13",
59
- "sinon": "^11.1.2",
60
- "source-map-support": "^0.5.19",
61
- "ts-node": "^10.2.1",
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.22.7",
64
- "typescript": "^4.4.4",
65
- "yargs": "^17.1.1"
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": {
@@ -22,7 +22,7 @@ export { EventEmitter } from 'events';
22
22
  /**
23
23
  * Represents any JSON-serializable value
24
24
  */
25
- export declare type AnyJson = boolean | number | string | null | undefined | JsonArray | JsonObject;
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 declare type IJson = JsonObject;
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 declare type IMessageQueueConstructor = new (name: string, options?: Partial<IMQOptions>, mode?: IMQMode) => IMessageQueue;
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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 declare type AllowedTimeFormat = 'microseconds' | 'milliseconds' | 'seconds';
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