@nest-omni/core 3.1.1-17 → 3.1.1-18

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.
@@ -9,10 +9,10 @@ import type { PageOptionsDto } from './dto/page-options.dto';
9
9
  import type { LanguageCode } from '../constants/language-code';
10
10
  import type { KeyOfType } from './types';
11
11
  declare global {
12
- export type Uuid = string & {
12
+ type Uuid = string & {
13
13
  _uuidBrand: undefined;
14
14
  };
15
- export type Todo = any & {
15
+ type Todo = any & {
16
16
  _todoBrand: undefined;
17
17
  };
18
18
  interface Array<T> {
@@ -35,7 +35,7 @@ declare module 'typeorm' {
35
35
  dtoOptions: DtoOptions;
36
36
  skipCount: boolean;
37
37
  takeAll: boolean;
38
- transform: (items: Entity[]) => Entity[];
38
+ transform: (items: Entity[]) => Entity[] | Promise<Entity[]>;
39
39
  }>): Promise<PageDto<Dto>>;
40
40
  leftJoinAndSelect<AliasEntity extends AbstractEntity, A extends string>(this: SelectQueryBuilder<Entity>, property: `${A}.${Exclude<KeyOfType<AliasEntity, AbstractEntity>, symbol>}`, alias: string, condition?: string, parameters?: ObjectLiteral): this;
41
41
  leftJoin<AliasEntity extends AbstractEntity, A extends string>(this: SelectQueryBuilder<Entity>, property: `${A}.${Exclude<KeyOfType<AliasEntity, AbstractEntity>, symbol>}`, alias: string, condition?: string, parameters?: ObjectLiteral): this;
@@ -85,7 +85,7 @@ typeorm_1.SelectQueryBuilder.prototype.paginateAndMap = function (pageOptionsDto
85
85
  });
86
86
  let transformedEntities = entities;
87
87
  if (options === null || options === void 0 ? void 0 : options.transform) {
88
- transformedEntities = options.transform(entities);
88
+ transformedEntities = yield options.transform(entities);
89
89
  }
90
90
  return transformedEntities.toPageDto(pageMetaDto, options === null || options === void 0 ? void 0 : options.dtoOptions);
91
91
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nest-omni/core",
3
- "version": "3.1.1-17",
3
+ "version": "3.1.1-18",
4
4
  "description": "A comprehensive NestJS framework for building enterprise-grade applications with best practices",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,3 +1,2 @@
1
- import '../common/boilerplate.polyfill';
2
1
  import type { NestExpressApplication } from '@nestjs/platform-express';
3
2
  export declare function bootstrapSetup(AppModule: any, SetupSwagger: any): Promise<NestExpressApplication<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>>>;
@@ -17,7 +17,6 @@ const fs_1 = require("fs");
17
17
  const path_1 = require("path");
18
18
  const process = require("process");
19
19
  const mode_setup_1 = require("./mode.setup");
20
- require("../common/boilerplate.polyfill");
21
20
  function findValidRootPath() {
22
21
  const getAppRootPath = () => {
23
22
  if (require.main && require.main.filename) {