@upstash/redis 1.34.6 → 1.34.8
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/{chunk-56TVFNIH.mjs → chunk-5XANP4AV.mjs} +321 -3
- package/cloudflare.d.mts +2 -2
- package/cloudflare.d.ts +2 -2
- package/cloudflare.js +321 -3
- package/cloudflare.mjs +1 -1
- package/fastly.d.mts +2 -2
- package/fastly.d.ts +2 -2
- package/fastly.js +321 -3
- package/fastly.mjs +1 -1
- package/nodejs.d.mts +2 -2
- package/nodejs.d.ts +2 -2
- package/nodejs.js +321 -3
- package/nodejs.mjs +1 -1
- package/package.json +1 -1
- package/{zmscore-BdNsMd17.d.mts → zmscore-CjoCv9kz.d.mts} +263 -18
- package/{zmscore-BdNsMd17.d.ts → zmscore-CjoCv9kz.d.ts} +263 -18
package/nodejs.js
CHANGED
|
@@ -572,6 +572,13 @@ var EchoCommand = class extends Command {
|
|
|
572
572
|
}
|
|
573
573
|
};
|
|
574
574
|
|
|
575
|
+
// pkg/commands/evalRo.ts
|
|
576
|
+
var EvalROCommand = class extends Command {
|
|
577
|
+
constructor([script, keys, args], opts) {
|
|
578
|
+
super(["eval_ro", script, keys.length, ...keys, ...args ?? []], opts);
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
|
|
575
582
|
// pkg/commands/eval.ts
|
|
576
583
|
var EvalCommand = class extends Command {
|
|
577
584
|
constructor([script, keys, args], opts) {
|
|
@@ -579,6 +586,13 @@ var EvalCommand = class extends Command {
|
|
|
579
586
|
}
|
|
580
587
|
};
|
|
581
588
|
|
|
589
|
+
// pkg/commands/evalshaRo.ts
|
|
590
|
+
var EvalshaROCommand = class extends Command {
|
|
591
|
+
constructor([sha, keys, args], opts) {
|
|
592
|
+
super(["evalsha_ro", sha, keys.length, ...keys, ...args ?? []], opts);
|
|
593
|
+
}
|
|
594
|
+
};
|
|
595
|
+
|
|
582
596
|
// pkg/commands/evalsha.ts
|
|
583
597
|
var EvalshaCommand = class extends Command {
|
|
584
598
|
constructor([sha, keys, args], opts) {
|
|
@@ -859,6 +873,122 @@ var HExistsCommand = class extends Command {
|
|
|
859
873
|
}
|
|
860
874
|
};
|
|
861
875
|
|
|
876
|
+
// pkg/commands/hexpire.ts
|
|
877
|
+
var HExpireCommand = class extends Command {
|
|
878
|
+
constructor(cmd, opts) {
|
|
879
|
+
const [key, fields, seconds, option] = cmd;
|
|
880
|
+
const fieldArray = Array.isArray(fields) ? fields : [fields];
|
|
881
|
+
super(
|
|
882
|
+
[
|
|
883
|
+
"hexpire",
|
|
884
|
+
key,
|
|
885
|
+
seconds,
|
|
886
|
+
...option ? [option] : [],
|
|
887
|
+
"FIELDS",
|
|
888
|
+
fieldArray.length,
|
|
889
|
+
...fieldArray
|
|
890
|
+
],
|
|
891
|
+
opts
|
|
892
|
+
);
|
|
893
|
+
}
|
|
894
|
+
};
|
|
895
|
+
|
|
896
|
+
// pkg/commands/hexpireat.ts
|
|
897
|
+
var HExpireAtCommand = class extends Command {
|
|
898
|
+
constructor(cmd, opts) {
|
|
899
|
+
const [key, fields, timestamp, option] = cmd;
|
|
900
|
+
const fieldArray = Array.isArray(fields) ? fields : [fields];
|
|
901
|
+
super(
|
|
902
|
+
[
|
|
903
|
+
"hexpireat",
|
|
904
|
+
key,
|
|
905
|
+
timestamp,
|
|
906
|
+
...option ? [option] : [],
|
|
907
|
+
"FIELDS",
|
|
908
|
+
fieldArray.length,
|
|
909
|
+
...fieldArray
|
|
910
|
+
],
|
|
911
|
+
opts
|
|
912
|
+
);
|
|
913
|
+
}
|
|
914
|
+
};
|
|
915
|
+
|
|
916
|
+
// pkg/commands/hexpiretime.ts
|
|
917
|
+
var HExpireTimeCommand = class extends Command {
|
|
918
|
+
constructor(cmd, opts) {
|
|
919
|
+
const [key, fields] = cmd;
|
|
920
|
+
const fieldArray = Array.isArray(fields) ? fields : [fields];
|
|
921
|
+
super(["hexpiretime", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
|
|
922
|
+
}
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
// pkg/commands/hpersist.ts
|
|
926
|
+
var HPersistCommand = class extends Command {
|
|
927
|
+
constructor(cmd, opts) {
|
|
928
|
+
const [key, fields] = cmd;
|
|
929
|
+
const fieldArray = Array.isArray(fields) ? fields : [fields];
|
|
930
|
+
super(["hpersist", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
|
|
931
|
+
}
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
// pkg/commands/hpexpire.ts
|
|
935
|
+
var HPExpireCommand = class extends Command {
|
|
936
|
+
constructor(cmd, opts) {
|
|
937
|
+
const [key, fields, milliseconds, option] = cmd;
|
|
938
|
+
const fieldArray = Array.isArray(fields) ? fields : [fields];
|
|
939
|
+
super(
|
|
940
|
+
[
|
|
941
|
+
"hpexpire",
|
|
942
|
+
key,
|
|
943
|
+
milliseconds,
|
|
944
|
+
...option ? [option] : [],
|
|
945
|
+
"FIELDS",
|
|
946
|
+
fieldArray.length,
|
|
947
|
+
...fieldArray
|
|
948
|
+
],
|
|
949
|
+
opts
|
|
950
|
+
);
|
|
951
|
+
}
|
|
952
|
+
};
|
|
953
|
+
|
|
954
|
+
// pkg/commands/hpexpireat.ts
|
|
955
|
+
var HPExpireAtCommand = class extends Command {
|
|
956
|
+
constructor(cmd, opts) {
|
|
957
|
+
const [key, fields, timestamp, option] = cmd;
|
|
958
|
+
const fieldArray = Array.isArray(fields) ? fields : [fields];
|
|
959
|
+
super(
|
|
960
|
+
[
|
|
961
|
+
"hpexpireat",
|
|
962
|
+
key,
|
|
963
|
+
timestamp,
|
|
964
|
+
...option ? [option] : [],
|
|
965
|
+
"FIELDS",
|
|
966
|
+
fieldArray.length,
|
|
967
|
+
...fieldArray
|
|
968
|
+
],
|
|
969
|
+
opts
|
|
970
|
+
);
|
|
971
|
+
}
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
// pkg/commands/hpexpiretime.ts
|
|
975
|
+
var HPExpireTimeCommand = class extends Command {
|
|
976
|
+
constructor(cmd, opts) {
|
|
977
|
+
const [key, fields] = cmd;
|
|
978
|
+
const fieldArray = Array.isArray(fields) ? fields : [fields];
|
|
979
|
+
super(["hpexpiretime", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
|
|
980
|
+
}
|
|
981
|
+
};
|
|
982
|
+
|
|
983
|
+
// pkg/commands/hpttl.ts
|
|
984
|
+
var HPTtlCommand = class extends Command {
|
|
985
|
+
constructor(cmd, opts) {
|
|
986
|
+
const [key, fields] = cmd;
|
|
987
|
+
const fieldArray = Array.isArray(fields) ? fields : [fields];
|
|
988
|
+
super(["hpttl", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
|
|
989
|
+
}
|
|
990
|
+
};
|
|
991
|
+
|
|
862
992
|
// pkg/commands/hget.ts
|
|
863
993
|
var HGetCommand = class extends Command {
|
|
864
994
|
constructor(cmd, opts) {
|
|
@@ -1024,6 +1154,15 @@ var HStrLenCommand = class extends Command {
|
|
|
1024
1154
|
}
|
|
1025
1155
|
};
|
|
1026
1156
|
|
|
1157
|
+
// pkg/commands/httl.ts
|
|
1158
|
+
var HTtlCommand = class extends Command {
|
|
1159
|
+
constructor(cmd, opts) {
|
|
1160
|
+
const [key, fields] = cmd;
|
|
1161
|
+
const fieldArray = Array.isArray(fields) ? fields : [fields];
|
|
1162
|
+
super(["httl", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
|
|
1163
|
+
}
|
|
1164
|
+
};
|
|
1165
|
+
|
|
1027
1166
|
// pkg/commands/hvals.ts
|
|
1028
1167
|
var HValsCommand = class extends Command {
|
|
1029
1168
|
constructor(cmd, opts) {
|
|
@@ -1143,6 +1282,14 @@ var JsonGetCommand = class extends Command {
|
|
|
1143
1282
|
}
|
|
1144
1283
|
};
|
|
1145
1284
|
|
|
1285
|
+
// pkg/commands/json_merge.ts
|
|
1286
|
+
var JsonMergeCommand = class extends Command {
|
|
1287
|
+
constructor(cmd, opts) {
|
|
1288
|
+
const command = ["JSON.MERGE", ...cmd];
|
|
1289
|
+
super(command, opts);
|
|
1290
|
+
}
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1146
1293
|
// pkg/commands/json_mget.ts
|
|
1147
1294
|
var JsonMGetCommand = class extends Command {
|
|
1148
1295
|
constructor(cmd, opts) {
|
|
@@ -2614,10 +2761,18 @@ var Pipeline = class {
|
|
|
2614
2761
|
* @see https://redis.io/commands/echo
|
|
2615
2762
|
*/
|
|
2616
2763
|
echo = (...args) => this.chain(new EchoCommand(args, this.commandOptions));
|
|
2764
|
+
/**
|
|
2765
|
+
* @see https://redis.io/commands/eval_ro
|
|
2766
|
+
*/
|
|
2767
|
+
evalRo = (...args) => this.chain(new EvalROCommand(args, this.commandOptions));
|
|
2617
2768
|
/**
|
|
2618
2769
|
* @see https://redis.io/commands/eval
|
|
2619
2770
|
*/
|
|
2620
2771
|
eval = (...args) => this.chain(new EvalCommand(args, this.commandOptions));
|
|
2772
|
+
/**
|
|
2773
|
+
* @see https://redis.io/commands/evalsha_ro
|
|
2774
|
+
*/
|
|
2775
|
+
evalshaRo = (...args) => this.chain(new EvalshaROCommand(args, this.commandOptions));
|
|
2621
2776
|
/**
|
|
2622
2777
|
* @see https://redis.io/commands/evalsha
|
|
2623
2778
|
*/
|
|
@@ -2698,6 +2853,42 @@ var Pipeline = class {
|
|
|
2698
2853
|
* @see https://redis.io/commands/hexists
|
|
2699
2854
|
*/
|
|
2700
2855
|
hexists = (...args) => this.chain(new HExistsCommand(args, this.commandOptions));
|
|
2856
|
+
/**
|
|
2857
|
+
* @see https://redis.io/commands/hexpire
|
|
2858
|
+
*/
|
|
2859
|
+
hexpire = (...args) => this.chain(new HExpireCommand(args, this.commandOptions));
|
|
2860
|
+
/**
|
|
2861
|
+
* @see https://redis.io/commands/hexpireat
|
|
2862
|
+
*/
|
|
2863
|
+
hexpireat = (...args) => this.chain(new HExpireAtCommand(args, this.commandOptions));
|
|
2864
|
+
/**
|
|
2865
|
+
* @see https://redis.io/commands/hexpiretime
|
|
2866
|
+
*/
|
|
2867
|
+
hexpiretime = (...args) => this.chain(new HExpireTimeCommand(args, this.commandOptions));
|
|
2868
|
+
/**
|
|
2869
|
+
* @see https://redis.io/commands/httl
|
|
2870
|
+
*/
|
|
2871
|
+
httl = (...args) => this.chain(new HTtlCommand(args, this.commandOptions));
|
|
2872
|
+
/**
|
|
2873
|
+
* @see https://redis.io/commands/hpexpire
|
|
2874
|
+
*/
|
|
2875
|
+
hpexpire = (...args) => this.chain(new HPExpireCommand(args, this.commandOptions));
|
|
2876
|
+
/**
|
|
2877
|
+
* @see https://redis.io/commands/hpexpireat
|
|
2878
|
+
*/
|
|
2879
|
+
hpexpireat = (...args) => this.chain(new HPExpireAtCommand(args, this.commandOptions));
|
|
2880
|
+
/**
|
|
2881
|
+
* @see https://redis.io/commands/hpexpiretime
|
|
2882
|
+
*/
|
|
2883
|
+
hpexpiretime = (...args) => this.chain(new HPExpireTimeCommand(args, this.commandOptions));
|
|
2884
|
+
/**
|
|
2885
|
+
* @see https://redis.io/commands/hpttl
|
|
2886
|
+
*/
|
|
2887
|
+
hpttl = (...args) => this.chain(new HPTtlCommand(args, this.commandOptions));
|
|
2888
|
+
/**
|
|
2889
|
+
* @see https://redis.io/commands/hpersist
|
|
2890
|
+
*/
|
|
2891
|
+
hpersist = (...args) => this.chain(new HPersistCommand(args, this.commandOptions));
|
|
2701
2892
|
/**
|
|
2702
2893
|
* @see https://redis.io/commands/hget
|
|
2703
2894
|
*/
|
|
@@ -3215,6 +3406,10 @@ var Pipeline = class {
|
|
|
3215
3406
|
* @see https://redis.io/commands/json.get
|
|
3216
3407
|
*/
|
|
3217
3408
|
get: (...args) => this.chain(new JsonGetCommand(args, this.commandOptions)),
|
|
3409
|
+
/**
|
|
3410
|
+
* @see https://redis.io/commands/json.merge
|
|
3411
|
+
*/
|
|
3412
|
+
merge: (...args) => this.chain(new JsonMergeCommand(args, this.commandOptions)),
|
|
3218
3413
|
/**
|
|
3219
3414
|
* @see https://redis.io/commands/json.mget
|
|
3220
3415
|
*/
|
|
@@ -3314,6 +3509,53 @@ var Script = class {
|
|
|
3314
3509
|
}
|
|
3315
3510
|
};
|
|
3316
3511
|
|
|
3512
|
+
// pkg/scriptRo.ts
|
|
3513
|
+
var import_enc_hex2 = __toESM(require("crypto-js/enc-hex.js"));
|
|
3514
|
+
var import_sha12 = __toESM(require("crypto-js/sha1.js"));
|
|
3515
|
+
var ScriptRO = class {
|
|
3516
|
+
script;
|
|
3517
|
+
sha1;
|
|
3518
|
+
redis;
|
|
3519
|
+
constructor(redis, script) {
|
|
3520
|
+
this.redis = redis;
|
|
3521
|
+
this.sha1 = this.digest(script);
|
|
3522
|
+
this.script = script;
|
|
3523
|
+
}
|
|
3524
|
+
/**
|
|
3525
|
+
* Send an `EVAL_RO` command to redis.
|
|
3526
|
+
*/
|
|
3527
|
+
async evalRo(keys, args) {
|
|
3528
|
+
return await this.redis.evalRo(this.script, keys, args);
|
|
3529
|
+
}
|
|
3530
|
+
/**
|
|
3531
|
+
* Calculates the sha1 hash of the script and then calls `EVALSHA_RO`.
|
|
3532
|
+
*/
|
|
3533
|
+
async evalshaRo(keys, args) {
|
|
3534
|
+
return await this.redis.evalshaRo(this.sha1, keys, args);
|
|
3535
|
+
}
|
|
3536
|
+
/**
|
|
3537
|
+
* Optimistically try to run `EVALSHA_RO` first.
|
|
3538
|
+
* If the script is not loaded in redis, it will fall back and try again with `EVAL_RO`.
|
|
3539
|
+
*
|
|
3540
|
+
* Following calls will be able to use the cached script
|
|
3541
|
+
*/
|
|
3542
|
+
async exec(keys, args) {
|
|
3543
|
+
const res = await this.redis.evalshaRo(this.sha1, keys, args).catch(async (error) => {
|
|
3544
|
+
if (error instanceof Error && error.message.toLowerCase().includes("noscript")) {
|
|
3545
|
+
return await this.redis.evalRo(this.script, keys, args);
|
|
3546
|
+
}
|
|
3547
|
+
throw error;
|
|
3548
|
+
});
|
|
3549
|
+
return res;
|
|
3550
|
+
}
|
|
3551
|
+
/**
|
|
3552
|
+
* Compute the sha1 hash of the script and return its hex representation.
|
|
3553
|
+
*/
|
|
3554
|
+
digest(s) {
|
|
3555
|
+
return import_enc_hex2.default.stringify((0, import_sha12.default)(s));
|
|
3556
|
+
}
|
|
3557
|
+
};
|
|
3558
|
+
|
|
3317
3559
|
// pkg/redis.ts
|
|
3318
3560
|
var Redis = class {
|
|
3319
3561
|
client;
|
|
@@ -3388,6 +3630,10 @@ var Redis = class {
|
|
|
3388
3630
|
* @see https://redis.io/commands/json.get
|
|
3389
3631
|
*/
|
|
3390
3632
|
get: (...args) => new JsonGetCommand(args, this.opts).exec(this.client),
|
|
3633
|
+
/**
|
|
3634
|
+
* @see https://redis.io/commands/json.merge
|
|
3635
|
+
*/
|
|
3636
|
+
merge: (...args) => new JsonMergeCommand(args, this.opts).exec(this.client),
|
|
3391
3637
|
/**
|
|
3392
3638
|
* @see https://redis.io/commands/json.mget
|
|
3393
3639
|
*/
|
|
@@ -3457,8 +3703,36 @@ var Redis = class {
|
|
|
3457
3703
|
} catch {
|
|
3458
3704
|
}
|
|
3459
3705
|
};
|
|
3460
|
-
|
|
3461
|
-
|
|
3706
|
+
/**
|
|
3707
|
+
* Creates a new script.
|
|
3708
|
+
*
|
|
3709
|
+
* Scripts offer the ability to optimistically try to execute a script without having to send the
|
|
3710
|
+
* entire script to the server. If the script is loaded on the server, it tries again by sending
|
|
3711
|
+
* the entire script. Afterwards, the script is cached on the server.
|
|
3712
|
+
*
|
|
3713
|
+
* @param script - The script to create
|
|
3714
|
+
* @param opts - Optional options to pass to the script `{ readonly?: boolean }`
|
|
3715
|
+
* @returns A new script
|
|
3716
|
+
*
|
|
3717
|
+
* @example
|
|
3718
|
+
* ```ts
|
|
3719
|
+
* const redis = new Redis({...})
|
|
3720
|
+
*
|
|
3721
|
+
* const script = redis.createScript<string>("return ARGV[1];")
|
|
3722
|
+
* const arg1 = await script.eval([], ["Hello World"])
|
|
3723
|
+
* expect(arg1, "Hello World")
|
|
3724
|
+
* ```
|
|
3725
|
+
* @example
|
|
3726
|
+
* ```ts
|
|
3727
|
+
* const redis = new Redis({...})
|
|
3728
|
+
*
|
|
3729
|
+
* const script = redis.createScript<string>("return ARGV[1];", { readonly: true })
|
|
3730
|
+
* const arg1 = await script.evalRo([], ["Hello World"])
|
|
3731
|
+
* expect(arg1, "Hello World")
|
|
3732
|
+
* ```
|
|
3733
|
+
*/
|
|
3734
|
+
createScript(script, opts) {
|
|
3735
|
+
return opts?.readonly ? new ScriptRO(this, script) : new Script(this, script);
|
|
3462
3736
|
}
|
|
3463
3737
|
/**
|
|
3464
3738
|
* Create a new pipeline that allows you to send requests in bulk.
|
|
@@ -3545,10 +3819,18 @@ var Redis = class {
|
|
|
3545
3819
|
* @see https://redis.io/commands/echo
|
|
3546
3820
|
*/
|
|
3547
3821
|
echo = (...args) => new EchoCommand(args, this.opts).exec(this.client);
|
|
3822
|
+
/**
|
|
3823
|
+
* @see https://redis.io/commands/eval_ro
|
|
3824
|
+
*/
|
|
3825
|
+
evalRo = (...args) => new EvalROCommand(args, this.opts).exec(this.client);
|
|
3548
3826
|
/**
|
|
3549
3827
|
* @see https://redis.io/commands/eval
|
|
3550
3828
|
*/
|
|
3551
3829
|
eval = (...args) => new EvalCommand(args, this.opts).exec(this.client);
|
|
3830
|
+
/**
|
|
3831
|
+
* @see https://redis.io/commands/evalsha_ro
|
|
3832
|
+
*/
|
|
3833
|
+
evalshaRo = (...args) => new EvalshaROCommand(args, this.opts).exec(this.client);
|
|
3552
3834
|
/**
|
|
3553
3835
|
* @see https://redis.io/commands/evalsha
|
|
3554
3836
|
*/
|
|
@@ -3633,6 +3915,42 @@ var Redis = class {
|
|
|
3633
3915
|
* @see https://redis.io/commands/hexists
|
|
3634
3916
|
*/
|
|
3635
3917
|
hexists = (...args) => new HExistsCommand(args, this.opts).exec(this.client);
|
|
3918
|
+
/**
|
|
3919
|
+
* @see https://redis.io/commands/hexpire
|
|
3920
|
+
*/
|
|
3921
|
+
hexpire = (...args) => new HExpireCommand(args, this.opts).exec(this.client);
|
|
3922
|
+
/**
|
|
3923
|
+
* @see https://redis.io/commands/hexpireat
|
|
3924
|
+
*/
|
|
3925
|
+
hexpireat = (...args) => new HExpireAtCommand(args, this.opts).exec(this.client);
|
|
3926
|
+
/**
|
|
3927
|
+
* @see https://redis.io/commands/hexpiretime
|
|
3928
|
+
*/
|
|
3929
|
+
hexpiretime = (...args) => new HExpireTimeCommand(args, this.opts).exec(this.client);
|
|
3930
|
+
/**
|
|
3931
|
+
* @see https://redis.io/commands/httl
|
|
3932
|
+
*/
|
|
3933
|
+
httl = (...args) => new HTtlCommand(args, this.opts).exec(this.client);
|
|
3934
|
+
/**
|
|
3935
|
+
* @see https://redis.io/commands/hpexpire
|
|
3936
|
+
*/
|
|
3937
|
+
hpexpire = (...args) => new HPExpireCommand(args, this.opts).exec(this.client);
|
|
3938
|
+
/**
|
|
3939
|
+
* @see https://redis.io/commands/hpexpireat
|
|
3940
|
+
*/
|
|
3941
|
+
hpexpireat = (...args) => new HPExpireAtCommand(args, this.opts).exec(this.client);
|
|
3942
|
+
/**
|
|
3943
|
+
* @see https://redis.io/commands/hpexpiretime
|
|
3944
|
+
*/
|
|
3945
|
+
hpexpiretime = (...args) => new HPExpireTimeCommand(args, this.opts).exec(this.client);
|
|
3946
|
+
/**
|
|
3947
|
+
* @see https://redis.io/commands/hpttl
|
|
3948
|
+
*/
|
|
3949
|
+
hpttl = (...args) => new HPTtlCommand(args, this.opts).exec(this.client);
|
|
3950
|
+
/**
|
|
3951
|
+
* @see https://redis.io/commands/hpersist
|
|
3952
|
+
*/
|
|
3953
|
+
hpersist = (...args) => new HPersistCommand(args, this.opts).exec(this.client);
|
|
3636
3954
|
/**
|
|
3637
3955
|
* @see https://redis.io/commands/hget
|
|
3638
3956
|
*/
|
|
@@ -4124,7 +4442,7 @@ var Redis = class {
|
|
|
4124
4442
|
};
|
|
4125
4443
|
|
|
4126
4444
|
// version.ts
|
|
4127
|
-
var VERSION = "v1.34.
|
|
4445
|
+
var VERSION = "v1.34.8";
|
|
4128
4446
|
|
|
4129
4447
|
// platforms/nodejs.ts
|
|
4130
4448
|
if (typeof atob === "undefined") {
|
package/nodejs.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@upstash/redis","version":"v1.34.
|
|
1
|
+
{"name":"@upstash/redis","version":"v1.34.8","main":"./nodejs.js","module":"./nodejs.mjs","types":"./nodejs.d.ts","exports":{".":{"import":"./nodejs.mjs","require":"./nodejs.js"},"./node":{"import":"./nodejs.mjs","require":"./nodejs.js"},"./cloudflare":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./cloudflare.js":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./cloudflare.mjs":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./fastly":{"import":"./fastly.mjs","require":"./fastly.js"},"./fastly.js":{"import":"./fastly.mjs","require":"./fastly.js"},"./fastly.mjs":{"import":"./fastly.mjs","require":"./fastly.js"}},"description":"An HTTP/REST based Redis client built on top of Upstash REST API.","repository":{"type":"git","url":"git+https://github.com/upstash/upstash-redis.git"},"keywords":["redis","database","serverless","edge","upstash"],"files":["./*"],"scripts":{"build":"tsup && cp package.json README.md LICENSE dist/","test":"bun test pkg","fmt":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --quiet --fix","format":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","format:check":"prettier --check \"**/*.{ts,tsx,js,jsx,json,md}\"","lint:fix":"eslint . -c .ts,.tsx,.js,.jsx --fix","commit":"cz","lint:format":"bun run lint:fix && bun run format","check-exports":"bun run build && cd dist && attw -P"},"author":"Andreas Thomas <dev@chronark.com>","license":"MIT","bugs":{"url":"https://github.com/upstash/upstash-redis/issues"},"homepage":"https://github.com/upstash/upstash-redis#readme","devDependencies":{"@biomejs/biome":"latest","@commitlint/cli":"^19.3.0","@commitlint/config-conventional":"^19.2.2","@types/crypto-js":"^4.1.3","@typescript-eslint/eslint-plugin":"8.4.0","@typescript-eslint/parser":"8.4.0","bun-types":"1.0.33","eslint":"9.10.0","eslint-plugin-unicorn":"55.0.0","husky":"^9.1.1","prettier":"^3.3.3","tsup":"^8.2.3","typescript":"latest"},"dependencies":{"crypto-js":"^4.2.0"}}
|