graphql-jerky 1.0.4 → 1.0.5

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/build/lib.cjs CHANGED
@@ -971,7 +971,7 @@ async function parseTypeResolvers(typeName, glob$1, ignore) {
971
971
  if (!shouldIgnore(fullpath) && entry.isFile() && entry.name.endsWith(".ts")) {
972
972
  for (const [name, reference] of Object.entries(await parseResolverFile(fullpath))) {
973
973
  let realName = name;
974
- if (realName === "default") {
974
+ if (realName === "default" && typeof glob$1 === 'string' && glob$1.endsWith('/*.ts')) {
975
975
  realName = path.basename(fullpath, path.extname(fullpath));
976
976
  }
977
977
  if (realName in result) {
package/build/lib.mjs CHANGED
@@ -969,7 +969,7 @@ async function parseTypeResolvers(typeName, glob, ignore) {
969
969
  if (!shouldIgnore(fullpath) && entry.isFile() && entry.name.endsWith(".ts")) {
970
970
  for (const [name, reference] of Object.entries(await parseResolverFile(fullpath))) {
971
971
  let realName = name;
972
- if (realName === "default") {
972
+ if (realName === "default" && typeof glob === 'string' && glob.endsWith('/*.ts')) {
973
973
  realName = basename(fullpath, extname(fullpath));
974
974
  }
975
975
  if (realName in result) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-jerky",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Jerky is a schema-first static graphql schema lightweight code generator.",
5
5
  "type": "module",
6
6
  "bin": "./build/bin/jerky.cjs",
@@ -34,4 +34,4 @@
34
34
  "build"
35
35
  ],
36
36
  "license": "MIT"
37
- }
37
+ }