roboto-js 1.2.1 → 1.2.2

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.
@@ -47,8 +47,8 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
47
47
  }
48
48
  var isBrowser = typeof window !== "undefined";
49
49
  this.config = {
50
- apiKey: isBrowser ? process.env.NEXT_PUBLIC_ROBOTO_API_KEY : process.env.ROBOTO_API_KEY,
51
- baseUrl: 'https://' + (isBrowser ? process.env.NEXT_PUBLIC_ROBOTO_HOST : process.env.ROBOTO_HOST)
50
+ apiKey: process.env.ROBOTO_API_KEY,
51
+ baseUrl: 'https://' + process.env.ROBOTO_HOST
52
52
  };
53
53
 
54
54
  // DEVELOPMENT
package/dist/esm/index.js CHANGED
@@ -15,8 +15,8 @@ export default class Roboto {
15
15
  }
16
16
  const isBrowser = typeof window !== "undefined";
17
17
  this.config = {
18
- apiKey: isBrowser ? process.env.NEXT_PUBLIC_ROBOTO_API_KEY : process.env.ROBOTO_API_KEY,
19
- baseUrl: 'https://' + (isBrowser ? process.env.NEXT_PUBLIC_ROBOTO_HOST : process.env.ROBOTO_HOST)
18
+ apiKey: process.env.ROBOTO_API_KEY,
19
+ baseUrl: 'https://' + process.env.ROBOTO_HOST
20
20
  };
21
21
 
22
22
  // DEVELOPMENT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roboto-js",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.cjs",
package/src/index.js CHANGED
@@ -26,8 +26,8 @@ export default class Roboto{
26
26
  const isBrowser = typeof window !== "undefined";
27
27
 
28
28
  this.config = {
29
- apiKey: isBrowser ? process.env.NEXT_PUBLIC_ROBOTO_API_KEY : process.env.ROBOTO_API_KEY,
30
- baseUrl: 'https://' + (isBrowser ? process.env.NEXT_PUBLIC_ROBOTO_HOST : process.env.ROBOTO_HOST)
29
+ apiKey: process.env.ROBOTO_API_KEY,
30
+ baseUrl: 'https://' + process.env.ROBOTO_HOST
31
31
  };
32
32
 
33
33
  // DEVELOPMENT