@spinajs/queue
Advanced tools
@@ -0,0 +0,0 @@ import { Constructor } from '@spinajs/di'; |
@@ -25,7 +25,7 @@ "use strict"; | ||
}; | ||
BlackHoleQueueClient = __decorate([ | ||
exports.BlackHoleQueueClient = BlackHoleQueueClient; | ||
exports.BlackHoleQueueClient = BlackHoleQueueClient = __decorate([ | ||
(0, di_1.NewInstance)(), | ||
(0, di_1.Injectable)(interfaces_js_1.QueueClient) | ||
], BlackHoleQueueClient); | ||
exports.BlackHoleQueueClient = BlackHoleQueueClient; | ||
//# sourceMappingURL=BlackHoleQueueClient.js.map |
@@ -0,0 +0,0 @@ declare const queue: { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export interface IEventOption { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Constructor } from '@spinajs/di'; |
@@ -156,2 +156,3 @@ "use strict"; | ||
}; | ||
exports.DefaultQueueService = DefaultQueueService; | ||
__decorate([ | ||
@@ -165,6 +166,5 @@ (0, log_1.Logger)('queue'), | ||
], DefaultQueueService.prototype, "Connections", void 0); | ||
DefaultQueueService = __decorate([ | ||
exports.DefaultQueueService = DefaultQueueService = __decorate([ | ||
(0, di_1.Injectable)(interfaces_js_1.QueueService) | ||
], DefaultQueueService); | ||
exports.DefaultQueueService = DefaultQueueService; | ||
//# sourceMappingURL=index.js.map |
@@ -0,0 +0,0 @@ import { AsyncService, Constructor, IInstanceCheck, IMappableService } from '@spinajs/di'; |
@@ -25,3 +25,3 @@ "use strict"; | ||
QueueMessageType["Event"] = "EVENT"; | ||
})(QueueMessageType = exports.QueueMessageType || (exports.QueueMessageType = {})); | ||
})(QueueMessageType || (exports.QueueMessageType = QueueMessageType = {})); | ||
class QueueService extends di_1.AsyncService { | ||
@@ -45,2 +45,3 @@ getConnectionsForMessage(event) { | ||
} | ||
exports.QueueService = QueueService; | ||
__decorate([ | ||
@@ -50,3 +51,2 @@ (0, configuration_1.Config)('queue'), | ||
], QueueService.prototype, "Configuration", void 0); | ||
exports.QueueService = QueueService; | ||
function isJob(event) { | ||
@@ -163,2 +163,3 @@ return event.Type === QueueMessageType.Job; | ||
} | ||
exports.QueueClient = QueueClient; | ||
__decorate([ | ||
@@ -172,3 +173,2 @@ (0, log_1.Logger)('queue'), | ||
], QueueClient.prototype, "Routing", void 0); | ||
exports.QueueClient = QueueClient; | ||
//# sourceMappingURL=interfaces.js.map |
@@ -0,0 +0,0 @@ import { OrmMigration, OrmDriver } from '@spinajs/orm'; |
@@ -32,6 +32,6 @@ "use strict"; | ||
}; | ||
Queue_2022_10_18_01_13_00 = __decorate([ | ||
exports.Queue_2022_10_18_01_13_00 = Queue_2022_10_18_01_13_00; | ||
exports.Queue_2022_10_18_01_13_00 = Queue_2022_10_18_01_13_00 = __decorate([ | ||
(0, orm_1.Migration)('queue') | ||
], Queue_2022_10_18_01_13_00); | ||
exports.Queue_2022_10_18_01_13_00 = Queue_2022_10_18_01_13_00; | ||
//# sourceMappingURL=Queue_2022_10_18_01_13_00.js.map |
@@ -0,0 +0,0 @@ import { DateTime } from 'luxon'; |
@@ -22,2 +22,3 @@ "use strict"; | ||
}; | ||
exports.JobModel = JobModel; | ||
__decorate([ | ||
@@ -43,7 +44,6 @@ (0, orm_1.Primary)(), | ||
], JobModel.prototype, "FinishedAt", void 0); | ||
JobModel = __decorate([ | ||
exports.JobModel = JobModel = __decorate([ | ||
(0, orm_1.Connection)('queue'), | ||
(0, orm_1.Model)('queue_jobs') | ||
], JobModel); | ||
exports.JobModel = JobModel; | ||
//# sourceMappingURL=JobModel.js.map |
@@ -0,0 +0,0 @@ import { Constructor } from '@spinajs/di'; |
@@ -0,0 +0,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
@@ -0,0 +0,0 @@ declare const queue: { |
@@ -0,0 +0,0 @@ const queue = { |
@@ -0,0 +0,0 @@ export interface IEventOption { |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { Constructor } from '@spinajs/di'; |
@@ -0,0 +0,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
@@ -0,0 +0,0 @@ import { AsyncService, Constructor, IInstanceCheck, IMappableService } from '@spinajs/di'; |
@@ -19,3 +19,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
QueueMessageType["Event"] = "EVENT"; | ||
})(QueueMessageType = QueueMessageType || (QueueMessageType = {})); | ||
})(QueueMessageType || (QueueMessageType = {})); | ||
export class QueueService extends AsyncService { | ||
@@ -22,0 +22,0 @@ getConnectionsForMessage(event) { |
@@ -0,0 +0,0 @@ import { OrmMigration, OrmDriver } from '@spinajs/orm'; |
@@ -0,0 +0,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
@@ -0,0 +0,0 @@ import { DateTime } from 'luxon'; |
@@ -0,0 +0,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
{ | ||
"name": "@spinajs/queue", | ||
"version": "2.0.180", | ||
"version": "2.0.181", | ||
"description": "queue sending & pulling made easy", | ||
@@ -57,7 +57,7 @@ | ||
"dependencies": { | ||
"@spinajs/configuration": "^2.0.180", | ||
"@spinajs/di": "^2.0.180", | ||
"@spinajs/exceptions": "^2.0.180", | ||
"@spinajs/log": "^2.0.180", | ||
"@spinajs/orm": "^2.0.180", | ||
"@spinajs/configuration": "^2.0.181", | ||
"@spinajs/di": "^2.0.181", | ||
"@spinajs/exceptions": "^2.0.181", | ||
"@spinajs/log": "^2.0.181", | ||
"@spinajs/orm": "^2.0.181", | ||
"luxon": "^3.2.1" | ||
@@ -64,0 +64,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
250360
0.82%