drapcode-developer-sdk 1.0.16 → 1.0.17

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/build/index.js +4 -7
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -175,13 +175,10 @@ var DrapcodeApis = /** @class */ (function () {
175
175
  }
176
176
  };
177
177
  DrapcodeApis.prototype.getBaseUrl = function () {
178
- // const envSub = this.getEnvSubdomain();
179
- // if (envSub) {
180
- // if (envSub !== "preview") {
181
- // return `${this.protocol}://${this.seoName}.api.${envSub}.${this.API_PATH}/v${this.version}/developer`;
182
- // }
183
- // return `${this.protocol}://${this.seoName}.${envSub}.${this.API_PATH}/v${this.version}/developer`;
184
- // }
178
+ var envSub = this.getEnvSubdomain();
179
+ if (envSub) {
180
+ return "".concat(this.protocol, "://").concat(this.seoName, ".").concat(envSub, ".").concat(this.API_PATH, "/v").concat(this.version, "/developer");
181
+ }
185
182
  return "".concat(this.protocol, "://").concat(this.seoName, ".").concat(this.API_PATH, "/v").concat(this.version, "/developer");
186
183
  };
187
184
  DrapcodeApis.prototype.getHeaders = function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drapcode-developer-sdk",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [