@upstash/redis 1.34.3-canary → 1.34.3-canary-2

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.
@@ -3800,7 +3800,7 @@ var Redis = class {
3800
3800
  };
3801
3801
 
3802
3802
  // version.ts
3803
- var VERSION = "1.34.3-canary";
3803
+ var VERSION = "1.34.3-canary-2";
3804
3804
 
3805
3805
  export {
3806
3806
  error_exports,
package/cloudflare.js CHANGED
@@ -3831,7 +3831,7 @@ var Redis = class {
3831
3831
  };
3832
3832
 
3833
3833
  // version.ts
3834
- var VERSION = "1.34.3-canary";
3834
+ var VERSION = "1.34.3-canary-2";
3835
3835
 
3836
3836
  // platforms/cloudflare.ts
3837
3837
  var Redis2 = class _Redis extends Redis {
@@ -3851,18 +3851,16 @@ var Redis2 = class _Redis extends Redis {
3851
3851
  console.warn(
3852
3852
  `[Upstash Redis] The 'url' property is missing or undefined in your Redis config.`
3853
3853
  );
3854
- }
3855
- if (!config.token) {
3854
+ } else if (config.url.startsWith(" ") || config.url.endsWith(" ") || /\r|\n/.test(config.url)) {
3856
3855
  console.warn(
3857
- `[Upstash Redis] The 'token' property is missing or undefined in your Redis config.`
3856
+ "[Upstash Redis] The redis url contains whitespace or newline, which can cause errors!"
3858
3857
  );
3859
3858
  }
3860
- if (config.url.startsWith(" ") || config.url.endsWith(" ") || /\r|\n/.test(config.url)) {
3859
+ if (!config.token) {
3861
3860
  console.warn(
3862
- "[Upstash Redis] The redis url contains whitespace or newline, which can cause errors!"
3861
+ `[Upstash Redis] The 'token' property is missing or undefined in your Redis config.`
3863
3862
  );
3864
- }
3865
- if (config.token.startsWith(" ") || config.token.endsWith(" ") || /\r|\n/.test(config.token)) {
3863
+ } else if (config.token.startsWith(" ") || config.token.endsWith(" ") || /\r|\n/.test(config.token)) {
3866
3864
  console.warn(
3867
3865
  "[Upstash Redis] The redis token contains whitespace or newline, which can cause errors!"
3868
3866
  );
package/cloudflare.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Redis,
4
4
  VERSION,
5
5
  error_exports
6
- } from "./chunk-FC2CKVKB.mjs";
6
+ } from "./chunk-2YMDVZBQ.mjs";
7
7
 
8
8
  // platforms/cloudflare.ts
9
9
  var Redis2 = class _Redis extends Redis {
@@ -23,18 +23,16 @@ var Redis2 = class _Redis extends Redis {
23
23
  console.warn(
24
24
  `[Upstash Redis] The 'url' property is missing or undefined in your Redis config.`
25
25
  );
26
- }
27
- if (!config.token) {
26
+ } else if (config.url.startsWith(" ") || config.url.endsWith(" ") || /\r|\n/.test(config.url)) {
28
27
  console.warn(
29
- `[Upstash Redis] The 'token' property is missing or undefined in your Redis config.`
28
+ "[Upstash Redis] The redis url contains whitespace or newline, which can cause errors!"
30
29
  );
31
30
  }
32
- if (config.url.startsWith(" ") || config.url.endsWith(" ") || /\r|\n/.test(config.url)) {
31
+ if (!config.token) {
33
32
  console.warn(
34
- "[Upstash Redis] The redis url contains whitespace or newline, which can cause errors!"
33
+ `[Upstash Redis] The 'token' property is missing or undefined in your Redis config.`
35
34
  );
36
- }
37
- if (config.token.startsWith(" ") || config.token.endsWith(" ") || /\r|\n/.test(config.token)) {
35
+ } else if (config.token.startsWith(" ") || config.token.endsWith(" ") || /\r|\n/.test(config.token)) {
38
36
  console.warn(
39
37
  "[Upstash Redis] The redis token contains whitespace or newline, which can cause errors!"
40
38
  );
package/fastly.js CHANGED
@@ -3831,7 +3831,7 @@ var Redis = class {
3831
3831
  };
3832
3832
 
3833
3833
  // version.ts
3834
- var VERSION = "1.34.3-canary";
3834
+ var VERSION = "1.34.3-canary-2";
3835
3835
 
3836
3836
  // platforms/fastly.ts
3837
3837
  var Redis2 = class extends Redis {
@@ -3852,18 +3852,16 @@ var Redis2 = class extends Redis {
3852
3852
  console.warn(
3853
3853
  `[Upstash Redis] The 'url' property is missing or undefined in your Redis config.`
3854
3854
  );
3855
- }
3856
- if (!config.token) {
3855
+ } else if (config.url.startsWith(" ") || config.url.endsWith(" ") || /\r|\n/.test(config.url)) {
3857
3856
  console.warn(
3858
- `[Upstash Redis] The 'token' property is missing or undefined in your Redis config.`
3857
+ "[Upstash Redis] The redis url contains whitespace or newline, which can cause errors!"
3859
3858
  );
3860
3859
  }
3861
- if (config.url.startsWith(" ") || config.url.endsWith(" ") || /\r|\n/.test(config.url)) {
3860
+ if (!config.token) {
3862
3861
  console.warn(
3863
- "[Upstash Redis] The redis url contains whitespace or newline, which can cause errors!"
3862
+ `[Upstash Redis] The 'token' property is missing or undefined in your Redis config.`
3864
3863
  );
3865
- }
3866
- if (config.token.startsWith(" ") || config.token.endsWith(" ") || /\r|\n/.test(config.token)) {
3864
+ } else if (config.token.startsWith(" ") || config.token.endsWith(" ") || /\r|\n/.test(config.token)) {
3867
3865
  console.warn(
3868
3866
  "[Upstash Redis] The redis token contains whitespace or newline, which can cause errors!"
3869
3867
  );
package/fastly.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Redis,
4
4
  VERSION,
5
5
  error_exports
6
- } from "./chunk-FC2CKVKB.mjs";
6
+ } from "./chunk-2YMDVZBQ.mjs";
7
7
 
8
8
  // platforms/fastly.ts
9
9
  var Redis2 = class extends Redis {
@@ -24,18 +24,16 @@ var Redis2 = class extends Redis {
24
24
  console.warn(
25
25
  `[Upstash Redis] The 'url' property is missing or undefined in your Redis config.`
26
26
  );
27
- }
28
- if (!config.token) {
27
+ } else if (config.url.startsWith(" ") || config.url.endsWith(" ") || /\r|\n/.test(config.url)) {
29
28
  console.warn(
30
- `[Upstash Redis] The 'token' property is missing or undefined in your Redis config.`
29
+ "[Upstash Redis] The redis url contains whitespace or newline, which can cause errors!"
31
30
  );
32
31
  }
33
- if (config.url.startsWith(" ") || config.url.endsWith(" ") || /\r|\n/.test(config.url)) {
32
+ if (!config.token) {
34
33
  console.warn(
35
- "[Upstash Redis] The redis url contains whitespace or newline, which can cause errors!"
34
+ `[Upstash Redis] The 'token' property is missing or undefined in your Redis config.`
36
35
  );
37
- }
38
- if (config.token.startsWith(" ") || config.token.endsWith(" ") || /\r|\n/.test(config.token)) {
36
+ } else if (config.token.startsWith(" ") || config.token.endsWith(" ") || /\r|\n/.test(config.token)) {
39
37
  console.warn(
40
38
  "[Upstash Redis] The redis token contains whitespace or newline, which can cause errors!"
41
39
  );
package/nodejs.js CHANGED
@@ -3831,7 +3831,7 @@ var Redis = class {
3831
3831
  };
3832
3832
 
3833
3833
  // version.ts
3834
- var VERSION = "1.34.3-canary";
3834
+ var VERSION = "1.34.3-canary-2";
3835
3835
 
3836
3836
  // platforms/nodejs.ts
3837
3837
  if (typeof atob === "undefined") {
@@ -3864,18 +3864,16 @@ var Redis2 = class _Redis extends Redis {
3864
3864
  console.warn(
3865
3865
  `[Upstash Redis] The 'url' property is missing or undefined in your Redis config.`
3866
3866
  );
3867
- }
3868
- if (!configOrRequester.token) {
3867
+ } else if (configOrRequester.url.startsWith(" ") || configOrRequester.url.endsWith(" ") || /\r|\n/.test(configOrRequester.url)) {
3869
3868
  console.warn(
3870
- `[Upstash Redis] The 'token' property is missing or undefined in your Redis config.`
3869
+ "[Upstash Redis] The redis url contains whitespace or newline, which can cause errors!"
3871
3870
  );
3872
3871
  }
3873
- if (configOrRequester.url.startsWith(" ") || configOrRequester.url.endsWith(" ") || /\r|\n/.test(configOrRequester.url)) {
3872
+ if (!configOrRequester.token) {
3874
3873
  console.warn(
3875
- "[Upstash Redis] The redis url contains whitespace or newline, which can cause errors!"
3874
+ `[Upstash Redis] The 'token' property is missing or undefined in your Redis config.`
3876
3875
  );
3877
- }
3878
- if (configOrRequester.token.startsWith(" ") || configOrRequester.token.endsWith(" ") || /\r|\n/.test(configOrRequester.token)) {
3876
+ } else if (configOrRequester.token.startsWith(" ") || configOrRequester.token.endsWith(" ") || /\r|\n/.test(configOrRequester.token)) {
3879
3877
  console.warn(
3880
3878
  "[Upstash Redis] The redis token contains whitespace or newline, which can cause errors!"
3881
3879
  );
package/nodejs.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Redis,
4
4
  VERSION,
5
5
  error_exports
6
- } from "./chunk-FC2CKVKB.mjs";
6
+ } from "./chunk-2YMDVZBQ.mjs";
7
7
 
8
8
  // platforms/nodejs.ts
9
9
  if (typeof atob === "undefined") {
@@ -36,18 +36,16 @@ var Redis2 = class _Redis extends Redis {
36
36
  console.warn(
37
37
  `[Upstash Redis] The 'url' property is missing or undefined in your Redis config.`
38
38
  );
39
- }
40
- if (!configOrRequester.token) {
39
+ } else if (configOrRequester.url.startsWith(" ") || configOrRequester.url.endsWith(" ") || /\r|\n/.test(configOrRequester.url)) {
41
40
  console.warn(
42
- `[Upstash Redis] The 'token' property is missing or undefined in your Redis config.`
41
+ "[Upstash Redis] The redis url contains whitespace or newline, which can cause errors!"
43
42
  );
44
43
  }
45
- if (configOrRequester.url.startsWith(" ") || configOrRequester.url.endsWith(" ") || /\r|\n/.test(configOrRequester.url)) {
44
+ if (!configOrRequester.token) {
46
45
  console.warn(
47
- "[Upstash Redis] The redis url contains whitespace or newline, which can cause errors!"
46
+ `[Upstash Redis] The 'token' property is missing or undefined in your Redis config.`
48
47
  );
49
- }
50
- if (configOrRequester.token.startsWith(" ") || configOrRequester.token.endsWith(" ") || /\r|\n/.test(configOrRequester.token)) {
48
+ } else if (configOrRequester.token.startsWith(" ") || configOrRequester.token.endsWith(" ") || /\r|\n/.test(configOrRequester.token)) {
51
49
  console.warn(
52
50
  "[Upstash Redis] The redis token contains whitespace or newline, which can cause errors!"
53
51
  );
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@upstash/redis","version":"1.34.3-canary","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"}}
1
+ {"name":"@upstash/redis","version":"1.34.3-canary-2","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"}}