We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a346510 commit 0081494Copy full SHA for 0081494
lib/index.js
@@ -56,7 +56,7 @@
56
* The returned value is Immutable i.e. updating the returned values does not affect the actual params in any way.
57
*/
58
QueryParams.prototype.getAll = function () {
59
- return JSON.parse(JSON.stringify(paramsMap));
+ return JSON.parse(JSON.stringify(paramsMap || null));
60
};
61
62
/**
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "js-queryparams",
3
- "version": "1.0.1",
+ "version": "1.1.0",
4
"description": "A JavaScript library to retrieve the query parameters with cross browser compatibility.",
5
"main": "index.js",
6
"keywords": [
0 commit comments