strapi-plugin-magic-sessionmanager 3.6.0 → 4.0.0
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/README.md +104 -0
- package/admin/src/hooks/useLicense.js +1 -1
- package/admin/src/index.js +5 -2
- package/admin/src/pages/Settings.jsx +0 -1
- package/admin/src/translations/es.json +21 -0
- package/admin/src/translations/fr.json +21 -0
- package/admin/src/translations/pt.json +21 -0
- package/admin/src/utils/parseUserAgent.js +1 -1
- package/dist/_chunks/{Analytics-DRzCKaDF.js → Analytics-ioaeEh-E.js} +2 -2
- package/dist/_chunks/{Analytics-CwyLwdOZ.mjs → Analytics-mYu_uGwU.mjs} +2 -2
- package/dist/_chunks/{App-Zhs_vt59.mjs → App-BXpIS12l.mjs} +2 -2
- package/dist/_chunks/{App-nGu2Eb87.js → App-DdnUYWbC.js} +2 -2
- package/dist/_chunks/{License-CPI0p_W8.mjs → License-C03C2j9P.mjs} +1 -1
- package/dist/_chunks/{License-k5vvhgKr.js → License-DZYrOgcx.js} +1 -1
- package/dist/_chunks/{Settings-CL2im8M3.mjs → Settings-0ocB3qHk.mjs} +2 -2
- package/dist/_chunks/{Settings-Lkmxisuv.js → Settings-C6_CqpCC.js} +2 -2
- package/dist/_chunks/es-CuLHazN1.js +23 -0
- package/dist/_chunks/es-Dkmjhy9c.mjs +23 -0
- package/dist/_chunks/fr-BAJp2yhI.js +23 -0
- package/dist/_chunks/fr-Bssg_3UF.mjs +23 -0
- package/dist/_chunks/{index-B-0VPfeF.mjs → index-DBRS3kt5.mjs} +11 -8
- package/dist/_chunks/{index-W_QbTAYU.js → index-DC8Y0qxx.js} +11 -8
- package/dist/_chunks/pt-BAP9cKs3.js +23 -0
- package/dist/_chunks/pt-BVNoNcuY.mjs +23 -0
- package/dist/_chunks/{useLicense-DUGjNbQ9.mjs → useLicense-DSLL9n3Y.mjs} +2 -2
- package/dist/_chunks/{useLicense-C_Rneohy.js → useLicense-qgGfMvse.js} +2 -2
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +117 -95
- package/dist/server/index.mjs +117 -95
- package/package.json +1 -1
- package/server/src/bootstrap.js +32 -26
- package/server/src/controllers/license.js +4 -4
- package/server/src/controllers/session.js +10 -6
- package/server/src/destroy.js +1 -1
- package/server/src/middlewares/last-seen.js +8 -3
- package/server/src/register.js +4 -4
- package/server/src/services/geolocation.js +4 -2
- package/server/src/services/license-guard.js +13 -10
- package/server/src/services/notifications.js +10 -10
- package/server/src/services/service.js +1 -1
- package/server/src/services/session.js +41 -31
- package/server/src/utils/encryption.js +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const react = require("react");
|
|
3
3
|
const admin = require("@strapi/strapi/admin");
|
|
4
|
-
const index = require("./index-
|
|
4
|
+
const index = require("./index-DC8Y0qxx.js");
|
|
5
5
|
const useLicense = () => {
|
|
6
6
|
const { get } = admin.useFetchClient();
|
|
7
7
|
const [isPremium, setIsPremium] = react.useState(false);
|
|
@@ -44,7 +44,7 @@ const useLicense = () => {
|
|
|
44
44
|
if ((newIsPremium !== isPremium || !silent) && !silent) {
|
|
45
45
|
console.log(`[magic-sessionmanager/useLicense] Premium Status: ${newIsPremium} (valid: ${isValid}, featurePremium: ${hasPremiumFeature})`);
|
|
46
46
|
if (!newIsPremium && isValid) {
|
|
47
|
-
console.warn("[magic-sessionmanager/useLicense]
|
|
47
|
+
console.warn("[magic-sessionmanager/useLicense] [WARN] License is valid but Premium feature is not enabled!");
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
setIsPremium(newIsPremium);
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED