Socket
Socket
Sign inDemoInstall

soda

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

soda - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

6

History.md
2.2.4 / 2011-05-27
==================
* Added support for the `store` accessor
* Fixed case with very long url by utilizing a urlencoded POST request [tszming]
0.2.3 / 2011-03-28

@@ -3,0 +9,0 @@ ==================

23

lib/soda/client.js

@@ -92,7 +92,23 @@ /*!

// Request
var req = client.request('GET'
var req;
// Selenium RC can support POST request: http://svn.openqa.org/fisheye/changelog/selenium-rc/?cs=1898,
// we need to switch to use POST if the URL's is too long (Below I use the Internet Explorer's limit).
// See also: http://jira.openqa.org/browse/SRC-50
if (path.length > 2048 && (this.host + path ).length > 2083) {
postData = this.commandPath(cmd, args).replace('/selenium-server/driver/?', "");
req = client.request('POST'
, path
, { Host: this.host + (this.port ? ':' + this.port : '') });
, { Host: this.host + (this.port ? ':' + this.port : '')
, 'Content-Length': postData.length
, 'Content-Type': 'application/x-www-form-urlencoded'
});
req.write(postData);
} else {
req = client.request('GET'
, path
, { Host: this.host + (this.port ? ':' + this.port : '') });
}
req.on('response', function(res){

@@ -439,2 +455,3 @@ res.body = '';

, 'assertNot' + cmd
, 'store' + cmd
, 'verify' + cmd

@@ -441,0 +458,0 @@ , 'verifyNot' + cmd

2

lib/soda/index.js

@@ -27,2 +27,2 @@

exports.version = '0.2.3';
exports.version = '0.2.4';

@@ -5,6 +5,10 @@ {

"keywords": ["selenium", "saucelabs", "testing", "test", "tests"],
"version": "0.2.3",
"version": "0.2.4",
"author": "TJ Holowaychuk <tj@learnboost.com>",
"main": "./lib/soda/index.js",
"engines": { "node": ">= 0.2.0" }
"engines": { "node": ">= 0.2.0" },
"repository": {
"type": "git",
"url": "git://github.com/LearnBoost/soda.git"
}
}
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