Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

urllib

Package Overview
Dependencies
Maintainers
1
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

urllib - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

5

History.md
0.4.4 / 2013-08-10
==================
* handle json response to null when data size is zero
0.4.3 / 2013-08-10

@@ -3,0 +8,0 @@ ==================

12

lib/urllib.js

@@ -253,6 +253,10 @@ /**

if (args.dataType === 'json') {
try {
data = JSON.parse(data);
} catch (e) {
err = e;
if (size === 0) {
data = null;
} else {
try {
data = JSON.parse(data);
} catch (e) {
err = e;
}
}

@@ -259,0 +263,0 @@ }

{
"name": "urllib",
"version": "0.4.3",
"version": "0.4.4",
"description": "Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, cookies and more.",

@@ -5,0 +5,0 @@ "keywords": [ "urllib", "http", "urlopen", "curl", "wget", "request", "https" ],

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