Socket
Socket
Sign inDemoInstall

@iteam/hooks

Package Overview
Dependencies
Maintainers
5
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iteam/hooks - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

5

dist/types/useQueryParams.d.ts

@@ -1,2 +0,3 @@

import queryString from 'query-string';
export declare const useQueryParams: () => queryString.OutputParams;
export declare const useQueryParams: () => {
[key: string]: string | string[] | undefined;
};

2

package.json
{
"name": "@iteam/hooks",
"version": "0.5.1",
"version": "0.5.2",
"main": "dist/hooks.cjs.js",

@@ -5,0 +5,0 @@ "module": "dist/hooks.esm.js",

import { useState } from 'react'
import queryString from 'query-string'
export const useQueryParams = () => {
export const useQueryParams = (): {
[key: string]: string | string[] | undefined
} => {
const [queryParams] = useState(() => {

@@ -6,0 +8,0 @@ const params = queryString.parse(window.location.search)

@@ -20,3 +20,3 @@ {

"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
"exclude": ["node_modules", "dist", "**/__tests__/**/*"]
}
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