@aeriajs/entrypoint 0.0.139 → 0.0.141

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.js CHANGED
@@ -7,6 +7,11 @@ const common_1 = require("@aeriajs/common");
7
7
  let collectionsMemo;
8
8
  let availableRolesMemo;
9
9
  const collectionMemo = {};
10
+ const DEFAULT_CONFIG = {
11
+ security: {
12
+ mutableUserProperties: [],
13
+ },
14
+ };
10
15
  const getEntrypointPath = async () => {
11
16
  if (process.env.AERIA_MAIN) {
12
17
  return path.join(process.cwd(), process.env.AERIA_MAIN);
@@ -70,7 +75,7 @@ const getConfig = async () => {
70
75
  const entrypoint = await (0, exports.getEntrypoint)();
71
76
  return entrypoint.default
72
77
  ? entrypoint.default.options.config
73
- : {};
78
+ : DEFAULT_CONFIG;
74
79
  };
75
80
  exports.getConfig = getConfig;
76
81
  const getAvailableRoles = async () => {
package/dist/index.mjs CHANGED
@@ -5,6 +5,11 @@ import { dynamicImport } from "@aeriajs/common";
5
5
  let collectionsMemo;
6
6
  let availableRolesMemo;
7
7
  const collectionMemo = {};
8
+ const DEFAULT_CONFIG = {
9
+ security: {
10
+ mutableUserProperties: []
11
+ }
12
+ };
8
13
  export const getEntrypointPath = async () => {
9
14
  if (process.env.AERIA_MAIN) {
10
15
  return path.join(process.cwd(), process.env.AERIA_MAIN);
@@ -51,7 +56,7 @@ export const getRouter = async () => {
51
56
  };
52
57
  export const getConfig = async () => {
53
58
  const entrypoint = await getEntrypoint();
54
- return entrypoint.default ? entrypoint.default.options.config : {};
59
+ return entrypoint.default ? entrypoint.default.options.config : DEFAULT_CONFIG;
55
60
  };
56
61
  export const getAvailableRoles = async () => {
57
62
  if (availableRolesMemo) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/entrypoint",
3
- "version": "0.0.139",
3
+ "version": "0.0.141",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -26,11 +26,12 @@
26
26
  "@aeriajs/types": "link:../types"
27
27
  },
28
28
  "peerDependencies": {
29
- "@aeriajs/common": "^0.0.135",
30
- "@aeriajs/types": "^0.0.117"
29
+ "@aeriajs/common": "^0.0.137",
30
+ "@aeriajs/types": "^0.0.119"
31
31
  },
32
32
  "scripts": {
33
33
  "test": "vitest run",
34
+ "test:typecheck": "tsc -p tsconfig.test.json",
34
35
  "lint": "eslint .",
35
36
  "lint:fix": "eslint . --fix",
36
37
  "build": "pnpm build:cjs && pnpm build:esm",