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

fis3-hook-lego

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis3-hook-lego - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

8

index.js

@@ -10,7 +10,11 @@ /**

fis.on('lookup:file', function(info, file) {
// 不处理相对路径的文件和已经处理了的文件
if (file.isJsLike && info.rest && info.rest[0] !== '.' && !info.id) {
// 不处理相对路径的文件
// 不能跳过已经有info.id的文件,必须处理
// 例如: abc.js中require('abc') CommonJs的lookup会找到自己,
// 并不一定需要require('./abc'), 此时如果是想要lego_modules下的abc就惨了
if (file.isJsLike && info.rest && info.rest[0] !== '.') {
var ret = lookup(info.rest, opts);
if (ret && ret.file) {
info.id = ret.file.getId();
info.moduleId = ret.file.moduleId || '';
info.file = ret.file;

@@ -17,0 +21,0 @@ }

@@ -0,0 +0,0 @@ /**

{
"name": "fis3-hook-lego",
"version": "0.2.7",
"version": "0.2.8",
"description": "lego 包管理模块查找",

@@ -5,0 +5,0 @@ "keywords": [

@@ -0,0 +0,0 @@ var _ = fis.util,

@@ -0,0 +0,0 @@ # fis3-hook-lego

Sorry, the diff of this file is not supported yet

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