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.44 to 1.0.0-alpha.45

lib/normalizeConfig.js

2

lib/index.js

@@ -45,2 +45,4 @@ "use strict";

exports.moduleResolver = moduleResolver;
const normalizeConfig_1 = __importDefault(require("./normalizeConfig"));
exports.normalizeConfig = normalizeConfig_1.default;
const parseEmojis = __importStar(require("./parseEmojis"));

@@ -47,0 +49,0 @@ exports.parseEmojis = parseEmojis;

12

lib/moduleResolver.js

@@ -36,4 +36,9 @@ 'use strict';

this.cwd = cwd || process.cwd();
this.nonScopePrefix = `${org}-${type}-`;
this.scopePrefix = `@${org}/${type}-`;
if (org) {
this.nonScopePrefix = `${org}-${type}-`;
this.scopePrefix = `@${org}/${type}-`;
}
else {
this.nonScopePrefix = `${type}-`;
}
this.typePrefixLength = type.length + 1;

@@ -134,3 +139,3 @@ /* - */

// speicial handling for default org.
if (pkg.org === this.org) {
if (this.org && pkg.org === this.org) {
shortcut = pkg.name.startsWith(`${this.type}-`)

@@ -191,3 +196,4 @@ ? pkg.name.slice(this.typePrefixLength)

exports.resolveScopePackage = resolveScopePackage;
exports.getMarkdownItResolver = (cwd) => new ModuleResolver('markdown-it', '', [String, Function], true /* load module */, cwd);
exports.getPluginResolver = (cwd) => new ModuleResolver('plugin', 'vuepress', [String, Function, Object], true /* load module */, cwd);
exports.getThemeResolver = (cwd) => new ModuleResolver('theme', 'vuepress', [String], false /* load module */, cwd);
{
"name": "@vuepress/shared-utils",
"version": "1.0.0-alpha.44",
"version": "1.0.0-alpha.45",
"description": "shared-utils for vuepress",

@@ -45,4 +45,3 @@ "main": "lib/index.js",

},
"homepage": "https://github.com/vuejs/vuepress/packages/@vuepress/shared-utils#readme",
"gitHead": "e727f7e2a22855be9154ec5ed62bcc8e9612e366"
"homepage": "https://github.com/vuejs/vuepress/packages/@vuepress/shared-utils#readme"
}

@@ -17,2 +17,3 @@ import * as codegen from './codegen';

import * as moduleResolver from './moduleResolver';
import normalizeConfig from './normalizeConfig';
import * as parseEmojis from './parseEmojis';

@@ -35,2 +36,2 @@ import parseFrontmatter from './parseFrontmatter';

import semver from 'semver';
export { codegen, compose, datatypes, deeplyParseHeaders, ensureEndingSlash, ensureLeadingSlash, env, extractHeaders, fallback, fileToPath, getPermalink, inferTitle, isIndexFile, logger, moduleLoader, moduleResolver, parseEmojis, parseFrontmatter, parseHeaders, parseVueFrontmatter, performance, slugify, sort, toAbsolutePath, tryChain, unescapeHtml, chalk, fs, path, globby, hash, escapeHtml, semver, };
export { codegen, compose, datatypes, deeplyParseHeaders, ensureEndingSlash, ensureLeadingSlash, env, extractHeaders, fallback, fileToPath, getPermalink, inferTitle, isIndexFile, logger, moduleLoader, moduleResolver, normalizeConfig, parseEmojis, parseFrontmatter, parseHeaders, parseVueFrontmatter, performance, slugify, sort, toAbsolutePath, tryChain, unescapeHtml, chalk, fs, path, globby, hash, escapeHtml, semver, };

@@ -78,4 +78,5 @@ /**

};
export declare const getMarkdownItResolver: (cwd: string) => ModuleResolver;
export declare const getPluginResolver: (cwd: string) => ModuleResolver;
export declare const getThemeResolver: (cwd: string) => ModuleResolver;
export {};
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