Comparing version 6.0.1 to 6.0.2
# Changelog | ||
## v6.0.2 | ||
- Updated deps in package.json. | ||
## v6.0.1 | ||
@@ -4,0 +7,0 @@ - Updated deps in package.json. |
@@ -12,6 +12,6 @@ 'use strict'; | ||
const pth = require('path'); | ||
const showdown = require('showdown'); | ||
const MarkdownIt = require('markdown-it'); | ||
const xml2js = require('xml2js'); | ||
const yaspellerApi = require('yandex-speller'); | ||
const markdownConverter = new showdown.Converter(); | ||
const md = new MarkdownIt(); | ||
const printDebug = require('../lib/debug').print; | ||
@@ -61,3 +61,3 @@ const MAX_LEN_TEXT = 10000; // Max length of text for Yandex.Speller API | ||
if (format === 'markdown') { | ||
text = markdownConverter.makeHtml(text); | ||
text = md.render(text); | ||
} | ||
@@ -94,5 +94,5 @@ | ||
if (error) { | ||
cb(false, [true, error]); | ||
cb(null, [true, error]); | ||
} else { | ||
cb(false, [false, body]); | ||
cb(null, [false, body]); | ||
} | ||
@@ -315,3 +315,3 @@ }, apiSettings); | ||
callback && callback(err, data, originalText); | ||
cb(false, [err, data]); | ||
cb(null, [err, data]); | ||
}, settings); | ||
@@ -318,0 +318,0 @@ }); |
@@ -13,3 +13,3 @@ { | ||
"description": "Search tool typos in the text, files and websites", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"license": "MIT", | ||
@@ -36,3 +36,3 @@ "homepage": "https://github.com/hcodes/yaspeller", | ||
"dependencies": { | ||
"async": "^2.6.3", | ||
"async": "^3.1.0", | ||
"chalk": "^2.4.2", | ||
@@ -46,5 +46,5 @@ "commander": "^3.0.0", | ||
"isutf8": "^2.0.3", | ||
"markdown-it": "^10.0.0", | ||
"minimatch": "^3.0.4", | ||
"request": "^2.88.0", | ||
"showdown": "^1.9.0", | ||
"strip-json-comments": "^3.0.0", | ||
@@ -51,0 +51,0 @@ "xml2js": "^0.4.19", |
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
87929
+ Addedmarkdown-it@^10.0.0
+ Addedasync@3.2.6(transitive)
+ Addedentities@2.0.3(transitive)
+ Addedlinkify-it@2.2.0(transitive)
+ Addedmarkdown-it@10.0.0(transitive)
+ Addedmdurl@1.0.1(transitive)
+ Addeduc.micro@1.0.6(transitive)
- Removedshowdown@^1.9.0
- Removedansi-regex@4.1.1(transitive)
- Removedasync@2.6.4(transitive)
- Removedcamelcase@5.3.1(transitive)
- Removedcliui@5.0.0(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removedemoji-regex@7.0.3(transitive)
- Removedfind-up@3.0.0(transitive)
- Removedget-caller-file@2.0.5(transitive)
- Removedis-fullwidth-code-point@2.0.0(transitive)
- Removedlocate-path@3.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-locate@3.0.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedpath-exists@3.0.0(transitive)
- Removedrequire-directory@2.1.1(transitive)
- Removedrequire-main-filename@2.0.0(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedshowdown@1.9.1(transitive)
- Removedstring-width@3.1.0(transitive)
- Removedstrip-ansi@5.2.0(transitive)
- Removedwhich-module@2.0.1(transitive)
- Removedwrap-ansi@5.1.0(transitive)
- Removedy18n@4.0.3(transitive)
- Removedyargs@14.2.3(transitive)
- Removedyargs-parser@15.0.3(transitive)
Updatedasync@^3.1.0