You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

yui3-base

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yui3-base - npm Package Compare versions

Comparing version
0.7.8
to
0.7.9
+29
-7
lib/yui3-io.js

@@ -14,2 +14,7 @@ /**

var _concat = function(uri, data) {
uri += (uri.indexOf('?') === -1 ? '?' : '&') + data;
return uri;
};
var NodeTransport = {

@@ -39,2 +44,6 @@ id: 'nodejs',

var req_url = urlInfo.pathname;
if (urlInfo.search) {
req_url += urlInfo.search;
}
if (config.data) {

@@ -45,10 +54,23 @@ if (Y.Lang.isObject(config.data) && Y.QueryString) {

}
config.headers['Content-Length'] = config.data.length;
config.headers = Y.merge({ 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' }, config.headers);
switch (config.method) {
case 'GET':
case 'HEAD':
case 'DELETE':
req_url = _concat(req_url, config.data);
config.data = '';
Y.log('HTTP' + config.method + ' with data. The querystring is: ' + uri, 'info', 'io');
break;
case 'POST':
case 'PUT':
// If Content-Type is defined in the configuration object, or
// or as a default header, it will be used instead of
// 'application/x-www-form-urlencoded; charset=UTF-8'
config.headers['Content-Length'] = config.data.length;
config.headers = Y.merge({
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
}, config.headers);
break;
}
}
var req_url = urlInfo.pathname;
if (urlInfo.search) {
req_url += urlInfo.search;
}
Y.log('Requesting (' + config.method + '): ' + urlInfo.hostname, 'info', 'nodeio');

@@ -55,0 +77,0 @@ if (http.get) { //0.4.0

+1
-1
{
"version":"0.7.8",
"version":"0.7.9",
"author":"Dav Glass <davglass@gmail.com>",

@@ -4,0 +4,0 @@ "bugs":{