Skip to content

Commit

Permalink
Merge pull request #125 from bhushankumarl/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
Bhushankumar L authored Feb 9, 2020
2 parents 63c411f + 07dfbac commit 731b0eb
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 16 deletions.
29 changes: 20 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
0.0.26
- Bug Fix CSV Multiline issue
- Correct TypeScript usage

0.0.25
- Modify Travis version to check up to node 12
- Added proxy agent
- Modify test cases to use host to cross across different region
- Add example for the read stream
- Add example for the feeds upload

0.0.24
- Add Subscription in Typescript definition
- Correct Documentation
- Allow user to change response type into XML format
- Allow user to change content type for request

0.0.23
- Bug Fix for Feed Result charset

Expand All @@ -21,7 +32,7 @@
- Add support for RequestReport API
- Add example for GetMyFeesEstimate in Products
- Add force check for the XML string

0.0.19
- Correct lint and increase test case timeout
- Added Status Code in Error Response.
Expand Down Expand Up @@ -51,8 +62,8 @@

0.0.15
- Bug fixed ResponseMetadata (RequestId) in success response
- Added throttling details in non-xml response
- Added throttling details in non-xml response

0.0.14
- Clean code
- Added typeScript example of reports
Expand Down Expand Up @@ -86,22 +97,22 @@

0.0.9 July 31, 2017
- Added ResponseMetadata (RequestId) in success response

0.0.8 July 29, 2017
- Matching keywords, Get Report List, Get Report

0.0.7 July 19, 2017
- Simplify JSON Object, Added Debug Module
- Add Example for Get Matching Product and Get Matching Product for Multiple ASIN

0.0.6 July 14, 2017
- Add Orders API, Feeds API, Finances API, FulfillmentInboundShipment API, FulfillmentInventory API

0.0.5 July 14, 2017
- Add Products API, Added Check for Node 7

0.0.2 July 13, 2017
- Update request pattern

0.0.1 July 13, 2017
- Initial release with Sellers API
- Initial release with Sellers API
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var amazonMws = require('amazon-mws')('AWS_ACCESS_KEY_ID','AWS_SECRET_ACCESS_KEY

## Configuration Using TypeScript
```typescript
import * as MwsApi from 'amazon-mws';
import MwsApi from 'amazon-mws';

const amazonMws = new MwsApi();
amazonMws.setApiKey(accessKey, accessSecret);
Expand Down
2 changes: 1 addition & 1 deletion examples/typeScript/reports/getReport.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const accessKey = process.env.AWS_ACCESS_KEY_ID || 'YOUR_KEY';
const accessSecret = process.env.AWS_SECRET_ACCESS_KEY || 'YOUR_SECRET';

import * as MwsApi from 'amazon-mws';
import MwsApi from 'amazon-mws';

const amazonMws = new MwsApi();
amazonMws.setApiKey(accessKey, accessSecret);
Expand Down
2 changes: 1 addition & 1 deletion examples/typeScript/reports/getReportList.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const accessKey = process.env.AWS_ACCESS_KEY_ID || 'YOUR_KEY';
const accessSecret = process.env.AWS_SECRET_ACCESS_KEY || 'YOUR_SECRET';

import * as MwsApi from 'amazon-mws';
import MwsApi from 'amazon-mws';

const amazonMws = new MwsApi();
amazonMws.setApiKey(accessKey, accessSecret);
Expand Down
5 changes: 2 additions & 3 deletions lib/AmazonMwsResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,8 @@ AmazonMwsResource.prototype = {
trim: true
};

if (responseString.includes('\n\n')) {
responseString = responseString.split('\n\n')[1];
}
// Remove all instances of double newlines
responseString = responseString.replace(/\n\n/g, '');

csv.fromString(responseString, options)
.on('data', function (value) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "amazon-mws",
"version": "0.0.25",
"version": "0.0.26",
"description": "Amazon MWS API wrapper",
"keywords": [
"Amazon MWS",
Expand Down

0 comments on commit 731b0eb

Please sign in to comment.