pingram 1.0.14-alpha.1209 → 1.0.15-alpha.1210

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.
@@ -106,6 +106,7 @@ export interface PingramConfig {
106
106
  */
107
107
  export declare class Pingram {
108
108
  private config;
109
+ private configurationParams;
109
110
  account: AccountApi;
110
111
  addresses: AddressesApi;
111
112
  components: ComponentsApi;
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.Pingram = void 0;
9
9
  const src_1 = require("../generated/src");
10
10
  // SDK version for User-Agent header (injected at codegen time)
11
- const SDK_VERSION = '1.0.14';
11
+ const SDK_VERSION = '1.0.15';
12
12
  const USER_AGENT = `pingram-node/${SDK_VERSION}`;
13
13
  const src_2 = require("../generated/src");
14
14
  const src_3 = require("../generated/src");
@@ -108,11 +108,12 @@ class Pingram {
108
108
  if (typeof window === 'undefined') {
109
109
  headers['User-Agent'] = USER_AGENT;
110
110
  }
111
- this.config = new src_1.Configuration({
111
+ this.configurationParams = {
112
112
  basePath: baseUrl,
113
113
  headers,
114
114
  fetchApi: fetchApi
115
- });
115
+ };
116
+ this.config = new src_1.Configuration(this.configurationParams);
116
117
  this.account = new src_2.AccountApi(this.config);
117
118
  this.addresses = new src_3.AddressesApi(this.config);
118
119
  this.components = new src_4.ComponentsApi(this.config);
@@ -142,10 +143,11 @@ class Pingram {
142
143
  * Update the base URL (overrides region)
143
144
  */
144
145
  setBaseUrl(baseUrl) {
145
- this.config = new src_1.Configuration({
146
- ...this.config,
146
+ this.configurationParams = {
147
+ ...this.configurationParams,
147
148
  basePath: baseUrl
148
- });
149
+ };
150
+ this.config = new src_1.Configuration(this.configurationParams);
149
151
  this.account = new src_2.AccountApi(this.config);
150
152
  this.addresses = new src_3.AddressesApi(this.config);
151
153
  this.components = new src_4.ComponentsApi(this.config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pingram",
3
- "version": "1.0.14-alpha.1209",
3
+ "version": "1.0.15-alpha.1210",
4
4
  "description": "Official Node.js SDK for Pingram - Send notifications via Email, SMS, Push, In-App, and more",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",