Socket
Socket
Sign inDemoInstall

@lingxiteam/bundle-less-theme-tools

Package Overview
Dependencies
Maintainers
6
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lingxiteam/bundle-less-theme-tools - npm Package Compare versions

Comparing version 0.0.1-alpha.10 to 0.0.1-alpha.11

8

index.js

@@ -80,6 +80,2 @@

const moduleName = importPath.match(moduleNameMatch)[0].replace('~','');
const moduleMainEntry = require.resolve(moduleName);
const moduleNameStartIndex= moduleMainEntry.indexOf(moduleName.replace(/\/.*/, ''));
// 从模块主入口文件路径中,截取真正的模块目录路径
const modulePath = moduleMainEntry.slice(0, moduleNameStartIndex + moduleName.length);

@@ -89,2 +85,6 @@ if(nodeModulesPath) {

} else {
const moduleMainEntry = require.resolve(moduleName);
const moduleNameStartIndex= moduleMainEntry.indexOf(moduleName.replace(/\/.*/, ''));
// 从模块主入口文件路径中,截取真正的模块目录路径
const modulePath = moduleMainEntry.slice(0, moduleNameStartIndex + moduleName.length);
wholePath = path.join(modulePath, importPath.replace(moduleNameMatch, ''));

@@ -91,0 +91,0 @@ }

{
"name": "@lingxiteam/bundle-less-theme-tools",
"version": "0.0.1-alpha.10",
"version": "0.0.1-alpha.11",
"description": "A tool for bundling less theme files.",

@@ -8,3 +8,3 @@ "main": "index.js",

"license": "MIT",
"gitHead": "9629afcf7af026f14a01ff8be0f8fc0387267b35"
"gitHead": "fd401c4387501c0d0a43a77a7c017e8eb322599d"
}
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