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

nuqs

Package Overview
Dependencies
Maintainers
0
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuqs - npm Package Compare versions

Comparing version 2.0.0-snapshot.2024-05-19.17e1fabc to 2.0.0-snapshot.2024-06-27.47926d24

2

dist/index.js

@@ -183,3 +183,3 @@ import { getDefaultThrottle, error, debug, safeParse, renderQueryString } from './chunk-ZKLWH2HF.js';

function patchHistory() {
const version = "2.0.0-snapshot.2024-05-19.17e1fabc";
const version = "2.0.0-snapshot.2024-06-27.47926d24";
const patched = history.__nuqs_patched;

@@ -186,0 +186,0 @@ if (patched) {

@@ -13,3 +13,3 @@ import { error } from './chunk-ZKLWH2HF.js';

if (Object.isFrozen(c.searchParams)) {
if (searchParams === c[$input]) {
if (c[$input] && compareSearchParams(searchParams, c[$input])) {
return all();

@@ -46,3 +46,17 @@ }

}
function compareSearchParams(a, b) {
if (a === b) {
return true;
}
if (Object.keys(a).length !== Object.keys(b).length) {
return false;
}
for (const key in a) {
if (a[key] !== b[key]) {
return false;
}
}
return true;
}
export { createSearchParamsCache };
{
"name": "nuqs",
"version": "2.0.0-snapshot.2024-05-19.17e1fabc",
"version": "2.0.0-snapshot.2024-06-27.47926d24",
"description": "Type-safe search params state manager for Next.js - Like React.useState, but stored in the URL query string",

@@ -5,0 +5,0 @@ "license": "MIT",

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