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

@magidoc/rollup-plugin-gql-schema

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magidoc/rollup-plugin-gql-schema - npm Package Compare versions

Comparing version 3.0.5 to 3.0.6

9

build/schema/print.js

@@ -1,4 +0,11 @@

import { isSpecifiedScalarType, print, isSpecifiedDirective } from 'graphql';
import { printSchema, isSpecifiedScalarType, print, isSpecifiedDirective } from 'graphql';
function printSchemaWithDirectives(schema) {
const sdlWithDirectives = printAstNodesWithDirectives(schema);
// Means that there are no AST nodes present
if (sdlWithDirectives.trim().length === 0)
return printSchema(schema);
return sdlWithDirectives;
}
function printAstNodesWithDirectives(schema) {
const str = Object.values(schema.getTypeMap())

@@ -5,0 +12,0 @@ .filter((k) => !k.name.match(/^__/))

2

package.json

@@ -5,3 +5,3 @@ {

"private": false,
"version": "3.0.5",
"version": "3.0.6",
"type": "module",

@@ -8,0 +8,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

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