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.
- package/dist/_chunks/index.mjs +1 -1
- package/dist/kit/index.mjs +0 -23
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/kit/index.mjs
CHANGED
|
@@ -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 = []) {
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED