Socket
Socket
Sign inDemoInstall

mini-entry

Package Overview
Dependencies
Maintainers
1
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.0.13 to 0.1.0

lib/utils/isIgnore.js

14

lib/index.js

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

* @Last Modified by: youzhao.zhou
* @Last Modified time: 2021-04-22 18:00:30
* @Last Modified time: 2021-04-23 14:18:20
* @Description 获取webpack入口

@@ -32,2 +32,3 @@ *

const generateNodeModuleEntry = require("./utils/generateNodeModuleEntry");
const isIgnore = require("./utils/isIgnore");

@@ -298,2 +299,5 @@ /**

const componentPathList = Object.values(components)
.filter((pathUrl) => {
return !isIgnore(pathUrl);
})
.map((pathUrl) => {

@@ -391,2 +395,10 @@ // 检查是不是node_modules

if (!config.ignoreEntry) {
config.ignoreEntry = ["^plugin://", "^@miniprogram-component-plus"];
}
if (!Array.isArray(config.ignoreEntry)) {
config.ignoreEntry = [config.ignoreEntry];
}
const paths = globby.sync(Object.values(config.entry));

@@ -393,0 +405,0 @@

2

package.json
{
"name": "mini-entry",
"version": "0.0.13",
"version": "0.1.0",
"description": "解析小程序json",

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

@@ -34,3 +34,3 @@ interface IMiniEntryOptions {

*/
ignoreEntry: string[];
ignoreEntry?: string[];
}

@@ -37,0 +37,0 @@

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