@autofleet/rabbit 3.3.2 → 3.3.22-connection-test-beta

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.
@@ -20,4 +20,3 @@ exports.DEFAULT_OPTIONS = {
20
20
  auditContext: null,
21
21
  enableRabbitTrace: false,
22
22
  };
23
- //# sourceMappingURL=consts.js.map
@@ -7,4 +7,3 @@ class RabbitError extends Error {
7
7
  }
8
8
  }
9
9
  exports.default = RabbitError;
10
- //# sourceMappingURL=rabbitError.js.map
package/dist/lib/redis.js CHANGED
@@ -9,4 +9,3 @@ bluebird_1.default.promisifyAll(redis.RedisClient.prototype);
9
9
  bluebird_1.default.promisifyAll(redis.Multi.prototype);
10
10
  const getRedisInstance = (config) => redis.createClient(config);
11
11
  exports.default = getRedisInstance;
12
- //# sourceMappingURL=redis.js.map
@@ -25,7 +25,6 @@ export interface ConsumeOptions {
25
25
  useConsumeWithLock?: boolean;
26
26
  auditContext?: any;
27
27
  enableRabbitTrace?: boolean;
28
- isQuorumQueue?: boolean;
29
28
  }
30
29
  export type CallbackFunction = (msg: ConsumeMessage, ack: any, nack: any) => Promise<any>;
31
30
  export type newChannelOpts = {
package/dist/lib/types.js CHANGED
@@ -9,4 +9,3 @@ exports.CONSUMER_DEFAULT_OPTIONS = {
9
9
  [HA_PROMOTE_ON_SHUTDOWN]: 'always',
10
10
  },
11
11
  };
12
- //# sourceMappingURL=types.js.map
package/dist/lib/utils.js CHANGED
@@ -17,4 +17,3 @@ const wrapSetImmediate = (callback) => new Promise((resolve, reject) => {
17
17
  exports.wrapSetImmediate = wrapSetImmediate;
18
18
  const rand = () => Math.floor(Math.random() * 100000);
19
19
  exports.rand = rand;
20
- //# sourceMappingURL=utils.js.map
package/dist/logger.js CHANGED
@@ -6,4 +6,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const logger_1 = __importDefault(require("@autofleet/logger"));
7
7
  const logger = (0, logger_1.default)();
8
8
  exports.default = logger;
9
- //# sourceMappingURL=logger.js.map
@@ -1,5 +1,5 @@
1
1
  import 'jest';
2
- import type { IAfRabbitMq } from '../index';
2
+ import { IAfRabbitMq } from './index';
3
3
  declare class RabbitMq implements IAfRabbitMq {
4
4
  ack: any;
5
5
  nack: any;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // eslint-disable-next-line import/no-unresolved
3
+ // eslint-disable-next-line import/no-extraneous-dependencies
4
4
  require("jest");
5
5
  class RabbitMq {
6
6
  constructor() {
@@ -16,4 +16,3 @@ class RabbitMq {
16
16
  }
17
17
  }
18
18
  exports.default = RabbitMq;
19
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,56 +1,46 @@
1
1
  {
2
2
  "name": "@autofleet/rabbit",
3
- "version": "3.3.2",
3
+ "version": "3.3.22-connection-test-beta",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
- "engines": {
7
- "node": ">=16.7.0"
8
- },
9
6
  "scripts": {
10
7
  "postinstall": "echo '\\033[0;31m\nWARNING: in case of migrating to new version of @autofleet/rabbit \nyou might have to delete existing queues or the deployment will fail.\\033[0m\n'",
11
8
  "start": "ts-node src/index.ts",
12
9
  "example": "ts-node src/example.ts",
13
- "build": "rm -rf dist && tsc -p tsconfig.build.json",
14
- "linter": "eslint .",
15
- "test": "vitest",
16
- "test-local": "RABBITMQ_SERVICE_HOST=localhost:5672 node --inspect-brk ./node_modules/.bin/vitest --testTimeout=10000000000",
17
- "coverage": "vitest --coverage",
10
+ "build": "rm -rf dist && tsc",
11
+ "linter": "./node_modules/.bin/eslint .",
12
+ "test": "jest --runInBand --forceExit",
13
+ "test-local": "RABBITMQ_SERVICE_HOST=localhost:5672 jest --forceExit",
14
+ "coverage": "jest --coverage --forceExit && rm -rf ./coverage",
18
15
  "dev": "nodemon"
19
16
  },
20
17
  "dependencies": {
21
- "@autofleet/zehut": "^3.1.2",
22
- "amqp-connection-manager": "4.1.14",
23
- "amqplib": "0.10.5",
18
+ "@autofleet/zehut": "^3.0.10",
19
+ "amqp-connection-manager": "4.1.9",
20
+ "amqplib": "0.10.3",
24
21
  "bluebird": "^3.7.2",
25
- "moment": "^2.30.1",
22
+ "moment": "^2.29.1",
26
23
  "redis": "^3.1.2",
27
24
  "redis-lock": "^0.1.4"
28
25
  },
29
26
  "peerDependencies": {
30
- "@autofleet/logger": "*",
31
- "jest": "*"
32
- },
33
- "peerDependenciesMeta": {
34
- "jest": {
35
- "optional": true
36
- }
27
+ "@autofleet/logger": "*"
37
28
  },
38
29
  "devDependencies": {
39
30
  "@autofleet/logger": "4.0.6",
40
- "@types/amqplib": "0.10.7",
41
- "@types/bluebird": "^3.5.42",
31
+ "@types/amqplib": "0.8.2",
42
32
  "@types/jest": "^29.5.12",
43
33
  "@types/node": "^20.14.11",
44
34
  "@typescript-eslint/eslint-plugin": "^4.8.1",
45
- "@vitest/coverage-v8": "^3.1.3",
46
35
  "eslint": "^7.13.0",
47
36
  "eslint-config-airbnb-typescript": "^12.0.0",
48
37
  "eslint-plugin-import": "^2.22.1",
38
+ "jest": "^29.7.0",
49
39
  "node-tcp-proxy": "^0.0.28",
40
+ "ts-jest": "^29.2.3",
50
41
  "ts-node": "^8.6.2",
51
- "typescript": "^4.9.5",
52
- "vitest": "^3.1.3"
42
+ "typescript": "^4.9.5"
53
43
  },
54
44
  "author": "",
55
- "license": "Proprietary"
56
- }
45
+ "license": "ISC"
46
+ }