New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.3.9 to 0.4.0

20

lib/deploy.js

@@ -24,11 +24,15 @@ /*

function deploy(dest, file){
if(dest.receiver){
if(!file.useHash || dest.md5 != 1){
upload(dest.receiver, dest.to, file.release, file);
if(file.release){
if(dest.receiver){
if(!file.useHash || dest.md5 != 1){
upload(dest.receiver, dest.to, file.release, file);
}
if(file.useHash && dest.md5 > 0){
upload(dest.receiver, dest.to, file.getHashRelease(), file);
}
} else {
file.deliver(dest.to, dest.md5);
}
if(file.useHash && dest.md5 > 0){
upload(dest.receiver, dest.to, file.getHashRelease(), file);
}
} else {
file.deliver(dest.to, dest.md5);
fis.log.error('unreleasable file [' + file.realpath + ']');
}

@@ -63,3 +67,3 @@ }

dests.forEach(function(d){
if(file.release.indexOf(d.from) === 0 && fis.util.filter(file.subpath, d.include, d.exclude)){
if(file.release && file.release.indexOf(d.from) === 0 && fis.util.filter(file.subpath, d.include, d.exclude)){
deploy(d, file);

@@ -66,0 +70,0 @@ }

2

package.json
{
"name" : "fis-command-release",
"description" : "fis release command.",
"version" : "0.3.9",
"version" : "0.4.0",
"author" : "FIS Team <fis@baidu.com>",

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

@@ -59,3 +59,3 @@ /*

//collect file to deploy
if((file.cache && file.cache.expired) || lastModified[file.subpath] !== mtime){
if(file.release && ((file.cache && file.cache.expired) || lastModified[file.subpath] !== mtime)){
lastModified[file.subpath] = mtime;

@@ -62,0 +62,0 @@ collection[file.subpath] = file;

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