@imqueue/rpc 1.14.1 → 1.15.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/package.json +15 -15
- package/src/IMQCache.js +1 -1
- package/src/IMQClient.js +1 -1
- package/src/IMQLock.js +1 -1
- package/src/IMQRPCDescription.js +1 -1
- package/src/IMQService.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imqueue/rpc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.1",
|
|
4
4
|
"description": "RPC-like client-service implementation over messaging queue",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"redis",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"scripts": {
|
|
16
16
|
"prepublishOnly": "./node_modules/.bin/tsc",
|
|
17
17
|
"test": "./node_modules/.bin/tsc && ./node_modules/.bin/nyc mocha && ./node_modules/.bin/nyc report --reporter=text-lcov && npm run test-coverage",
|
|
18
|
-
"test-fast": "./node_modules/.bin/tsc && ./node_modules/.bin/nyc mocha && /usr/bin/env node -e \"
|
|
19
|
-
"test-local": "export COVERALLS_REPO_TOKEN=$IMQ_RPC_COVERALLS_TOKEN && npm test && /usr/bin/env node -e \"
|
|
18
|
+
"test-fast": "./node_modules/.bin/tsc && ./node_modules/.bin/nyc mocha && /usr/bin/env node -e \"import('open').then(open => open.default('file://`pwd`/coverage/index.html', { wait: false }))\"",
|
|
19
|
+
"test-local": "export COVERALLS_REPO_TOKEN=$IMQ_RPC_COVERALLS_TOKEN && npm test && /usr/bin/env node -e \"import('open').then(open => open.default('https://coveralls.io/github/imqueue/imq-rpc', { wait: false }));\"",
|
|
20
20
|
"test-coverage": "cat ./coverage/lcov.info | CODECLIMATE_API_HOST=https://codebeat.co/webhooks/code_coverage CODECLIMATE_REPO_TOKEN=c2cc3954-6824-4cdf-8349-12bd9c31955a ./node_modules/.bin/codeclimate-test-reporter",
|
|
21
21
|
"clean-typedefs": "find . -name '*.d.ts' -not -wholename '*node_modules*' -not -wholename '*generator*' -type f -delete",
|
|
22
22
|
"clean-maps": "find . -name '*.js.map' -not -wholename '*node_modules*' -not -wholename '*generator*' -type f -delete",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"clean-doc": "rm -rf docs",
|
|
26
26
|
"clean-benchmark": "rm -rf benchmark-result",
|
|
27
27
|
"clean": "npm run clean-tests && npm run clean-typedefs && npm run clean-maps && npm run clean-js && npm run clean-doc && npm run clean-benchmark",
|
|
28
|
-
"doc": "rm -rf docs && typedoc --excludePrivate --excludeExternals --hideGenerator --exclude \"**/+(debug|test|node_modules|docs|coverage|benchmark|.nyc_output)/**/*\" --mode file --out ./docs . && /usr/bin/env node -e \"
|
|
28
|
+
"doc": "rm -rf docs && typedoc --excludePrivate --excludeExternals --hideGenerator --exclude \"**/+(debug|test|node_modules|docs|coverage|benchmark|.nyc_output)/**/*\" --mode file --out ./docs . && /usr/bin/env node -e \"import('open').then(open => open.default('file://`pwd`/docs/index.html', { wait: false }));\""
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
"author": "imqueue.com <support@imqueue.com> (https://imqueue.com)",
|
|
39
39
|
"license": "ISC",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@imqueue/core": "^1.
|
|
42
|
-
"@types/node": "^20.
|
|
43
|
-
"acorn": "^8.
|
|
41
|
+
"@imqueue/core": "^1.13.1",
|
|
42
|
+
"@types/node": "^20.9.0",
|
|
43
|
+
"acorn": "^8.11.2",
|
|
44
44
|
"murmurhash-native": "^3.5.0",
|
|
45
45
|
"node-machine-id": "^1.1.12",
|
|
46
46
|
"reflect-metadata": "^0.1.13",
|
|
47
|
-
"typescript": "^5.
|
|
47
|
+
"typescript": "^5.2.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@types/chai": "^4.3.
|
|
51
|
-
"@types/mocha": "^10.0.
|
|
52
|
-
"@types/mock-require": "^2.0.
|
|
53
|
-
"@types/sinon": "^
|
|
54
|
-
"chai": "^4.3.
|
|
50
|
+
"@types/chai": "^4.3.10",
|
|
51
|
+
"@types/mocha": "^10.0.4",
|
|
52
|
+
"@types/mock-require": "^2.0.3",
|
|
53
|
+
"@types/sinon": "^17.0.1",
|
|
54
|
+
"chai": "^4.3.10",
|
|
55
55
|
"codeclimate-test-reporter": "^0.5.1",
|
|
56
56
|
"coveralls": "^3.1.1",
|
|
57
57
|
"minimist": "^1.2.8",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"mock-require": "^3.0.3",
|
|
61
61
|
"nyc": "^15.1.0",
|
|
62
62
|
"open": "^9.1.0",
|
|
63
|
-
"sinon": "^
|
|
63
|
+
"sinon": "^17.0.1",
|
|
64
64
|
"source-map-support": "^0.5.21",
|
|
65
65
|
"ts-node": "^10.9.1",
|
|
66
|
-
"typedoc": "^0.
|
|
66
|
+
"typedoc": "^0.25.3"
|
|
67
67
|
},
|
|
68
68
|
"main": "index.js",
|
|
69
69
|
"typescript": {
|
package/src/IMQCache.js
CHANGED
package/src/IMQClient.js
CHANGED
|
@@ -220,13 +220,13 @@ class IMQClient extends events_1.EventEmitter {
|
|
|
220
220
|
return await generator(name, clientOptions);
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
+
exports.IMQClient = IMQClient;
|
|
223
224
|
__decorate([
|
|
224
225
|
(0, _1.remote)(),
|
|
225
226
|
__metadata("design:type", Function),
|
|
226
227
|
__metadata("design:paramtypes", [_1.IMQDelay]),
|
|
227
228
|
__metadata("design:returntype", Promise)
|
|
228
229
|
], IMQClient.prototype, "describe", null);
|
|
229
|
-
exports.IMQClient = IMQClient;
|
|
230
230
|
/**
|
|
231
231
|
* Builds and returns call resolver, which supports after call optional hook
|
|
232
232
|
*
|
package/src/IMQLock.js
CHANGED
|
@@ -147,6 +147,7 @@ class IMQLock {
|
|
|
147
147
|
return !!IMQLock.acquiredLocks[key];
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
+
exports.IMQLock = IMQLock;
|
|
150
151
|
IMQLock.acquiredLocks = {};
|
|
151
152
|
IMQLock.queues = {};
|
|
152
153
|
IMQLock.metadata = {};
|
|
@@ -162,5 +163,4 @@ IMQLock.deadlockTimeout = 10000;
|
|
|
162
163
|
* @type {ILogger}
|
|
163
164
|
*/
|
|
164
165
|
IMQLock.logger = console;
|
|
165
|
-
exports.IMQLock = IMQLock;
|
|
166
166
|
//# sourceMappingURL=IMQLock.js.map
|
package/src/IMQRPCDescription.js
CHANGED
|
@@ -20,7 +20,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
20
20
|
exports.IMQRPCDescription = void 0;
|
|
21
21
|
class IMQRPCDescription {
|
|
22
22
|
}
|
|
23
|
+
exports.IMQRPCDescription = IMQRPCDescription;
|
|
23
24
|
IMQRPCDescription.serviceDescription = {};
|
|
24
25
|
IMQRPCDescription.typesDescription = {};
|
|
25
|
-
exports.IMQRPCDescription = IMQRPCDescription;
|
|
26
26
|
//# sourceMappingURL=IMQRPCDescription.js.map
|
package/src/IMQService.js
CHANGED
|
@@ -223,6 +223,7 @@ class IMQService {
|
|
|
223
223
|
return serviceDescription;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
+
exports.IMQService = IMQService;
|
|
226
227
|
__decorate([
|
|
227
228
|
(0, core_1.profile)(),
|
|
228
229
|
__metadata("design:type", Function),
|
|
@@ -247,7 +248,6 @@ __decorate([
|
|
|
247
248
|
__metadata("design:paramtypes", []),
|
|
248
249
|
__metadata("design:returntype", Description)
|
|
249
250
|
], IMQService.prototype, "describe", null);
|
|
250
|
-
exports.IMQService = IMQService;
|
|
251
251
|
/**
|
|
252
252
|
* Sends IMQ response with support of after call optional hook
|
|
253
253
|
*
|