Comparing version 1.7.0 to 1.7.1
@@ -7,2 +7,3 @@ 'use strict'; | ||
var cheerio = require('cheerio'); | ||
var resolve = require('url').resolve; | ||
@@ -58,5 +59,5 @@ module.exports = function () { | ||
if (item.label.toLowerCase() === word) { | ||
// show_cat: false, link: "/dictionary/sherry" | ||
// show_cat: true, link: "http://www.spanishcentral.com/translate/sherry" | ||
var link = (item.show_cat ? '' : HOST) + item.link; | ||
// link: "/dictionary/sherry" | ||
// link: "http://www.spanishcentral.com/translate/sherry" | ||
var link = resolve(HOST, item.link); | ||
arr.push(link); | ||
@@ -63,0 +64,0 @@ } |
@@ -0,1 +1,6 @@ | ||
## 1.7.1 (June 10, 2016) | ||
### Webster | ||
- fix the issue resloving incorrect URL link ([#5](https://github.com/zlargon/voc/issues/5)) | ||
## 1.7.0 (June 2, 2016) | ||
@@ -8,3 +13,3 @@ | ||
- search and check the words before download the audio | ||
- generate incorrect url in particular case | ||
- fix issue generating incorrect url in particular case | ||
@@ -11,0 +16,0 @@ ### Collins |
{ | ||
"name": "voc-cli", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "download and play English vocabularies' audio via command line", | ||
@@ -5,0 +5,0 @@ "main": "bin/getAudio.js", |
@@ -28,5 +28,5 @@ # voc | ||
## Changed History | ||
## Change Log | ||
[see CHANGELOG](https://github.com/zlargon/voc/blob/master/CHANGELOG.md) | ||
Please see [CHANGELOG](https://github.com/zlargon/voc/blob/master/CHANGELOG.md). | ||
@@ -33,0 +33,0 @@ ## Installation |
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
10
41652
16
951