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

@jsenv/urls

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/urls - npm Package Compare versions

Comparing version 2.5.4 to 2.6.0

2

package.json
{
"name": "@jsenv/urls",
"version": "2.5.4",
"version": "2.6.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": {

@@ -7,2 +7,3 @@ // tslint:disable:ordered-imports

asUrlWithoutSearch,
asSpecifierWithoutSearch,
isValidUrl,

@@ -9,0 +10,0 @@ normalizeUrl,

@@ -26,2 +26,10 @@ import { filenameToBasename } from "./url_to_basename.js";

export const asSpecifierWithoutSearch = (specifier) => {
if (isValidUrl(specifier)) {
return asUrlWithoutSearch(specifier);
}
const [beforeQuestion] = specifier.split("?");
return beforeQuestion;
};
// normalize url search params:

@@ -28,0 +36,0 @@ // Using URLSearchParams to alter the url search params

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