@dww/remark-plugin-graphql
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -53,3 +53,6 @@ const visit = require('unist-util-visit'); | ||
function attacher({schemaPath} = {}) { | ||
function attacher(opts = {}) { | ||
console.log(Object.keys(opts)); | ||
const {schemaPath, markdownOffset = 0} = opts; | ||
if (!schemaPath) { | ||
@@ -85,3 +88,3 @@ throw new Error('Missing required field `schemaPath` in config'); | ||
name: 'Invalid GraphQL query', | ||
locationOffset: {...start, line: start.line + 1}, | ||
locationOffset: {...start, line: start.line + 1 + markdownOffset}, | ||
body: query, | ||
@@ -88,0 +91,0 @@ }, |
{ | ||
"name": "@dww/remark-plugin-graphql", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
4881599
94