Socket
Socket
Sign inDemoInstall

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.2.2 to 1.2.3

17

esm/index.js

@@ -7,1 +7,18 @@ export { withDefault } from './withDefault';

export { decodeQueryParams } from './decodeQueryParams';
if (process.env.NODE_ENV !== 'production') {
/*
* run checks to ensure a valid version of query-string is installed
* see https://github.com/pbeshai/use-query-params/issues/127 for discussion
*/
var queryStringVersion = require('query-string/package.json').version;
// simple check of versions since we don't anticipate any new minor v5s and
// don't want to require the semver package as a dependency for just a simple
// dev check.
var validQueryStringInstalled = /^5.1.[1-9][0-9]*/.test(queryStringVersion) ||
/^6\./.test(queryStringVersion);
if (!validQueryStringInstalled) {
throw new Error("serialize-query-params requires query-string ^5.1.1 || ^6, " +
("but " + queryStringVersion + " is installed. Note: you may also ") +
"see this message if you're using use-query-params.");
}
}

@@ -49,1 +49,18 @@ "use strict";

exports.decodeQueryParams = decodeQueryParams_1.decodeQueryParams;
if (process.env.NODE_ENV !== 'production') {
/*
* run checks to ensure a valid version of query-string is installed
* see https://github.com/pbeshai/use-query-params/issues/127 for discussion
*/
var queryStringVersion = require('query-string/package.json').version;
// simple check of versions since we don't anticipate any new minor v5s and
// don't want to require the semver package as a dependency for just a simple
// dev check.
var validQueryStringInstalled = /^5.1.[1-9][0-9]*/.test(queryStringVersion) ||
/^6\./.test(queryStringVersion);
if (!validQueryStringInstalled) {
throw new Error("serialize-query-params requires query-string ^5.1.1 || ^6, " +
("but " + queryStringVersion + " is installed. Note: you may also ") +
"see this message if you're using use-query-params.");
}
}

2

package.json
{
"name": "serialize-query-params",
"version": "1.2.2",
"version": "1.2.3",
"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