@punks/backend-entity-manager 0.0.262 → 0.0.264
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/dist/cjs/index.js +4 -15
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/ioc/tokens/index.d.ts +1 -1
- package/dist/esm/index.js +4 -15
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/ioc/tokens/index.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -21554,9 +21554,6 @@ exports.CustomDiscoveryModule = __decorate([
|
|
|
21554
21554
|
const LIB_DI_TOKEN_NAMESPACE = "WP";
|
|
21555
21555
|
const buildProviderToken = (name) => `${LIB_DI_TOKEN_NAMESPACE}.PROVIDER.${name}`;
|
|
21556
21556
|
|
|
21557
|
-
const EntityManagerProviderToken = {
|
|
21558
|
-
OperationsLockRepository: {},
|
|
21559
|
-
};
|
|
21560
21557
|
const toSnakeUpperCase = (str) => lodash.exports.trimStart(str.replace(/([A-Z])/g, (match) => `_${match}`).toUpperCase(), "_");
|
|
21561
21558
|
const getEntityManagerProviderToken = (name) => buildProviderToken(toSnakeUpperCase(name));
|
|
21562
21559
|
|
|
@@ -21910,6 +21907,9 @@ exports.OperationLockService = OperationLockService_1 = class OperationLockServi
|
|
|
21910
21907
|
if (!operations) {
|
|
21911
21908
|
this.logger.warn(`Cannot resolve locks repository: ${getEntityManagerProviderToken("OperationsLockRepository")}`);
|
|
21912
21909
|
}
|
|
21910
|
+
else {
|
|
21911
|
+
this.logger.info(`Resolved locks repository: ${getEntityManagerProviderToken("OperationsLockRepository")}`);
|
|
21912
|
+
}
|
|
21913
21913
|
}
|
|
21914
21914
|
};
|
|
21915
21915
|
exports.OperationLockService = OperationLockService_1 = __decorate([
|
|
@@ -23524,17 +23524,6 @@ exports.EntityManagerModule = class EntityManagerModule {
|
|
|
23524
23524
|
constructor(registry) {
|
|
23525
23525
|
this.registry = registry;
|
|
23526
23526
|
}
|
|
23527
|
-
// static forRoot(input: {
|
|
23528
|
-
// imports?: ModuleMetadata["imports"]
|
|
23529
|
-
// providers?: ModuleMetadata["providers"]
|
|
23530
|
-
// }): DynamicModule {
|
|
23531
|
-
// return {
|
|
23532
|
-
// module: EntityManagerModule,
|
|
23533
|
-
// imports: ModuleData.imports,
|
|
23534
|
-
// providers: [...ModuleData.providers, ...(input.providers ?? [])],
|
|
23535
|
-
// exports: ModuleData.exports,
|
|
23536
|
-
// }
|
|
23537
|
-
// }
|
|
23538
23527
|
onModuleInit() {
|
|
23539
23528
|
initializeIoCContext({
|
|
23540
23529
|
registry: this.registry,
|
|
@@ -33001,7 +32990,6 @@ exports.AwsSesEmailTemplate = AwsSesEmailTemplate;
|
|
|
33001
32990
|
exports.CurrentUser = CurrentUser;
|
|
33002
32991
|
exports.EntityManagerConfigurationError = EntityManagerConfigurationError;
|
|
33003
32992
|
exports.EntityManagerException = EntityManagerException;
|
|
33004
|
-
exports.EntityManagerProviderToken = EntityManagerProviderToken;
|
|
33005
32993
|
exports.EntityManagerSymbols = EntityManagerSymbols;
|
|
33006
32994
|
exports.EntityManagerUnauthorizedException = EntityManagerUnauthorizedException;
|
|
33007
32995
|
exports.EntityNotFoundException = EntityNotFoundException;
|
|
@@ -33078,6 +33066,7 @@ exports.buildProviderToken = buildProviderToken;
|
|
|
33078
33066
|
exports.buildRolesGuard = buildRolesGuard;
|
|
33079
33067
|
exports.createContainer = createContainer;
|
|
33080
33068
|
exports.createExpressFileResponse = createExpressFileResponse;
|
|
33069
|
+
exports.getEntityManagerProviderToken = getEntityManagerProviderToken;
|
|
33081
33070
|
exports.getLocalizedText = getLocalizedText;
|
|
33082
33071
|
exports.newUuid = newUuid;
|
|
33083
33072
|
exports.renderHandlebarsTemplate = renderHandlebarsTemplate;
|