remult 2.7.26-next.0 → 2.7.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.
@@ -205,7 +205,7 @@ export class RemultServerImplementation {
205
205
  if (this.options.admin !== undefined && this.options.admin !== false) {
206
206
  const admin = () => this.process(async (remult, req, res, orig, origResponse) => {
207
207
  if (remult.isAllowed(this.options.admin)) {
208
- if (orig.params.id === '__entities-metadata') {
208
+ if (orig?.params?.id === '__entities-metadata') {
209
209
  res.success(buildEntityInfo({
210
210
  remult,
211
211
  entities: this.options.entities ?? [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "2.7.26-next.0",
3
+ "version": "2.7.27",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
5
  "homepage": "https://remult.dev",
6
6
  "repository": {
@@ -364,13 +364,13 @@ var RemultServerImplementation = /** @class */ (function () {
364
364
  if (this.options.admin !== undefined && this.options.admin !== false) {
365
365
  var admin = function () {
366
366
  return _this.process(function (remult, req, res, orig, origResponse) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
367
- var _a;
368
- return tslib_1.__generator(this, function (_b) {
367
+ var _a, _b;
368
+ return tslib_1.__generator(this, function (_c) {
369
369
  if (remult.isAllowed(this.options.admin)) {
370
- if (orig.params.id === '__entities-metadata') {
370
+ if (((_a = orig === null || orig === void 0 ? void 0 : orig.params) === null || _a === void 0 ? void 0 : _a.id) === '__entities-metadata') {
371
371
  res.success((0, remult_admin_js_1.buildEntityInfo)({
372
372
  remult: remult,
373
- entities: (_a = this.options.entities) !== null && _a !== void 0 ? _a : [],
373
+ entities: (_b = this.options.entities) !== null && _b !== void 0 ? _b : [],
374
374
  }));
375
375
  }
376
376
  else {