New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lwrjs/shared-utils

Package Overview
Dependencies
Maintainers
0
Versions
497
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwrjs/shared-utils - npm Package Compare versions

Comparing version 0.17.2-alpha.8 to 0.17.2-alpha.9

2

build/es/urls.d.ts

@@ -41,3 +41,3 @@ import type { I18NConfig, RuntimeEnvironment, RuntimeParams, ViewRequestQs } from '@lwrjs/types';

export declare function crossEnvFileURL(url: string): string;
export declare function getHostWithoutPort(forwardedHost: string): string;
export declare function toHostname(url: string): string;
//# sourceMappingURL=urls.d.ts.map

@@ -142,5 +142,11 @@ import { pathToRegexp } from 'path-to-regexp';

}
export function getHostWithoutPort(forwardedHost) {
return forwardedHost.replace(/:(\d+)(?=[/.]|$)/, '');
// Remove the protocol and port from a URL to create a hostname
// eg: url = https://developer.mozilla.org:4097/en-US/docs/Web/API/URL/hostname
// protocol = https
// port = 4097
// host = developer.mozilla.org:4097
// hostname = developer.mozilla.org
export function toHostname(url) {
return url.replace(/^https?:\/\//, '').replace(/:(\d+)(?=[/.]|$)/, '');
}
//# sourceMappingURL=urls.js.map

@@ -7,3 +7,3 @@ {

},
"version": "0.17.2-alpha.8",
"version": "0.17.2-alpha.9",
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",

@@ -41,3 +41,3 @@ "repository": {

"dependencies": {
"@lwrjs/diagnostics": "0.17.2-alpha.8",
"@lwrjs/diagnostics": "0.17.2-alpha.9",
"es-module-lexer": "^1.5.4",

@@ -55,3 +55,3 @@ "fast-json-stable-stringify": "^2.1.0",

"devDependencies": {
"@lwrjs/types": "0.17.2-alpha.8",
"@lwrjs/types": "0.17.2-alpha.9",
"@types/mime-types": "2.1.4",

@@ -64,3 +64,3 @@ "@types/path-to-regexp": "^1.7.0",

},
"gitHead": "ee1182e7d876cf92e579ee88c48b25047486b4f8"
"gitHead": "7ede5d04a97513b9869b13e66155bc4f3920bb99"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc