New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@radio-retail/api-client

Package Overview
Dependencies
Maintainers
3
Versions
217
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radio-retail/api-client - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

15

dist/index.js
const axios = require('axios');
const qs = require('qs');
const clients = require('./routes/clients');

@@ -27,2 +29,6 @@

const paramSerialiserConfig = {
arrayFormat: 'repeat',
indices: false
};
const instance = axios.create({

@@ -35,2 +41,11 @@ baseURL: '/api',

Expires: '0'
},
paramsSerializer: params => {
const newParams = Object.keys(params).reduce((acc, key) => {
if (params[key] === null) return acc;
return { ...acc,
[key]: params[key]
};
}, {});
return qs.stringify(newParams, paramSerialiserConfig);
}

@@ -37,0 +52,0 @@ });

7

package.json
{
"name": "@radio-retail/api-client",
"description": "Radio Retail API client",
"version": "3.4.0",
"version": "3.5.0",
"main": "dist/index.js",

@@ -36,3 +36,6 @@ "scripts": {

]
},
"dependencies": {
"qs": "^6.9.4"
}
}
}
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