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.4 to 3.0.5

17

build/schema/print.js
import { isSpecifiedScalarType, print, isSpecifiedDirective } from 'graphql';
function printSchemaWithDirectives(schema) {
const str = Object.keys(schema.getTypeMap())
.filter((k) => !k.match(/^__/))
.reduce((accum, name) => {
const type = schema.getType(name);
if (!type || !type.astNode)
const str = Object.values(schema.getTypeMap())
.filter((k) => !k.name.match(/^__/))
.reduce((accum, type) => {
if (isSpecifiedScalarType(type))
return accum;
return !isSpecifiedScalarType(type)
? (accum += `${print(type.astNode)}\n`)
: accum;
const typeString = type.astNode ? print(type.astNode) : '';
const extensionString = type.extensionASTNodes
? type.extensionASTNodes.map((ast) => print(ast)).join('\n')
: '';
return `${accum}\n${typeString}\n${extensionString}\n`;
}, '');

@@ -14,0 +15,0 @@ return schema.getDirectives().reduce((accum, d) => {

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

"private": false,
"version": "3.0.4",
"version": "3.0.5",
"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