@upstash/redis 1.35.8-canary → 1.35.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-TWTIJU7S.mjs → chunk-XUWAB4YZ.mjs} +1 -1
- package/cloudflare.js +4 -8
- package/cloudflare.mjs +4 -8
- package/fastly.js +1 -1
- package/fastly.mjs +1 -1
- package/nodejs.js +1 -1
- package/nodejs.mjs +1 -1
- package/package.json +1 -1
package/cloudflare.js
CHANGED
|
@@ -4531,7 +4531,7 @@ var Redis = class {
|
|
|
4531
4531
|
};
|
|
4532
4532
|
|
|
4533
4533
|
// version.ts
|
|
4534
|
-
var VERSION = "v1.35.8
|
|
4534
|
+
var VERSION = "v1.35.8";
|
|
4535
4535
|
|
|
4536
4536
|
// platforms/cloudflare.ts
|
|
4537
4537
|
var Redis2 = class _Redis extends Redis {
|
|
@@ -4610,14 +4610,10 @@ var Redis2 = class _Redis extends Redis {
|
|
|
4610
4610
|
// @ts-expect-error These will be defined by cloudflare
|
|
4611
4611
|
UPSTASH_REDIS_REST_TOKEN
|
|
4612
4612
|
) : void 0);
|
|
4613
|
-
|
|
4613
|
+
const messageInfo = !url && !token ? "Unable to find environment variables: `UPSTASH_REDIS_REST_URL` and `UPSTASH_REDIS_REST_TOKEN`" : url ? token ? void 0 : "Unable to find environment variable: `UPSTASH_REDIS_REST_TOKEN`" : "Unable to find environment variable: `UPSTASH_REDIS_REST_URL`";
|
|
4614
|
+
if (messageInfo) {
|
|
4614
4615
|
console.warn(
|
|
4615
|
-
|
|
4616
|
-
);
|
|
4617
|
-
}
|
|
4618
|
-
if (!token) {
|
|
4619
|
-
console.warn(
|
|
4620
|
-
"[Upstash Redis] Unable to find environment variable: `UPSTASH_REDIS_REST_TOKEN`. Please add it via `wrangler secret put UPSTASH_REDIS_REST_TOKEN`"
|
|
4616
|
+
`[Upstash Redis] ${messageInfo}. Please add it via \`wrangler secret put ${url ? "UPSTASH_REDIS_REST_TOKEN" : "UPSTASH_REDIS_REST_URL"}\` and provide it as an argument to the \`Redis.fromEnv\` function`
|
|
4621
4617
|
);
|
|
4622
4618
|
}
|
|
4623
4619
|
return new _Redis({ ...opts, url, token }, env);
|
package/cloudflare.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
Redis,
|
|
4
4
|
VERSION,
|
|
5
5
|
error_exports
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XUWAB4YZ.mjs";
|
|
7
7
|
|
|
8
8
|
// platforms/cloudflare.ts
|
|
9
9
|
var Redis2 = class _Redis extends Redis {
|
|
@@ -82,14 +82,10 @@ var Redis2 = class _Redis extends Redis {
|
|
|
82
82
|
// @ts-expect-error These will be defined by cloudflare
|
|
83
83
|
UPSTASH_REDIS_REST_TOKEN
|
|
84
84
|
) : void 0);
|
|
85
|
-
|
|
85
|
+
const messageInfo = !url && !token ? "Unable to find environment variables: `UPSTASH_REDIS_REST_URL` and `UPSTASH_REDIS_REST_TOKEN`" : url ? token ? void 0 : "Unable to find environment variable: `UPSTASH_REDIS_REST_TOKEN`" : "Unable to find environment variable: `UPSTASH_REDIS_REST_URL`";
|
|
86
|
+
if (messageInfo) {
|
|
86
87
|
console.warn(
|
|
87
|
-
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
if (!token) {
|
|
91
|
-
console.warn(
|
|
92
|
-
"[Upstash Redis] Unable to find environment variable: `UPSTASH_REDIS_REST_TOKEN`. Please add it via `wrangler secret put UPSTASH_REDIS_REST_TOKEN`"
|
|
88
|
+
`[Upstash Redis] ${messageInfo}. Please add it via \`wrangler secret put ${url ? "UPSTASH_REDIS_REST_TOKEN" : "UPSTASH_REDIS_REST_URL"}\` and provide it as an argument to the \`Redis.fromEnv\` function`
|
|
93
89
|
);
|
|
94
90
|
}
|
|
95
91
|
return new _Redis({ ...opts, url, token }, env);
|
package/fastly.js
CHANGED
package/fastly.mjs
CHANGED
package/nodejs.js
CHANGED
package/nodejs.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@upstash/redis","version":"v1.35.8
|
|
1
|
+
{"name":"@upstash/redis","version":"v1.35.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","@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":{"uncrypto":"^0.1.3"}}
|