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

fis-command-install

Package Overview
Dependencies
Maintainers
3
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis-command-install - npm Package Compare versions

Comparing version 0.1.26 to 0.1.27

29

lib/remotes/remote.js

@@ -294,2 +294,31 @@ var Promise = require('bluebird');

}
if (config.main && config.mapping && Array.isArray(config.mapping)) {
var src = config.main;
var dst = '';
src[0] !== '/' && (src = '/' + src);
config.mapping.every(function(obj) {
var m = obj.reg.exec(src);
if (m && obj.release) {
dst = obj.release.replace(/\$([\d&]+)/g, function(_, key) {
return m[key === '&' ? '0' : key] || '';
});
return false;
}
});
if (dst) {
dst[0] === '/' && (dst = dst.substring(1));
config.main = dst;
}
}
var configCopy = _.mixin({}, config);
delete configCopy.shim;
delete configCopy.mapping;
write(path.join(location, 'component.json'), JSON.stringify(configCopy, null, 2));
}

@@ -296,0 +325,0 @@ }

2

package.json
{
"name": "fis-command-install",
"description": "fis install command.",
"version": "0.1.26",
"version": "0.1.27",
"author": "FIS Team <fis@baidu.com>",

@@ -6,0 +6,0 @@ "homepage": "http://fis.baidu.com/",

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