@lowdefy/connection-redis 4.0.0-rc.9 → 4.0.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/ import { type } from '@lowdefy/helpers';
|
|
16
16
|
import { createClient } from 'redis';
|
|
17
17
|
import schema from './schema.js';
|
|
18
|
-
async function Redis({ request
|
|
18
|
+
async function Redis({ request, connection }) {
|
|
19
19
|
const connectionObject = type.isString(connection.connection) ? {
|
|
20
20
|
url: connection.connection
|
|
21
21
|
} : connection.connection;
|
|
@@ -23,7 +23,7 @@ async function Redis({ request , connection }) {
|
|
|
23
23
|
client.on('error', (error)=>{
|
|
24
24
|
throw error;
|
|
25
25
|
});
|
|
26
|
-
const { command
|
|
26
|
+
const { command, parameters, modifiers } = request;
|
|
27
27
|
await client.connect();
|
|
28
28
|
if (!type.isFunction(client[command.toUpperCase()])) {
|
|
29
29
|
throw new Error(`Invalid redis command "${command}".`);
|
package/dist/connections.js
CHANGED
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/connection-redis",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -38,26 +38,24 @@
|
|
|
38
38
|
"files": [
|
|
39
39
|
"dist/*"
|
|
40
40
|
],
|
|
41
|
-
"scripts": {
|
|
42
|
-
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
|
|
43
|
-
"clean": "rm -rf dist",
|
|
44
|
-
"prepublishOnly": "pnpm build",
|
|
45
|
-
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
46
|
-
},
|
|
47
41
|
"dependencies": {
|
|
48
|
-
"@lowdefy/helpers": "4.0.
|
|
49
|
-
"redis": "4.
|
|
42
|
+
"@lowdefy/helpers": "4.0.1",
|
|
43
|
+
"redis": "4.6.11"
|
|
50
44
|
},
|
|
51
45
|
"devDependencies": {
|
|
52
|
-
"@jest/globals": "28.1.
|
|
53
|
-
"@lowdefy/ajv": "4.0.
|
|
54
|
-
"@swc/cli": "0.1.
|
|
55
|
-
"@swc/core": "1.3.
|
|
56
|
-
"@swc/jest": "0.2.
|
|
57
|
-
"jest": "28.1.
|
|
46
|
+
"@jest/globals": "28.1.3",
|
|
47
|
+
"@lowdefy/ajv": "4.0.1",
|
|
48
|
+
"@swc/cli": "0.1.63",
|
|
49
|
+
"@swc/core": "1.3.99",
|
|
50
|
+
"@swc/jest": "0.2.29",
|
|
51
|
+
"jest": "28.1.3"
|
|
58
52
|
},
|
|
59
53
|
"publishConfig": {
|
|
60
54
|
"access": "public"
|
|
61
55
|
},
|
|
62
|
-
"
|
|
63
|
-
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
|
|
58
|
+
"clean": "rm -rf dist",
|
|
59
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
60
|
+
}
|
|
61
|
+
}
|