Skip to content

Commit c18276d

Browse files
Merge pull request #84 from Dwolla/DEV-926--form-urlencoded-update
Dev 926 form urlencoded update
2 parents 71fd0e7 + 4f2dac9 commit c18276d

File tree

4 files changed

+22
-16
lines changed

4 files changed

+22
-16
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/Dwolla
101101

102102
## License
103103

104-
The gem is available as open source under the terms of the [MIT License](https://github.com/Dwolla/dwolla-v2-node).
104+
The package is available as open source under the terms of the [MIT License](https://github.com/Dwolla/dwolla-v2-node).
105105

106106
## Changelog
107+
108+
- **3.4.0** Update `form-urlencoded` version to allow `{ skipIndex: true, skipBracket: true}` options to be passed in. Thanks [@MarcMouallem](https://github.com/MarcMouallem)!
107109
- **3.3.0** Remove lodash as a dependency and replace with `Object.assign`
108110
- **3.2.3** Update version and changelog
109111
- **3.2.2** Update unit test involving token. Thanks [@philting](https://github.com/philting)!

package-lock.json

Lines changed: 13 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dwolla-v2",
3-
"version": "3.3.0",
3+
"version": "3.4.0",
44
"description": "Dwolla V2 API client",
55
"main": "src/index.js",
66
"files": [
@@ -32,7 +32,7 @@
3232
},
3333
"dependencies": {
3434
"bluebird": "^3.5.1",
35-
"form-urlencoded": "^3.0.1",
35+
"form-urlencoded": "^4.5.1",
3636
"invariant": "^2.2.4",
3737
"is-stream": "^1.1.0",
3838
"lodash.snakecase": "^4.1.1",

src/dwolla/Token.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ function getUrl(token, suppliedPath, suppliedQuery) {
4141
suppliedPath.replace(/^https?:\/\/[^\/]*\//, "")
4242
].join("/");
4343
}
44-
var query = formurlencoded(rejectEmptyKeys(suppliedQuery || {}));
44+
var query = formurlencoded(rejectEmptyKeys(suppliedQuery), {
45+
skipIndex: true,
46+
skipBracket: true
47+
});
4548
return query ? [url, query].join("?") : url;
4649
}
4750

0 commit comments

Comments
 (0)