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

expensify-common

Package Overview
Dependencies
Maintainers
0
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expensify-common - npm Package Compare versions

Comparing version 2.0.102 to 2.0.103

3

dist/str.d.ts

@@ -506,5 +506,6 @@ /**

* @param url The URL to be formatted
* @param defaultScheme The Scheme to use in the URL
* @returns The formatted URL
*/
sanitizeURL(url: string): string;
sanitizeURL(url: string, defaultScheme?: string): string;
/**

@@ -511,0 +512,0 @@ * Checks if parameter is a string or function

@@ -893,5 +893,6 @@ "use strict";

* @param url The URL to be formatted
* @param defaultScheme The Scheme to use in the URL
* @returns The formatted URL
*/
sanitizeURL(url) {
sanitizeURL(url, defaultScheme = 'https') {
const regex = new RegExp(`^${UrlPatterns.URL_REGEX}$`, 'i');

@@ -902,3 +903,3 @@ const match = regex.exec(url);

}
const website = match[3] ? match[2] : `https://${match[2]}`;
const website = match[3] ? match[2] : `${defaultScheme}://${match[2]}`;
return website.toLowerCase() + this.cutBefore(match[1], match[2]);

@@ -905,0 +906,0 @@ },

{
"name": "expensify-common",
"version": "2.0.102",
"version": "2.0.103",
"author": "Expensify, Inc.",

@@ -5,0 +5,0 @@ "description": "Expensify libraries and components shared across different repos",

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