@arch-cadre/core 0.0.41 → 0.0.43
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/core/auth/augment.js +6 -14
- package/dist/core/auth/email-verification.js +33 -43
- package/dist/core/auth/events.js +1 -2
- package/dist/core/auth/logic.js +71 -90
- package/dist/core/auth/password-reset.js +46 -56
- package/dist/core/auth/rbac.js +73 -90
- package/dist/core/auth/session.js +51 -66
- package/dist/core/auth/types.js +1 -2
- package/dist/core/auth/utils/encode.js +5 -9
- package/dist/core/auth/utils/encryption.js +12 -18
- package/dist/core/auth/validation.js +25 -28
- package/dist/core/bootstrap.js +16 -19
- package/dist/core/config.js +1 -4
- package/dist/core/config.server.js +14 -54
- package/dist/core/event-bus.js +2 -5
- package/dist/core/filesystem/index.js +7 -24
- package/dist/core/filesystem/providers/local.js +7 -14
- package/dist/core/filesystem/service.js +2 -5
- package/dist/core/filesystem/types.js +1 -2
- package/dist/core/notifications/actions.js +22 -28
- package/dist/core/notifications/index.js +3 -19
- package/dist/core/notifications/service.js +6 -9
- package/dist/core/notifications/types.js +1 -2
- package/dist/core/setup.js +7 -10
- package/dist/core/types.js +1 -2
- package/dist/index.js +7 -23
- package/dist/server/auth/email.js +9 -13
- package/dist/server/auth/password.js +6 -14
- package/dist/server/auth/types.js +1 -17
- package/dist/server/auth/user.js +76 -91
- package/dist/server/database/inject.js +2 -6
- package/dist/server/database/schema.js +107 -110
- package/dist/server/database/types.js +1 -2
- package/dist/server/emails/index.js +4 -10
- package/dist/server.js +24 -40
- package/package.json +2 -4
package/dist/server.js
CHANGED
|
@@ -1,48 +1,32 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Server-side Logic (DB, Filesystem, Auth)
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
-
};
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
__exportStar(require("./core/auth/email-verification"), exports);
|
|
19
|
-
__exportStar(require("./core/auth/logic"), exports);
|
|
20
|
-
__exportStar(require("./core/auth/password-reset"), exports);
|
|
21
|
-
__exportStar(require("./core/auth/rbac"), exports);
|
|
22
|
-
__exportStar(require("./core/auth/session"), exports);
|
|
2
|
+
export * from "./core/auth/email-verification";
|
|
3
|
+
export * from "./core/auth/logic";
|
|
4
|
+
export * from "./core/auth/password-reset";
|
|
5
|
+
export * from "./core/auth/rbac";
|
|
6
|
+
export * from "./core/auth/session";
|
|
23
7
|
// Shared exports (from types/common logic)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
8
|
+
export * from "./core/auth/types";
|
|
9
|
+
export * from "./core/auth/utils/encode";
|
|
10
|
+
export * from "./core/auth/utils/encryption";
|
|
11
|
+
export * from "./core/auth/validation";
|
|
12
|
+
export * from "./core/bootstrap";
|
|
13
|
+
export * from "./core/config.server";
|
|
14
|
+
export * from "./core/event-bus";
|
|
15
|
+
export * from "./core/filesystem/service";
|
|
16
|
+
export * from "./core/filesystem/types";
|
|
33
17
|
// export * from "./core/modules/lifecycle";
|
|
34
18
|
// export * from "./core/modules/manage";
|
|
35
19
|
// export * from "./core/modules/registry";
|
|
36
20
|
// export * from "./core/modules/ui";
|
|
37
|
-
|
|
21
|
+
export * from "./core/notifications/actions";
|
|
38
22
|
// export * from "./core/modules/types";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
23
|
+
export * from "./core/notifications/types";
|
|
24
|
+
export * from "./core/setup";
|
|
25
|
+
export * from "./core/types";
|
|
42
26
|
// Server specific database exports
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
27
|
+
export * from "./server/auth/email";
|
|
28
|
+
export * from "./server/auth/password";
|
|
29
|
+
export * from "./server/auth/user";
|
|
30
|
+
export * from "./server/database/inject";
|
|
31
|
+
export * from "./server/database/schema";
|
|
32
|
+
export * from "./server/emails/index";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arch-cadre/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.43",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core logic for Kryo framework",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,10 +18,8 @@
|
|
|
18
18
|
"switch:dev": "node scripts/switchToSrc.js",
|
|
19
19
|
"switch:prod": "node scripts/switchToDist.js",
|
|
20
20
|
"release": "npm publish --access public --no-git-checks",
|
|
21
|
-
"dev:unbuild": "unbuild --stub",
|
|
22
|
-
"build:unbuild": "unbuild",
|
|
23
21
|
"dev": "tsdown --watch",
|
|
24
|
-
"build": "tsc"
|
|
22
|
+
"build": "pnpm clean && tsc --module esnext"
|
|
25
23
|
},
|
|
26
24
|
"dependencies": {
|
|
27
25
|
"@oslojs/binary": "^1.0.0",
|