Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serialize-query-params

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serialize-query-params - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

17

esm/params.js

@@ -50,2 +50,12 @@ import * as Serialize from './serialize';

decode: Serialize.decodeDate,
equals: function (valueA, valueB) {
if (valueA === valueB)
return true;
if (valueA == null || valueB == null)
return valueA === valueB;
// ignore time of day
return (valueA.getFullYear() === valueB.getFullYear() &&
valueA.getMonth() === valueB.getMonth() &&
valueA.getDate() === valueB.getDate());
},
};

@@ -58,2 +68,9 @@ /**

decode: Serialize.decodeDateTime,
equals: function (valueA, valueB) {
if (valueA === valueB)
return true;
if (valueA == null || valueB == null)
return valueA === valueB;
return valueA.valueOf() === valueB.valueOf();
},
};

@@ -60,0 +77,0 @@ /**

2

esm/types.d.ts

@@ -20,2 +20,4 @@ /**

decode: (value: string | (string | null)[] | null | undefined) => D2;
/** Checks if two values are equal (otherwise typically shallowEqual will be used) */
equals?: (valueA: D | D2, valueB: D | D2) => boolean;
}

@@ -22,0 +24,0 @@ /**

@@ -52,2 +52,12 @@ "use strict";

decode: Serialize.decodeDate,
equals: function (valueA, valueB) {
if (valueA === valueB)
return true;
if (valueA == null || valueB == null)
return valueA === valueB;
// ignore time of day
return (valueA.getFullYear() === valueB.getFullYear() &&
valueA.getMonth() === valueB.getMonth() &&
valueA.getDate() === valueB.getDate());
},
};

@@ -60,2 +70,9 @@ /**

decode: Serialize.decodeDateTime,
equals: function (valueA, valueB) {
if (valueA === valueB)
return true;
if (valueA == null || valueB == null)
return valueA === valueB;
return valueA.valueOf() === valueB.valueOf();
},
};

@@ -62,0 +79,0 @@ /**

@@ -20,2 +20,4 @@ /**

decode: (value: string | (string | null)[] | null | undefined) => D2;
/** Checks if two values are equal (otherwise typically shallowEqual will be used) */
equals?: (valueA: D | D2, valueB: D | D2) => boolean;
}

@@ -22,0 +24,0 @@ /**

2

package.json
{
"name": "serialize-query-params",
"version": "1.1.0",
"version": "1.2.0",
"description": "A library for simplifying encoding and decoding URL query parameters.",

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