@appxdigital/appx-core 0.1.104 → 0.1.106
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.
|
@@ -58,6 +58,9 @@ exports.AppxCoreAdminModule = AppxCoreAdminModule = __decorate([
|
|
|
58
58
|
(0, common_1.Global)(),
|
|
59
59
|
(0, common_1.Module)({})
|
|
60
60
|
], AppxCoreAdminModule);
|
|
61
|
+
function lowerCase(name) {
|
|
62
|
+
return name.substring(0, 1).toLowerCase() + name.substring(1);
|
|
63
|
+
}
|
|
61
64
|
async function createAdminJsModule(adminConfig, permissionConfig) {
|
|
62
65
|
// Due to AdminJS only allowing ESM now, we need to use dynamic imports to load the modules, this function can be found within src/backoffice/utils.ts
|
|
63
66
|
const { default: AdminJS } = await (0, utils_1.dynamicImport)('adminjs');
|
|
@@ -178,7 +181,7 @@ async function createAdminJsModule(adminConfig, permissionConfig) {
|
|
|
178
181
|
client: new Proxy(prisma, {
|
|
179
182
|
get(target, prop) {
|
|
180
183
|
return (target[prop] ||
|
|
181
|
-
target.model[m.model.name
|
|
184
|
+
target.model[lowerCase(m.model.name)]);
|
|
182
185
|
},
|
|
183
186
|
}),
|
|
184
187
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adminConfigType.d.ts","sourceRoot":"","sources":["../../../src/common/config/adminConfigType.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE;YACN,UAAU,CAAC,EAAE;gBACT,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBACrB,IAAI,CAAC,EAAE,MAAM,CAAC;aACjB,CAAC;YACF,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;SACtB,CAAC;KACL,EAAE,CAAC;IACJ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE;QACN,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,SAAS,CAAC,EAAE;QACR,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KAAK,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"adminConfigType.d.ts","sourceRoot":"","sources":["../../../src/common/config/adminConfigType.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE;YACN,UAAU,CAAC,EAAE;gBACT,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBACrB,IAAI,CAAC,EAAE,MAAM,CAAC;aACjB,CAAC;YACF,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;SACtB,CAAC;KACL,EAAE,CAAC;IACJ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE;QACN,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,SAAS,CAAC,EAAE;QACR,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KAAK,OAAO,CAAC;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;SAAC,CAAC,CAAC;KAC5E,CAAC;IACF,eAAe,EAAE,GAAG,CAAC;CACxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appxdigital/appx-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.106",
|
|
4
4
|
"description": "Appx Core is a library that provides a set of tools to help you build your application faster.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -78,5 +78,9 @@
|
|
|
78
78
|
},
|
|
79
79
|
"files": [
|
|
80
80
|
"dist"
|
|
81
|
-
]
|
|
81
|
+
],
|
|
82
|
+
"engines": {
|
|
83
|
+
"npm": ">=10.0.0",
|
|
84
|
+
"node": ">=20.0.0"
|
|
85
|
+
}
|
|
82
86
|
}
|