Socket
Socket
Sign inDemoInstall

@vuepress/shared-utils

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vuepress/shared-utils - npm Package Compare versions

Comparing version 1.0.0-alpha.25 to 1.0.0-alpha.26

lib/parseVueFrontmatter.js

3

index.js

@@ -7,2 +7,3 @@ exports.logger = require('./lib/logger')

exports.parseFrontmatter = require('./lib/parseFrontmatter')
exports.parseVueFrontmatter = require('./lib/parseVueFrontmatter')

@@ -38,1 +39,3 @@ exports.unescapeHtml = require('./lib/unescapeHtml')

exports.toAbsolutePath = require('./lib/toAbsolutePath')
exports.performance = require('./lib/performance')

@@ -9,9 +9,13 @@ const { indexRE } = require('./isIndexFile')

// README.md -> /
// README.vue -> /
// foo/README.md -> /foo/
// foo/README.vue -> /foo/
return file.replace(indexRE, '/$1')
} else {
// foo.md -> /foo.html
// foo.vue -> /foo.html
// foo/bar.md -> /foo/bar.html
// foo/bar.vue -> /foo/bar.html
return `/${file.replace(extRE, '').replace(/\\/g, '/')}.html`
}
}

2

lib/isIndexFile.js

@@ -1,2 +0,2 @@

const indexRE = /(^|.*\/)(index|readme)\.md$/i
const indexRE = /(^|.*\/)(index|readme)\.(md|vue)$/i

@@ -3,0 +3,0 @@ function isIndexFile (file) {

@@ -91,3 +91,3 @@ 'use strict'

developer (...args) {
if (process.env.VUEPRESS_ENV !== 'developer') {
if (process.env.VUEPRESS_ENV !== 'developer' && !process.argv.includes('--developer')) {
return

@@ -94,0 +94,0 @@ }

{
"name": "@vuepress/shared-utils",
"version": "1.0.0-alpha.25",
"version": "1.0.0-alpha.26",
"description": "shared-utils for vuepress",

@@ -5,0 +5,0 @@ "main": "index.js",

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