@redis/json 1.0.3 → 1.0.4
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/dist/commands/GET.d.ts +2 -1
- package/dist/commands/GET.js +2 -2
- package/package.json +6 -6
package/dist/commands/GET.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
|
1
2
|
export declare const FIRST_KEY_INDEX = 1;
|
|
2
3
|
export declare const IS_READ_ONLY = true;
|
|
3
4
|
interface GetOptions {
|
|
@@ -7,5 +8,5 @@ interface GetOptions {
|
|
|
7
8
|
SPACE?: string;
|
|
8
9
|
NOESCAPE?: true;
|
|
9
10
|
}
|
|
10
|
-
export declare function transformArguments(key: string, options?: GetOptions):
|
|
11
|
+
export declare function transformArguments(key: string, options?: GetOptions): RedisCommandArguments;
|
|
11
12
|
export { transformRedisJsonNullReply as transformReply } from '.';
|
package/dist/commands/GET.js
CHANGED
|
@@ -5,9 +5,9 @@ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-
|
|
|
5
5
|
exports.FIRST_KEY_INDEX = 1;
|
|
6
6
|
exports.IS_READ_ONLY = true;
|
|
7
7
|
function transformArguments(key, options) {
|
|
8
|
-
|
|
8
|
+
let args = ['JSON.GET', key];
|
|
9
9
|
if (options?.path) {
|
|
10
|
-
(0, generic_transformers_1.pushVerdictArguments)(args, options.path);
|
|
10
|
+
args = (0, generic_transformers_1.pushVerdictArguments)(args, options.path);
|
|
11
11
|
}
|
|
12
12
|
if (options?.INDENT) {
|
|
13
13
|
args.push('INDENT', options.INDENT);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redis/json",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
20
20
|
"@redis/test-utils": "*",
|
|
21
|
-
"@types/node": "^
|
|
21
|
+
"@types/node": "^18.7.10",
|
|
22
22
|
"nyc": "^15.1.0",
|
|
23
|
-
"release-it": "^15.
|
|
23
|
+
"release-it": "^15.3.0",
|
|
24
24
|
"source-map-support": "^0.5.21",
|
|
25
|
-
"ts-node": "^10.
|
|
26
|
-
"typedoc": "^0.
|
|
27
|
-
"typescript": "^4.
|
|
25
|
+
"ts-node": "^10.9.1",
|
|
26
|
+
"typedoc": "^0.23.10",
|
|
27
|
+
"typescript": "^4.7.4"
|
|
28
28
|
}
|
|
29
29
|
}
|