mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-11 14:20:07 +08:00
fix(connection-redis): Pin redis dependency to a fixed version and fix error messages.
This commit is contained in:
parent
ee1620bb41
commit
068461fd2f
1
.pnp.cjs
generated
1
.pnp.cjs
generated
@ -5197,6 +5197,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["@lowdefy/blocks-loaders", "workspace:packages/plugins/blocks/blocks-loaders"],
|
||||
["@lowdefy/blocks-markdown", "workspace:packages/plugins/blocks/blocks-markdown"],
|
||||
["@lowdefy/connection-axios-http", "workspace:packages/plugins/connections/connection-axios-http"],
|
||||
["@lowdefy/connection-redis", "workspace:packages/plugins/connections/connection-redis"],
|
||||
["@lowdefy/helpers", "workspace:packages/utils/helpers"],
|
||||
["@lowdefy/node-utils", "workspace:packages/utils/node-utils"],
|
||||
["@lowdefy/nunjucks", "workspace:packages/utils/nunjucks"],
|
||||
|
@ -19,6 +19,10 @@
|
||||
{
|
||||
"name": "Gerrie van Wyk",
|
||||
"url": "https://github.com/Gervwyk"
|
||||
},
|
||||
{
|
||||
"name": "João Correia",
|
||||
"url": "https://github.com/correiarmjoao"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
@ -42,7 +46,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@lowdefy/helpers": "4.0.0-alpha.5",
|
||||
"redis": "^4.0.1"
|
||||
"redis": "4.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lowdefy/ajv": "4.0.0-alpha.5",
|
||||
|
@ -42,7 +42,7 @@ async function Redis({ request, connection }) {
|
||||
|
||||
if (!type.isArray(parameters)) {
|
||||
throw new Error(
|
||||
`Invalid command, command "${command}" parameters should be an array, received ${JSON.stringify(
|
||||
`Invalid parameters, command "${command}" parameters should be an array, received ${JSON.stringify(
|
||||
parameters
|
||||
)}.`
|
||||
);
|
||||
@ -59,9 +59,7 @@ async function Redis({ request, connection }) {
|
||||
return commandReturn;
|
||||
} catch (error) {
|
||||
client.quit();
|
||||
throw new Error(
|
||||
`Invalid command "${command}" parameters, received ${JSON.stringify(parameters)}.`
|
||||
);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3495,6 +3495,7 @@ __metadata:
|
||||
"@lowdefy/blocks-loaders": 4.0.0-alpha.5
|
||||
"@lowdefy/blocks-markdown": 4.0.0-alpha.5
|
||||
"@lowdefy/connection-axios-http": 4.0.0-alpha.5
|
||||
"@lowdefy/connection-redis": 4.0.0-alpha.5
|
||||
"@lowdefy/helpers": 4.0.0-alpha.5
|
||||
"@lowdefy/node-utils": 4.0.0-alpha.5
|
||||
"@lowdefy/nunjucks": 4.0.0-alpha.5
|
||||
@ -3596,7 +3597,7 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@lowdefy/connection-redis@workspace:packages/plugins/connections/connection-redis":
|
||||
"@lowdefy/connection-redis@4.0.0-alpha.5, @lowdefy/connection-redis@workspace:packages/plugins/connections/connection-redis":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@lowdefy/connection-redis@workspace:packages/plugins/connections/connection-redis"
|
||||
dependencies:
|
||||
@ -3606,7 +3607,7 @@ __metadata:
|
||||
"@swc/core": 1.2.112
|
||||
"@swc/jest": 0.2.9
|
||||
jest: 27.3.1
|
||||
redis: ^4.0.1
|
||||
redis: 4.0.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -16189,7 +16190,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"redis@npm:^4.0.1":
|
||||
"redis@npm:4.0.1":
|
||||
version: 4.0.1
|
||||
resolution: "redis@npm:4.0.1"
|
||||
dependencies:
|
||||
|
Loading…
Reference in New Issue
Block a user