Skip to content

Commit 0d5dbf1

Browse files
authored
Update restler to patched version (#45)
* Update restler dependency Restler looks to be abandoned so we'll need to eventually rewrite the client. Until then we're using a forked version that has the known vulnerabilities patched. * Update test call * Revert to an older version of nodeunit New versions of nodeunit don't support the versions of node that we want to continue to support. * Update readme * Update link * Update Readme * Update URL
1 parent f6733a5 commit 0d5dbf1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,10 @@ api.send({
196196

197197
```javascript
198198
var api = require('sendwithus')('API_KEY');
199-
api.customersUpdateOrCreate({ email: '[email protected]', data: { name: 'Bob' } }, callback);
199+
api.customersUpdateOrCreate({
200+
201+
locale: 'fr-CA'
202+
}, callback);
200203
```
201204

202205
### Delete a Customer
@@ -395,7 +398,7 @@ npm test
395398

396399
### Enable Debug Mode
397400

398-
Debug mode prints out the underlying request information as well as the data payload that gets sent to Sendwithus. You will most likely find this information in your logs. To enable it, simply put `debug=true` as a parameter when instantiating the API object. Use the debug mode to compare the data payload getting sent to [Sendwithus' API docs](https://www.sendwithus.com/docs/api "Official Sendwithus API Docs").
401+
Debug mode prints out the underlying request information as well as the data payload that gets sent to Sendwithus. You will most likely find this information in your logs. To enable it, simply put `debug=true` as a parameter when instantiating the API object. Use the debug mode to compare the data payload getting sent to [Sendwithus' API docs](https://support.sendwithus.com/docs/api "Official Sendwithus API Docs").
399402

400403
```javascript
401404
var api = require('sendwithus')('API_KEY', debug=true);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendwithus",
3-
"version": "4.3.0",
3+
"version": "4.3.1",
44
"author": "Sendwithus <[email protected]>",
55
"description": "Sendwithus.com Node.js client",
66
"main": "index.js",
@@ -29,7 +29,7 @@
2929
"transactional"
3030
],
3131
"dependencies": {
32-
"restler": "~3.4.0"
32+
"restler": "git://github.com/sendwithus/restler#3.1.1"
3333
},
3434
"devDependencies": {
3535
"nodeunit": "^0.9.1"

0 commit comments

Comments
 (0)