mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-04 12:40:05 +02:00
update node modules
This commit is contained in:
3
node_modules/uri-js/dist/esnext/schemes/http.js
generated
vendored
3
node_modules/uri-js/dist/esnext/schemes/http.js
generated
vendored
@@ -9,8 +9,9 @@ const handler = {
|
||||
return components;
|
||||
},
|
||||
serialize: function (components, options) {
|
||||
const secure = String(components.scheme).toLowerCase() === "https";
|
||||
//normalize the default port
|
||||
if (components.port === (String(components.scheme).toLowerCase() !== "https" ? 80 : 443) || components.port === "") {
|
||||
if (components.port === (secure ? 443 : 80) || components.port === "") {
|
||||
components.port = undefined;
|
||||
}
|
||||
//normalize the empty path
|
||||
|
Reference in New Issue
Block a user