Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
16
node_modules/next/dist/esm/server/lib/decode-query-path-parameter.js
generated
vendored
Normal file
16
node_modules/next/dist/esm/server/lib/decode-query-path-parameter.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* Decodes a query path parameter.
|
||||
*
|
||||
* @param value - The value to decode.
|
||||
* @returns The decoded value.
|
||||
*/ export function decodeQueryPathParameter(value) {
|
||||
// When deployed to Vercel, the value may be encoded, so this attempts to
|
||||
// decode it and returns the original value if it fails.
|
||||
try {
|
||||
return decodeURIComponent(value);
|
||||
} catch {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
//# sourceMappingURL=decode-query-path-parameter.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue