Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@astrojs/internal-helpers

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astrojs/internal-helpers - npm Package Compare versions

Comparing version 0.2.0-beta.0 to 0.2.0-beta.1

1

dist/path.d.ts

@@ -8,2 +8,3 @@ /**

export declare function prependForwardSlash(path: string): string;
export declare function collapseDuplicateSlashes(path: string): string;
export declare function removeTrailingForwardSlash(path: string): string;

@@ -10,0 +11,0 @@ export declare function removeLeadingForwardSlash(path: string): string;

@@ -10,2 +10,5 @@ function appendExtension(path, extension) {

}
function collapseDuplicateSlashes(path) {
return path.replace(/(?<!:)\/\/+/g, "/");
}
function removeTrailingForwardSlash(path) {

@@ -71,2 +74,3 @@ return path.endsWith("/") ? path.slice(0, path.length - 1) : path;

appendForwardSlash,
collapseDuplicateSlashes,
isRelativePath,

@@ -73,0 +77,0 @@ isRemotePath,

2

package.json
{
"name": "@astrojs/internal-helpers",
"description": "Internal helpers used by core Astro packages.",
"version": "0.2.0-beta.0",
"version": "0.2.0-beta.1",
"type": "module",

@@ -6,0 +6,0 @@ "author": "withastro",

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