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

@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.47 to 1.0.0-alpha.48

13

lib/moduleLoader.js

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

const semver_1 = __importDefault(require("semver"));
const upath_1 = __importDefault(require("upath"));
const fs_extra_1 = __importDefault(require("fs-extra"));
const env_1 = __importDefault(require("./env"));

@@ -42,11 +40,4 @@ function resolveFallback(request, options) {

let resolvedPath;
// TODO
// Temporary workaround for jest cannot resolve module path from '__mocks__'
// when using 'require.resolve'.
if (env_1.default.isTest && request !== '@vuepress/theme-default') {
resolvedPath = upath_1.default.resolve(__dirname, '../../../../__mocks__', request);
if (!fs_extra_1.default.existsSync(`${resolvedPath}.js`) && !fs_extra_1.default.existsSync(`${resolvedPath}/index.js`)) {
throw new Error(`Cannot find module '${request}'`);
}
return resolvedPath;
if (env_1.default.isTest) {
return require.resolve(request);
}

@@ -53,0 +44,0 @@ // module.paths is for globally install packages.

10

package.json
{
"name": "@vuepress/shared-utils",
"version": "1.0.0-alpha.47",
"version": "1.0.0-alpha.48",
"description": "shared-utils for vuepress",

@@ -33,7 +33,7 @@ "main": "lib/index.js",

"escape-html": "^1.0.3",
"fs-extra": "^5.0.0",
"globby": "^8.0.1",
"fs-extra": "^7.0.1",
"globby": "^9.2.0",
"gray-matter": "^4.0.1",
"hash-sum": "^1.0.2",
"semver": "^5.5.0",
"semver": "^6.0.0",
"upath": "^1.1.0"

@@ -47,3 +47,3 @@ },

"homepage": "https://github.com/vuejs/vuepress/packages/@vuepress/shared-utils#readme",
"gitHead": "78ce258b22f399eac7e16aa87bf06373f752e477"
"gitHead": "ac7dca29f45cf893a6a6b3f35399c5c99b047da9"
}
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