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.2.0 to 1.2.1

13

esm/withDefault.js

@@ -0,1 +1,12 @@

var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
export function withDefault(param, defaultValue, includeNull) {

@@ -22,4 +33,4 @@ if (includeNull === void 0) { includeNull = true; }

};
return { encode: param.encode, decode: decodeWithDefault };
return __assign(__assign({}, param), { decode: decodeWithDefault });
}
export default withDefault;
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -24,5 +35,5 @@ function withDefault(param, defaultValue, includeNull) {

};
return { encode: param.encode, decode: decodeWithDefault };
return __assign(__assign({}, param), { decode: decodeWithDefault });
}
exports.withDefault = withDefault;
exports.default = withDefault;

2

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