@upstash/redis 1.16.1-rc.3 → 1.16.1-rc.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/esm/pkg/http.js +3 -9
- package/package.json +1 -1
- package/script/pkg/http.js +3 -9
package/esm/pkg/http.js
CHANGED
|
@@ -103,19 +103,13 @@ function base64decode(b64) {
|
|
|
103
103
|
}
|
|
104
104
|
dec = new TextDecoder().decode(bytes);
|
|
105
105
|
}
|
|
106
|
-
catch
|
|
107
|
-
|
|
108
|
-
console.warn(`Unable to decode base64 ${b64}: ${e.message}`);
|
|
109
|
-
}
|
|
110
|
-
return b64;
|
|
106
|
+
catch {
|
|
107
|
+
dec = b64;
|
|
111
108
|
}
|
|
112
109
|
try {
|
|
113
110
|
return decodeURIComponent(dec);
|
|
114
111
|
}
|
|
115
|
-
catch
|
|
116
|
-
if (Deno.env.get("UPSTASH_DEBUG")) {
|
|
117
|
-
console.warn(`Unable to decode URIComponent ${dec}: ${e.message}`);
|
|
118
|
-
}
|
|
112
|
+
catch {
|
|
119
113
|
return dec;
|
|
120
114
|
}
|
|
121
115
|
}
|
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.4",
|
|
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
|
@@ -107,19 +107,13 @@ function base64decode(b64) {
|
|
|
107
107
|
}
|
|
108
108
|
dec = new TextDecoder().decode(bytes);
|
|
109
109
|
}
|
|
110
|
-
catch
|
|
111
|
-
|
|
112
|
-
console.warn(`Unable to decode base64 ${b64}: ${e.message}`);
|
|
113
|
-
}
|
|
114
|
-
return b64;
|
|
110
|
+
catch {
|
|
111
|
+
dec = b64;
|
|
115
112
|
}
|
|
116
113
|
try {
|
|
117
114
|
return decodeURIComponent(dec);
|
|
118
115
|
}
|
|
119
|
-
catch
|
|
120
|
-
if (Deno.env.get("UPSTASH_DEBUG")) {
|
|
121
|
-
console.warn(`Unable to decode URIComponent ${dec}: ${e.message}`);
|
|
122
|
-
}
|
|
116
|
+
catch {
|
|
123
117
|
return dec;
|
|
124
118
|
}
|
|
125
119
|
}
|