Socket
Socket
Sign inDemoInstall

use-query-params

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-query-params - npm Package Compare versions

Comparing version 2.0.0-rc.0 to 2.0.0-rc.1

adapters/reach/package.json

2

dist/index.cjs.js

@@ -441,3 +441,3 @@ "use strict";

if (navigate) {
if (updateType == null ? void 0 : updateType.startsWith("replace")) {
if (typeof updateType === "string" && updateType.startsWith("replace")) {
adapter.replace(newLocation);

@@ -444,0 +444,0 @@ } else {

{
"name": "use-query-params",
"version": "2.0.0-rc.0",
"version": "2.0.0-rc.1",
"description": "React Hook for managing state in URL query parameters with easy serialization.",

@@ -92,4 +92,4 @@ "main": "./index.cjs.js",

},
"gitHead": "67964960ff04313bddc35eda3a4e92456249bd83",
"gitHead": "443df91b390fe0503bfbe6a437e1b762a70502c9",
"types": "./index.d.ts"
}

@@ -72,3 +72,3 @@ import {

if (navigate) {
if (updateType == null ? void 0 : updateType.startsWith("replace")) {
if (typeof updateType === "string" && updateType.startsWith("replace")) {
adapter.replace(newLocation);

@@ -75,0 +75,0 @@ } else {

{
"name": "use-query-params",
"version": "2.0.0-rc.0",
"version": "2.0.0-rc.1",
"description": "React Hook for managing state in URL query parameters with easy serialization.",

@@ -92,3 +92,3 @@ "main": "./dist/index.cjs.js",

},
"gitHead": "67964960ff04313bddc35eda3a4e92456249bd83"
"gitHead": "443df91b390fe0503bfbe6a437e1b762a70502c9"
}

@@ -124,3 +124,5 @@ import {

if (navigate) {
if (updateType?.startsWith('replace')) {
// be defensive about checking updateType since it is somewhat easy to
// accidentally pass a second argument to the setter.
if (typeof updateType === 'string' && updateType.startsWith('replace')) {
adapter.replace(newLocation);

@@ -127,0 +129,0 @@ } else {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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