Comparing version 1.0.6 to 1.0.7
@@ -186,3 +186,3 @@ 'use strict'; | ||
getTypeName(type) { | ||
const regex = /^[a-zA-Z0-9_]+$/; | ||
const regex = /[a-zA-Z0-9_]+$/; | ||
const matches = type.match(regex); | ||
@@ -189,0 +189,0 @@ return matches && matches[0]; |
{ | ||
"name": "gqutils", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Utilities For GraphQL", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -188,3 +188,3 @@ import _ from 'lodash'; | ||
getTypeName(type) { | ||
const regex = /^[a-zA-Z0-9_]+$/; | ||
const regex = /[a-zA-Z0-9_]+$/; | ||
const matches = type.match(regex); | ||
@@ -441,3 +441,4 @@ return matches && matches[0]; | ||
const connectionTypeName = matches[1]; | ||
const connectionType = schema.types[connectionTypeName] || schema.interfaces[connectionTypeName]; | ||
const connectionType = schema.types[connectionTypeName] || | ||
schema.interfaces[connectionTypeName]; | ||
@@ -444,0 +445,0 @@ if (connectionType) { |
168342
2025