Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-markdown/utils

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-markdown/utils - npm Package Compare versions

Comparing version 1.1.4 to 1.2.0

2

package.json

@@ -8,3 +8,3 @@ {

},
"version": "1.1.4",
"version": "1.2.0",
"license": "MIT",

@@ -11,0 +11,0 @@ "main": "src/index.js",

@@ -159,7 +159,7 @@ const {

function hasDirective(type, directiveName) {
function hasDirective(type, directives) {
if (
typeof type.astNode === "undefined" ||
type.astNode == null ||
typeof directiveName !== "string" ||
typeof directives === "undefined" ||
!Array.isArray(type.astNode.directives)

@@ -170,5 +170,7 @@ ) {

const directiveList = Array.isArray(directives) ? directives : [directives]; // backward_compatibility
return (
type.astNode.directives.findIndex(
(directive) => directive.name.value === directiveName,
type.astNode.directives.findIndex((directive) =>
directiveList.includes(directive.name.value),
) > -1

@@ -361,2 +363,10 @@ );

function isDeprecated(type) {
return (
(hasProperty(type, "isDeprecated") && type.isDeprecated === true) ||
(hasProperty(type, "deprecationReason") &&
typeof type.deprecationReason === "string")
);
}
module.exports = {

@@ -383,2 +393,3 @@ loadSchema,

isListType,
isDeprecated,
printSchema,

@@ -385,0 +396,0 @@ getIntrospectionFieldsList,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc