@rspack/plugin-react-refresh
Advanced tools
Comparing version 1.0.0-beta.1 to 1.0.0-beta.2
@@ -27,3 +27,3 @@ "use strict"; | ||
if (parsedQuery.sockProtocol) { | ||
urlParts.protocol = parsedQuery.sockProtocol + ":"; | ||
urlParts.protocol = `${parsedQuery.sockProtocol}:`; | ||
} | ||
@@ -51,3 +51,3 @@ } | ||
if (url.password) { | ||
urlParts.auth += ":" + url.password; | ||
urlParts.auth += `:${url.password}`; | ||
} | ||
@@ -54,0 +54,0 @@ } |
@@ -20,10 +20,10 @@ "use strict"; | ||
} | ||
fullProtocol = fullProtocol + "//"; | ||
fullProtocol = `${fullProtocol}//`; | ||
let fullHost = urlParts.hostname; | ||
if (urlParts.auth) { | ||
const fullAuth = urlParts.auth.split(":").map(encodeURIComponent).join(":") + "@"; | ||
const fullAuth = `${urlParts.auth.split(":").map(encodeURIComponent).join(":")}@`; | ||
fullHost = fullAuth + fullHost; | ||
} | ||
if (urlParts.port) { | ||
fullHost = fullHost + ":" + urlParts.port; | ||
fullHost = `${fullHost}:${urlParts.port}`; | ||
} | ||
@@ -30,0 +30,0 @@ const url = new URL(urlParts.pathname, fullProtocol + fullHost); |
@@ -9,3 +9,2 @@ "use strict"; | ||
function getAdditionalEntries({ devServer, options }) { | ||
/** @type {Record<string, string | number>} */ | ||
const resourceQuery = {}; | ||
@@ -30,3 +29,3 @@ if (devServer) { | ||
if (parsedUrl.password) { | ||
auth += ":" + parsedUrl.password; | ||
auth += `:${parsedUrl.password}`; | ||
} | ||
@@ -75,8 +74,4 @@ } | ||
const queryString = node_querystring_1.default.stringify(resourceQuery, undefined, undefined, { | ||
/** | ||
* @param {string} string | ||
* @returns {string} | ||
*/ | ||
encodeURIComponent(string) { | ||
return string; | ||
encodeURIComponent(str) { | ||
return str; | ||
} | ||
@@ -90,4 +85,4 @@ }); | ||
// Error overlay runtime | ||
options.overlay && | ||
options.overlay.entry && | ||
options.overlay !== false && | ||
options.overlay?.entry && | ||
`${require.resolve(options.overlay.entry)}${queryString ? `?${queryString}` : ""}` | ||
@@ -94,0 +89,0 @@ ].filter(Boolean); |
{ | ||
"name": "@rspack/plugin-react-refresh", | ||
"version": "1.0.0-beta.1", | ||
"version": "1.0.0-beta.2", | ||
"license": "MIT", | ||
@@ -34,4 +34,4 @@ "description": "React refresh plugin for rspack", | ||
"typescript": "5.0.2", | ||
"@rspack/core": "1.0.0-beta.1", | ||
"@rspack/plugin-react-refresh": "1.0.0-beta.1" | ||
"@rspack/core": "1.0.0-beta.2", | ||
"@rspack/plugin-react-refresh": "1.0.0-beta.2" | ||
}, | ||
@@ -38,0 +38,0 @@ "dependencies": { |
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
78951
2228