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.2.1 to 0.2.2

15

lib/SellingPartner.js

@@ -9,3 +9,3 @@ const CustomError = require('./CustomError');

const csv = require('csvtojson');
const fs = require('fs/promises');
const fs = require('fs');
const zlib = require('zlib');

@@ -84,2 +84,13 @@

async _saveFile(content, options){
return new Promise((resolve, reject) => {
if (options.json){
content = JSON.stringify(content);
}
fs.writeFile(options.file, content, (err) => {
err ? reject(err) : resolve();
})
});
}
async refreshAccessToken(){

@@ -315,3 +326,3 @@ let res = await request({

if (options.file){
options.json ? await fs.writeFile(options.file, JSON.stringify(decrypted)) : await fs.writeFile(options.file, decrypted);
await this._saveFile(decrypted, options);
}

@@ -318,0 +329,0 @@ return decrypted;

2

package.json
{
"name": "amazon-sp-api",
"version": "0.2.1",
"version": "0.2.2",
"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