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

mini-entry

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mini-entry - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

31

lib/index.js

@@ -5,3 +5,3 @@ /*

* @Last Modified by: youzhao.zhou
* @Last Modified time: 2023-11-17 15:55:12
* @Last Modified time: 2023-12-29 10:34:08
* @Description 获取webpack入口

@@ -97,7 +97,22 @@ *

const allEntry = {
...entry,
...result.entry,
};
const filterAllEntry = Object.create(null);
const deps = Object.create(null);
Object.keys(allEntry).forEach((key) => {
if (filterAllEntry[key] || deps[JSON.stringify(allEntry[key])]) {
return;
}
deps[JSON.stringify(allEntry[key])] = true;
filterAllEntry[key] = allEntry[key];
});
return {
entry: {
...entry,
...result.entry,
},
entry: temp,
subPackagesDir: [...subPackagesDir, ...result.subPackagesDir],

@@ -328,5 +343,5 @@ };

if (page.pages <= 0) {
return [join(page.root || "", "index")]
return [join(page.root || "", "index")];
}
return page.pages.map((subPage) => {

@@ -401,3 +416,3 @@ return join(page.root || "", subPage);

);
if (fs.existsSync(configPathByPlatform)) {

@@ -404,0 +419,0 @@ entryConfigPath.add(configPathByPlatform);

{
"name": "mini-entry",
"version": "0.4.0",
"version": "0.4.1",
"description": "解析小程序json",

@@ -5,0 +5,0 @@ "main": "lib/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