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

cheerio-httpcli

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cheerio-httpcli - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

lib/cheerio-httpcli.js

@@ -18,3 +18,3 @@ /*jshint node:true, forin:false */

var reHead = new RegExp('<head[\\s>]([\\s\\S]*?)<\\/head>', 'i');
var reCharset = new RegExp('<meta[^>]*[\\s;]+charset\\s*=\\s*["\']?([\\w\\-_]+)["\']', 'i');
var reCharset = new RegExp('<meta[^>]*[\\s;]+charset\\s*=\\s*["\']?([\\w\\-_]+)["\']?', 'i');

@@ -21,0 +21,0 @@ /**

{
"name": "cheerio-httpcli",
"version": "0.1.0",
"version": "0.1.1",
"description": "html client module with cheerio & iconv",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -55,2 +55,6 @@ # cheerio-httpcli - iconvによる文字コード変換とcheerioによるHTMLパースを組み込んだNode.js用HTTPクライアントモジュール

### 0.1.1 (2013-04-11)
* charset=xxxというようにダブル(or シングル)クォーテーションがない場合に文字コードの判定に失敗するケースを修正
### 0.1.0 (2013-03-18)

@@ -57,0 +61,0 @@

@@ -68,3 +68,3 @@ var vows = require('vows');

'it succeeded in http get, convert to utf-8, parse html': function (topic) {
assert.equal(topic('#contact-link').text(), 'お問い合わせ');
assert.equal(topic('#box_info').text().trim(), 'お問い合わせ');
}

@@ -88,2 +88,10 @@ },

},
'encoding: euc-jp(html5)': {
topic: function () {
cli.fetch('http://d.hatena.ne.jp/hotkeyword', this.callback);
},
'it succeeded in http get, convert to utf-8, parse html': function (topic) {
assert.equal(topic('h1').text(), '注目キーワード');
}
},
'encoding: iso-2022-jp': {

@@ -90,0 +98,0 @@ topic: function () {

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