sim-node-lib 0.4.24 → 0.4.26

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.
@@ -0,0 +1,8 @@
1
+ export declare class ApiUrl {
2
+ private urlPublic;
3
+ private urlPrivate;
4
+ URL_APIAPP: string;
5
+ URL_APIB2B: string;
6
+ URL_APIPRECO: string;
7
+ URL_APIPRECIFICACAO: string;
8
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiUrl = void 0;
4
+ class ApiUrl {
5
+ constructor() {
6
+ this.urlPublic = process.env.PUBLIC_URL;
7
+ this.urlPrivate = process.env.PRIVATE_URL;
8
+ this.URL_APIAPP = `${this.urlPublic}/app`;
9
+ this.URL_APIB2B = `${this.urlPublic}/b2b`;
10
+ this.URL_APIPRECO = `${this.urlPrivate}/preco`;
11
+ this.URL_APIPRECIFICACAO = `${this.urlPrivate}/precificacao`;
12
+ }
13
+ }
14
+ exports.ApiUrl = ApiUrl;
@@ -67,7 +67,7 @@ class AxiosService {
67
67
  }
68
68
  authGeneric(key, value) {
69
69
  headers = {
70
- key: value,
70
+ [key]: value,
71
71
  };
72
72
  console.log(headers);
73
73
  return this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim-node-lib",
3
- "version": "0.4.24",
3
+ "version": "0.4.26",
4
4
  "description": "Library from SIMLabs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",