@imqueue/rpc 3.2.0 → 3.2.2
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/index.d.ts +1 -1
- package/index.js +2 -18
- package/package.json +6 -2
- package/src/IMQCache.d.ts +1 -24
- package/src/IMQCache.js +37 -6
- package/src/IMQClient.d.ts +2 -2
- package/src/IMQClient.js +53 -86
- package/src/IMQDelay.js +1 -5
- package/src/IMQLock.d.ts +2 -2
- package/src/IMQLock.js +26 -6
- package/src/IMQMetadata.d.ts +1 -1
- package/src/IMQMetadata.js +25 -5
- package/src/IMQRPCDescription.js +1 -5
- package/src/IMQRPCError.d.ts +1 -1
- package/src/IMQRPCError.js +27 -7
- package/src/IMQRPCOptions.d.ts +5 -5
- package/src/IMQRPCOptions.js +10 -9
- package/src/IMQRPCRequest.d.ts +2 -2
- package/src/IMQRPCRequest.js +25 -2
- package/src/IMQRPCResponse.d.ts +2 -2
- package/src/IMQRPCResponse.js +25 -2
- package/src/IMQRequestContext.d.ts +2 -2
- package/src/IMQRequestContext.js +6 -8
- package/src/IMQService.d.ts +2 -2
- package/src/IMQService.js +36 -75
- package/src/cache/ICache.js +1 -2
- package/src/cache/RedisCache.d.ts +3 -23
- package/src/cache/RedisCache.js +14 -17
- package/src/cache/index.d.ts +2 -2
- package/src/cache/index.js +2 -18
- package/src/decorators/cache.d.ts +1 -1
- package/src/decorators/cache.js +14 -15
- package/src/decorators/classType.js +3 -6
- package/src/decorators/expose.d.ts +18 -0
- package/src/decorators/expose.js +188 -18
- package/src/decorators/index.d.ts +9 -9
- package/src/decorators/index.js +9 -25
- package/src/decorators/indexed.d.ts +1 -1
- package/src/decorators/indexed.js +6 -9
- package/src/decorators/lock.js +8 -11
- package/src/decorators/logged.d.ts +1 -1
- package/src/decorators/logged.js +25 -4
- package/src/decorators/metadata.js +1 -2
- package/src/decorators/property.js +7 -11
- package/src/decorators/remote.js +1 -4
- package/src/helpers/fs.js +7 -12
- package/src/helpers/index.d.ts +4 -4
- package/src/helpers/index.js +4 -20
- package/src/helpers/os-uuid.js +5 -8
- package/src/helpers/pid.d.ts +1 -1
- package/src/helpers/pid.js +12 -16
- package/src/helpers/signature.js +3 -6
- package/src/index.d.ts +14 -14
- package/src/index.js +14 -30
- package/tsconfig.json +5 -2
package/src/decorators/logged.js
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* IMQ-RPC Decorators: logged
|
|
3
|
+
*
|
|
4
|
+
* I'm Queue Software Project
|
|
5
|
+
* Copyright (C) 2025 imqueue.com <support@imqueue.com>
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*
|
|
20
|
+
* If you want to use this code in a closed source (commercial) project, you can
|
|
21
|
+
* purchase a proprietary commercial license. Please contact us at
|
|
22
|
+
* <support@imqueue.com> to get commercial licensing options.
|
|
23
|
+
*/
|
|
24
|
+
import {} from '@imqueue/core';
|
|
4
25
|
/**
|
|
5
26
|
* Creates a `@logged()` method decorator that wraps the decorated method in a
|
|
6
27
|
* try/catch and logs any error it throws. The logger is resolved in this
|
|
@@ -14,7 +35,7 @@ exports.logged = logged;
|
|
|
14
35
|
* logged-decorator options
|
|
15
36
|
* @return {Function} - a dual-mode method decorator
|
|
16
37
|
*/
|
|
17
|
-
function logged(options) {
|
|
38
|
+
export function logged(options) {
|
|
18
39
|
const level = options && options.level
|
|
19
40
|
? options.level
|
|
20
41
|
: 'error';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*!
|
|
3
2
|
* IMQ-RPC Decorators: Symbol.metadata polyfill
|
|
4
3
|
*
|
|
@@ -22,7 +21,6 @@
|
|
|
22
21
|
* purchase a proprietary commercial license. Please contact us at
|
|
23
22
|
* <support@imqueue.com> to get commercial licensing options.
|
|
24
23
|
*/
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
24
|
/**
|
|
27
25
|
* Standard (TC39) decorator metadata relies on the well-known
|
|
28
26
|
* `Symbol.metadata`. Node.js does not implement it natively yet, so without
|
|
@@ -42,4 +40,5 @@ if (!Symbol.metadata) {
|
|
|
42
40
|
configurable: true,
|
|
43
41
|
});
|
|
44
42
|
}
|
|
43
|
+
export {};
|
|
45
44
|
//# sourceMappingURL=metadata.js.map
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.registerType = registerType;
|
|
4
|
-
exports.property = property;
|
|
5
1
|
/*!
|
|
6
2
|
* IMQ-RPC Decorators: property
|
|
7
3
|
*
|
|
@@ -25,7 +21,7 @@ exports.property = property;
|
|
|
25
21
|
* purchase a proprietary commercial license. Please contact us at
|
|
26
22
|
* <support@imqueue.com> to get commercial licensing options.
|
|
27
23
|
*/
|
|
28
|
-
|
|
24
|
+
import { IMQRPCDescription } from '../index.js';
|
|
29
25
|
/**
|
|
30
26
|
* Per-class store of collected @property definitions, keyed off the shared
|
|
31
27
|
* decorator metadata object. Standard field decorators cannot see their
|
|
@@ -70,17 +66,17 @@ function resolveTypeDef(input) {
|
|
|
70
66
|
* @param {DecoratorMetadata | undefined} metadata - shared decorator metadata
|
|
71
67
|
* @param {string} [indexType] - optional index signature definition
|
|
72
68
|
*/
|
|
73
|
-
function registerType(ctor, metadata, indexType) {
|
|
69
|
+
export function registerType(ctor, metadata, indexType) {
|
|
74
70
|
const typeName = ctor.name;
|
|
75
71
|
const collected = metadata && Object.prototype.hasOwnProperty.call(metadata, PROPERTIES)
|
|
76
72
|
? metadata[PROPERTIES]
|
|
77
73
|
: {};
|
|
78
|
-
|
|
74
|
+
IMQRPCDescription.typesDescription[typeName] = IMQRPCDescription
|
|
79
75
|
.typesDescription[typeName] || {
|
|
80
76
|
properties: {},
|
|
81
77
|
inherits: Object.getPrototypeOf(ctor).name,
|
|
82
78
|
};
|
|
83
|
-
const description =
|
|
79
|
+
const description = IMQRPCDescription.typesDescription[typeName];
|
|
84
80
|
description.inherits = Object.getPrototypeOf(ctor).name;
|
|
85
81
|
for (const key of Object.keys(collected)) {
|
|
86
82
|
const { rawType, isOptional } = collected[key];
|
|
@@ -107,7 +103,7 @@ function registerType(ctor, metadata, indexType) {
|
|
|
107
103
|
description.indexType = indexType;
|
|
108
104
|
}
|
|
109
105
|
}
|
|
110
|
-
function property(type, isOptional = false) {
|
|
106
|
+
export function property(type, isOptional = false) {
|
|
111
107
|
if (!type) {
|
|
112
108
|
return;
|
|
113
109
|
}
|
|
@@ -139,12 +135,12 @@ function property(type, isOptional = false) {
|
|
|
139
135
|
// property straight into the RPC type description (no @classType flush
|
|
140
136
|
// is required in this mode)
|
|
141
137
|
const typeName = target.constructor.name;
|
|
142
|
-
|
|
138
|
+
IMQRPCDescription.typesDescription[typeName] = IMQRPCDescription
|
|
143
139
|
.typesDescription[typeName] || {
|
|
144
140
|
properties: {},
|
|
145
141
|
inherits: Object.getPrototypeOf(target.constructor).name,
|
|
146
142
|
};
|
|
147
|
-
|
|
143
|
+
IMQRPCDescription.typesDescription[typeName].properties[String(context)] = {
|
|
148
144
|
type: resolveTypeDef(type),
|
|
149
145
|
isOptional,
|
|
150
146
|
};
|
package/src/decorators/remote.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.remote = remote;
|
|
4
1
|
/*!
|
|
5
2
|
* IMQ-RPC Decorators: remote
|
|
6
3
|
*
|
|
@@ -33,7 +30,7 @@ exports.remote = remote;
|
|
|
33
30
|
*
|
|
34
31
|
* @return {Function} - a dual-mode method decorator
|
|
35
32
|
*/
|
|
36
|
-
function remote() {
|
|
33
|
+
export function remote() {
|
|
37
34
|
const wrap = (original, methodName) => function (...args) {
|
|
38
35
|
args.push(methodName);
|
|
39
36
|
// istanbul ignore next
|
package/src/helpers/fs.js
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fileExists = fileExists;
|
|
4
|
-
exports.mkdir = mkdir;
|
|
5
|
-
exports.writeFile = writeFile;
|
|
6
1
|
/*!
|
|
7
2
|
* IMQ-RPC helpers: fs
|
|
8
3
|
*
|
|
@@ -26,15 +21,15 @@ exports.writeFile = writeFile;
|
|
|
26
21
|
* purchase a proprietary commercial license. Please contact us at
|
|
27
22
|
* <support@imqueue.com> to get commercial licensing options.
|
|
28
23
|
*/
|
|
29
|
-
|
|
24
|
+
import { access, mkdir as fsMkdir, writeFile as fsWriteFile } from 'node:fs';
|
|
30
25
|
/**
|
|
31
26
|
* Checks whether a file exists at the given path.
|
|
32
27
|
*
|
|
33
28
|
* @param {string} path - path to the file to check
|
|
34
29
|
* @return {Promise<boolean>} - true if the file exists, false otherwise
|
|
35
30
|
*/
|
|
36
|
-
function fileExists(path) {
|
|
37
|
-
return new Promise(resolve =>
|
|
31
|
+
export function fileExists(path) {
|
|
32
|
+
return new Promise(resolve => access(path, err => resolve(!err)));
|
|
38
33
|
}
|
|
39
34
|
/**
|
|
40
35
|
* Asynchronously creates a directory at the given path.
|
|
@@ -42,8 +37,8 @@ function fileExists(path) {
|
|
|
42
37
|
* @param {string} path - path of the directory to create
|
|
43
38
|
* @return {Promise<void>}
|
|
44
39
|
*/
|
|
45
|
-
function mkdir(path) {
|
|
46
|
-
return new Promise((resolve, reject) => (
|
|
40
|
+
export function mkdir(path) {
|
|
41
|
+
return new Promise((resolve, reject) => fsMkdir(path, generalCallback.bind(null, resolve, reject)));
|
|
47
42
|
}
|
|
48
43
|
/**
|
|
49
44
|
* Asynchronously writes the given content to a file at the given path.
|
|
@@ -52,8 +47,8 @@ function mkdir(path) {
|
|
|
52
47
|
* @param {string} content - content to write to the file
|
|
53
48
|
* @return {Promise<void>}
|
|
54
49
|
*/
|
|
55
|
-
function writeFile(path, content) {
|
|
56
|
-
return new Promise((resolve, reject) => (
|
|
50
|
+
export function writeFile(path, content) {
|
|
51
|
+
return new Promise((resolve, reject) => fsWriteFile(path, content, { encoding: 'utf8' }, generalCallback.bind(null, resolve, reject)));
|
|
57
52
|
}
|
|
58
53
|
/**
|
|
59
54
|
* Constructs a callback that settles a promise using the given resolve and
|
package/src/helpers/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* purchase a proprietary commercial license. Please contact us at
|
|
21
21
|
* <support@imqueue.com> to get commercial licensing options.
|
|
22
22
|
*/
|
|
23
|
-
export * from './signature';
|
|
24
|
-
export * from './os-uuid';
|
|
25
|
-
export * from './pid';
|
|
26
|
-
export * from './fs';
|
|
23
|
+
export * from './signature.js';
|
|
24
|
+
export * from './os-uuid.js';
|
|
25
|
+
export * from './pid.js';
|
|
26
|
+
export * from './fs.js';
|
package/src/helpers/index.js
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
1
|
/*!
|
|
18
2
|
*
|
|
19
3
|
* I'm Queue Software Project
|
|
@@ -36,8 +20,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
20
|
* purchase a proprietary commercial license. Please contact us at
|
|
37
21
|
* <support@imqueue.com> to get commercial licensing options.
|
|
38
22
|
*/
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
23
|
+
export * from './signature.js';
|
|
24
|
+
export * from './os-uuid.js';
|
|
25
|
+
export * from './pid.js';
|
|
26
|
+
export * from './fs.js';
|
|
43
27
|
//# sourceMappingURL=index.js.map
|
package/src/helpers/os-uuid.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.osUuid = osUuid;
|
|
4
1
|
/*!
|
|
5
2
|
* IMQ-RPC helpers: osUuid
|
|
6
3
|
*
|
|
@@ -24,8 +21,8 @@ exports.osUuid = osUuid;
|
|
|
24
21
|
* purchase a proprietary commercial license. Please contact us at
|
|
25
22
|
* <support@imqueue.com> to get commercial licensing options.
|
|
26
23
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
import { execSync } from 'node:child_process';
|
|
25
|
+
import { createHash } from 'node:crypto';
|
|
29
26
|
/**
|
|
30
27
|
* Returns the base path to the Windows registry query tool, accounting for
|
|
31
28
|
* 32-bit processes running on 64-bit Windows (which must go through the
|
|
@@ -97,8 +94,8 @@ function parseId(raw) {
|
|
|
97
94
|
* @returns {string}
|
|
98
95
|
*/
|
|
99
96
|
function machineIdSync(original) {
|
|
100
|
-
const id = parseId(
|
|
101
|
-
return original ? id :
|
|
97
|
+
const id = parseId(execSync(idCommand()).toString());
|
|
98
|
+
return original ? id : createHash('sha256').update(id).digest('hex');
|
|
102
99
|
}
|
|
103
100
|
// The machine id cannot change while the process is running, so it is
|
|
104
101
|
// resolved once and memoized: osUuid() is called from every client
|
|
@@ -110,7 +107,7 @@ let cachedUuid;
|
|
|
110
107
|
*
|
|
111
108
|
* @returns {string}
|
|
112
109
|
*/
|
|
113
|
-
function osUuid() {
|
|
110
|
+
export function osUuid() {
|
|
114
111
|
if (cachedUuid === undefined) {
|
|
115
112
|
cachedUuid = machineIdSync(true);
|
|
116
113
|
}
|
package/src/helpers/pid.d.ts
CHANGED
package/src/helpers/pid.js
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IMQ_PID_DIR = exports.IMQ_TMP_DIR = exports.SIGNALS = void 0;
|
|
4
|
-
exports.pid = pid;
|
|
5
|
-
exports.forgetPid = forgetPid;
|
|
6
1
|
/*!
|
|
7
2
|
* IMQ-RPC helpers: pid, forgetPid
|
|
8
3
|
*
|
|
@@ -26,20 +21,21 @@ exports.forgetPid = forgetPid;
|
|
|
26
21
|
* purchase a proprietary commercial license. Please contact us at
|
|
27
22
|
* <support@imqueue.com> to get commercial licensing options.
|
|
28
23
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
import { resolve } from 'node:path';
|
|
25
|
+
import { existsSync, mkdirSync, writeFileSync, unlinkSync } from 'node:fs';
|
|
26
|
+
import {} from '@imqueue/core';
|
|
31
27
|
/**
|
|
32
28
|
* OS signals that should trigger pid file cleanup on process termination.
|
|
33
29
|
*/
|
|
34
|
-
|
|
30
|
+
export const SIGNALS = ['SIGTERM', 'SIGINT', 'SIGHUP', 'SIGQUIT'];
|
|
35
31
|
/**
|
|
36
32
|
* Base temporary directory used by imq-rpc.
|
|
37
33
|
*/
|
|
38
|
-
|
|
34
|
+
export const IMQ_TMP_DIR = process.env.TMPDIR || '/tmp';
|
|
39
35
|
/**
|
|
40
36
|
* Directory where imq-rpc stores its pid files.
|
|
41
37
|
*/
|
|
42
|
-
|
|
38
|
+
export const IMQ_PID_DIR = resolve(IMQ_TMP_DIR, '.imq-rpc');
|
|
43
39
|
/**
|
|
44
40
|
* Returns an increment-based process identifier for the given service name,
|
|
45
41
|
* creating the corresponding pid file under the given directory.
|
|
@@ -48,17 +44,17 @@ exports.IMQ_PID_DIR = (0, node_path_1.resolve)(exports.IMQ_TMP_DIR, '.imq-rpc');
|
|
|
48
44
|
* @param {string} [path] - directory to store the pid file in
|
|
49
45
|
* @returns {number} - the allocated increment-based identifier
|
|
50
46
|
*/
|
|
51
|
-
function pid(name, path =
|
|
47
|
+
export function pid(name, path = IMQ_PID_DIR) {
|
|
52
48
|
const pidFile = `${path}/${name}`;
|
|
53
49
|
const pidOpts = { encoding: 'utf8', flag: 'wx' };
|
|
54
|
-
if (!
|
|
55
|
-
|
|
50
|
+
if (!existsSync(path)) {
|
|
51
|
+
mkdirSync(path);
|
|
56
52
|
}
|
|
57
53
|
let id = 0;
|
|
58
54
|
let done = false;
|
|
59
55
|
while (!done) {
|
|
60
56
|
try {
|
|
61
|
-
|
|
57
|
+
writeFileSync(`${pidFile}-${id}.pid`, process.pid + '', pidOpts);
|
|
62
58
|
done = true;
|
|
63
59
|
}
|
|
64
60
|
catch (err) {
|
|
@@ -80,9 +76,9 @@ function pid(name, path = exports.IMQ_PID_DIR) {
|
|
|
80
76
|
* @param {ILogger} logger - logger instance
|
|
81
77
|
* @param {string} [path] - directory the pid file is stored in
|
|
82
78
|
*/
|
|
83
|
-
function forgetPid(name, id, logger, path =
|
|
79
|
+
export function forgetPid(name, id, logger, path = IMQ_PID_DIR) {
|
|
84
80
|
try {
|
|
85
|
-
|
|
81
|
+
unlinkSync(`${path}/${name}-${id}.pid`);
|
|
86
82
|
}
|
|
87
83
|
catch {
|
|
88
84
|
/* ignore */
|
package/src/helpers/signature.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.signature = signature;
|
|
4
1
|
/*!
|
|
5
2
|
* IMQ-RPC helpers: signature
|
|
6
3
|
*
|
|
@@ -24,7 +21,7 @@ exports.signature = signature;
|
|
|
24
21
|
* purchase a proprietary commercial license. Please contact us at
|
|
25
22
|
* <support@imqueue.com> to get commercial licensing options.
|
|
26
23
|
*/
|
|
27
|
-
|
|
24
|
+
import { hash } from 'node:crypto';
|
|
28
25
|
/**
|
|
29
26
|
* Serializes a value into a deterministic, JSON-compatible string. It mirrors
|
|
30
27
|
* `JSON.stringify` semantics (including `toJSON` support and how `undefined`,
|
|
@@ -102,11 +99,11 @@ function serialize(value, ancestors) {
|
|
|
102
99
|
* @param {readonly unknown[]} args - arguments passed to the method
|
|
103
100
|
* @returns {string} - hexadecimal hash string
|
|
104
101
|
*/
|
|
105
|
-
function signature(className, methodName, args) {
|
|
102
|
+
export function signature(className, methodName, args) {
|
|
106
103
|
const data = serialize([className, methodName, args], []);
|
|
107
104
|
// one-shot native hash truncated to 64 bits (16 hex chars) — same key
|
|
108
105
|
// space as the previous farmhash fingerprint64, but ~3-4x faster per
|
|
109
106
|
// call on typical payloads (no WASM boundary, no bigint conversion)
|
|
110
|
-
return
|
|
107
|
+
return hash('sha256', data, 'hex').slice(0, 16);
|
|
111
108
|
}
|
|
112
109
|
//# sourceMappingURL=signature.js.map
|
package/src/index.d.ts
CHANGED
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
* purchase a proprietary commercial license. Please contact us at
|
|
20
20
|
* <support@imqueue.com> to get commercial licensing options.
|
|
21
21
|
*/
|
|
22
|
-
export * from './decorators';
|
|
23
|
-
export * from './cache';
|
|
24
|
-
export * from './IMQDelay';
|
|
25
|
-
export * from './IMQCache';
|
|
26
|
-
export * from './IMQRPCOptions';
|
|
27
|
-
export * from './IMQRPCDescription';
|
|
28
|
-
export * from './IMQRPCError';
|
|
29
|
-
export * from './IMQRPCRequest';
|
|
30
|
-
export * from './IMQRPCResponse';
|
|
31
|
-
export * from './IMQLock';
|
|
32
|
-
export * from './IMQService';
|
|
33
|
-
export * from './IMQClient';
|
|
34
|
-
export * from './IMQMetadata';
|
|
35
|
-
export * from './IMQRequestContext';
|
|
22
|
+
export * from './decorators/index.js';
|
|
23
|
+
export * from './cache/index.js';
|
|
24
|
+
export * from './IMQDelay.js';
|
|
25
|
+
export * from './IMQCache.js';
|
|
26
|
+
export * from './IMQRPCOptions.js';
|
|
27
|
+
export * from './IMQRPCDescription.js';
|
|
28
|
+
export * from './IMQRPCError.js';
|
|
29
|
+
export * from './IMQRPCRequest.js';
|
|
30
|
+
export * from './IMQRPCResponse.js';
|
|
31
|
+
export * from './IMQLock.js';
|
|
32
|
+
export * from './IMQService.js';
|
|
33
|
+
export * from './IMQClient.js';
|
|
34
|
+
export * from './IMQMetadata.js';
|
|
35
|
+
export * from './IMQRequestContext.js';
|
package/src/index.js
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
1
|
/*!
|
|
18
2
|
* I'm Queue Software Project
|
|
19
3
|
* Copyright (C) 2025 imqueue.com <support@imqueue.com>
|
|
@@ -35,18 +19,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
35
19
|
* purchase a proprietary commercial license. Please contact us at
|
|
36
20
|
* <support@imqueue.com> to get commercial licensing options.
|
|
37
21
|
*/
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
22
|
+
export * from './decorators/index.js';
|
|
23
|
+
export * from './cache/index.js';
|
|
24
|
+
export * from './IMQDelay.js';
|
|
25
|
+
export * from './IMQCache.js';
|
|
26
|
+
export * from './IMQRPCOptions.js';
|
|
27
|
+
export * from './IMQRPCDescription.js';
|
|
28
|
+
export * from './IMQRPCError.js';
|
|
29
|
+
export * from './IMQRPCRequest.js';
|
|
30
|
+
export * from './IMQRPCResponse.js';
|
|
31
|
+
export * from './IMQLock.js';
|
|
32
|
+
export * from './IMQService.js';
|
|
33
|
+
export * from './IMQClient.js';
|
|
34
|
+
export * from './IMQMetadata.js';
|
|
35
|
+
export * from './IMQRequestContext.js';
|
|
52
36
|
//# sourceMappingURL=index.js.map
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "
|
|
4
|
-
"lib": ["
|
|
3
|
+
"target": "es2024",
|
|
4
|
+
"lib": ["es2024", "esnext.decorators"],
|
|
5
5
|
"moduleDetection": "force",
|
|
6
6
|
|
|
7
7
|
"module": "nodenext",
|
|
8
8
|
"moduleResolution": "nodenext",
|
|
9
9
|
"resolveJsonModule": true,
|
|
10
10
|
"esModuleInterop": true,
|
|
11
|
+
"verbatimModuleSyntax": true,
|
|
11
12
|
|
|
12
13
|
"types": ["node"],
|
|
13
14
|
|
|
@@ -19,6 +20,8 @@
|
|
|
19
20
|
"removeComments": false,
|
|
20
21
|
"newLine": "lf",
|
|
21
22
|
|
|
23
|
+
"skipLibCheck": true,
|
|
24
|
+
|
|
22
25
|
"strict": true,
|
|
23
26
|
"strictPropertyInitialization": false,
|
|
24
27
|
"noImplicitOverride": true,
|