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.2 to 2.0.0-rc.3

15

dist/index.d.ts

@@ -45,10 +45,2 @@ import { MarkdownItHeader } from '@mdit-vue/types';

/**
* Identifier of the page
*
* Will also be used as the component name
*
* @example 'v-foobar'
*/
key: string;
/**
* Route path of the page

@@ -240,2 +232,7 @@ *

/**
* Normalize the given path to the final route path
*/
declare const normalizeRoutePath: (path: string) => string;
/**
* Omit properties from an object

@@ -276,2 +273,2 @@ */

export { type HeadAttrsConfig, type HeadConfig, type HeadTag, type HeadTagEmpty, type HeadTagNonEmpty, type LocaleConfig, type LocaleData, type PageBase, type PageData, type PageFrontmatter, type PageHeader, type SiteData, type SiteLocaleConfig, type SiteLocaleData, type VuepressSSRContext, dedupeHead, ensureEndingSlash, ensureLeadingSlash, formatDateString, isFunction, isLinkExternal, isLinkHttp, isLinkWithProtocol, isPlainObject, isString, omit, removeEndingSlash, removeLeadingSlash, resolveHeadIdentifier, resolveLocalePath, resolveRoutePathFromUrl };
export { type HeadAttrsConfig, type HeadConfig, type HeadTag, type HeadTagEmpty, type HeadTagNonEmpty, type LocaleConfig, type LocaleData, type PageBase, type PageData, type PageFrontmatter, type PageHeader, type SiteData, type SiteLocaleConfig, type SiteLocaleData, type VuepressSSRContext, dedupeHead, ensureEndingSlash, ensureLeadingSlash, formatDateString, isFunction, isLinkExternal, isLinkHttp, isLinkWithProtocol, isPlainObject, isString, normalizeRoutePath, omit, removeEndingSlash, removeLeadingSlash, resolveHeadIdentifier, resolveLocalePath, resolveRoutePathFromUrl };

@@ -80,2 +80,8 @@ // src/utils/resolveHeadIdentifier.ts

// src/utils/normalizeRoutePath.ts
var normalizeRoutePath = (path) => {
const convertedMdPath = path.endsWith("README.md") ? path.substring(0, path.length - 9) : path.endsWith(".md") ? path.substring(0, path.length - 3) + ".html" : path;
return convertedMdPath.endsWith("/index.html") ? convertedMdPath.substring(0, convertedMdPath.length - 10) : convertedMdPath.endsWith(".html") || convertedMdPath.endsWith("/") ? convertedMdPath : convertedMdPath + ".html";
};
// src/utils/omit.ts

@@ -133,2 +139,3 @@ var omit = (obj, ...keys) => {

isString,
normalizeRoutePath,
omit,

@@ -135,0 +142,0 @@ removeEndingSlash,

2

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