silgi 0.7.22 → 0.7.23

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.
@@ -1,4 +1,4 @@
1
- const version = "0.7.22";
1
+ const version = "0.7.23";
2
2
  const packageJson = {
3
3
  version: version};
4
4
 
@@ -305,21 +305,21 @@ function scanActionModulesUris(silgi, obj, currentPath = []) {
305
305
  if (path.length === 4) {
306
306
  const basePath = path.join("/");
307
307
  let moduleName = "";
308
- if (node.modules?.yoga) {
309
- let rootFieldName = null;
310
- if (node.modules?.yoga?.rootFieldName) {
311
- moduleName = "yoga";
312
- rootFieldName = node.modules?.yoga?.rootFieldName;
308
+ if (node.modules?.graphql) {
309
+ let field = null;
310
+ if (node.modules?.graphql?.field) {
311
+ moduleName = "graphql";
312
+ field = node.modules?.graphql?.field;
313
313
  }
314
- if (!rootFieldName) {
314
+ if (!field) {
315
315
  return;
316
316
  }
317
317
  uriMap[moduleName] ??= {};
318
- if (uriMap[moduleName].rootFieldName) {
319
- silgi.logger.withTag("scanActionModulesUris").error(`Hata ${moduleName} ${rootFieldName} ${basePath} bu zaten burada kullanilmis.`);
318
+ if (typeof uriMap[moduleName].field === "object" && uriMap[moduleName].field[field]) {
319
+ silgi.logger.withTag("scanActionModulesUris").error(`Hata ${moduleName} ${field} ${basePath} bu zaten burada kullanilmis.`);
320
320
  }
321
- uriMap[moduleName].rootFieldName ??= {};
322
- uriMap[moduleName].rootFieldName[rootFieldName] = basePath;
321
+ uriMap[moduleName].field ??= {};
322
+ uriMap[moduleName].field[field] = basePath;
323
323
  }
324
324
  return;
325
325
  }
@@ -1,3 +1,3 @@
1
- const version = "0.7.22";
1
+ const version = "0.7.23";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "0.7.22";
1
+ const version = "0.7.23";
2
2
 
3
3
  export { version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.7.22",
4
+ "version": "0.7.23",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {