@spinajs/queue-stomp-transport 2.0.45 → 2.0.50
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/README.md +11 -11
- package/lib/index.d.ts +4 -3
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +26 -23
- package/lib/index.js.map +1 -1
- package/package.json +57 -54
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# `@spinajs/jobs-orm-connection`
|
|
2
|
-
|
|
3
|
-
> TODO: description
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
const jobsOrmConnection = require('@spinajs/jobs-orm-connection');
|
|
9
|
-
|
|
10
|
-
// TODO: DEMONSTRATE API
|
|
11
|
-
```
|
|
1
|
+
# `@spinajs/jobs-orm-connection`
|
|
2
|
+
|
|
3
|
+
> TODO: description
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
const jobsOrmConnection = require('@spinajs/jobs-orm-connection');
|
|
9
|
+
|
|
10
|
+
// TODO: DEMONSTRATE API
|
|
11
|
+
```
|
package/lib/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IQueueMessage, IQueueConnectionOptions, QueueClient, QueueMessage } from '@spinajs/queue';
|
|
2
|
-
import
|
|
2
|
+
import Stomp from '@stomp/stompjs';
|
|
3
3
|
import { Constructor } from '@spinajs/di';
|
|
4
4
|
export declare class StompQueueClient extends QueueClient {
|
|
5
|
-
protected Client: Client;
|
|
6
|
-
protected Subscriptions: Map<string, StompSubscription>;
|
|
5
|
+
protected Client: Stomp.Client;
|
|
6
|
+
protected Subscriptions: Map<string, Stomp.StompSubscription>;
|
|
7
7
|
constructor(options: IQueueConnectionOptions);
|
|
8
8
|
resolve(): Promise<void>;
|
|
9
9
|
dispose(): Promise<void>;
|
|
@@ -11,3 +11,4 @@ export declare class StompQueueClient extends QueueClient {
|
|
|
11
11
|
unsubscribe(channelOrMessage: string | Constructor<QueueMessage>): void;
|
|
12
12
|
subscribe(channelOrMessage: string | Constructor<QueueMessage>, callback: (e: IQueueMessage) => Promise<void>, subscriptionId?: string, durable?: boolean): Promise<void>;
|
|
13
13
|
}
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnG,OAAO,KAAK,MAAM,gBAAgB,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAgC,MAAM,aAAa,CAAC;AAKxE,qBAEa,gBAAiB,SAAQ,WAAW;IAC/C,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;IAE/B,SAAS,CAAC,aAAa,uCAA8C;gBAEzD,OAAO,EAAE,uBAAuB;IAI/B,OAAO;IAgEP,OAAO;IAsBP,IAAI,CAAC,OAAO,EAAE,aAAa;IA8BjC,WAAW,CAAC,gBAAgB,EAAE,MAAM,GAAG,WAAW,CAAC,YAAY,CAAC;IAa1D,SAAS,CAAC,gBAAgB,EAAE,MAAM,GAAG,WAAW,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CA4CvL"}
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,28 +7,32 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const lodash_1 = __importDefault(require("lodash"));
|
|
20
|
-
const di_1 = require("@spinajs/di");
|
|
21
|
-
Object.assign(global, { WebSocket: require('websocket').w3cwebsocket });
|
|
22
|
-
let StompQueueClient = class StompQueueClient extends queue_1.QueueClient {
|
|
10
|
+
import { UnexpectedServerError, InvalidArgument } from '../../exceptions/lib/index.js';
|
|
11
|
+
import { QueueClient } from '@spinajs/queue';
|
|
12
|
+
import Stomp from '@stomp/stompjs';
|
|
13
|
+
import _ from 'lodash';
|
|
14
|
+
import { Injectable, PerInstanceCheck } from '@spinajs/di';
|
|
15
|
+
import websocket from 'websocket';
|
|
16
|
+
Object.assign(global, { WebSocket: websocket.w3cwebsocket });
|
|
17
|
+
let StompQueueClient = class StompQueueClient extends QueueClient {
|
|
23
18
|
constructor(options) {
|
|
24
19
|
super(options);
|
|
25
20
|
this.Subscriptions = new Map();
|
|
26
21
|
}
|
|
27
22
|
async resolve() {
|
|
28
|
-
this.Client = new
|
|
23
|
+
this.Client = new Stomp.Client({
|
|
24
|
+
brokerURL: this.Options.host,
|
|
25
|
+
connectHeaders: {
|
|
29
26
|
login: this.Options.login,
|
|
30
27
|
passcode: this.Options.password,
|
|
31
28
|
'client-id': this.Options.name,
|
|
32
|
-
},
|
|
29
|
+
},
|
|
30
|
+
reconnectDelay: 5000,
|
|
31
|
+
heartbeatIncoming: 4000,
|
|
32
|
+
heartbeatOutgoing: 4000,
|
|
33
|
+
// additional options
|
|
34
|
+
...this.Options.options,
|
|
35
|
+
});
|
|
33
36
|
if (this.Options.debug) {
|
|
34
37
|
this.Client.debug = (str) => {
|
|
35
38
|
this.Log.trace(str);
|
|
@@ -37,7 +40,7 @@ let StompQueueClient = class StompQueueClient extends queue_1.QueueClient {
|
|
|
37
40
|
}
|
|
38
41
|
return new Promise((resolve, reject) => {
|
|
39
42
|
this.Client.onStompError = (frame) => {
|
|
40
|
-
reject(new
|
|
43
|
+
reject(new UnexpectedServerError(`Cannot connect to queue server at ${this.Options.host}`, frame));
|
|
41
44
|
};
|
|
42
45
|
this.Client.onConnect = () => {
|
|
43
46
|
this.Log.success('Connected to STOMP client');
|
|
@@ -62,7 +65,7 @@ let StompQueueClient = class StompQueueClient extends queue_1.QueueClient {
|
|
|
62
65
|
};
|
|
63
66
|
};
|
|
64
67
|
this.Client.onWebSocketError = (err) => {
|
|
65
|
-
reject(new
|
|
68
|
+
reject(new UnexpectedServerError(`Cannot connect to queue server at ${this.Options.host}, websocket error`, err));
|
|
66
69
|
};
|
|
67
70
|
this.Client.activate();
|
|
68
71
|
});
|
|
@@ -108,7 +111,7 @@ let StompQueueClient = class StompQueueClient extends queue_1.QueueClient {
|
|
|
108
111
|
});
|
|
109
112
|
}
|
|
110
113
|
unsubscribe(channelOrMessage) {
|
|
111
|
-
const channels =
|
|
114
|
+
const channels = _.isString(channelOrMessage) ? [channelOrMessage] : this.getChannelForMessage(channelOrMessage);
|
|
112
115
|
channels.forEach((c) => {
|
|
113
116
|
if (!this.Subscriptions.has(c)) {
|
|
114
117
|
return;
|
|
@@ -118,7 +121,7 @@ let StompQueueClient = class StompQueueClient extends queue_1.QueueClient {
|
|
|
118
121
|
});
|
|
119
122
|
}
|
|
120
123
|
async subscribe(channelOrMessage, callback, subscriptionId, durable) {
|
|
121
|
-
const channels =
|
|
124
|
+
const channels = _.isString(channelOrMessage) ? [channelOrMessage] : this.getChannelForMessage(channelOrMessage);
|
|
122
125
|
channels.forEach((c) => {
|
|
123
126
|
if (this.Subscriptions.has(c)) {
|
|
124
127
|
this.Log.warn(`Channel ${c} already subscribed !`);
|
|
@@ -130,7 +133,7 @@ let StompQueueClient = class StompQueueClient extends queue_1.QueueClient {
|
|
|
130
133
|
}
|
|
131
134
|
if (durable) {
|
|
132
135
|
if (!subscriptionId) {
|
|
133
|
-
throw new
|
|
136
|
+
throw new InvalidArgument(`subscriptionId cannot be empty if using durable subscriptions`);
|
|
134
137
|
}
|
|
135
138
|
headers['activemq.subscriptionName'] = subscriptionId;
|
|
136
139
|
}
|
|
@@ -150,9 +153,9 @@ let StompQueueClient = class StompQueueClient extends queue_1.QueueClient {
|
|
|
150
153
|
}
|
|
151
154
|
};
|
|
152
155
|
StompQueueClient = __decorate([
|
|
153
|
-
|
|
154
|
-
|
|
156
|
+
PerInstanceCheck(),
|
|
157
|
+
Injectable(QueueClient),
|
|
155
158
|
__metadata("design:paramtypes", [Object])
|
|
156
159
|
], StompQueueClient);
|
|
157
|
-
|
|
160
|
+
export { StompQueueClient };
|
|
158
161
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAA0C,WAAW,EAAgB,MAAM,gBAAgB,CAAC;AACnG,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAe,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,YAAY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-
"name": "@spinajs/queue-stomp-transport",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "simple job transport based on sqlite. Reads & writes jobs to execute in local sqlite database. used for testing & simple projects",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"spinajs"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"@
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"@spinajs/
|
|
49
|
-
"@spinajs/
|
|
50
|
-
"@
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@spinajs/queue-stomp-transport",
|
|
3
|
+
"version": "2.0.50",
|
|
4
|
+
"description": "simple job transport based on sqlite. Reads & writes jobs to execute in local sqlite database. used for testing & simple projects",
|
|
5
|
+
"exports": "./lib/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"private": false,
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=16.11"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "npm run clean && npm run compile",
|
|
13
|
+
"compile": "tsc -b tsconfig.json",
|
|
14
|
+
"rimraf": "./node_modules/rimraf/bin.js",
|
|
15
|
+
"clean": "rimraf lib/ && rimraf tsconfig.tsbuildinfo",
|
|
16
|
+
"test": "ts-mocha -p tsconfig.json test/**/*.test.ts",
|
|
17
|
+
"coverage": "nyc npm run test",
|
|
18
|
+
"build-docs": "rimraf docs && typedoc --options typedoc.json src/",
|
|
19
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
20
|
+
"lint": "eslint -c .eslintrc.cjs --ext .ts src --fix",
|
|
21
|
+
"preversion": "npm run lint",
|
|
22
|
+
"version": "npm run format && git add -A src",
|
|
23
|
+
"postinstall": "npm run build"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"lib/**/*"
|
|
27
|
+
],
|
|
28
|
+
"types": "lib",
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/spinajs/main.git"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"spinajs",
|
|
35
|
+
"http"
|
|
36
|
+
],
|
|
37
|
+
"author": "SpinaJS <spinajs@coderush.pl> (https://github.com/spinajs/main)",
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/spinajs/main/issues"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://github.com/spinajs/main#readme",
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/luxon": "^3.2.0",
|
|
45
|
+
"@types/node": "^18.11.18"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@spinajs/configuration": "^2.0.46",
|
|
49
|
+
"@spinajs/di": "^2.0.46",
|
|
50
|
+
"@spinajs/exceptions": "^2.0.39",
|
|
51
|
+
"@spinajs/log": "^2.0.46",
|
|
52
|
+
"@spinajs/queue": "^2.0.46",
|
|
53
|
+
"@stomp/stompjs": "^6.1.2",
|
|
54
|
+
"websocket": "^1.0.34"
|
|
55
|
+
},
|
|
56
|
+
"gitHead": "002dc553b0ffffd72193d0121ac425a4083bc9ee"
|
|
57
|
+
}
|