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

amazon-sp-api

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amazon-sp-api - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

19

lib/Signer.js

@@ -34,3 +34,20 @@ const crypto = require('crypto-js');

_constructEncodedQueryString(query){
return qs.stringify(query);
if (query){
query = qs.stringify(query, {arrayFormat:'comma'});
let encoded_query_obj = {};
let query_params = query.split('&');
query_params.map((query_param) => {
let param_key_value = query_param.split('=');
encoded_query_obj[param_key_value[0]] = param_key_value[1];
});
encoded_query_obj = this._sortQuery(encoded_query_obj);
let encoded_query_arr = [];
for (let key in encoded_query_obj){
encoded_query_arr.push(key + '=' + encoded_query_obj[key]);
}
if (encoded_query_arr.length){
return encoded_query_arr.join('&');
}
}
return '';
}

@@ -37,0 +54,0 @@

2

package.json
{
"name": "amazon-sp-api",
"version": "0.1.0",
"version": "0.1.1",
"description": "Amazon Selling Partner API client",

@@ -5,0 +5,0 @@ "main": "index.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