@solidstarters/solid-core 1.2.160 → 1.2.161
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/subscribers/security-rule.subscriber.d.ts.map +1 -1
- package/dist/subscribers/security-rule.subscriber.js +4 -0
- package/dist/subscribers/security-rule.subscriber.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/subscribers/security-rule.subscriber.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidstarters/solid-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.161",
|
|
4
4
|
"description": "This module is a NestJS module containing all the required core providers required by a Solid application",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Injectable, Logger } from '@nestjs/common';
|
|
2
2
|
import { InjectDataSource } from "@nestjs/typeorm";
|
|
3
3
|
import * as fs from 'fs/promises'; // Use the Promise-based version of fs for async/await
|
|
4
|
+
import { SOLID_CORE_MODULE_NAME } from 'src/constants';
|
|
4
5
|
import { ModelMetadata } from 'src/entities/model-metadata.entity';
|
|
5
6
|
import { SecurityRule } from 'src/entities/security-rule.entity';
|
|
6
7
|
import { ModuleMetadataHelperService } from "src/helpers/module-metadata-helper.service";
|
|
@@ -49,6 +50,11 @@ export class SecurityRuleSubscriber implements EntitySubscriberInterface<Securit
|
|
|
49
50
|
}
|
|
50
51
|
});
|
|
51
52
|
|
|
53
|
+
// Ignore further processing if the module is solid core module, since solid core security rules cannot be seeded from the UI
|
|
54
|
+
if (populatedModelMetadata.module.name === SOLID_CORE_MODULE_NAME) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
|
|
52
58
|
const filePath = await this.moduleMetadataHelperService.getModuleMetadataFilePath(populatedModelMetadata.module.name);
|
|
53
59
|
try {
|
|
54
60
|
await fs.access(filePath);
|