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.12 to 0.0.13

11

lib/index.js

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

* @Last Modified by: youzhao.zhou
* @Last Modified time: 2021-04-22 15:01:40
* @Last Modified time: 2021-04-22 18:00:30
* @Description 获取webpack入口

@@ -24,2 +24,3 @@ *

isAbsolute,
extname,
} = require("path");

@@ -82,4 +83,10 @@ const globby = require("globby");

let appJson = getAppEntry(appEntryFilePath);
if (!appEntryFilePath.includes(normalize("src/app.json"))) {
appJson = {};
}
const entry = {
...getAppEntry(appEntryFilePath),
...appJson,
...appEntry,

@@ -86,0 +93,0 @@ ...componentEntry,

2

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

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

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

js: "js" | "ts";
miniJs: "wxs" | "sjs";
miniJs?: "wxs" | "sjs";
xml: "wxml" | "axml" | "html";

@@ -28,9 +28,13 @@

css: string;
miniJs: string;
miniJs?: string;
xml: string;
[key: string]: any;
};
/**
* 忽略文件
*/
ignoreEntry: string[];
}
type IMiniEntryReturn = {
interface IMiniEntryReturn {
/**

@@ -45,3 +49,3 @@ * 所有入口

*/
jsonFile: {
jsonFiles: {
[entryName: string]: string[];

@@ -53,3 +57,3 @@ };

subPackagesDir: string[];
};
}

@@ -56,0 +60,0 @@ declare function getEntry(options: IMiniEntryOptions): IMiniEntryReturn;

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