@machinemetrics/mm-react-tools 4.7.1-18 → 4.7.1-19
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/mm-react-tools.es.js +11 -2
- package/package.json +1 -1
|
@@ -22965,7 +22965,16 @@ const cl = zo.createContext(), DD = () => {
|
|
|
22965
22965
|
}
|
|
22966
22966
|
}, []), t ? /* @__PURE__ */ zt(cb, { loadError: t }) : r ? /* @__PURE__ */ zt(cb, {}) : /* @__PURE__ */ zt(Zd, {});
|
|
22967
22967
|
};
|
|
22968
|
-
console.log("[mm-react-tools] v4.7.1-
|
|
22968
|
+
console.log("[mm-react-tools] v4.7.1-19");
|
|
22969
|
+
if (!window.__mm_location_trap) {
|
|
22970
|
+
window.__mm_location_trap = !0;
|
|
22971
|
+
const r = window.location.assign?.bind(window.location), e = window.location.replace?.bind(window.location);
|
|
22972
|
+
r && (window.location.assign = function(t) {
|
|
22973
|
+
return typeof t == "string" && t.includes("login.machinemetrics.com") && console.error("[mm-react-tools] INTERCEPTED location.assign to login:", t, new Error().stack), r(t);
|
|
22974
|
+
}), e && (window.location.replace = function(t) {
|
|
22975
|
+
return typeof t == "string" && t.includes("login.machinemetrics.com") && console.error("[mm-react-tools] INTERCEPTED location.replace to login:", t, new Error().stack), e(t);
|
|
22976
|
+
});
|
|
22977
|
+
}
|
|
22969
22978
|
window.location.pathname === "/authorize/mm/popup-start" && (window.localStorage.setItem("mm-auth-popup", "true"), window.history.replaceState(null, "", "/"));
|
|
22970
22979
|
function qD() {
|
|
22971
22980
|
const r = window !== window.top, e = window.location.hostname, t = e.endsWith("machinemetrics.com"), n = r && !t;
|
|
@@ -23065,7 +23074,7 @@ const ho = {
|
|
|
23065
23074
|
redirect_uri: `${window.location.origin}/authorize/mm/callback`,
|
|
23066
23075
|
...pe
|
|
23067
23076
|
}), Ee = `${b.loginUrl}/oauth/authorize?${Ne}`;
|
|
23068
|
-
window.location = Ee;
|
|
23077
|
+
console.error("[mm-react-tools] REDIRECTING to login from login()", new Error().stack), window.location = Ee;
|
|
23069
23078
|
}, [t, n, c, b, _]), R = async (pe) => {
|
|
23070
23079
|
const me = NM.parse(window.location.search), de = me.code;
|
|
23071
23080
|
if (me.error)
|
package/package.json
CHANGED