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

fis-command-release

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis-command-release - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

21

lib/deploy.js

@@ -28,3 +28,3 @@ /*

function normilize(str){
return '/' + str.replace(/^\//, '');
return '/' + String(str || '').replace(/^\//, '');
}

@@ -37,19 +37,12 @@

dest.split(/,/g).forEach(function(d){
var opt = { md5 : md5 };
if(settings[d]){
var setting = settings[d];
if(setting.to){
opt.root = root;
opt.from = normilize(setting.from || '');
opt.to = normilize(opt.to);
} else {
fis.log.error('invalid deploy config [deploy.' + d + '.to]');
}
var opt = settings[d] || {};
opt.md5 = md5;
opt.root = opt.root || root;
opt.from = normilize(opt.from);
if(opt.to){
opt.to = normilize(opt.to);
} else if(/^output\b/.test(d)){ //local
opt.root = root;
opt.from = '/';
opt.to = normilize(d);
} else if(d === 'preview'){
opt.root = fis.project.getTempPath('www');
opt.from = '/';
opt.to = '/';

@@ -56,0 +49,0 @@ } else {

{
"name" : "fis-command-release",
"description" : "fis release command.",
"version" : "0.1.1",
"version" : "0.1.2",
"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