Skip to content

Commit 0081494

Browse files
authored
Release 1.1.0
1 parent a346510 commit 0081494

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
* The returned value is Immutable i.e. updating the returned values does not affect the actual params in any way.
5757
*/
5858
QueryParams.prototype.getAll = function () {
59-
return JSON.parse(JSON.stringify(paramsMap));
59+
return JSON.parse(JSON.stringify(paramsMap || null));
6060
};
6161

6262
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-queryparams",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"description": "A JavaScript library to retrieve the query parameters with cross browser compatibility.",
55
"main": "index.js",
66
"keywords": [

0 commit comments

Comments
 (0)