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

eh-api-client

Package Overview
Dependencies
Maintainers
2
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eh-api-client - npm Package Compare versions

Comparing version 0.45.0 to 0.45.1

6

lib/client.js

@@ -85,5 +85,7 @@ var

else if(data instanceof Array) {
url = data.shift();
// no modification to the input URL should be made, so we clone the variable
data = data.slice()
url = data.shift()
url = url.replace(/\?\?/g, function() {
return encodeURIComponent(data.shift());
return encodeURIComponent(data.shift())
});

@@ -90,0 +92,0 @@ }

{
"name": "eh-api-client",
"version": "0.45.0",
"version": "0.45.1",
"description": "Node.js rest client",

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

@@ -25,2 +25,13 @@ var

});
it("should not modify incoming URL when using placeholders", function(done) {
const url = ["/ws/??/??", "item", "id"]
const origUrl = url.slice()
client.get(url, {
test: true
}, function(err, req) {
should.not.exists(err);
url.should.eql(origUrl)
done();
});
});
});
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