@rytass/cms-base-nestjs-graphql-module 0.1.14 → 0.1.16

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rytass/cms-base-nestjs-graphql-module",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Rytass Content Management System NestJS Base GraphQL Module",
5
5
  "keywords": [
6
6
  "rytass",
@@ -26,8 +26,8 @@
26
26
  "typeorm": "*"
27
27
  },
28
28
  "dependencies": {
29
- "@rytass/cms-base-nestjs-module": "^0.2.6",
30
- "@rytass/member-base-nestjs-module": "^0.2.11",
29
+ "@rytass/cms-base-nestjs-module": "^0.2.8",
30
+ "@rytass/member-base-nestjs-module": "^0.2.13",
31
31
  "dataloader": "^2.2.3",
32
32
  "lru-cache": "^11.1.0"
33
33
  },
@@ -1,10 +1,9 @@
1
- import { ModuleMetadata, Type } from '@nestjs/common';
1
+ import { InjectionToken, ModuleMetadata, OptionalFactoryDependency, Type } from '@nestjs/common';
2
2
  import { CMSGraphqlBaseModuleOptionFactory } from './cms-graphql-base-root-module-option-factory';
3
3
  import { CMSGraphqlBaseModuleOptionsDto } from './cms-graphql-base-root-module-options.dto';
4
- import { FactoryFunctionArgs, DependencyInjectionToken } from './module-factory.type';
5
4
  export interface CMSGraphqlBaseModuleAsyncOptionsDto extends Pick<ModuleMetadata, 'imports'> {
6
- useFactory?: (...args: FactoryFunctionArgs) => Promise<CMSGraphqlBaseModuleOptionsDto> | CMSGraphqlBaseModuleOptionsDto;
7
- inject?: DependencyInjectionToken[];
5
+ useFactory?: (...args: any[]) => Promise<CMSGraphqlBaseModuleOptionsDto> | CMSGraphqlBaseModuleOptionsDto;
6
+ inject?: (InjectionToken | OptionalFactoryDependency)[];
8
7
  useClass?: Type<CMSGraphqlBaseModuleOptionFactory>;
9
8
  useExisting?: Type<CMSGraphqlBaseModuleOptionFactory>;
10
9
  }
@@ -1,11 +0,0 @@
1
- import { InjectionToken } from '@nestjs/common';
2
- /**
3
- * Represents possible dependency injection tokens
4
- * Used to replace 'any[]' in NestJS module configuration
5
- */
6
- export type DependencyInjectionToken = InjectionToken | string | symbol | Function;
7
- /**
8
- * Represents factory function arguments
9
- * Used to replace 'any[]' in useFactory functions
10
- */
11
- export type FactoryFunctionArgs = unknown[];