@rytass/cms-base-nestjs-module
Advanced tools
Comparing version 0.1.20 to 0.1.21
@@ -7,2 +7,3 @@ import { Module } from '@nestjs/common'; | ||
import { CategoryDataLoader } from './data-loaders/category.dataloader.js'; | ||
import { CATEGORY_DATA_LOADER } from './typings/cms-base-providers.js'; | ||
@@ -25,2 +26,6 @@ function _ts_decorate(decorators, target, key, desc) { | ||
CategoryDataLoader, | ||
{ | ||
provide: CATEGORY_DATA_LOADER, | ||
useExisting: CategoryDataLoader | ||
}, | ||
ArticleBaseService, | ||
@@ -27,0 +32,0 @@ CategoryBaseService |
@@ -428,2 +428,4 @@ 'use strict'; | ||
const RESOLVED_CATEGORY_MULTI_LANGUAGE_NAME_REPO = Symbol('RESOLVED_CATEGORY_MULTI_LANGUAGE_NAME_REPO'); | ||
// Internal Use Injection Token | ||
const CATEGORY_DATA_LOADER = Symbol('CATEGORY_DATA_LOADER'); | ||
@@ -1005,3 +1007,4 @@ exports.ArticleSorter = void 0; | ||
_ts_param$1(4, common.Inject(CIRCULAR_CATEGORY_MODE)), | ||
_ts_param$1(5, typeorm$1.InjectDataSource()) | ||
_ts_param$1(5, typeorm$1.InjectDataSource()), | ||
_ts_param$1(6, common.Inject(CATEGORY_DATA_LOADER)) | ||
], CategoryBaseService); | ||
@@ -1106,2 +1109,6 @@ | ||
CategoryDataLoader, | ||
{ | ||
provide: CATEGORY_DATA_LOADER, | ||
useExisting: CategoryDataLoader | ||
}, | ||
ArticleBaseService, | ||
@@ -1108,0 +1115,0 @@ CategoryBaseService |
{ | ||
"name": "@rytass/cms-base-nestjs-module", | ||
"version": "0.1.20", | ||
"version": "0.1.21", | ||
"description": "Rytass Content Management System NestJS Base Module", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import { Injectable, Inject, BadRequestException, InternalServerErrorException } from '@nestjs/common'; | ||
import { In } from 'typeorm'; | ||
import { RESOLVED_CATEGORY_MULTI_LANGUAGE_NAME_REPO, RESOLVED_CATEGORY_REPO, MULTIPLE_LANGUAGE_MODE, MULTIPLE_CATEGORY_PARENT_MODE, CIRCULAR_CATEGORY_MODE } from '../typings/cms-base-providers.js'; | ||
import { RESOLVED_CATEGORY_MULTI_LANGUAGE_NAME_REPO, RESOLVED_CATEGORY_REPO, MULTIPLE_LANGUAGE_MODE, MULTIPLE_CATEGORY_PARENT_MODE, CIRCULAR_CATEGORY_MODE, CATEGORY_DATA_LOADER } from '../typings/cms-base-providers.js'; | ||
import { DEFAULT_LANGUAGE } from '../constant/default-language.js'; | ||
@@ -293,5 +293,6 @@ import { InjectDataSource } from '@nestjs/typeorm'; | ||
_ts_param(4, Inject(CIRCULAR_CATEGORY_MODE)), | ||
_ts_param(5, InjectDataSource()) | ||
_ts_param(5, InjectDataSource()), | ||
_ts_param(6, Inject(CATEGORY_DATA_LOADER)) | ||
], CategoryBaseService); | ||
export { CategoryBaseService }; |
@@ -15,1 +15,2 @@ export declare const CMS_BASE_MODULE_OPTIONS: unique symbol; | ||
export declare const RESOLVED_CATEGORY_MULTI_LANGUAGE_NAME_REPO: unique symbol; | ||
export declare const CATEGORY_DATA_LOADER: unique symbol; |
@@ -17,3 +17,5 @@ const CMS_BASE_MODULE_OPTIONS = Symbol('CMS_BASE_MODULE_OPTIONS'); | ||
const RESOLVED_CATEGORY_MULTI_LANGUAGE_NAME_REPO = Symbol('RESOLVED_CATEGORY_MULTI_LANGUAGE_NAME_REPO'); | ||
// Internal Use Injection Token | ||
const CATEGORY_DATA_LOADER = Symbol('CATEGORY_DATA_LOADER'); | ||
export { CIRCULAR_CATEGORY_MODE, CMS_BASE_MODULE_OPTIONS, MULTIPLE_CATEGORY_PARENT_MODE, MULTIPLE_LANGUAGE_MODE, PROVIDE_ARTICLE_ENTITY, PROVIDE_ARTICLE_VERSION_CONTENT_ENTITY, PROVIDE_ARTICLE_VERSION_ENTITY, PROVIDE_CATEGORY_ENTITY, PROVIDE_CATEGORY_MULTI_LANGUAGE_NAME_ENTITY, RESOLVED_ARTICLE_REPO, RESOLVED_ARTICLE_VERSION_CONTENT_REPO, RESOLVED_ARTICLE_VERSION_REPO, RESOLVED_CATEGORY_MULTI_LANGUAGE_NAME_REPO, RESOLVED_CATEGORY_REPO }; | ||
export { CATEGORY_DATA_LOADER, CIRCULAR_CATEGORY_MODE, CMS_BASE_MODULE_OPTIONS, MULTIPLE_CATEGORY_PARENT_MODE, MULTIPLE_LANGUAGE_MODE, PROVIDE_ARTICLE_ENTITY, PROVIDE_ARTICLE_VERSION_CONTENT_ENTITY, PROVIDE_ARTICLE_VERSION_ENTITY, PROVIDE_CATEGORY_ENTITY, PROVIDE_CATEGORY_MULTI_LANGUAGE_NAME_ENTITY, RESOLVED_ARTICLE_REPO, RESOLVED_ARTICLE_VERSION_CONTENT_REPO, RESOLVED_ARTICLE_VERSION_REPO, RESOLVED_CATEGORY_MULTI_LANGUAGE_NAME_REPO, RESOLVED_CATEGORY_REPO }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
118983
2819