@appxdigital/appx-core 0.1.118 → 0.1.120
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appx-core-admin.module.d.ts","sourceRoot":"","sources":["../../src/backoffice/appx-core-admin.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"appx-core-admin.module.d.ts","sourceRoot":"","sources":["../../src/backoffice/appx-core-admin.module.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,aAAa,EAAiB,MAAM,gBAAgB,CAAC;AAQ7D,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAC;AAIjE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yCAAyC,CAAC;AAE9E,qBAEa,mBAAmB;IAC5B,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,qBAAqB,GAAG,OAAO,CAAC,aAAa,CAAC;CAG3G"}
|
|
@@ -28,8 +28,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
__setModuleDefault(result, mod);
|
|
29
29
|
return result;
|
|
30
30
|
};
|
|
31
|
+
var _a;
|
|
31
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
33
|
exports.AppxCoreAdminModule = void 0;
|
|
34
|
+
// Set tmp dir to avoid dot ".adminjs" since it is not served by default on Express 5
|
|
35
|
+
(_a = process.env).ADMIN_JS_TMP_DIR ?? (_a.ADMIN_JS_TMP_DIR = 'tmp/adminjs');
|
|
33
36
|
const common_1 = require("@nestjs/common");
|
|
34
37
|
const utils_1 = require("./utils");
|
|
35
38
|
const fs_1 = require("fs");
|
|
@@ -227,7 +230,6 @@ async function createAdminJsModule(adminConfig, permissionConfig) {
|
|
|
227
230
|
});
|
|
228
231
|
const requestContextLayer = httpAdapter.router.stack.splice(httpAdapter.router.stack.length - 1, 1)[0];
|
|
229
232
|
httpAdapter.router.stack.splice(adminIdx, 0, requestContextLayer);
|
|
230
|
-
console.log(httpAdapter.router);
|
|
231
233
|
}
|
|
232
234
|
},
|
|
233
235
|
};
|
package/package.json
CHANGED