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 1.1.5 to 1.1.6

2

esm/useQueryParam.js

@@ -79,3 +79,3 @@ import * as React from 'react';

decodedValueCacheRef.current = latestValue; // keep cache in sync
newEncodedValue = newValue(latestValue);
newEncodedValue = paramConfig.encode(newValue(latestValue));
}

@@ -82,0 +82,0 @@ else {

@@ -98,3 +98,3 @@ import * as React from 'react';

decodedValuesCacheRef.current = latestValues; // keep cache in sync
encodedChanges = changes(latestValues);
encodedChanges = encodeQueryParams(paramConfigMap, changes(latestValues));
}

@@ -101,0 +101,0 @@ else {

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

decodedValueCacheRef.current = latestValue; // keep cache in sync
newEncodedValue = newValue(latestValue);
newEncodedValue = paramConfig.encode(newValue(latestValue));
}

@@ -84,0 +84,0 @@ else {

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

decodedValuesCacheRef.current = latestValues; // keep cache in sync
encodedChanges = changes(latestValues);
encodedChanges = serialize_query_params_1.encodeQueryParams(paramConfigMap, changes(latestValues));
}

@@ -103,0 +103,0 @@ else {

{
"name": "use-query-params",
"version": "1.1.5",
"version": "1.1.6",
"description": "React Hook for managing state in URL query parameters with easy serialization.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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