@autofleet/rabbit 5.6.0 → 5.6.1
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/dist/mock/index.cjs +1 -1
- package/dist/mock/index.cjs.map +1 -1
- package/dist/mock/index.d.cts +0 -1
- package/dist/mock/index.d.ts +0 -1
- package/dist/mock/index.js +1 -1
- package/dist/mock/index.js.map +1 -1
- package/package.json +4 -11
package/dist/mock/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,`__esModule`,{value:!0})
|
|
1
|
+
Object.defineProperty(exports,`__esModule`,{value:!0});var e=class{constructor(){this.ack=jest.fn(),this.nack=jest.fn(),this.assertChannel=jest.fn(),this.assertExchange=jest.fn(),this.assertQueue=jest.fn(),this.consume=jest.fn(),this.consumeFromExchange=jest.fn(),this.publish=jest.fn(),this.sendToQueue=jest.fn(),this.getRetriesCount=jest.fn(),this.getTotalConsumptionDuration=jest.fn(),this.stopAcceptingWork=jest.fn(),this.drain=jest.fn(),this.startConsume=jest.fn()}},t=e;exports.default=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/mock/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/mock/index.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/mock/index.ts"],"sourcesContent":["import type { IAfRabbitMq } from '../index';\n\ninterface Jest {\n fn(): any;\n}\ndeclare const jest: Jest;\n\nclass RabbitMq implements IAfRabbitMq {\n ack: any = jest.fn();\n\n nack: any = jest.fn();\n\n assertChannel: any = jest.fn();\n\n assertExchange: any = jest.fn();\n\n assertQueue: any = jest.fn();\n\n consume: any = jest.fn();\n\n consumeFromExchange: any = jest.fn();\n\n publish: any = jest.fn();\n\n sendToQueue: any = jest.fn();\n\n getRetriesCount: any = jest.fn();\n\n getTotalConsumptionDuration: any = jest.fn();\n\n stopAcceptingWork: any = jest.fn();\n\n drain: any = jest.fn();\n\n startConsume: any = jest.fn();\n}\n\nexport default RabbitMq;\n"],"mappings":"uDAOA,IAAM,EAAN,KAAsC,wBACzB,KAAK,IAAI,WAER,KAAK,IAAI,oBAEA,KAAK,IAAI,qBAER,KAAK,IAAI,kBAEZ,KAAK,IAAI,cAEb,KAAK,IAAI,0BAEG,KAAK,IAAI,cAErB,KAAK,IAAI,kBAEL,KAAK,IAAI,sBAEL,KAAK,IAAI,kCAEG,KAAK,IAAI,wBAEnB,KAAK,IAAI,YAErB,KAAK,IAAI,mBAEF,KAAK,IAAI,GAG/B,EAAe"}
|
package/dist/mock/index.d.cts
CHANGED
package/dist/mock/index.d.ts
CHANGED
package/dist/mock/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
var e=class{constructor(){this.ack=jest.fn(),this.nack=jest.fn(),this.assertChannel=jest.fn(),this.assertExchange=jest.fn(),this.assertQueue=jest.fn(),this.consume=jest.fn(),this.consumeFromExchange=jest.fn(),this.publish=jest.fn(),this.sendToQueue=jest.fn(),this.getRetriesCount=jest.fn(),this.getTotalConsumptionDuration=jest.fn(),this.stopAcceptingWork=jest.fn(),this.drain=jest.fn(),this.startConsume=jest.fn()}};export{e as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/mock/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/mock/index.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/mock/index.ts"],"sourcesContent":["import type { IAfRabbitMq } from '../index';\n\ninterface Jest {\n fn(): any;\n}\ndeclare const jest: Jest;\n\nclass RabbitMq implements IAfRabbitMq {\n ack: any = jest.fn();\n\n nack: any = jest.fn();\n\n assertChannel: any = jest.fn();\n\n assertExchange: any = jest.fn();\n\n assertQueue: any = jest.fn();\n\n consume: any = jest.fn();\n\n consumeFromExchange: any = jest.fn();\n\n publish: any = jest.fn();\n\n sendToQueue: any = jest.fn();\n\n getRetriesCount: any = jest.fn();\n\n getTotalConsumptionDuration: any = jest.fn();\n\n stopAcceptingWork: any = jest.fn();\n\n drain: any = jest.fn();\n\n startConsume: any = jest.fn();\n}\n\nexport default RabbitMq;\n"],"mappings":"AAqCA,IAAA,EA9BA,KAAsC,wBACzB,KAAK,IAAI,WAER,KAAK,IAAI,oBAEA,KAAK,IAAI,qBAER,KAAK,IAAI,kBAEZ,KAAK,IAAI,cAEb,KAAK,IAAI,0BAEG,KAAK,IAAI,cAErB,KAAK,IAAI,kBAEL,KAAK,IAAI,sBAEL,KAAK,IAAI,kCAEG,KAAK,IAAI,wBAEnB,KAAK,IAAI,YAErB,KAAK,IAAI,mBAEF,KAAK,IAAI"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autofleet/rabbit",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -61,22 +61,15 @@
|
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@autofleet/logger": "*",
|
|
64
|
-
"@autofleet/zehut": "^4.4.0"
|
|
65
|
-
"jest": "*"
|
|
66
|
-
},
|
|
67
|
-
"peerDependenciesMeta": {
|
|
68
|
-
"jest": {
|
|
69
|
-
"optional": true
|
|
70
|
-
}
|
|
64
|
+
"@autofleet/zehut": "^4.4.0"
|
|
71
65
|
},
|
|
72
66
|
"devDependencies": {
|
|
73
67
|
"@types/amqplib": "0.10.7",
|
|
74
|
-
"@types/jest": "^29.5.12",
|
|
75
68
|
"@types/node": "^20.14.11",
|
|
76
69
|
"node-tcp-proxy": "^0.0.28",
|
|
77
70
|
"ts-node": "^10.9.2",
|
|
78
|
-
"@autofleet/logger": "^4.5.
|
|
79
|
-
"@autofleet/zehut": "^4.12.
|
|
71
|
+
"@autofleet/logger": "^4.5.2",
|
|
72
|
+
"@autofleet/zehut": "^4.12.9"
|
|
80
73
|
},
|
|
81
74
|
"author": "",
|
|
82
75
|
"license": "Proprietary",
|