@upstash/redis 1.16.1-rc.2 → 1.16.1-rc.3
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/esm/pkg/http.js +6 -2
- package/package.json +1 -1
- package/script/pkg/http.js +6 -2
package/esm/pkg/http.js
CHANGED
|
@@ -104,14 +104,18 @@ function base64decode(b64) {
|
|
|
104
104
|
dec = new TextDecoder().decode(bytes);
|
|
105
105
|
}
|
|
106
106
|
catch (e) {
|
|
107
|
-
|
|
107
|
+
if (Deno.env.get("UPSTASH_DEBUG")) {
|
|
108
|
+
console.warn(`Unable to decode base64 ${b64}: ${e.message}`);
|
|
109
|
+
}
|
|
108
110
|
return b64;
|
|
109
111
|
}
|
|
110
112
|
try {
|
|
111
113
|
return decodeURIComponent(dec);
|
|
112
114
|
}
|
|
113
115
|
catch (e) {
|
|
114
|
-
|
|
116
|
+
if (Deno.env.get("UPSTASH_DEBUG")) {
|
|
117
|
+
console.warn(`Unable to decode URIComponent ${dec}: ${e.message}`);
|
|
118
|
+
}
|
|
115
119
|
return dec;
|
|
116
120
|
}
|
|
117
121
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"main": "./script/platforms/nodejs.js",
|
|
4
4
|
"types": "./types/platforms/nodejs.d.ts",
|
|
5
5
|
"name": "@upstash/redis",
|
|
6
|
-
"version": "v1.16.1-rc.
|
|
6
|
+
"version": "v1.16.1-rc.3",
|
|
7
7
|
"description": "An HTTP/REST based Redis client built on top of Upstash REST API.",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
package/script/pkg/http.js
CHANGED
|
@@ -108,14 +108,18 @@ function base64decode(b64) {
|
|
|
108
108
|
dec = new TextDecoder().decode(bytes);
|
|
109
109
|
}
|
|
110
110
|
catch (e) {
|
|
111
|
-
|
|
111
|
+
if (Deno.env.get("UPSTASH_DEBUG")) {
|
|
112
|
+
console.warn(`Unable to decode base64 ${b64}: ${e.message}`);
|
|
113
|
+
}
|
|
112
114
|
return b64;
|
|
113
115
|
}
|
|
114
116
|
try {
|
|
115
117
|
return decodeURIComponent(dec);
|
|
116
118
|
}
|
|
117
119
|
catch (e) {
|
|
118
|
-
|
|
120
|
+
if (Deno.env.get("UPSTASH_DEBUG")) {
|
|
121
|
+
console.warn(`Unable to decode URIComponent ${dec}: ${e.message}`);
|
|
122
|
+
}
|
|
119
123
|
return dec;
|
|
120
124
|
}
|
|
121
125
|
}
|