drapcode-developer-sdk 1.0.15-preview-2 → 1.0.15-preview-4

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