@edgeandnode/common
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,2 +5,3 @@ 'use strict'; | ||
var gql = require('graphql-tag'); | ||
var graphql = require('graphql'); | ||
@@ -11,2 +12,3 @@ var pluralize = require('pluralize'); | ||
var gql__default = /*#__PURE__*/_interopDefaultLegacy(gql); | ||
var pluralize__default = /*#__PURE__*/_interopDefaultLegacy(pluralize); | ||
@@ -53,5 +55,11 @@ | ||
.filter((query) => query !== null); | ||
return `${typeQueries.join('\n')}`; | ||
const query = gql__default['default'] ` | ||
{ | ||
${typeQueries.join('\n')} | ||
} | ||
`; | ||
return graphql.print(query); | ||
} | ||
catch (e) { | ||
console.log(e); | ||
return '{\n}'; | ||
@@ -58,0 +66,0 @@ } |
{ | ||
"name": "@edgeandnode/common", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Common Edge & Node utils and types", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9206
72