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.
- package/dist/src/client.d.ts +1 -0
- package/dist/src/client.js +8 -6
- package/package.json +1 -1
package/dist/src/client.d.ts
CHANGED
package/dist/src/client.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
146
|
-
...this.
|
|
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