@portal-hq/utils 1.0.0 → 1.0.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.
@@ -12,9 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const index_1 = require("../index");
13
13
  class HttpRequester {
14
14
  constructor({ baseUrl }) {
15
- this.baseUrl = baseUrl.startsWith('https://')
16
- ? baseUrl
17
- : `https://${baseUrl}`;
15
+ this.baseUrl = baseUrl;
18
16
  }
19
17
  buildHeaders(headers = {}) {
20
18
  return Object.assign({ 'Content-Type': 'application/json' }, headers);
@@ -10,9 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { HttpRequest } from '../index';
11
11
  class HttpRequester {
12
12
  constructor({ baseUrl }) {
13
- this.baseUrl = baseUrl.startsWith('https://')
14
- ? baseUrl
15
- : `https://${baseUrl}`;
13
+ this.baseUrl = baseUrl;
16
14
  }
17
15
  buildHeaders(headers = {}) {
18
16
  return Object.assign({ 'Content-Type': 'application/json' }, headers);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portal-hq/utils",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "lib/commonjs/index",
5
5
  "module": "lib/esm/index",
6
6
  "source": "src/index",
@@ -26,5 +26,5 @@
26
26
  "ts-jest": "^29.0.3",
27
27
  "typescript": "^4.8.4"
28
28
  },
29
- "gitHead": "eb157f00d5567c5fe28c4f935ea0d1099b7103e5"
29
+ "gitHead": "2c196f0d7ce58de5ef03e82a79f26d0f07e5edd9"
30
30
  }
@@ -10,9 +10,7 @@ class HttpRequester {
10
10
  public baseUrl: string
11
11
 
12
12
  constructor({ baseUrl }: HttpRequesterOptions) {
13
- this.baseUrl = baseUrl.startsWith('https://')
14
- ? baseUrl
15
- : `https://${baseUrl}`
13
+ this.baseUrl = baseUrl
16
14
  }
17
15
 
18
16
  public buildHeaders(headers: Record<string, any> = {}): Record<string, any> {