Comparing version 0.0.1 to 0.0.2
@@ -233,3 +233,2 @@ /** | ||
let attr = res.Product[0].AttributeSets[0]['ns2:ItemAttributes'][0] | ||
console.log(attr); | ||
return Object.assign(ret, { | ||
@@ -236,0 +235,0 @@ lang: attr['$']['xml:lang'], |
@@ -12,3 +12,3 @@ { | ||
"homepage": "https://github.com/dominhhai/mws-sdk", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"author": { | ||
@@ -15,0 +15,0 @@ "name": "Eibbor Srenduas", |
@@ -1,23 +0,26 @@ | ||
mws-sdk-promises | ||
imws | ||
====== | ||
Originally forked from [ticadia/mws-sdk](https://github.com/ticadia/mws-sdk). | ||
Originally forked from [vedmalex/mws-sdk](https://github.com/vedmalex/mws-sdk). | ||
Why forked? | ||
------------- | ||
The response object made by `xml2js` is | ||
- So looooooong | ||
- Un-clean `~~~~` | ||
- Hard to track ...00.aa444 | ||
- Tired to access =>.=>.=>.=> | ||
What is done: | ||
------------- | ||
- It is uses [request](https://www.npmjs.com/package/request). it is more flexible and there is no eventEmitter syntax. | ||
- I fix it with better response format!!! | ||
- Promises to provide generic async support. | ||
- I've add some new requests from updated Amazone API. | ||
Installation | ||
-------- | ||
``` | ||
$ npm i -S imws | ||
``` | ||
- I fix it with better set params ability... so it now looks niceier!!! | ||
Use it. Contriburte it. | ||
it can be seamlesly used in ES2015/2016 way using [babel.js](https://babeljs.io/). | ||
with new javascript code features like `yield` or `async` `wait` to put some sugar on your code. | ||
Examples | ||
@@ -29,3 +32,3 @@ -------- | ||
```javascript | ||
var MWS = require('mws-sdk-promises'), | ||
var MWS = require('imws'), | ||
client = new MWS.Client( | ||
@@ -32,0 +35,0 @@ 'accessKeyId', |
118
62012
1469