Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webtorrent/bittorrent-tracker
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v9.0.2
Choose a base ref
...
head repository: webtorrent/bittorrent-tracker
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v9.0.3
Choose a head ref
  • 5 commits
  • 2 files changed
  • 2 contributors

Commits on Feb 21, 2017

  1. Update common-node.js

    i was just reading the source and noticed this, if there is some reason it won't work please let me know
    devsnek authored Feb 21, 2017
    Copy the full SHA
    9962d31 View commit details
  2. Update common-node.js

    devsnek authored Feb 21, 2017
    Copy the full SHA
    e771c0f View commit details

Commits on Mar 8, 2017

  1. Copy the full SHA
    714400a View commit details
  2. Merge pull request #209 from GusCaplan/patch-1

    Update common-node.js
    feross authored Mar 8, 2017
    Copy the full SHA
    173161c View commit details
  3. 9.0.3

    feross committed Mar 8, 2017
    Copy the full SHA
    13c4e88 View commit details
Showing with 3 additions and 10 deletions.
  1. +2 −9 lib/common-node.js
  2. +1 −1 package.json
11 changes: 2 additions & 9 deletions lib/common-node.js
Original file line number Diff line number Diff line change
@@ -52,11 +52,7 @@ exports.toUInt32 = toUInt32
* @return {Object}
*/
exports.querystringParse = function (q) {
var saved = querystring.unescape
querystring.unescape = unescape // global
var ret = querystring.parse(q)
querystring.unescape = saved
return ret
return querystring.parse(q, null, null, { decodeURIComponent: unescape })
}

/**
@@ -66,13 +62,10 @@ exports.querystringParse = function (q) {
* @return {string}
*/
exports.querystringStringify = function (obj) {
var saved = querystring.escape
querystring.escape = escape // global
var ret = querystring.stringify(obj)
var ret = querystring.stringify(obj, null, null, { encodeURIComponent: escape })
ret = ret.replace(/[@*/+]/g, function (char) {
// `escape` doesn't encode the characters @*/+ so we do it manually
return '%' + char.charCodeAt(0).toString(16).toUpperCase()
})
querystring.escape = saved
return ret
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bittorrent-tracker",
"description": "Simple, robust, BitTorrent tracker (client & server) implementation",
"version": "9.0.2",
"version": "9.0.3",
"author": {
"name": "Feross Aboukhadijeh",
"email": "feross@feross.org",