@evlop/commons 1.0.295 → 1.0.297

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.
@@ -1,5 +1,5 @@
1
1
  import { PLATFORM_OS, API_BASE_URL, SOCKET_URL, BUILD_VERSION, BUNDLE_VERSION, AXIOS_RETRY_COUNT } from './platformSpecific';
2
- import { CLIENT_TYPE } from './clientSpecific.app';
2
+ import { CLIENT_TYPE } from './clientSpecific';
3
3
  export declare const isNode: boolean;
4
4
  export declare const IS_SSR: boolean;
5
5
  export declare const DIRECTION_TOP = "direction/Top";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC7H,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAInD,eAAO,MAAM,MAAM,SAAiC,CAAC;AAErD,eAAO,MAAM,MAAM,SAA0E,CAAC;AAE9F,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAChF,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAC,CAAA;AAE7G,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC7H,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAI/C,eAAO,MAAM,MAAM,SAAiC,CAAC;AAErD,eAAO,MAAM,MAAM,SAA0E,CAAC;AAE9F,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAChF,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAC,CAAA;AAE7G,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
@@ -11,8 +11,8 @@ Object.defineProperty(exports, "SOCKET_URL", { enumerable: true, get: function (
11
11
  Object.defineProperty(exports, "BUILD_VERSION", { enumerable: true, get: function () { return platformSpecific_1.BUILD_VERSION; } });
12
12
  Object.defineProperty(exports, "BUNDLE_VERSION", { enumerable: true, get: function () { return platformSpecific_1.BUNDLE_VERSION; } });
13
13
  Object.defineProperty(exports, "AXIOS_RETRY_COUNT", { enumerable: true, get: function () { return platformSpecific_1.AXIOS_RETRY_COUNT; } });
14
- const clientSpecific_app_1 = require("./clientSpecific.app");
15
- Object.defineProperty(exports, "CLIENT_TYPE", { enumerable: true, get: function () { return clientSpecific_app_1.CLIENT_TYPE; } });
14
+ const clientSpecific_1 = require("./clientSpecific");
15
+ Object.defineProperty(exports, "CLIENT_TYPE", { enumerable: true, get: function () { return clientSpecific_1.CLIENT_TYPE; } });
16
16
  exports.isNode = typeof process !== 'undefined';
17
17
  exports.IS_SSR = exports.isNode && ['true', '1'].includes(String(process.env.SSR).toLowerCase());
18
18
  exports.DIRECTION_TOP = "direction/Top";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;AAAA,yDAA6H;AAqBzC,4FArB3E,8BAAW,OAqB2E;AAAvF,6FArBc,+BAAY,OAqBd;AAAE,2FArBc,6BAAU,OAqBd;AAAE,8FArBc,gCAAa,OAqBd;AAAE,+FArBc,iCAAc,OAqBd;AAAE,kGArBc,oCAAiB,OAqBd;AApBlF,6DAAmD;AAoB8C,4FApBxF,gCAAW,OAoBwF;AAhB/F,QAAA,MAAM,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC;AAExC,QAAA,MAAM,GAAG,cAAM,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjF,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAGlC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAExC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAElC,QAAA,yBAAyB,GAAG,sCAAsC,CAAC;AAGhF,uCAA8E;AAArE,qHAAA,OAAO,OAAY;AAAkB,uGAAA,WAAW,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;AAAA,yDAA6H;AAqBzC,4FArB3E,8BAAW,OAqB2E;AAAvF,6FArBc,+BAAY,OAqBd;AAAE,2FArBc,6BAAU,OAqBd;AAAE,8FArBc,gCAAa,OAqBd;AAAE,+FArBc,iCAAc,OAqBd;AAAE,kGArBc,oCAAiB,OAqBd;AApBlF,qDAA+C;AAoBkD,4FApBxF,4BAAW,OAoBwF;AAhB/F,QAAA,MAAM,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC;AAExC,QAAA,MAAM,GAAG,cAAM,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjF,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAGlC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAExC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAElC,QAAA,yBAAyB,GAAG,sCAAsC,CAAC;AAGhF,uCAA8E;AAArE,qHAAA,OAAO,OAAY;AAAkB,uGAAA,WAAW,OAAA"}
@@ -1,3 +1,8 @@
1
+ export declare const httpHeaders: {
2
+ 'x-platform-os': string;
3
+ 'x-bundle-version': string;
4
+ 'x-client-type': string;
5
+ };
1
6
  export declare const axiosClient: import("axios").AxiosInstance;
2
7
  export default axiosClient;
3
8
  //# sourceMappingURL=axiosClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"axiosClient.d.ts","sourceRoot":"","sources":["../../../../src/helpers/axiosClient.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,+BAOtB,CAAC;AAOF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"axiosClient.d.ts","sourceRoot":"","sources":["../../../../src/helpers/axiosClient.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;CAIvB,CAAA;AAED,eAAO,MAAM,WAAW,+BAGtB,CAAC;AAOF,eAAe,WAAW,CAAC"}
@@ -3,17 +3,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.axiosClient = void 0;
6
+ exports.axiosClient = exports.httpHeaders = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
- const constants_1 = require("../constants");
9
8
  const axios_retry_1 = __importDefault(require("axios-retry"));
9
+ const constants_1 = require("../constants");
10
+ exports.httpHeaders = {
11
+ 'x-platform-os': constants_1.PLATFORM_OS,
12
+ 'x-bundle-version': constants_1.BUNDLE_VERSION,
13
+ 'x-client-type': constants_1.CLIENT_TYPE
14
+ };
10
15
  exports.axiosClient = axios_1.default.create({
11
16
  baseURL: constants_1.API_BASE_URL || '/api',
12
- headers: {
13
- 'x-platform-os': constants_1.PLATFORM_OS,
14
- 'x-bundle-version': constants_1.BUILD_VERSION,
15
- 'x-client-type': constants_1.CLIENT_TYPE
16
- }
17
+ headers: exports.httpHeaders,
17
18
  });
18
19
  axios_retry_1.default(exports.axiosClient, {
19
20
  retries: constants_1.AXIOS_RETRY_COUNT,
@@ -1 +1 @@
1
- {"version":3,"file":"axiosClient.js","sourceRoot":"","sources":["../../../../src/helpers/axiosClient.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,4CAAwG;AACxG,8DAAqC;AAExB,QAAA,WAAW,GAAG,eAAK,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,wBAAY,IAAI,MAAM;IAC/B,OAAO,EAAE;QACL,eAAe,EAAE,uBAAW;QAC5B,kBAAkB,EAAE,yBAAa;QACjC,eAAe,EAAE,uBAAW;KAC/B;CACJ,CAAC,CAAC;AAEH,qBAAU,CAAC,mBAAW,EAAE;IACpB,OAAO,EAAE,6BAAiB;IAC1B,UAAU,EAAE,CAAC,WAAW,EAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,qBAAU,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;CACvF,CAAC,CAAC;AAEH,kBAAe,mBAAW,CAAC"}
1
+ {"version":3,"file":"axiosClient.js","sourceRoot":"","sources":["../../../../src/helpers/axiosClient.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,8DAAqC;AACrC,4CAAyG;AAE5F,QAAA,WAAW,GAAG;IACvB,eAAe,EAAE,uBAAW;IAC5B,kBAAkB,EAAE,0BAAc;IAClC,eAAe,EAAE,uBAAW;CAC/B,CAAA;AAEY,QAAA,WAAW,GAAG,eAAK,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,wBAAY,IAAI,MAAM;IAC/B,OAAO,EAAE,mBAAW;CACvB,CAAC,CAAC;AAEH,qBAAU,CAAC,mBAAW,EAAE;IACpB,OAAO,EAAE,6BAAiB;IAC1B,UAAU,EAAE,CAAC,WAAW,EAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,qBAAU,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;CACvF,CAAC,CAAC;AAEH,kBAAe,mBAAW,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { PLATFORM_OS, API_BASE_URL, SOCKET_URL, BUILD_VERSION, BUNDLE_VERSION, AXIOS_RETRY_COUNT } from './platformSpecific';
2
- import { CLIENT_TYPE } from './clientSpecific.app';
2
+ import { CLIENT_TYPE } from './clientSpecific';
3
3
  export declare const isNode: boolean;
4
4
  export declare const IS_SSR: boolean;
5
5
  export declare const DIRECTION_TOP = "direction/Top";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE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AoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAChF,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAC,CAAA;AAE7G,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { PLATFORM_OS, API_BASE_URL, SOCKET_URL, BUILD_VERSION, BUNDLE_VERSION, AXIOS_RETRY_COUNT } from './platformSpecific';
2
- import { CLIENT_TYPE } from './clientSpecific.app';
2
+ import { CLIENT_TYPE } from './clientSpecific';
3
3
  export const isNode = typeof process !== 'undefined';
4
4
  export const IS_SSR = isNode && ['true', '1'].includes(String(process.env.SSR).toLowerCase());
5
5
  export const DIRECTION_TOP = "direction/Top";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC7H,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAInD,MAAM,CAAC,MAAM,MAAM,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC;AAErD,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAE9F,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC;AAC7C,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AACjD,M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D,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAErD,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,yBAAyB,GAAG,sCAAsC,CAAC;AAChF,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAC,CAAA;AAE7G,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAkB,WAAW,EAAE,MAAM,YAAY,CAAC"}
@@ -1,3 +1,8 @@
1
+ export declare const httpHeaders: {
2
+ 'x-platform-os': string;
3
+ 'x-bundle-version': string;
4
+ 'x-client-type': string;
5
+ };
1
6
  export declare const axiosClient: import("axios").AxiosInstance;
2
7
  export default axiosClient;
3
8
  //# sourceMappingURL=axiosClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"axiosClient.d.ts","sourceRoot":"","sources":["../../../../src/helpers/axiosClient.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,+BAOtB,CAAC;AAOF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"axiosClient.d.ts","sourceRoot":"","sources":["../../../../src/helpers/axiosClient.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;CAIvB,CAAA;AAED,eAAO,MAAM,WAAW,+BAGtB,CAAC;AAOF,eAAe,WAAW,CAAC"}
@@ -1,13 +1,14 @@
1
1
  import Axios from "axios";
2
- import { API_BASE_URL, AXIOS_RETRY_COUNT, BUILD_VERSION, CLIENT_TYPE, PLATFORM_OS } from "../constants";
3
2
  import axiosRetry from "axios-retry";
3
+ import { API_BASE_URL, AXIOS_RETRY_COUNT, BUNDLE_VERSION, CLIENT_TYPE, PLATFORM_OS } from "../constants";
4
+ export const httpHeaders = {
5
+ 'x-platform-os': PLATFORM_OS,
6
+ 'x-bundle-version': BUNDLE_VERSION,
7
+ 'x-client-type': CLIENT_TYPE
8
+ };
4
9
  export const axiosClient = Axios.create({
5
10
  baseURL: API_BASE_URL || '/api',
6
- headers: {
7
- 'x-platform-os': PLATFORM_OS,
8
- 'x-bundle-version': BUILD_VERSION,
9
- 'x-client-type': CLIENT_TYPE
10
- }
11
+ headers: httpHeaders,
11
12
  });
12
13
  axiosRetry(axiosClient, {
13
14
  retries: AXIOS_RETRY_COUNT,
@@ -1 +1 @@
1
- {"version":3,"file":"axiosClient.js","sourceRoot":"","sources":["../../../../src/helpers/axiosClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACxG,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,YAAY,IAAI,MAAM;IAC/B,OAAO,EAAE;QACL,eAAe,EAAE,WAAW;QAC5B,kBAAkB,EAAE,aAAa;QACjC,eAAe,EAAE,WAAW;KAC/B;CACJ,CAAC,CAAC;AAEH,UAAU,CAAC,WAAW,EAAE;IACpB,OAAO,EAAE,iBAAiB;IAC1B,UAAU,EAAE,CAAC,WAAW,EAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,UAAU,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;CACvF,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"axiosClient.js","sourceRoot":"","sources":["../../../../src/helpers/axiosClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEzG,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,eAAe,EAAE,WAAW;IAC5B,kBAAkB,EAAE,cAAc;IAClC,eAAe,EAAE,WAAW;CAC/B,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,YAAY,IAAI,MAAM;IAC/B,OAAO,EAAE,WAAW;CACvB,CAAC,CAAC;AAEH,UAAU,CAAC,WAAW,EAAE;IACpB,OAAO,EAAE,iBAAiB;IAC1B,UAAU,EAAE,CAAC,WAAW,EAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,UAAU,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;CACvF,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { PLATFORM_OS, API_BASE_URL, SOCKET_URL, BUILD_VERSION, BUNDLE_VERSION, AXIOS_RETRY_COUNT } from './platformSpecific';
2
- import { CLIENT_TYPE } from './clientSpecific.app';
2
+ import { CLIENT_TYPE } from './clientSpecific';
3
3
  export declare const isNode: boolean;
4
4
  export declare const IS_SSR: boolean;
5
5
  export declare const DIRECTION_TOP = "direction/Top";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC7H,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAInD,eAAO,MAAM,MAAM,SAAiC,CAAC;AAErD,eAAO,MAAM,MAAM,SAA0E,CAAC;AAE9F,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAChF,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAC,CAAA;AAE7G,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC7H,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAI/C,eAAO,MAAM,MAAM,SAAiC,CAAC;AAErD,eAAO,MAAM,MAAM,SAA0E,CAAC;AAE9F,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAChF,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAC,CAAA;AAE7G,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
@@ -1,3 +1,8 @@
1
+ export declare const httpHeaders: {
2
+ 'x-platform-os': string;
3
+ 'x-bundle-version': string;
4
+ 'x-client-type': string;
5
+ };
1
6
  export declare const axiosClient: import("axios").AxiosInstance;
2
7
  export default axiosClient;
3
8
  //# sourceMappingURL=axiosClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"axiosClient.d.ts","sourceRoot":"","sources":["../../../../src/helpers/axiosClient.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,+BAOtB,CAAC;AAOF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"axiosClient.d.ts","sourceRoot":"","sources":["../../../../src/helpers/axiosClient.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;CAIvB,CAAA;AAED,eAAO,MAAM,WAAW,+BAGtB,CAAC;AAOF,eAAe,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.295",
3
+ "version": "1.0.297",
4
4
  "description": "",
5
5
  "main": "dist/cjs/main.js",
6
6
  "module": "dist/esm/main.js",