drapcode-developer-sdk 1.0.15-preview → 1.0.15-preview-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.
Files changed (2) hide show
  1. package/build/index.js +3 -0
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -177,6 +177,9 @@ var DrapcodeApis = /** @class */ (function () {
177
177
  DrapcodeApis.prototype.getBaseUrl = function () {
178
178
  var envSub = this.getEnvSubdomain();
179
179
  if (envSub) {
180
+ if (envSub !== "preview") {
181
+ return "".concat(this.protocol, "://").concat(this.seoName, ".api.").concat(envSub, ".").concat(this.API_PATH, "/v").concat(this.version, "/developer");
182
+ }
180
183
  return "".concat(this.protocol, "://").concat(this.seoName, ".").concat(envSub, ".").concat(this.API_PATH, "/v").concat(this.version, "/developer");
181
184
  }
182
185
  return "".concat(this.protocol, "://").concat(this.seoName, ".").concat(this.API_PATH, "/v").concat(this.version, "/developer");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drapcode-developer-sdk",
3
- "version": "1.0.15-preview",
3
+ "version": "1.0.15-preview-2",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [