ensend 0.0.8 → 0.0.9

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.
Files changed (2) hide show
  1. package/dist/client.js +1 -1
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -2,7 +2,7 @@ import fetch from "node-fetch-native";
2
2
  import { SendApi } from "./apis/SendApi";
3
3
  export class Client {
4
4
  constructor(options) {
5
- this.ENSEND_BASE_URL = typeof process !== "undefined"
5
+ this.ENSEND_BASE_URL = typeof process !== "undefined" && process.env.ENSEND_BASE_URL
6
6
  ? process.env.ENSEND_BASE_URL
7
7
  : "https://api.ensend.co";
8
8
  this.PROJECT_SECRET = typeof process !== "undefined"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ensend",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "Official Typescript/Javascript SDK for the new Ensend API. See completed documentation at https://docs.ensend.co",