serialize-query-params
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -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; |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93194
2257