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

@bbc/http-transport

Package Overview
Dependencies
Maintainers
22
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bbc/http-transport - npm Package Compare versions

Comparing version 4.4.4 to 4.4.5

2

lib/request.js

@@ -64,3 +64,3 @@ 'use strict';

const delimiter = this.hasBaseQueries() ? '&' : '?';
return `${this._baseUrl}${delimiter}${qs.stringify(this._queries)}`;
return `${this._baseUrl}${delimiter}${qs.stringify(this._queries, { arrayFormat: 'repeat' })}`;
}

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

{
"name": "@bbc/http-transport",
"version": "4.4.4",
"version": "4.4.5",
"description": "A flexible, modular REST client built for ease-of-use and resilience.",

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

@@ -68,6 +68,6 @@ 'use strict';

it('uri-encodes multi-parameter queries', () => {
it('adds multi-parameter queries correctly', () => {
const request = Request.create();
request.baseUrl(HOST).addQuery('a', [1, 2]);
assert.equal(request.getUrl(), HOST + '?a%5B0%5D=1&a%5B1%5D=2');
assert.equal(request.getUrl(), HOST + '?a=1&a=2');
});

@@ -74,0 +74,0 @@ });

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