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

@vuepress/shared

Package Overview
Dependencies
Maintainers
2
Versions
78
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.6 to 2.0.0-rc.7

2

dist/index.d.ts

@@ -162,3 +162,3 @@ import { MarkdownItHeader } from '@mdit-vue/types';

*
* Descibe the tags to be appended into the `<head>` tag
* Describe the tags to be appended into the `<head>` tag
*

@@ -165,0 +165,0 @@ * @default []

@@ -82,6 +82,5 @@ // src/utils/resolveHeadIdentifier.ts

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

@@ -94,5 +93,5 @@ if (routePath.endsWith(".md")) {

if (routePath.endsWith("/index.html")) {
return routePath.substring(0, routePath.length - 10) + queryAndHash;
routePath = routePath.substring(0, routePath.length - 10);
}
return routePath + queryAndHash;
return routePath + queryAndHash.join("");
};

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

{
"name": "@vuepress/shared",
"version": "2.0.0-rc.6",
"version": "2.0.0-rc.7",
"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