@lwrjs/shared-utils
Advanced tools
Comparing version 0.15.8 to 0.15.9
@@ -41,2 +41,3 @@ import type { I18NConfig, RuntimeEnvironment, RuntimeParams, ViewRequestQs } from '@lwrjs/types'; | ||
export declare function crossEnvFileURL(url: string): string; | ||
export declare function originToHostname(url: string): string; | ||
//# sourceMappingURL=urls.d.ts.map |
@@ -142,2 +142,11 @@ import { pathToRegexp } from 'path-to-regexp'; | ||
} | ||
// Remove the protocol and port from a URL origin to create a hostname | ||
// eg: url = https://developer.mozilla.org:4097 | ||
// protocol = https | ||
// port = 4097 | ||
// host = developer.mozilla.org:4097 | ||
// hostname = developer.mozilla.org | ||
export function originToHostname(url) { | ||
return url.replace(/^https?:\/\//, '').replace(/:(\d+)(?=[/.]|$)/, ''); | ||
} | ||
//# sourceMappingURL=urls.js.map |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.15.8", | ||
"version": "0.15.9", | ||
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview", | ||
@@ -41,3 +41,3 @@ "repository": { | ||
"dependencies": { | ||
"@lwrjs/diagnostics": "0.15.8", | ||
"@lwrjs/diagnostics": "0.15.9", | ||
"es-module-lexer": "^1.5.4", | ||
@@ -55,3 +55,3 @@ "fast-json-stable-stringify": "^2.1.0", | ||
"devDependencies": { | ||
"@lwrjs/types": "0.15.8", | ||
"@lwrjs/types": "0.15.9", | ||
"@types/mime-types": "2.1.4", | ||
@@ -64,3 +64,3 @@ "@types/path-to-regexp": "^1.7.0", | ||
}, | ||
"gitHead": "e044933053591965ec7662b33540ce91d91e9542" | ||
"gitHead": "281108b0e976f7302571a77d7f1d15136b9076e9" | ||
} |
Sorry, the diff of this file is not supported yet
200707
4658
+ Added@lwrjs/diagnostics@0.15.9(transitive)
- Removed@lwrjs/diagnostics@0.15.8(transitive)
Updated@lwrjs/diagnostics@0.15.9