@nestjs-kitchen/connextion-postgres 2.0.4 → 2.0.6

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,5 +1,8 @@
1
+ import { type AsyncModuleOptions, type ConnectionOptionName, type ConnextionInstance, type ModuleOptions } from '@nestjs-kitchen/connextion';
2
+ import type { DynamicModule, Type } from '@nestjs/common';
1
3
  import { DEFAULT_INSTANCE_NAME } from './constants';
2
4
  import { PostgresInstance } from './postgres.instance';
5
+ import type { PostgresInstanceOptions } from './types';
3
6
  /**
4
7
  * Creates a set of Postgres services, modules, and their associated Transaction decorator.
5
8
  */
@@ -7,7 +10,7 @@ export declare const definePostgres: <T extends string = typeof DEFAULT_INSTANCE
7
10
  /**
8
11
  * The Postgres service, responsible for managing all postgres connection instances registered by the module.
9
12
  */
10
- Postgres: import("@nestjs/common").Type<Record<import("@nestjs-kitchen/connextion").ConnectionOptionName<T>, Omit<PostgresInstance, keyof import("@nestjs-kitchen/connextion").ConnextionInstance<unknown>>>>;
13
+ Postgres: Type<Record<ConnectionOptionName<T>, Omit<PostgresInstance, keyof ConnextionInstance<unknown>>>>;
11
14
  /**
12
15
  * The Postgres module, used to register and create postgres connection instances with options.
13
16
  *
@@ -19,8 +22,8 @@ export declare const definePostgres: <T extends string = typeof DEFAULT_INSTANCE
19
22
  */
20
23
  PostgresModule: {
21
24
  new (): {};
22
- register(options: import("@nestjs-kitchen/connextion").ModuleOptions<T, import("./types").PostgresInstanceOptions>): import("@nestjs/common").DynamicModule;
23
- registerAsync(options: import("@nestjs-kitchen/connextion").AsyncModuleOptions<T, import("./types").PostgresInstanceOptions>): import("@nestjs/common").DynamicModule;
25
+ register(options: ModuleOptions<T, PostgresInstanceOptions>): DynamicModule;
26
+ registerAsync(options: AsyncModuleOptions<T, PostgresInstanceOptions>): DynamicModule;
24
27
  };
25
28
  /**
26
29
  * A decorator that automatically enables transactions for the specific Postgres
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nestjs-kitchen/connextion-postgres",
3
3
  "private": false,
4
4
  "description": "A flexible module to provide node-postgres interface in NextJS.",
5
- "version": "2.0.4",
5
+ "version": "2.0.6",
6
6
  "homepage": "https://github.com/yikenman/nestjs-kitchen",
7
7
  "repository": "https://github.com/yikenman/nestjs-kitchen",
8
8
  "author": "yikenman",
@@ -30,9 +30,8 @@
30
30
  "ts-jest": "^29.3.0",
31
31
  "ts-node": "^10.9.2",
32
32
  "tsconfig-paths": "^4.2.0",
33
- "tsup": "^8.4.0",
34
33
  "typescript": "^5.8.2",
35
- "@nestjs-kitchen/connextion": "2.0.4"
34
+ "@nestjs-kitchen/connextion": "2.0.5"
36
35
  },
37
36
  "engines": {
38
37
  "node": ">=20.13.0"
@@ -52,7 +51,7 @@
52
51
  "@types/pg": "^8.11.10",
53
52
  "pg": "^8.13.1",
54
53
  "reflect-metadata": "^0.2.2",
55
- "@nestjs-kitchen/connextion": "2.0.4"
54
+ "@nestjs-kitchen/connextion": "2.0.5"
56
55
  },
57
56
  "scripts": {
58
57
  "build": "rimraf dist && tsc -p tsconfig.build.json",