dispatch-node
Advanced tools
Comparing version 0.0.11 to 0.0.12
{ | ||
"name": "dispatch-node", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "The node wrapper for the dispatch API.", | ||
@@ -33,3 +33,4 @@ "main": "lib/dispatch.js", | ||
"axios": "^0.21.1" | ||
} | ||
}, | ||
"type": "module" | ||
} |
@@ -28,15 +28,2 @@ # Dispatch Sender Node.js Library | ||
Or using ES modules and `async`/`await`: | ||
```js | ||
import Dispatch from "dispatch-node"; | ||
const dispatch = new Dispatch("key_EHKD5tbatzX59DArnTBjhr46G5n1f4aJkvwPByft"); | ||
(async () => { | ||
const response = await dispatch.deliveries.list(); | ||
console.log(response.data); | ||
})(); | ||
``` | ||
### Using Promises | ||
@@ -43,0 +30,0 @@ |
Sorry, the diff of this file is not supported yet
Yes
2251910
76