cob-cli 2.39.2 → 2.39.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -205,7 +205,6 @@ function copyAndMerge(customizationRepoName, source, substitutions = {}) {
205
205
  transform(read, write) {
206
206
  const replaceVarsTransformFunction = new Transform({
207
207
  transform: (chunk, encoding, done) => {
208
- if(chunk.toString().indexOf("_log.css") > 0) console.log(chunk.toString())
209
208
  if(/\ufffd/.test(chunk) === true) {
210
209
  // If chunk is binary don't change anything
211
210
  done(null, chunk)
@@ -18,16 +18,21 @@ async function registerRelease(cmdEnv) {
18
18
  currentBranch = "";
19
19
 
20
20
  } else {
21
+ debugger
21
22
  if (lastSha != currentSha) { // Only if diferent SHA, otherwise wont do anything, it's a re-deploy
22
- let gitLog = await git().log([lastSha + ".." + currentSha]);
23
- if (gitLog.all.length) {
24
- for (let i = 0; i < gitLog.all.length; i++) {
25
- diffs = diffs
26
- + "\n\t * "
27
- + gitLog.all[i].message
28
- + " [" + gitLog.all[i].hash.slice(0,7) + "]";
23
+ try {
24
+ let gitLog = await git().log([lastSha + ".." + currentSha]);
25
+ if (gitLog.all.length) {
26
+ for (let i = 0; i < gitLog.all.length; i++) {
27
+ diffs = diffs
28
+ + "\n\t * "
29
+ + gitLog.all[i].message
30
+ + " [" + gitLog.all[i].hash.slice(0,7) + "]";
31
+ }
32
+ diffs += "\n\n"
29
33
  }
30
- diffs += "\n\n"
34
+ } catch(e) {
35
+ console.log("Warning:" + e);
31
36
  }
32
37
  }
33
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cob-cli",
3
- "version": "2.39.2",
3
+ "version": "2.39.4",
4
4
  "description": "A command line utility to help Cult of Bits partners develop with higher speed and reusing common code and best practices.",
5
5
  "preferGlobal": true,
6
6
  "repository": {