@zodash/dom
Advanced tools
Comparing version 0.1.20 to 1.0.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.0.1](https://github.com/zcorky/zodash/compare/@zodash/dom@0.1.20...@zodash/dom@1.0.1) (2023-09-04) | ||
**Note:** Version bump only for package @zodash/dom | ||
## [0.1.20](https://github.com/zcorky/zodash/compare/@zodash/dom@0.1.19...@zodash/dom@0.1.20) (2022-09-29) | ||
@@ -8,0 +16,0 @@ |
export declare function getUrl(): string; | ||
export declare function getQuery(key: string): string; | ||
export declare function getQuery(): Record<string, string>; | ||
@@ -3,0 +4,0 @@ export declare function getLocation(): Location; |
@@ -10,4 +10,8 @@ "use strict"; | ||
exports.getUrl = getUrl; | ||
function getQuery() { | ||
return qs.parse(window.location.search); | ||
function getQuery(key) { | ||
const object = qs.parse(window.location.search); | ||
if (key) { | ||
return object[key]; | ||
} | ||
return object; | ||
} | ||
@@ -14,0 +18,0 @@ exports.getQuery = getQuery; |
{ | ||
"name": "@zodash/dom", | ||
"version": "0.1.20", | ||
"version": "1.0.1", | ||
"description": "DOM Utils", | ||
@@ -78,3 +78,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "73166585f7ca0a376be2ac042da5a56369e53ede" | ||
"gitHead": "757a0e5d73e0094a18faa0e9b59c897a00d01d70" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
20953
384
0