New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zodash/dom

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zodash/dom - npm Package Compare versions

Comparing version 0.1.20 to 1.0.1

8

CHANGELOG.md

@@ -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 @@

1

lib/router.d.ts
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;

8

lib/router.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc