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.2.2 to 0.2.3

4

lib/utils/generateNodeModuleEntry.js

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

* @Last Modified by: youzhao.zhou
* @Last Modified time: 2021-04-25 22:44:36
* @Last Modified time: 2021-08-10 11:30:54
* @Description 生成node_modules中的组件入口

@@ -20,3 +20,3 @@ * js wxml json wxss?

function generateNodeModuleEntry(pagePath, compiledSuffix) {
const pathUrl = normalize(pagePath).replace(/^node_modules\//, "");
const pathUrl = normalize(pagePath).replace(/^node_modules(\/|\\)/, "");
const pathItems = pathUrl.split(sep);

@@ -23,0 +23,0 @@ const moduleName = pathItems[0];

{
"name": "mini-entry",
"version": "0.2.2",
"version": "0.2.3",
"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