argous 1.2.208 → 1.2.209
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.
- package/dist/api/index.d.ts +1 -3
- package/dist/api/index.js +1 -4
- package/lib/api/index.js +1 -1
- package/package.json +1 -1
package/dist/api/index.d.ts
CHANGED
package/dist/api/index.js
CHANGED
|
@@ -54,10 +54,7 @@ var server = function () { return "://" + config_1.getConfig()[/^[a-z]+.+\.com\.
|
|
|
54
54
|
exports.server = server;
|
|
55
55
|
var api = function () { return "" + (config_1.getConfig().ssl ? 'https' : 'http') + exports.server() + "argous/"; };
|
|
56
56
|
exports.api = api;
|
|
57
|
-
var headers = function (
|
|
58
|
-
var token = _a.token;
|
|
59
|
-
return ({ lgTkn: (token) ? token : utils_1.getCookie('lt') });
|
|
60
|
-
};
|
|
57
|
+
var headers = function (data) { return ({ lgTkn: (data === null || data === void 0 ? void 0 : data.token) ? data.token : utils_1.getCookie('lt') }); };
|
|
61
58
|
exports.headers = headers;
|
|
62
59
|
/**
|
|
63
60
|
* @deprecated
|
package/lib/api/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export const server = () => `://${getConfig()[/^[a-z]+.+\.com\.br$/.test(window.
|
|
|
5
5
|
|
|
6
6
|
export const api = () => `${getConfig().ssl ? 'https' : 'http'}${server()}argous/`;
|
|
7
7
|
|
|
8
|
-
export const headers = (
|
|
8
|
+
export const headers = (data) => ({ lgTkn: (data?.token) ? data.token : getCookie('lt') });
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @deprecated
|