@upstash/redis 1.18.2-rc.0 → 1.18.2-rc.1

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.
@@ -3,6 +3,19 @@ import * as core from "../pkg/redis.js";
3
3
  import { HttpClient, } from "../pkg/http.js";
4
4
  import { VERSION } from "../version.js";
5
5
  import "isomorphic-fetch";
6
+ // @ts-ignore Deno can't compile
7
+ // import https from "https";
8
+ // @ts-ignore Deno can't compile
9
+ // import http from "http";
10
+ // import "isomorphic-fetch";
11
+ /**
12
+ * Workaround for nodejs 14, where atob is not included in the standardlib
13
+ */
14
+ if (typeof atob === "undefined") {
15
+ global.atob = function (b64) {
16
+ return Buffer.from(b64, "base64").toString("utf-8");
17
+ };
18
+ }
6
19
  /**
7
20
  * Serverless redis client for upstash.
8
21
  */
@@ -2,6 +2,14 @@
2
2
  import * as core from "../pkg/redis.js";
3
3
  import { HttpClient, } from "../pkg/http.js";
4
4
  import { VERSION } from "../version.js";
5
+ /**
6
+ * Workaround for nodejs 14, where atob is not included in the standardlib
7
+ */
8
+ if (typeof atob === "undefined") {
9
+ global.atob = function (b64) {
10
+ return Buffer.from(b64, "base64").toString("utf-8");
11
+ };
12
+ }
5
13
  /**
6
14
  * Serverless redis client for upstash.
7
15
  */
package/esm/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "v1.18.2-rc.0";
1
+ export const VERSION = "v1.18.2-rc.1";
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.18.2-rc.0",
6
+ "version": "v1.18.2-rc.1",
7
7
  "description": "An HTTP/REST based Redis client built on top of Upstash REST API.",
8
8
  "repository": {
9
9
  "type": "git",
@@ -29,6 +29,19 @@ const core = __importStar(require("../pkg/redis.js"));
29
29
  const http_js_1 = require("../pkg/http.js");
30
30
  const version_js_1 = require("../version.js");
31
31
  require("isomorphic-fetch");
32
+ // @ts-ignore Deno can't compile
33
+ // import https from "https";
34
+ // @ts-ignore Deno can't compile
35
+ // import http from "http";
36
+ // import "isomorphic-fetch";
37
+ /**
38
+ * Workaround for nodejs 14, where atob is not included in the standardlib
39
+ */
40
+ if (typeof atob === "undefined") {
41
+ global.atob = function (b64) {
42
+ return Buffer.from(b64, "base64").toString("utf-8");
43
+ };
44
+ }
32
45
  /**
33
46
  * Serverless redis client for upstash.
34
47
  */
@@ -28,6 +28,14 @@ exports.Redis = void 0;
28
28
  const core = __importStar(require("../pkg/redis.js"));
29
29
  const http_js_1 = require("../pkg/http.js");
30
30
  const version_js_1 = require("../version.js");
31
+ /**
32
+ * Workaround for nodejs 14, where atob is not included in the standardlib
33
+ */
34
+ if (typeof atob === "undefined") {
35
+ global.atob = function (b64) {
36
+ return Buffer.from(b64, "base64").toString("utf-8");
37
+ };
38
+ }
31
39
  /**
32
40
  * Serverless redis client for upstash.
33
41
  */
package/script/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "v1.18.2-rc.0";
4
+ exports.VERSION = "v1.18.2-rc.1";
@@ -1 +1 @@
1
- export declare const VERSION = "v1.18.2-rc.0";
1
+ export declare const VERSION = "v1.18.2-rc.1";