@arch-cadre/two-factor-email 1.0.21 → 1.0.27
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/index.cjs +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +7 -7
- package/src/index.ts +6 -2
package/dist/index.cjs
CHANGED
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
var _server = require("@arch-cadre/core/server");
|
|
8
|
+
var _global = _interopRequireDefault(require("../locales/en/global.json"));
|
|
9
|
+
var _global2 = _interopRequireDefault(require("../locales/pl/global.json"));
|
|
8
10
|
var _manifest = _interopRequireDefault(require("../manifest.json"));
|
|
9
11
|
var _actions = require("./actions.cjs");
|
|
10
12
|
var _routes = require("./routes.cjs");
|
|
@@ -12,6 +14,10 @@ var _settingsToggle = require("./ui/settings-toggle.cjs");
|
|
|
12
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
15
|
const twoFactorEmailModule = {
|
|
14
16
|
manifest: _manifest.default,
|
|
17
|
+
translations: {
|
|
18
|
+
en: _global.default,
|
|
19
|
+
pl: _global2.default
|
|
20
|
+
},
|
|
15
21
|
routes: {
|
|
16
22
|
public: _routes.publicRoutes
|
|
17
23
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { registerAuthValidator } from "@arch-cadre/core/server";
|
|
2
|
+
import localesEn from "../locales/en/global.json" with { type: "json" };
|
|
3
|
+
import localesPl from "../locales/pl/global.json" with { type: "json" };
|
|
2
4
|
import manifest from "../manifest.json";
|
|
3
5
|
import { generateAndSendCode, is2FAEnabled } from "./actions.mjs";
|
|
4
6
|
import { publicRoutes } from "./routes.mjs";
|
|
5
7
|
import { TwoFactorSettings } from "./ui/settings-toggle.mjs";
|
|
6
8
|
const twoFactorEmailModule = {
|
|
7
9
|
manifest,
|
|
10
|
+
translations: {
|
|
11
|
+
en: localesEn,
|
|
12
|
+
pl: localesPl
|
|
13
|
+
},
|
|
8
14
|
routes: {
|
|
9
15
|
public: publicRoutes
|
|
10
16
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arch-cadre/two-factor-email",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"description": "Email-based two-factor authentication module for Kryo framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@hookform/resolvers": "^3.10.0",
|
|
30
|
-
"@arch-cadre/ui": "^0.0.
|
|
31
|
-
"@arch-cadre/modules": "^0.0.
|
|
30
|
+
"@arch-cadre/ui": "^0.0.69",
|
|
31
|
+
"@arch-cadre/modules": "^0.0.97",
|
|
32
32
|
"lucide-react": "^0.475.0",
|
|
33
33
|
"react-hook-form": "^7.54.2",
|
|
34
34
|
"sonner": "^2.0.7",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/pg": "^8.16.0",
|
|
39
|
-
"@arch-cadre/core": "^0.0.
|
|
39
|
+
"@arch-cadre/core": "^0.0.71",
|
|
40
40
|
"@types/react": "^19",
|
|
41
41
|
"next": "16.1.1",
|
|
42
42
|
"react": "^19.0.0",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"unbuild": "^3.6.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@arch-cadre/core": "^0.0.
|
|
48
|
-
"@arch-cadre/intl": "^0.0.
|
|
49
|
-
"@arch-cadre/ui": "^0.0.
|
|
47
|
+
"@arch-cadre/core": "^0.0.71",
|
|
48
|
+
"@arch-cadre/intl": "^0.0.71",
|
|
49
|
+
"@arch-cadre/ui": "^0.0.69",
|
|
50
50
|
"pg": "^8.16.3",
|
|
51
51
|
"drizzle-orm": "1.0.0-beta.6-4414a19",
|
|
52
52
|
"next": ">=13.0.0",
|
package/src/index.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { db, registerAuthValidator } from "@arch-cadre/core/server";
|
|
2
2
|
import type { IModule } from "@arch-cadre/modules";
|
|
3
3
|
import { sql } from "drizzle-orm";
|
|
4
|
+
import localesEn from "../locales/en/global.json" with { type: "json" };
|
|
5
|
+
import localesPl from "../locales/pl/global.json" with { type: "json" };
|
|
4
6
|
import manifest from "../manifest.json";
|
|
5
7
|
import { generateAndSendCode, is2FAEnabled } from "./actions";
|
|
6
|
-
|
|
7
8
|
import { publicRoutes } from "./routes";
|
|
8
9
|
import { TwoFactorSettings } from "./ui/settings-toggle";
|
|
9
10
|
|
|
10
11
|
const twoFactorEmailModule: IModule = {
|
|
11
12
|
manifest,
|
|
12
|
-
|
|
13
|
+
translations: {
|
|
14
|
+
en: localesEn,
|
|
15
|
+
pl: localesPl,
|
|
16
|
+
},
|
|
13
17
|
routes: {
|
|
14
18
|
public: publicRoutes,
|
|
15
19
|
},
|