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

expedia

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expedia - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

14

lib/expedia.js

@@ -11,3 +11,3 @@ /**

module.exports = function (options) {
module.exports = function (options, sendAsREST) {

@@ -17,2 +17,3 @@ // development and production ean endpoints

ProdBaseUrl = "http://api.ean.com/ean-services/rs/hotel/v3/",
sendAsREST = sendAsREST || false,
defaults = {

@@ -63,4 +64,11 @@ cid : null,

customer = querystring.stringify(customer);
var xml = querystring.stringify({"xml" : parser.toXML(parameters)});
return customer +"&json&" + xml;
var paramsAsString = customer +"&json&";
if (sendAsREST){
paramsAsString += querystring.stringify(parameters);
}
else {
paramsAsString += querystring.stringify({"xml" : parser.toXML(parameters)});
}
return paramsAsString;
}

@@ -67,0 +75,0 @@

{
"name": "expedia",
"version": "0.0.2",
"version": "0.0.3",
"description": "simple wrapper around the expedia EAN api",

@@ -5,0 +5,0 @@ "main": "lib/expedia.js",

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