@solidstarters/solid-core 1.2.114 → 1.2.115

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": "@solidstarters/solid-core",
3
- "version": "1.2.114",
3
+ "version": "1.2.115",
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",
@@ -0,0 +1,3 @@
1
+ 1. fileLocation -> file
2
+ 3. Change the urls to reflect proper semantics.
3
+ 5. difference between using moduleRef vs provider.instance
@@ -213,7 +213,14 @@ export class SettingService extends CRUDService<Setting> {
213
213
  }
214
214
  }
215
215
 
216
- for (const [key, value] of Object.entries(settings)) {
216
+ let parsedSettings: Record<string, any>;
217
+ try {
218
+ parsedSettings = typeof settings === 'string' ? JSON.parse(settings) : settings;
219
+ } catch (error) {
220
+ parsedSettings = {};
221
+ }
222
+
223
+ for (const [key, value] of Object.entries(parsedSettings)) {
217
224
  if (files && files.some(f => f.fieldname === key)) {
218
225
  continue;
219
226
  }