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

deploy-scripts-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deploy-scripts-nodejs - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

7

__tests__/clean.js

@@ -66,2 +66,8 @@ import async from 'async';

];
const afterDelete = [
(next) => {
console.log('Hey I am afterDelete!'); // eslint-disable-line no-console
return next();
},
];
clean({

@@ -71,2 +77,3 @@ projectName,

beforeDelete,
afterDelete,
configFile,

@@ -73,0 +80,0 @@ config,

2

coverage/coverage-final.json

@@ -1,2 +0,2 @@

{"/Users/webserver/CI/deploy_scripts_nodejs/src/clean.js": {"path":"/Users/webserver/CI/deploy_scripts_nodejs/src/clean.js","statementMap":{"0":{"start":{"line":20,"column":21},"end":{"line":30,"column":1}},"1":{"start":{"line":21,"column":27},"end":{"line":21,"column":101}},"2":{"start":{"line":22,"column":23},"end":{"line":22,"column":93}},"3":{"start":{"line":23,"column":2},"end":{"line":29,"column":11}},"4":{"start":{"line":24,"column":10},"end":{"line":24,"column":100}},"5":{"start":{"line":26,"column":6},"end":{"line":26,"column":74}},"6":{"start":{"line":27,"column":6},"end":{"line":27,"column":68}},"7":{"start":{"line":32,"column":14},"end":{"line":105,"column":1}},"8":{"start":{"line":39,"column":2},"end":{"line":39,"column":82}},"9":{"start":{"line":40,"column":70},"end":{"line":40,"column":100}},"10":{"start":{"line":41,"column":2},"end":{"line":41,"column":51}},"11":{"start":{"line":42,"column":2},"end":{"line":42,"column":18}},"12":{"start":{"line":44,"column":27},"end":{"line":44,"column":90}},"13":{"start":{"line":46,"column":2},"end":{"line":104,"column":5}},"14":{"start":{"line":47,"column":4},"end":{"line":96,"column":5}},"15":{"start":{"line":48,"column":6},"end":{"line":93,"column":19}},"16":{"start":{"line":50,"column":10},"end":{"line":50,"column":79}},"17":{"start":{"line":51,"column":10},"end":{"line":55,"column":17}},"18":{"start":{"line":56,"column":10},"end":{"line":56,"column":22}},"19":{"start":{"line":59,"column":10},"end":{"line":65,"column":17}},"20":{"start":{"line":60,"column":27},"end":{"line":60,"column":45}},"21":{"start":{"line":61,"column":12},"end":{"line":63,"column":14}},"22":{"start":{"line":64,"column":12},"end":{"line":64,"column":100}},"23":{"start":{"line":68,"column":10},"end":{"line":68,"column":78}},"24":{"start":{"line":69,"column":10},"end":{"line":72,"column":13}},"25":{"start":{"line":70,"column":12},"end":{"line":70,"column":36}},"26":{"start":{"line":70,"column":21},"end":{"line":70,"column":36}},"27":{"start":{"line":71,"column":12},"end":{"line":71,"column":61}},"28":{"start":{"line":71,"column":42},"end":{"line":71,"column":58}},"29":{"start":{"line":75,"column":10},"end":{"line":75,"column":74}},"30":{"start":{"line":76,"column":25},"end":{"line":76,"column":103}},"31":{"start":{"line":77,"column":10},"end":{"line":77,"column":49}},"32":{"start":{"line":78,"column":10},"end":{"line":78,"column":78}},"33":{"start":{"line":78,"column":44},"end":{"line":78,"column":76}},"34":{"start":{"line":79,"column":10},"end":{"line":79,"column":35}},"35":{"start":{"line":82,"column":10},"end":{"line":91,"column":17}},"36":{"start":{"line":83,"column":12},"end":{"line":89,"column":13}},"37":{"start":{"line":84,"column":14},"end":{"line":86,"column":16}},"38":{"start":{"line":87,"column":29},"end":{"line":87,"column":32}},"39":{"start":{"line":88,"column":14},"end":{"line":88,"column":109}},"40":{"start":{"line":90,"column":12},"end":{"line":90,"column":25}},"41":{"start":{"line":95,"column":6},"end":{"line":95,"column":41}},"42":{"start":{"line":98,"column":4},"end":{"line":101,"column":5}},"43":{"start":{"line":99,"column":6},"end":{"line":99,"column":81}},"44":{"start":{"line":100,"column":6},"end":{"line":100,"column":23}},"45":{"start":{"line":102,"column":4},"end":{"line":102,"column":72}},"46":{"start":{"line":103,"column":4},"end":{"line":103,"column":18}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":20,"column":21},"end":{"line":20,"column":22}},"loc":{"start":{"line":20,"column":101},"end":{"line":30,"column":1}},"line":20},"1":{"name":"(anonymous_1)","decl":{"start":{"line":24,"column":4},"end":{"line":24,"column":5}},"loc":{"start":{"line":24,"column":10},"end":{"line":24,"column":100}},"line":24},"2":{"name":"(anonymous_2)","decl":{"start":{"line":25,"column":4},"end":{"line":25,"column":5}},"loc":{"start":{"line":25,"column":12},"end":{"line":28,"column":5}},"line":25},"3":{"name":"(anonymous_3)","decl":{"start":{"line":32,"column":14},"end":{"line":32,"column":15}},"loc":{"start":{"line":38,"column":12},"end":{"line":105,"column":1}},"line":38},"4":{"name":"(anonymous_4)","decl":{"start":{"line":46,"column":28},"end":{"line":46,"column":29}},"loc":{"start":{"line":46,"column":50},"end":{"line":97,"column":3}},"line":46},"5":{"name":"(anonymous_5)","decl":{"start":{"line":49,"column":8},"end":{"line":49,"column":9}},"loc":{"start":{"line":49,"column":16},"end":{"line":57,"column":9}},"line":49},"6":{"name":"(anonymous_6)","decl":{"start":{"line":58,"column":8},"end":{"line":58,"column":9}},"loc":{"start":{"line":58,"column":32},"end":{"line":66,"column":9}},"line":58},"7":{"name":"(anonymous_7)","decl":{"start":{"line":59,"column":43},"end":{"line":59,"column":44}},"loc":{"start":{"line":59,"column":57},"end":{"line":65,"column":11}},"line":59},"8":{"name":"(anonymous_8)","decl":{"start":{"line":67,"column":8},"end":{"line":67,"column":9}},"loc":{"start":{"line":67,"column":16},"end":{"line":73,"column":9}},"line":67},"9":{"name":"(anonymous_9)","decl":{"start":{"line":69,"column":67},"end":{"line":69,"column":68}},"loc":{"start":{"line":69,"column":82},"end":{"line":72,"column":11}},"line":69},"10":{"name":"(anonymous_10)","decl":{"start":{"line":71,"column":37},"end":{"line":71,"column":38}},"loc":{"start":{"line":71,"column":42},"end":{"line":71,"column":58}},"line":71},"11":{"name":"(anonymous_11)","decl":{"start":{"line":74,"column":8},"end":{"line":74,"column":9}},"loc":{"start":{"line":74,"column":22},"end":{"line":80,"column":9}},"line":74},"12":{"name":"(anonymous_12)","decl":{"start":{"line":78,"column":34},"end":{"line":78,"column":35}},"loc":{"start":{"line":78,"column":44},"end":{"line":78,"column":76}},"line":78},"13":{"name":"(anonymous_13)","decl":{"start":{"line":81,"column":8},"end":{"line":81,"column":9}},"loc":{"start":{"line":81,"column":32},"end":{"line":92,"column":9}},"line":81},"14":{"name":"(anonymous_14)","decl":{"start":{"line":82,"column":33},"end":{"line":82,"column":34}},"loc":{"start":{"line":82,"column":47},"end":{"line":91,"column":11}},"line":82},"15":{"name":"(anonymous_15)","decl":{"start":{"line":97,"column":5},"end":{"line":97,"column":6}},"loc":{"start":{"line":97,"column":14},"end":{"line":104,"column":3}},"line":97}},"branchMap":{"0":{"loc":{"start":{"line":54,"column":35},"end":{"line":54,"column":103}},"type":"cond-expr","locations":[{"start":{"line":54,"column":61},"end":{"line":54,"column":98}},{"start":{"line":54,"column":101},"end":{"line":54,"column":103}}],"line":54},"1":{"loc":{"start":{"line":70,"column":12},"end":{"line":70,"column":36}},"type":"if","locations":[{"start":{"line":70,"column":12},"end":{"line":70,"column":36}},{"start":{"line":70,"column":12},"end":{"line":70,"column":36}}],"line":70},"2":{"loc":{"start":{"line":83,"column":12},"end":{"line":89,"column":13}},"type":"if","locations":[{"start":{"line":83,"column":12},"end":{"line":89,"column":13}},{"start":{"line":83,"column":12},"end":{"line":89,"column":13}}],"line":83},"3":{"loc":{"start":{"line":98,"column":4},"end":{"line":101,"column":5}},"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":101,"column":5}},{"start":{"line":98,"column":4},"end":{"line":101,"column":5}}],"line":98}},"s":{"0":2,"1":3,"2":3,"3":3,"4":3,"5":3,"6":3,"7":2,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":0,"21":0,"22":0,"23":1,"24":1,"25":1,"26":0,"27":1,"28":3,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":3,"37":3,"38":3,"39":3,"40":0,"41":0,"42":1,"43":0,"44":0,"45":1,"46":1},"f":{"0":3,"1":3,"2":3,"3":1,"4":1,"5":1,"6":1,"7":0,"8":1,"9":1,"10":3,"11":1,"12":1,"13":1,"14":3,"15":1},"b":{"0":[0,1],"1":[0,1],"2":[3,0],"3":[0,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"650272af8d5104748ef3901d52ca2e372d4e2676"}
{"/Users/webserver/CI/deploy_scripts_nodejs/src/clean.js": {"path":"/Users/webserver/CI/deploy_scripts_nodejs/src/clean.js","statementMap":{"0":{"start":{"line":20,"column":21},"end":{"line":39,"column":1}},"1":{"start":{"line":21,"column":27},"end":{"line":21,"column":101}},"2":{"start":{"line":22,"column":23},"end":{"line":22,"column":93}},"3":{"start":{"line":23,"column":2},"end":{"line":38,"column":11}},"4":{"start":{"line":25,"column":6},"end":{"line":25,"column":37}},"5":{"start":{"line":25,"column":25},"end":{"line":25,"column":37}},"6":{"start":{"line":26,"column":6},"end":{"line":26,"column":69}},"7":{"start":{"line":27,"column":6},"end":{"line":27,"column":104}},"8":{"start":{"line":30,"column":6},"end":{"line":30,"column":74}},"9":{"start":{"line":31,"column":6},"end":{"line":31,"column":68}},"10":{"start":{"line":34,"column":6},"end":{"line":34,"column":36}},"11":{"start":{"line":34,"column":24},"end":{"line":34,"column":36}},"12":{"start":{"line":35,"column":6},"end":{"line":35,"column":68}},"13":{"start":{"line":36,"column":6},"end":{"line":36,"column":43}},"14":{"start":{"line":41,"column":14},"end":{"line":115,"column":1}},"15":{"start":{"line":49,"column":2},"end":{"line":49,"column":82}},"16":{"start":{"line":50,"column":70},"end":{"line":50,"column":100}},"17":{"start":{"line":51,"column":2},"end":{"line":51,"column":51}},"18":{"start":{"line":52,"column":2},"end":{"line":52,"column":18}},"19":{"start":{"line":54,"column":27},"end":{"line":54,"column":90}},"20":{"start":{"line":56,"column":2},"end":{"line":114,"column":5}},"21":{"start":{"line":57,"column":4},"end":{"line":106,"column":5}},"22":{"start":{"line":58,"column":6},"end":{"line":103,"column":19}},"23":{"start":{"line":60,"column":10},"end":{"line":60,"column":79}},"24":{"start":{"line":61,"column":10},"end":{"line":65,"column":17}},"25":{"start":{"line":66,"column":10},"end":{"line":66,"column":22}},"26":{"start":{"line":69,"column":10},"end":{"line":75,"column":17}},"27":{"start":{"line":70,"column":27},"end":{"line":70,"column":45}},"28":{"start":{"line":71,"column":12},"end":{"line":73,"column":14}},"29":{"start":{"line":74,"column":12},"end":{"line":74,"column":113}},"30":{"start":{"line":78,"column":10},"end":{"line":78,"column":78}},"31":{"start":{"line":79,"column":10},"end":{"line":82,"column":13}},"32":{"start":{"line":80,"column":12},"end":{"line":80,"column":36}},"33":{"start":{"line":80,"column":21},"end":{"line":80,"column":36}},"34":{"start":{"line":81,"column":12},"end":{"line":81,"column":61}},"35":{"start":{"line":81,"column":42},"end":{"line":81,"column":58}},"36":{"start":{"line":85,"column":10},"end":{"line":85,"column":74}},"37":{"start":{"line":86,"column":25},"end":{"line":86,"column":103}},"38":{"start":{"line":87,"column":10},"end":{"line":87,"column":49}},"39":{"start":{"line":88,"column":10},"end":{"line":88,"column":78}},"40":{"start":{"line":88,"column":44},"end":{"line":88,"column":76}},"41":{"start":{"line":89,"column":10},"end":{"line":89,"column":35}},"42":{"start":{"line":92,"column":10},"end":{"line":101,"column":17}},"43":{"start":{"line":93,"column":12},"end":{"line":99,"column":13}},"44":{"start":{"line":94,"column":14},"end":{"line":96,"column":16}},"45":{"start":{"line":97,"column":29},"end":{"line":97,"column":32}},"46":{"start":{"line":98,"column":14},"end":{"line":98,"column":122}},"47":{"start":{"line":100,"column":12},"end":{"line":100,"column":25}},"48":{"start":{"line":105,"column":6},"end":{"line":105,"column":41}},"49":{"start":{"line":108,"column":4},"end":{"line":111,"column":5}},"50":{"start":{"line":109,"column":6},"end":{"line":109,"column":81}},"51":{"start":{"line":110,"column":6},"end":{"line":110,"column":23}},"52":{"start":{"line":112,"column":4},"end":{"line":112,"column":72}},"53":{"start":{"line":113,"column":4},"end":{"line":113,"column":18}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":20,"column":21},"end":{"line":20,"column":22}},"loc":{"start":{"line":20,"column":114},"end":{"line":39,"column":1}},"line":20},"1":{"name":"(anonymous_1)","decl":{"start":{"line":24,"column":4},"end":{"line":24,"column":5}},"loc":{"start":{"line":24,"column":12},"end":{"line":28,"column":5}},"line":24},"2":{"name":"(anonymous_2)","decl":{"start":{"line":29,"column":4},"end":{"line":29,"column":5}},"loc":{"start":{"line":29,"column":12},"end":{"line":32,"column":5}},"line":29},"3":{"name":"(anonymous_3)","decl":{"start":{"line":33,"column":4},"end":{"line":33,"column":5}},"loc":{"start":{"line":33,"column":12},"end":{"line":37,"column":5}},"line":33},"4":{"name":"(anonymous_4)","decl":{"start":{"line":41,"column":14},"end":{"line":41,"column":15}},"loc":{"start":{"line":48,"column":12},"end":{"line":115,"column":1}},"line":48},"5":{"name":"(anonymous_5)","decl":{"start":{"line":56,"column":28},"end":{"line":56,"column":29}},"loc":{"start":{"line":56,"column":50},"end":{"line":107,"column":3}},"line":56},"6":{"name":"(anonymous_6)","decl":{"start":{"line":59,"column":8},"end":{"line":59,"column":9}},"loc":{"start":{"line":59,"column":16},"end":{"line":67,"column":9}},"line":59},"7":{"name":"(anonymous_7)","decl":{"start":{"line":68,"column":8},"end":{"line":68,"column":9}},"loc":{"start":{"line":68,"column":32},"end":{"line":76,"column":9}},"line":68},"8":{"name":"(anonymous_8)","decl":{"start":{"line":69,"column":43},"end":{"line":69,"column":44}},"loc":{"start":{"line":69,"column":57},"end":{"line":75,"column":11}},"line":69},"9":{"name":"(anonymous_9)","decl":{"start":{"line":77,"column":8},"end":{"line":77,"column":9}},"loc":{"start":{"line":77,"column":16},"end":{"line":83,"column":9}},"line":77},"10":{"name":"(anonymous_10)","decl":{"start":{"line":79,"column":67},"end":{"line":79,"column":68}},"loc":{"start":{"line":79,"column":82},"end":{"line":82,"column":11}},"line":79},"11":{"name":"(anonymous_11)","decl":{"start":{"line":81,"column":37},"end":{"line":81,"column":38}},"loc":{"start":{"line":81,"column":42},"end":{"line":81,"column":58}},"line":81},"12":{"name":"(anonymous_12)","decl":{"start":{"line":84,"column":8},"end":{"line":84,"column":9}},"loc":{"start":{"line":84,"column":22},"end":{"line":90,"column":9}},"line":84},"13":{"name":"(anonymous_13)","decl":{"start":{"line":88,"column":34},"end":{"line":88,"column":35}},"loc":{"start":{"line":88,"column":44},"end":{"line":88,"column":76}},"line":88},"14":{"name":"(anonymous_14)","decl":{"start":{"line":91,"column":8},"end":{"line":91,"column":9}},"loc":{"start":{"line":91,"column":32},"end":{"line":102,"column":9}},"line":91},"15":{"name":"(anonymous_15)","decl":{"start":{"line":92,"column":33},"end":{"line":92,"column":34}},"loc":{"start":{"line":92,"column":47},"end":{"line":101,"column":11}},"line":92},"16":{"name":"(anonymous_16)","decl":{"start":{"line":107,"column":5},"end":{"line":107,"column":6}},"loc":{"start":{"line":107,"column":14},"end":{"line":114,"column":3}},"line":107}},"branchMap":{"0":{"loc":{"start":{"line":25,"column":6},"end":{"line":25,"column":37}},"type":"if","locations":[{"start":{"line":25,"column":6},"end":{"line":25,"column":37}},{"start":{"line":25,"column":6},"end":{"line":25,"column":37}}],"line":25},"1":{"loc":{"start":{"line":34,"column":6},"end":{"line":34,"column":36}},"type":"if","locations":[{"start":{"line":34,"column":6},"end":{"line":34,"column":36}},{"start":{"line":34,"column":6},"end":{"line":34,"column":36}}],"line":34},"2":{"loc":{"start":{"line":64,"column":35},"end":{"line":64,"column":103}},"type":"cond-expr","locations":[{"start":{"line":64,"column":61},"end":{"line":64,"column":98}},{"start":{"line":64,"column":101},"end":{"line":64,"column":103}}],"line":64},"3":{"loc":{"start":{"line":80,"column":12},"end":{"line":80,"column":36}},"type":"if","locations":[{"start":{"line":80,"column":12},"end":{"line":80,"column":36}},{"start":{"line":80,"column":12},"end":{"line":80,"column":36}}],"line":80},"4":{"loc":{"start":{"line":93,"column":12},"end":{"line":99,"column":13}},"type":"if","locations":[{"start":{"line":93,"column":12},"end":{"line":99,"column":13}},{"start":{"line":93,"column":12},"end":{"line":99,"column":13}}],"line":93},"5":{"loc":{"start":{"line":108,"column":4},"end":{"line":111,"column":5}},"type":"if","locations":[{"start":{"line":108,"column":4},"end":{"line":111,"column":5}},{"start":{"line":108,"column":4},"end":{"line":111,"column":5}}],"line":108}},"s":{"0":2,"1":3,"2":3,"3":3,"4":3,"5":0,"6":3,"7":3,"8":3,"9":3,"10":3,"11":0,"12":3,"13":3,"14":2,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":0,"28":0,"29":0,"30":1,"31":1,"32":1,"33":0,"34":1,"35":3,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":3,"44":3,"45":3,"46":3,"47":0,"48":0,"49":1,"50":0,"51":0,"52":1,"53":1},"f":{"0":3,"1":3,"2":3,"3":3,"4":1,"5":1,"6":1,"7":1,"8":0,"9":1,"10":1,"11":3,"12":1,"13":1,"14":1,"15":3,"16":1},"b":{"0":[0,3],"1":[0,3],"2":[0,1],"3":[0,1],"4":[3,0],"5":[0,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"85a34b598588d07260611b4ffc84180a28bbb878"}
,"/Users/webserver/CI/deploy_scripts_nodejs/src/deploy.js": {"path":"/Users/webserver/CI/deploy_scripts_nodejs/src/deploy.js","statementMap":{"0":{"start":{"line":20,"column":27},"end":{"line":28,"column":1}},"1":{"start":{"line":20,"column":35},"end":{"line":28,"column":1}},"2":{"start":{"line":21,"column":2},"end":{"line":25,"column":3}},"3":{"start":{"line":22,"column":4},"end":{"line":22,"column":65}},"4":{"start":{"line":23,"column":4},"end":{"line":23,"column":24}},"5":{"start":{"line":23,"column":14},"end":{"line":23,"column":24}},"6":{"start":{"line":24,"column":4},"end":{"line":24,"column":11}},"7":{"start":{"line":26,"column":2},"end":{"line":26,"column":62}},"8":{"start":{"line":27,"column":2},"end":{"line":27,"column":19}},"9":{"start":{"line":27,"column":12},"end":{"line":27,"column":19}},"10":{"start":{"line":30,"column":22},"end":{"line":56,"column":1}},"11":{"start":{"line":38,"column":2},"end":{"line":38,"column":108}},"12":{"start":{"line":39,"column":87},"end":{"line":39,"column":124}},"13":{"start":{"line":41,"column":20},"end":{"line":41,"column":53}},"14":{"start":{"line":42,"column":20},"end":{"line":42,"column":89}},"15":{"start":{"line":43,"column":27},"end":{"line":43,"column":87}},"16":{"start":{"line":44,"column":28},"end":{"line":44,"column":90}},"17":{"start":{"line":45,"column":31},"end":{"line":45,"column":60}},"18":{"start":{"line":47,"column":2},"end":{"line":55,"column":31}},"19":{"start":{"line":48,"column":4},"end":{"line":48,"column":71}},"20":{"start":{"line":49,"column":4},"end":{"line":54,"column":17}},"21":{"start":{"line":50,"column":12},"end":{"line":50,"column":76}},"22":{"start":{"line":51,"column":12},"end":{"line":51,"column":66}},"23":{"start":{"line":52,"column":12},"end":{"line":52,"column":70}},"24":{"start":{"line":53,"column":12},"end":{"line":53,"column":82}},"25":{"start":{"line":58,"column":31},"end":{"line":79,"column":1}},"26":{"start":{"line":66,"column":2},"end":{"line":66,"column":127}},"27":{"start":{"line":67,"column":66},"end":{"line":67,"column":103}},"28":{"start":{"line":69,"column":20},"end":{"line":69,"column":53}},"29":{"start":{"line":70,"column":20},"end":{"line":70,"column":90}},"30":{"start":{"line":72,"column":2},"end":{"line":78,"column":31}},"31":{"start":{"line":73,"column":4},"end":{"line":73,"column":71}},"32":{"start":{"line":74,"column":4},"end":{"line":77,"column":17}},"33":{"start":{"line":75,"column":12},"end":{"line":75,"column":76}},"34":{"start":{"line":76,"column":12},"end":{"line":76,"column":66}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":20,"column":27},"end":{"line":20,"column":28}},"loc":{"start":{"line":20,"column":35},"end":{"line":28,"column":1}},"line":20},"1":{"name":"(anonymous_1)","decl":{"start":{"line":20,"column":35},"end":{"line":20,"column":36}},"loc":{"start":{"line":20,"column":44},"end":{"line":28,"column":1}},"line":20},"2":{"name":"(anonymous_2)","decl":{"start":{"line":30,"column":22},"end":{"line":30,"column":23}},"loc":{"start":{"line":37,"column":12},"end":{"line":56,"column":1}},"line":37},"3":{"name":"(anonymous_3)","decl":{"start":{"line":47,"column":28},"end":{"line":47,"column":29}},"loc":{"start":{"line":47,"column":50},"end":{"line":55,"column":3}},"line":47},"4":{"name":"(anonymous_4)","decl":{"start":{"line":50,"column":6},"end":{"line":50,"column":7}},"loc":{"start":{"line":50,"column":12},"end":{"line":50,"column":76}},"line":50},"5":{"name":"(anonymous_5)","decl":{"start":{"line":51,"column":6},"end":{"line":51,"column":7}},"loc":{"start":{"line":51,"column":12},"end":{"line":51,"column":66}},"line":51},"6":{"name":"(anonymous_6)","decl":{"start":{"line":52,"column":6},"end":{"line":52,"column":7}},"loc":{"start":{"line":52,"column":12},"end":{"line":52,"column":70}},"line":52},"7":{"name":"(anonymous_7)","decl":{"start":{"line":53,"column":6},"end":{"line":53,"column":7}},"loc":{"start":{"line":53,"column":12},"end":{"line":53,"column":82}},"line":53},"8":{"name":"(anonymous_8)","decl":{"start":{"line":58,"column":31},"end":{"line":58,"column":32}},"loc":{"start":{"line":65,"column":12},"end":{"line":79,"column":1}},"line":65},"9":{"name":"(anonymous_9)","decl":{"start":{"line":72,"column":28},"end":{"line":72,"column":29}},"loc":{"start":{"line":72,"column":50},"end":{"line":78,"column":3}},"line":72},"10":{"name":"(anonymous_10)","decl":{"start":{"line":75,"column":6},"end":{"line":75,"column":7}},"loc":{"start":{"line":75,"column":12},"end":{"line":75,"column":76}},"line":75},"11":{"name":"(anonymous_11)","decl":{"start":{"line":76,"column":6},"end":{"line":76,"column":7}},"loc":{"start":{"line":76,"column":12},"end":{"line":76,"column":66}},"line":76}},"branchMap":{"0":{"loc":{"start":{"line":21,"column":2},"end":{"line":25,"column":3}},"type":"if","locations":[{"start":{"line":21,"column":2},"end":{"line":25,"column":3}},{"start":{"line":21,"column":2},"end":{"line":25,"column":3}}],"line":21},"1":{"loc":{"start":{"line":23,"column":4},"end":{"line":23,"column":24}},"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":23,"column":24}},{"start":{"line":23,"column":4},"end":{"line":23,"column":24}}],"line":23},"2":{"loc":{"start":{"line":27,"column":2},"end":{"line":27,"column":19}},"type":"if","locations":[{"start":{"line":27,"column":2},"end":{"line":27,"column":19}},{"start":{"line":27,"column":2},"end":{"line":27,"column":19}}],"line":27}},"s":{"0":3,"1":7,"2":7,"3":0,"4":0,"5":0,"6":0,"7":7,"8":7,"9":7,"10":3,"11":3,"12":3,"13":3,"14":3,"15":3,"16":3,"17":3,"18":3,"19":3,"20":3,"21":3,"22":3,"23":3,"24":3,"25":3,"26":4,"27":4,"28":4,"29":4,"30":4,"31":4,"32":4,"33":4,"34":4},"f":{"0":7,"1":7,"2":3,"3":3,"4":3,"5":3,"6":3,"7":3,"8":4,"9":4,"10":4,"11":4},"b":{"0":[0,7],"1":[0,0],"2":[7,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"8f6f676a593e9354de96414addb3c59c13352734"}

@@ -3,0 +3,0 @@ ,"/Users/webserver/CI/deploy_scripts_nodejs/src/index.js": {"path":"/Users/webserver/CI/deploy_scripts_nodejs/src/index.js","statementMap":{},"fnMap":{},"branchMap":{},"s":{},"f":{},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"d992fc38e98e054d50a5065017605ce43e042b68"}

@@ -45,3 +45,4 @@ 'use strict';

branch = _ref.branch,
beforeDelete = _ref.beforeDelete;
beforeDelete = _ref.beforeDelete,
afterDelete = _ref.afterDelete;

@@ -51,2 +52,4 @@ var allbranchBaseDir = (0, _createPath.createAllbranchBaseDirPath)({ sshBaseDir: sshBaseDir, projectName: projectName, sshSubDir: sshSubDir, branch: branch });

_async2.default.series([function (cb) {
if (!beforeDelete) return cb();
console.log(' ' + _chalk2.default.underline('Running beforeDelete...'));
return (0, _runAfterDeploy2.default)({ sshDsn: sshDsn, branch: branch, remoteDir: allbranchDir, afterDeploy: beforeDelete }, cb);

@@ -56,2 +59,6 @@ }, function (cb) {

(0, _remote.executeRemoveDir)({ sshDsn: sshDsn, remoteDir: allbranchBaseDir }, cb);
}, function (cb) {
if (!afterDelete) return cb();
console.log(' ' + _chalk2.default.underline('Running afterDelete...'));
return _async2.default.series(afterDelete, cb);
}], next);

@@ -64,2 +71,3 @@ };

beforeDelete = _ref2.beforeDelete,
afterDelete = _ref2.afterDelete,
configFile = _ref2.configFile,

@@ -95,3 +103,3 @@ config = _ref2.config;

console.log(' ' + _chalk2.default.underline('Directory \'' + branch + '\' is too old and will be deleted now.'));
removeBranch({ sshDsn: sshDsn, sshBaseDir: sshBaseDir, sshSubDir: sshSubDir, projectName: projectName, branch: branch, beforeDelete: beforeDelete }, _cb);
removeBranch({ sshDsn: sshDsn, sshBaseDir: sshBaseDir, sshSubDir: sshSubDir, projectName: projectName, branch: branch, beforeDelete: beforeDelete, afterDelete: afterDelete }, _cb);
}, cb);

@@ -119,3 +127,3 @@ }, function (cb) {

var branch = dir;
return removeBranch({ sshDsn: sshDsn, sshBaseDir: sshBaseDir, sshSubDir: sshSubDir, projectName: projectName, branch: branch, beforeDelete: beforeDelete }, _cb);
return removeBranch({ sshDsn: sshDsn, sshBaseDir: sshBaseDir, sshSubDir: sshSubDir, projectName: projectName, branch: branch, beforeDelete: beforeDelete, afterDelete: afterDelete }, _cb);
}

@@ -122,0 +130,0 @@ return _cb();

{
"name": "deploy-scripts-nodejs",
"version": "1.0.1",
"version": "1.1.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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