Socket
Socket
Sign inDemoInstall

@vuepress/shared

Package Overview
Dependencies
Maintainers
2
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vuepress/shared - npm Package Compare versions

Comparing version 2.0.0-rc.5 to 2.0.0-rc.6

14

dist/index.js

@@ -82,16 +82,16 @@ // src/utils/resolveHeadIdentifier.ts

var normalizeRoutePath = (path) => {
if (!path || path.endsWith("/")) {
const [pathname, ...rest] = path.split(/(\?|#)/);
if (!pathname || pathname.endsWith("/"))
return path;
}
let routePath = path.replace(/(^|\/)README.md$/i, "$1index.html");
const queryAndHash = rest.length > 0 ? rest.join("") : "";
let routePath = pathname.replace(/(^|\/)README.md$/i, "$1index.html");
if (routePath.endsWith(".md")) {
routePath = routePath.substring(0, routePath.length - 3) + ".html";
}
if (!routePath.endsWith(".html")) {
} else if (!routePath.endsWith(".html")) {
routePath = routePath + ".html";
}
if (routePath.endsWith("/index.html")) {
return routePath.substring(0, routePath.length - 10);
return routePath.substring(0, routePath.length - 10) + queryAndHash;
}
return routePath;
return routePath + queryAndHash;
};

@@ -98,0 +98,0 @@

{
"name": "@vuepress/shared",
"version": "2.0.0-rc.5",
"version": "2.0.0-rc.6",
"description": "Utils that shared between VuePress node and client",

@@ -5,0 +5,0 @@ "keywords": [

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