redis-smq-web-server 10.0.0-next.1 → 10.0.0
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/CHANGELOG.md +19 -0
- package/README.md +11 -11
- package/dist/cjs/bin/cli.js +6 -10
- package/dist/cjs/bin/cli.js.map +1 -1
- package/dist/cjs/tests/setup.js +0 -9
- package/dist/cjs/tests/setup.js.map +1 -1
- package/dist/esm/bin/cli.js +7 -11
- package/dist/esm/bin/cli.js.map +1 -1
- package/dist/esm/tests/setup.js +0 -6
- package/dist/esm/tests/setup.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [10.0.0](https://github.com/weyoss/redis-smq/compare/v10.0.0-next.2...v10.0.0) (2026-04-04)
|
|
7
|
+
|
|
8
|
+
> 📖 **Detailed Release Notes**: [RedisSMQ v10.0.0](https://github.com/weyoss/redis-smq/blob/master/release-notes/release-v10.0.0.md)
|
|
9
|
+
|
|
10
|
+
### 📝 Documentation
|
|
11
|
+
|
|
12
|
+
- add consolidated changelog for v10.0.0-next.2 ([aa07b9f](https://github.com/weyoss/redis-smq/commit/aa07b9f2fd1b976cf7acaaa894fa03a974463cf8))
|
|
13
|
+
|
|
14
|
+
## [10.0.0-next.2](https://github.com/weyoss/redis-smq/compare/v10.0.0-next.1...v10.0.0-next.2) (2026-04-04)
|
|
15
|
+
|
|
16
|
+
### ♻️ Code Refactoring
|
|
17
|
+
|
|
18
|
+
- **redis-smq-web-server:** use new configuration/bootstrap API ([a0f55dc](https://github.com/weyoss/redis-smq/commit/a0f55dc25cbfcc0b23fe94dcbece40c450e88703))
|
|
19
|
+
|
|
20
|
+
### 📦 Build System
|
|
21
|
+
|
|
22
|
+
- add strict bash script options for robustness and debugging ([9bd4cd2](https://github.com/weyoss/redis-smq/commit/9bd4cd202be824f4815e7bafebdf2a2a35d1a429))
|
|
23
|
+
- fix shell compatibility by using bash ([f4da551](https://github.com/weyoss/redis-smq/commit/f4da55123c9f1f8e8a9b32a7218890f36f943046))
|
|
24
|
+
|
|
6
25
|
## [10.0.0-next.1](https://github.com/weyoss/redis-smq/compare/v10.0.0-next.0...v10.0.0-next.1) (2026-03-28)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package redis-smq-web-server
|
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# RedisSMQ Web Server
|
|
2
2
|
|
|
3
|
-
[](https://github.com/weyoss/redis-smq/releases/latest)
|
|
4
|
+
[](https://app.codecov.io/github/weyoss/redis-smq/tree/master/packages/redis-smq-web-server)
|
|
5
5
|
|
|
6
|
-
> 💡 **Note:** You are
|
|
6
|
+
> 💡 **Note:** You are on the stable `master` branch. For the latest features (including breaking changes), check the [`next` branch](https://github.com/weyoss/redis-smq/tree/next/packages/redis-smq-web-server).
|
|
7
7
|
|
|
8
8
|
A lightweight server that brings the RedisSMQ management ecosystem to life. It serves the official Web UI and provides
|
|
9
9
|
the REST API through two flexible modes of operation:
|
|
@@ -21,7 +21,7 @@ the REST API through two flexible modes of operation:
|
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
# Using npm
|
|
24
|
-
npm install redis-smq
|
|
24
|
+
npm install redis-smq redis-smq-common redis-smq-rest-api redis-smq-web-ui redis-smq-web-server --save
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
Don't forget to install a Redis client:
|
|
@@ -34,19 +34,19 @@ npm install ioredis --save
|
|
|
34
34
|
|
|
35
35
|
## Version Compatibility
|
|
36
36
|
|
|
37
|
-
Always install matching versions of RedisSMQ packages to ensure compatibility. See [version compatibility](https://github.com/weyoss/redis-smq/tree/
|
|
37
|
+
Always install matching versions of RedisSMQ packages to ensure compatibility. See [version compatibility](https://github.com/weyoss/redis-smq/tree/master/packages/redis-smq/docs/version-compatibility.md) for details.
|
|
38
38
|
|
|
39
39
|
## Documentation
|
|
40
40
|
|
|
41
|
-
For in-depth guides and API references, see [the documentation page](https://github.com/weyoss/redis-smq/tree/
|
|
41
|
+
For in-depth guides and API references, see [the documentation page](https://github.com/weyoss/redis-smq/tree/master/packages/redis-smq-web-server/docs/README.md).
|
|
42
42
|
|
|
43
43
|
## Related packages
|
|
44
44
|
|
|
45
|
-
- [redis-smq](https://github.com/weyoss/redis-smq/tree/
|
|
46
|
-
- [redis-smq-common](https://github.com/weyoss/redis-smq/tree/
|
|
47
|
-
- [redis-smq-rest-api](https://github.com/weyoss/redis-smq/tree/
|
|
48
|
-
- [redis-smq-web-ui](https://github.com/weyoss/redis-smq/tree/
|
|
45
|
+
- [redis-smq](https://github.com/weyoss/redis-smq/tree/master/packages/redis-smq/README.md): Core message queue
|
|
46
|
+
- [redis-smq-common](https://github.com/weyoss/redis-smq/tree/master/packages/redis-smq-common/README.md): Shared components/utilities
|
|
47
|
+
- [redis-smq-rest-api](https://github.com/weyoss/redis-smq/tree/master/packages/redis-smq-rest-api/README.md): REST API with OpenAPI v3 and Swagger UI
|
|
48
|
+
- [redis-smq-web-ui](https://github.com/weyoss/redis-smq/tree/master/packages/redis-smq-web-ui/README.md): SPA for monitoring and managing RedisSMQ
|
|
49
49
|
|
|
50
50
|
## License
|
|
51
51
|
|
|
52
|
-
RedisSMQ Web Server is released under the [MIT License](https://github.com/weyoss/redis-smq/tree/
|
|
52
|
+
RedisSMQ Web Server is released under the [MIT License](https://github.com/weyoss/redis-smq/tree/master/LICENSE).
|
package/dist/cjs/bin/cli.js
CHANGED
|
@@ -6,10 +6,6 @@ const commander_1 = require("commander");
|
|
|
6
6
|
const index_js_1 = require("../src/index.js");
|
|
7
7
|
const parse_config_js_1 = require("../src/config/parse-config.js");
|
|
8
8
|
const redis_smq_common_1 = require("redis-smq-common");
|
|
9
|
-
const redis_smq_1 = require("redis-smq");
|
|
10
|
-
const defaultLogLevel = typeof redis_smq_1.defaultConfig.logger.options.logLevel === 'number'
|
|
11
|
-
? redis_smq_1.defaultConfig.logger.options.logLevel
|
|
12
|
-
: redis_smq_common_1.EConsoleLoggerLevel[redis_smq_1.defaultConfig.logger.options.logLevel];
|
|
13
9
|
const program = new commander_1.Command();
|
|
14
10
|
program
|
|
15
11
|
.name('redis-smq-web-server')
|
|
@@ -18,12 +14,12 @@ program
|
|
|
18
14
|
.option('-p, --port <number>', 'Port to run the server on', String((_a = parse_config_js_1.defaultConfig.webServer) === null || _a === void 0 ? void 0 : _a.port))
|
|
19
15
|
.option('-b, --base-path <string>', 'Base public path for the RedisSMQ Web UI SPA', (_b = parse_config_js_1.defaultConfig.webServer) === null || _b === void 0 ? void 0 : _b.basePath)
|
|
20
16
|
.option('-t, --api-proxy-target <string>', 'Proxy target for API (/api, /swagger). Example: http://127.0.0.1:6000', (_c = parse_config_js_1.defaultConfig.webServer) === null || _c === void 0 ? void 0 : _c.apiProxyTarget)
|
|
21
|
-
.option('-c, --redis-client <ioredis|redis>', 'Redis client. Valid options are: ioredis, redis.',
|
|
22
|
-
.option('-r, --redis-host <string>', 'Redis server host',
|
|
23
|
-
.option('-o, --redis-port <number>', 'Redis server port',
|
|
24
|
-
.option('-d, --redis-db <number>', 'Redis database number',
|
|
25
|
-
.option('-e, --enable-log <0|1>', 'Enable console logging. Valid options are: 0, 1',
|
|
26
|
-
.option('-v, --log-level <0|1|2|3>', `Log level. Numbers: ${redis_smq_common_1.EConsoleLoggerLevel.DEBUG}=DEBUG, ${redis_smq_common_1.EConsoleLoggerLevel.INFO}=INFO, ${redis_smq_common_1.EConsoleLoggerLevel.WARN}=WARN, ${redis_smq_common_1.EConsoleLoggerLevel.ERROR}=ERROR`,
|
|
17
|
+
.option('-c, --redis-client <ioredis|redis>', 'Redis client. Valid options are: ioredis, redis.', redis_smq_common_1.ERedisConfigClient.IOREDIS)
|
|
18
|
+
.option('-r, --redis-host <string>', 'Redis server host', '127.0.0.1')
|
|
19
|
+
.option('-o, --redis-port <number>', 'Redis server port', '6379')
|
|
20
|
+
.option('-d, --redis-db <number>', 'Redis database number', '0')
|
|
21
|
+
.option('-e, --enable-log <0|1>', 'Enable console logging. Valid options are: 0, 1', '0')
|
|
22
|
+
.option('-v, --log-level <0|1|2|3>', `Log level. Numbers: ${redis_smq_common_1.EConsoleLoggerLevel.DEBUG}=DEBUG, ${redis_smq_common_1.EConsoleLoggerLevel.INFO}=INFO, ${redis_smq_common_1.EConsoleLoggerLevel.WARN}=WARN, ${redis_smq_common_1.EConsoleLoggerLevel.ERROR}=ERROR`, 'INFO');
|
|
27
23
|
program.parse();
|
|
28
24
|
const options = program.opts();
|
|
29
25
|
const config = {
|
package/dist/cjs/bin/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../bin/cli.ts"],"names":[],"mappings":";;;;AAWA,yCAAoC;AACpC,8CAAoD;AAKpD,mEAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../bin/cli.ts"],"names":[],"mappings":";;;;AAWA,yCAAoC;AACpC,8CAAoD;AAKpD,mEAA8D;AAC9D,uDAA2E;AAE3E,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,sBAAsB,CAAC;KAC5B,WAAW,CAAC,gCAAgC,CAAC,CAAC;AAEjD,OAAO;KACJ,MAAM,CACL,qBAAqB,EACrB,2BAA2B,EAC3B,MAAM,CAAC,MAAA,+BAAa,CAAC,SAAS,0CAAE,IAAI,CAAC,CACtC;KACA,MAAM,CACL,0BAA0B,EAC1B,8CAA8C,EAC9C,MAAA,+BAAa,CAAC,SAAS,0CAAE,QAAQ,CAClC;KACA,MAAM,CACL,iCAAiC,EACjC,uEAAuE,EACvE,MAAA,+BAAa,CAAC,SAAS,0CAAE,cAAc,CACxC;KACA,MAAM,CACL,oCAAoC,EACpC,kDAAk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dist/cjs/tests/setup.js
CHANGED
|
@@ -8,19 +8,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
const vitest_1 = require("vitest");
|
|
16
13
|
const start_redis_server_js_1 = require("./common/start-redis-server.js");
|
|
17
14
|
const redis_client_js_1 = require("./common/redis-client.js");
|
|
18
|
-
const bluebird_1 = __importDefault(require("bluebird"));
|
|
19
|
-
const redis_smq_1 = require("redis-smq");
|
|
20
|
-
const config_js_1 = require("./common/config.js");
|
|
21
15
|
const start_web_server_js_1 = require("./common/start-web-server.js");
|
|
22
16
|
const start_api_server_js_1 = require("./common/start-api-server.js");
|
|
23
|
-
const RedisSMQAsync = bluebird_1.default.promisifyAll(redis_smq_1.RedisSMQ);
|
|
24
17
|
(0, vitest_1.beforeAll)(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
25
18
|
yield (0, start_redis_server_js_1.initializeRedis)();
|
|
26
19
|
}));
|
|
@@ -30,8 +23,6 @@ const RedisSMQAsync = bluebird_1.default.promisifyAll(redis_smq_1.RedisSMQ);
|
|
|
30
23
|
(0, vitest_1.beforeEach)(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
31
24
|
const redis = yield (0, redis_client_js_1.getRedisClientInstance)();
|
|
32
25
|
yield redis.flushallAsync();
|
|
33
|
-
yield RedisSMQAsync.initializeWithConfigAsync(config_js_1.config);
|
|
34
|
-
yield RedisSMQAsync.shutdownAsync();
|
|
35
26
|
}));
|
|
36
27
|
(0, vitest_1.afterEach)(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
37
28
|
yield (0, start_web_server_js_1.shutdownWebServer)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../tests/setup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../tests/setup.ts"],"names":[],"mappings":";;;;;;;;;;;AASA,mCAAoE;AAEpE,0EAGwC;AACxC,8DAGkC;AAClC,sEAAiE;AACjE,sEAAiE;AAEjE,IAAA,kBAAS,EAAC,GAAS,EAAE;IACnB,MAAM,IAAA,uCAAe,GAAE,CAAC;AAC1B,CAAC,CAAA,CAAC,CAAC;AAEH,IAAA,iBAAQ,EAAC,GAAS,EAAE;IAClB,MAAM,IAAA,2CAAmB,GAAE,CAAC;AAC9B,CAAC,CAAA,CAAC,CAAC;AAEH,IAAA,mBAAU,EAAC,GAAS,EAAE;IACpB,MAAM,KAAK,GAAG,MAAM,IAAA,wCAAsB,GAAE,CAAC;IAC7C,MAAM,KAAK,CAAC,aAAa,EAAE,CAAC;AAC9B,CAAC,CAAA,CAAC,CAAC;AAEH,IAAA,kBAAS,EAAC,GAAS,EAAE;IACnB,MAAM,IAAA,uCAAiB,GAAE,CAAC;IAC1B,MAAM,IAAA,uCAAiB,GAAE,CAAC;IAC1B,MAAM,IAAA,qCAAmB,GAAE,CAAC;AAC9B,CAAC,CAAA,CAAC,CAAC"}
|
package/dist/esm/bin/cli.js
CHANGED
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
import { Command } from 'commander';
|
|
3
3
|
import { RedisSMQWebServer } from '../src/index.js';
|
|
4
4
|
import { defaultConfig } from '../src/config/parse-config.js';
|
|
5
|
-
import { EConsoleLoggerLevel } from 'redis-smq-common';
|
|
6
|
-
import { defaultConfig as defaultRedisSMQConfig } from 'redis-smq';
|
|
7
|
-
const defaultLogLevel = typeof defaultRedisSMQConfig.logger.options.logLevel === 'number'
|
|
8
|
-
? defaultRedisSMQConfig.logger.options.logLevel
|
|
9
|
-
: EConsoleLoggerLevel[defaultRedisSMQConfig.logger.options.logLevel];
|
|
5
|
+
import { EConsoleLoggerLevel, ERedisConfigClient } from 'redis-smq-common';
|
|
10
6
|
const program = new Command();
|
|
11
7
|
program
|
|
12
8
|
.name('redis-smq-web-server')
|
|
@@ -15,12 +11,12 @@ program
|
|
|
15
11
|
.option('-p, --port <number>', 'Port to run the server on', String(defaultConfig.webServer?.port))
|
|
16
12
|
.option('-b, --base-path <string>', 'Base public path for the RedisSMQ Web UI SPA', defaultConfig.webServer?.basePath)
|
|
17
13
|
.option('-t, --api-proxy-target <string>', 'Proxy target for API (/api, /swagger). Example: http://127.0.0.1:6000', defaultConfig.webServer?.apiProxyTarget)
|
|
18
|
-
.option('-c, --redis-client <ioredis|redis>', 'Redis client. Valid options are: ioredis, redis.',
|
|
19
|
-
.option('-r, --redis-host <string>', 'Redis server host',
|
|
20
|
-
.option('-o, --redis-port <number>', 'Redis server port',
|
|
21
|
-
.option('-d, --redis-db <number>', 'Redis database number',
|
|
22
|
-
.option('-e, --enable-log <0|1>', 'Enable console logging. Valid options are: 0, 1',
|
|
23
|
-
.option('-v, --log-level <0|1|2|3>', `Log level. Numbers: ${EConsoleLoggerLevel.DEBUG}=DEBUG, ${EConsoleLoggerLevel.INFO}=INFO, ${EConsoleLoggerLevel.WARN}=WARN, ${EConsoleLoggerLevel.ERROR}=ERROR`,
|
|
14
|
+
.option('-c, --redis-client <ioredis|redis>', 'Redis client. Valid options are: ioredis, redis.', ERedisConfigClient.IOREDIS)
|
|
15
|
+
.option('-r, --redis-host <string>', 'Redis server host', '127.0.0.1')
|
|
16
|
+
.option('-o, --redis-port <number>', 'Redis server port', '6379')
|
|
17
|
+
.option('-d, --redis-db <number>', 'Redis database number', '0')
|
|
18
|
+
.option('-e, --enable-log <0|1>', 'Enable console logging. Valid options are: 0, 1', '0')
|
|
19
|
+
.option('-v, --log-level <0|1|2|3>', `Log level. Numbers: ${EConsoleLoggerLevel.DEBUG}=DEBUG, ${EConsoleLoggerLevel.INFO}=INFO, ${EConsoleLoggerLevel.WARN}=WARN, ${EConsoleLoggerLevel.ERROR}=ERROR`, 'INFO');
|
|
24
20
|
program.parse();
|
|
25
21
|
const options = program.opts();
|
|
26
22
|
const config = {
|
package/dist/esm/bin/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../bin/cli.ts"],"names":[],"mappings":";AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKpD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../bin/cli.ts"],"names":[],"mappings":";AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKpD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3E,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,sBAAsB,CAAC;KAC5B,WAAW,CAAC,gCAAgC,CAAC,CAAC;AAEjD,OAAO;KACJ,MAAM,CACL,qBAAqB,EACrB,2BAA2B,EAC3B,MAAM,CAAC,aAAa,CAAC,SAAS,EAAE,IAAI,CAAC,CACtC;KACA,MAAM,CACL,0BAA0B,EAC1B,8CAA8C,EAC9C,aAAa,CAAC,SAAS,EAAE,QAAQ,CAClC;KACA,MAAM,CACL,iCAAiC,EACjC,uEAAuE,EACvE,aAAa,CAAC,SAAS,EAAE,cAAc,CACxC;KACA,MAAM,CACL,oCAAoC,EACpC,kDAAkD,EAClD,kBAAkB,CAAC,OAAO,CAC3B;KACA,MAAM,CAEL,2BAA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|
import { afterAll, afterEach, beforeAll, beforeEach } from 'vitest';
|
|
2
2
|
import { initializeRedis, shutDownRedisServer, } from './common/start-redis-server.js';
|
|
3
3
|
import { getRedisClientInstance, shutdownRedisClient, } from './common/redis-client.js';
|
|
4
|
-
import bluebird from 'bluebird';
|
|
5
|
-
import { RedisSMQ } from 'redis-smq';
|
|
6
|
-
import { config } from './common/config.js';
|
|
7
4
|
import { shutdownWebServer } from './common/start-web-server.js';
|
|
8
5
|
import { shutdownApiServer } from './common/start-api-server.js';
|
|
9
|
-
const RedisSMQAsync = bluebird.promisifyAll(RedisSMQ);
|
|
10
6
|
beforeAll(async () => {
|
|
11
7
|
await initializeRedis();
|
|
12
8
|
});
|
|
@@ -16,8 +12,6 @@ afterAll(async () => {
|
|
|
16
12
|
beforeEach(async () => {
|
|
17
13
|
const redis = await getRedisClientInstance();
|
|
18
14
|
await redis.flushallAsync();
|
|
19
|
-
await RedisSMQAsync.initializeWithConfigAsync(config);
|
|
20
|
-
await RedisSMQAsync.shutdownAsync();
|
|
21
15
|
});
|
|
22
16
|
afterEach(async () => {
|
|
23
17
|
await shutdownWebServer();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../tests/setup.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpE,OAAO,EACL,eAAe,EACf,mBAAmB,GACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../tests/setup.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpE,OAAO,EACL,eAAe,EACf,mBAAmB,GACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE,SAAS,CAAC,KAAK,IAAI,EAAE;IACnB,MAAM,eAAe,EAAE,CAAC;AAC1B,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,KAAK,IAAI,EAAE;IAClB,MAAM,mBAAmB,EAAE,CAAC;AAC9B,CAAC,CAAC,CAAC;AAEH,UAAU,CAAC,KAAK,IAAI,EAAE;IACpB,MAAM,KAAK,GAAG,MAAM,sBAAsB,EAAE,CAAC;IAC7C,MAAM,KAAK,CAAC,aAAa,EAAE,CAAC;AAC9B,CAAC,CAAC,CAAC;AAEH,SAAS,CAAC,KAAK,IAAI,EAAE;IACnB,MAAM,iBAAiB,EAAE,CAAC;IAC1B,MAAM,iBAAiB,EAAE,CAAC;IAC1B,MAAM,mBAAmB,EAAE,CAAC;AAC9B,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redis-smq-web-server",
|
|
3
|
-
"version": "10.0.0
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Web server for RedisSMQ Web UI: serves the SPA and hosts or proxies the RedisSMQ REST API.",
|
|
5
5
|
"author": "Weyoss <weyoss@outlook.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@redis/client": "^5",
|
|
56
56
|
"ioredis": "^5",
|
|
57
|
-
"redis-smq
|
|
58
|
-
"redis-smq": "^10.0.0
|
|
59
|
-
"redis-smq-web-ui": "^10.0.0
|
|
60
|
-
"redis-smq-
|
|
57
|
+
"redis-smq": "^10.0.0",
|
|
58
|
+
"redis-smq-common": "^10.0.0",
|
|
59
|
+
"redis-smq-web-ui": "^10.0.0",
|
|
60
|
+
"redis-smq-rest-api": "^10.0.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
|
63
63
|
"@redis/client": {
|