gomtm 0.0.198 → 0.0.199
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/esm/consts.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const COOKIE_MTM_SITE_ID = "mtm-site-id";
|
|
2
2
|
export declare const COOKIE_IS_DEBUG = "DEBUG";
|
|
3
3
|
export declare const MTM_SITE_HOSTNAME = "mtm-site-hostname";
|
|
4
|
-
export declare const MtM_TOKEN_NAME = "
|
|
4
|
+
export declare const MtM_TOKEN_NAME = "mtmToken";
|
|
5
5
|
export declare const fetchMaxRetry = 3;
|
|
6
6
|
export declare const HeaderMtmHost = "Mtm-Host";
|
|
7
7
|
export declare const HeaderMtmApi = "Mtm-Api";
|
package/dist/esm/consts.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const COOKIE_MTM_SITE_ID = "mtm-site-id";
|
|
2
2
|
const COOKIE_IS_DEBUG = "DEBUG";
|
|
3
3
|
const MTM_SITE_HOSTNAME = "mtm-site-hostname";
|
|
4
|
-
const MtM_TOKEN_NAME = "
|
|
4
|
+
const MtM_TOKEN_NAME = "mtmToken";
|
|
5
5
|
const fetchMaxRetry = 3;
|
|
6
6
|
const HeaderMtmHost = "Mtm-Host";
|
|
7
7
|
const HeaderMtmApi = "Mtm-Api";
|
package/dist/esm/mtmFetcher.js
CHANGED
|
@@ -108,6 +108,10 @@ const gomtmFetcher = (initGlobal) => {
|
|
|
108
108
|
fetcher = fetchMiddleWithCache(fetch);
|
|
109
109
|
}
|
|
110
110
|
try {
|
|
111
|
+
console.error("[mtmfetch]", {
|
|
112
|
+
input,
|
|
113
|
+
init
|
|
114
|
+
});
|
|
111
115
|
const responseData = yield fetcher(input, init);
|
|
112
116
|
return responseData;
|
|
113
117
|
} catch (e) {
|