New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

graphql-markdown

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-markdown - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

32

package.json
{
"name": "graphql-markdown",
"version": "2.1.0",
"version": "2.2.0",
"description": "Generate documentation for your GraphQL schema in Markdown",

@@ -13,19 +13,37 @@ "main": "src/index.js",

},
"files": [
"src",
"yarn.lock"
],
"scripts": {
"coverage": "nyc report --reporter=text-lcov | coveralls",
"format": "npm run format:prettier && npm run format:standard",
"format:prettier": "prettier --write --no-semi --single-quote **/*.js",
"format:standard": "npm run lint:fix",
"lint": "standard --verbose | snazzy",
"lint:fix": "standard --verbose --fix | snazzy",
"test": "npm run lint"
"test": "npm run lint && npm run test:coverage",
"test:coverage": "nyc ava",
"test:only": "ava",
"test:update": "ava --update-snapshot"
},
"pre-commit": "lint",
"pre-commit": [
"format",
"lint"
],
"dependencies": {
"graphql": "^0.9.2",
"graphql": "^0.11.7",
"minimist": "^1.2.0",
"node-fetch": "^1.6.3",
"resolve-from": "^2.0.0"
"node-fetch": "^1.7.1",
"resolve-from": "^4.0.0"
},
"devDependencies": {
"ava": "^0.22.0",
"coveralls": "^3.0.0",
"nyc": "^11.2.1",
"pre-commit": "^1.2.2",
"prettier": "^1.7.4",
"snazzy": "^7.0.0",
"standard": "^10.0.1"
"standard": "^10.0.2"
}
}

@@ -11,3 +11,7 @@ 'use strict'

return new Promise((resolve, reject) => {
fs.readFile(filename, 'utf8', (err, data) => err ? reject(err) : resolve(data))
fs.readFile(
filename,
'utf8',
(err, data) => (err ? reject(err) : resolve(data))
)
})

@@ -34,3 +38,5 @@ }

body: JSON.stringify({ query: graphql.introspectionQuery })
}).then(res => res.json()).then(result => result.data)
})
.then(res => res.json())
.then(result => result.data)
}

@@ -60,3 +66,5 @@

if (!graphqlPath) {
throw new Error('Could not import the `graphql` instance used by the given schema')
throw new Error(
'Could not import the `graphql` instance used by the given schema'
)
}

@@ -77,3 +85,3 @@ const graphql = require(graphqlPath)

`Schema not found in ${schemaModule} - check that you are exporting ` +
`an instance of GraphQLSchema or the result of an introspection query`
`an instance of GraphQLSchema or the result of an introspection query`
)

@@ -80,0 +88,0 @@ }

@@ -46,3 +46,7 @@ 'use strict'

printer('<tr>')
printer(`<td colspan="2" valign="top"><strong>${field.name}</strong>${field.isDeprecated ? ' ⚠️' : ''}</td>`)
printer(
`<td colspan="2" valign="top"><strong>${field.name}</strong>${field.isDeprecated
? ' ⚠️'
: ''}</td>`
)
printer(`<td valign="top">${renderType(field.type)}</td>`)

@@ -158,3 +162,7 @@ if (field.description || field.isDeprecated) {

printer('<tr>')
printer(`<td valign="top"><strong>${value.name}</strong>${value.isDeprecated ? ' ⚠️' : ''}</td>`)
printer(
`<td valign="top"><strong>${value.name}</strong>${value.isDeprecated
? ' ⚠️'
: ''}</td>`
)
if (value.description || value.isDeprecated) {

@@ -161,0 +169,0 @@ printer('<td>')

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