diff -Nru node-querystringify-0.0.3/debian/changelog node-querystringify-0.0.4/debian/changelog --- node-querystringify-0.0.3/debian/changelog 2016-02-02 19:01:10.000000000 +0000 +++ node-querystringify-0.0.4/debian/changelog 2016-11-05 10:18:54.000000000 +0000 @@ -1,3 +1,10 @@ +node-querystringify (0.0.4-1) unstable; urgency=medium + + * new upstream version + * debian/control: bump standard to 3.9.8 (no changes) + + -- Thorsten Alteholz Sat, 05 Nov 2016 11:18:54 +0100 + node-querystringify (0.0.3-2) unstable; urgency=low * better adapt to node.js policy diff -Nru node-querystringify-0.0.3/debian/control node-querystringify-0.0.4/debian/control --- node-querystringify-0.0.3/debian/control 2016-02-02 19:05:12.000000000 +0000 +++ node-querystringify-0.0.4/debian/control 2016-11-05 10:18:54.000000000 +0000 @@ -7,7 +7,7 @@ debhelper (>= 9) , dh-buildinfo , nodejs -Standards-Version: 3.9.6 +Standards-Version: 3.9.8 Homepage: https://github.com/unshiftio/querystringify Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-querystringify.git Vcs-Browser: https://anonscm.debian.org/gitweb/?p=pkg-javascript/node-querystringify.git diff -Nru node-querystringify-0.0.3/index.js node-querystringify-0.0.4/index.js --- node-querystringify-0.0.3/index.js 2015-04-29 14:54:04.000000000 +0000 +++ node-querystringify-0.0.4/index.js 2016-08-15 07:51:46.000000000 +0000 @@ -10,7 +10,7 @@ * @api public */ function querystring(query) { - var parser = /([^=?&]+)=([^&]*)/g + var parser = /([^=?&]+)=?([^&]*)/g , result = {} , part; diff -Nru node-querystringify-0.0.3/.npmignore node-querystringify-0.0.4/.npmignore --- node-querystringify-0.0.3/.npmignore 1970-01-01 00:00:00.000000000 +0000 +++ node-querystringify-0.0.4/.npmignore 2016-08-15 07:51:46.000000000 +0000 @@ -0,0 +1,3 @@ +coverage/ +test.js +.* diff -Nru node-querystringify-0.0.3/package.json node-querystringify-0.0.4/package.json --- node-querystringify-0.0.3/package.json 2015-04-29 14:54:04.000000000 +0000 +++ node-querystringify-0.0.4/package.json 2016-08-15 07:51:46.000000000 +0000 @@ -1,13 +1,13 @@ { "name": "querystringify", - "version": "0.0.3", + "version": "0.0.4", "description": "Querystringify - Small, simple but powerful query string parser.", "main": "index.js", "scripts": { - "test": "mocha --reporter spec --ui bdd test.js", - "watch": "mocha --watch --reporter spec --ui bdd test.js", - "coverage": "istanbul cover ./node_modules/.bin/_mocha -- --reporter spec --ui bdd test.js", - "test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --ui bdd test.js" + "test": "mocha test.js", + "watch": "mocha --watch test.js", + "coverage": "istanbul cover _mocha -- test.js", + "test-travis": "istanbul cover _mocha --report lcovonly -- test.js" }, "repository": { "type": "git", @@ -31,9 +31,9 @@ }, "homepage": "https://github.com/unshiftio/querystringify", "devDependencies": { - "assume": "1.2.x", - "istanbul": "0.3.x", - "mocha": "2.2.x", - "pre-commit": "1.0.x" + "assume": "1.4.x", + "istanbul": "0.4.x", + "mocha": "2.4.x", + "pre-commit": "1.1.x" } } diff -Nru node-querystringify-0.0.3/README.md node-querystringify-0.0.4/README.md --- node-querystringify-0.0.3/README.md 2015-04-29 14:54:04.000000000 +0000 +++ node-querystringify-0.0.4/README.md 2016-08-15 07:51:46.000000000 +0000 @@ -29,14 +29,16 @@ ### qs.parse() -The parse method transforms a given query string in to an object. It does not -care if your query string if prefixed with a `?` or not. It just extracts the -parts between the `=` and `&`: +The parse method transforms a given query string in to an object. Parameters +without values are set to empty strings. It does not care if your query string +is prefixed with a `?` or not. It just extracts the parts between the `=` and +`&`: ```js qs.parse('?foo=bar'); // { foo: 'bar' } qs.parse('foo=bar'); // { foo: 'bar' } qs.parse('foo=bar&bar=foo'); // { foo: 'bar', bar: 'foo' } +qs.parse('foo&bar=foo'); // { foo: '', bar: 'foo' } ``` ### qs.stringify() @@ -50,6 +52,7 @@ qs.stringify({ foo: bar }); // foo=bar qs.stringify({ foo: bar }, true); // ?foo=bar qs.stringify({ foo: bar }, '&'); // &foo=bar +qs.stringify({ foo: '' }, '&'); // &foo= ``` ## License diff -Nru node-querystringify-0.0.3/test.js node-querystringify-0.0.4/test.js --- node-querystringify-0.0.3/test.js 2015-04-29 14:54:04.000000000 +0000 +++ node-querystringify-0.0.4/test.js 2016-08-15 07:51:46.000000000 +0000 @@ -31,6 +31,10 @@ assume(qs.stringify({})).equals(''); }); + it('works with object keys with empty string values', function () { + assume(qs.stringify({ foo: '' })).equals('foo='); + }) + it('works with nulled objects', function () { var obj = Object.create(null); @@ -58,5 +62,14 @@ assume(obj.foo).equals('bar'); assume(obj.shizzle).equals('mynizzle'); }); + + it('works with querystring parameters without values', function () { + var obj = qs.parse('?foo&bar=&shizzle=mynizzle'); + + assume(obj).is.a('object'); + assume(obj.foo).equals(''); + assume(obj.bar).equals(''); + assume(obj.shizzle).equals('mynizzle'); + }) }); }); diff -Nru node-querystringify-0.0.3/.travis.yml node-querystringify-0.0.4/.travis.yml --- node-querystringify-0.0.3/.travis.yml 2015-04-29 14:54:04.000000000 +0000 +++ node-querystringify-0.0.4/.travis.yml 2016-08-15 07:51:46.000000000 +0000 @@ -1,25 +1,19 @@ +sudo: false language: node_js node_js: + - "5" + - "4" - "0.12" - - "0.11" - "0.10" - - "0.9" - "0.8" - - "iojs-v1.1" - - "iojs-v1.0" before_install: - - "npm install -g npm@1.4.x" + - 'if [ "${TRAVIS_NODE_VERSION}" == "0.8" ]; then npm install -g npm@2.14.15; fi' script: - "npm run test-travis" after_script: - - "npm install coveralls@2.11.x && cat coverage/lcov.info | coveralls" + - "npm install coveralls@2 && cat coverage/lcov.info | coveralls" matrix: fast_finish: true - allow_failures: - - node_js: "0.11" - - node_js: "0.9" - - node_js: "iojs-v1.1" - - node_js: "iojs-v1.0" notifications: irc: channels: