silgi 0.18.2 → 0.18.3

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.18.2";
1
+ const version = "0.18.3";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -179,28 +179,6 @@ ${issues.toString()}`);
179
179
  function serviceParseModule(params) {
180
180
  return params;
181
181
  }
182
- const parseGraphQLServices = serviceParseModule(({
183
- node,
184
- basePath,
185
- silgi,
186
- modulesURIs
187
- }) => {
188
- const graphql = node.modules?.graphql;
189
- if (!graphql)
190
- return;
191
- const moduleName = "graphql";
192
- const field = graphql?.field;
193
- if (!field)
194
- return;
195
- modulesURIs[moduleName] ??= {};
196
- if (typeof modulesURIs[moduleName].field === "object" && modulesURIs[moduleName]?.field?.[field]) {
197
- silgi.logger.withTag("handleGraphQLModule").error(
198
- `Hata ${moduleName} ${field} ${basePath} bu zaten burada kullanilmis.`
199
- );
200
- }
201
- modulesURIs[moduleName].field ??= {};
202
- modulesURIs[moduleName].field[field] = basePath;
203
- });
204
182
  const parseRouteRules = serviceParseModule(({
205
183
  node,
206
184
  basePath,
@@ -228,7 +206,6 @@ const parseRouteRules = serviceParseModule(({
228
206
  });
229
207
  function parseServices(silgi, pathLength = [4, 3, 2, 1], servicesObject, currentPath = []) {
230
208
  const modulesURIs = {};
231
- silgi.options.serviceParseModules.push(parseGraphQLServices);
232
209
  silgi.options.serviceParseModules.push(parseRouteRules);
233
210
  const pathLengths = Array.isArray(pathLength) ? pathLength : [pathLength];
234
211
  function traverse(node, path = []) {
@@ -1,4 +1,4 @@
1
- const version = "0.18.2";
1
+ const version = "0.18.3";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -1,4 +1,4 @@
1
- const version = "0.18.2";
1
+ const version = "0.18.3";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.18.2",
4
+ "version": "0.18.3",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {