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