corifeus-builder 2026.4.143 → 2026.4.146

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.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
  ---
8
- # 🏗️ Corifeus Builder v2026.4.143
8
+ # 🏗️ Corifeus Builder v2026.4.146
9
9
 
10
10
 
11
11
 
@@ -152,7 +152,7 @@ All my domains, including [patrikx3.com](https://patrikx3.com), [corifeus.eu](ht
152
152
  **🚨 Important Changes:** Any breaking changes are prominently noted in the readme to keep you informed.
153
153
 
154
154
 
155
- [**CORIFEUS-BUILDER**](https://corifeus.com/corifeus-builder) Build v2026.4.143
155
+ [**CORIFEUS-BUILDER**](https://corifeus.com/corifeus-builder) Build v2026.4.146
156
156
 
157
157
  [![NPM](https://img.shields.io/npm/v/corifeus-builder.svg)](https://www.npmjs.com/package/corifeus-builder) [![Donate for PatrikX3 / P3X](https://img.shields.io/badge/Donate-PatrikX3-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
158
158
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corifeus-builder",
3
- "version": "2026.4.143",
3
+ "version": "2026.4.146",
4
4
  "corifeus": {
5
5
  "icon": "fas fa-gavel",
6
6
  "code": "Make",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "homepage": "https://corifeus.com/corifeus-builder",
35
35
  "dependencies": {
36
- "corifeus-utils": "^2025.4.123",
36
+ "corifeus-utils": "^2026.4.126",
37
37
  "download": "^8.0.0",
38
38
  "extract-zip": "^2.0.1",
39
39
  "fs-extra": "^11.3.4",
@@ -50,8 +50,8 @@
50
50
  "mkdirp": "^3.0.1",
51
51
  "mocha": "^11.7.5",
52
52
  "mz": "^2.7.0",
53
- "npm": "^11.12.1",
54
- "npm-check-updates": "^21.0.2",
53
+ "npm": "^11.13.0",
54
+ "npm-check-updates": "^22.0.1",
55
55
  "should": "^13.2.3",
56
56
  "time-grunt": "^2.0.0",
57
57
  "yaml": "^2.8.3"
package/src/git.js CHANGED
@@ -1,9 +1,18 @@
1
1
  const exec = require('mz/child_process').exec;
2
2
 
3
- const commit = exec('git rev-list --all --count').then((stdout) => parseInt(stdout.join('').toString()));
4
- const date = exec('git log -1 --format=%at').then((stdout) => parseInt(stdout.join('').toString()));
5
- const branch = exec('git rev-parse --abbrev-ref HEAD').then((stdout) => stdout.join('').toString().trim());
6
- const repo = exec('git config remote.origin.url').then((stdout) => {
3
+ // Each promise resolves to null when not in a git repo, instead of rejecting
4
+ // noisily. Importing this module at top level previously dumped four
5
+ // "fatal: not a git repository" errors whenever cwd had no .git (e.g. webhook
6
+ // post-update tmp dirs where .git was just removed).
7
+ const safe = (cmd, mapStdout) => exec(cmd).then(
8
+ (stdout) => mapStdout(stdout),
9
+ () => null,
10
+ );
11
+
12
+ const commit = safe('git rev-list --all --count', (stdout) => parseInt(stdout.join('').toString()));
13
+ const date = safe('git log -1 --format=%at', (stdout) => parseInt(stdout.join('').toString()));
14
+ const branch = safe('git rev-parse --abbrev-ref HEAD', (stdout) => stdout.join('').toString().trim());
15
+ const repo = safe('git config remote.origin.url', (stdout) => {
7
16
  const data = stdout.join('').toString().split('/');
8
17
  let repo = data[data.length - 1].trim();
9
18
  const remove = '.git';
@@ -118,10 +118,10 @@ module.exports = async function (context) {
118
118
  const repo = await gh.getRepo('patrikx3', pkg.corifeus.reponame)
119
119
  const result = await repo.createRelease({
120
120
  "tag_name": 'v' + pkg.version,
121
- "target_commitish": "master",
121
+ "target_commitish": "main",
122
122
  "name": pkg.version,
123
123
  "body": `
124
- https://github.com/patrikx3/${pkg.corifeus.reponame}/blob/master/change-log.md#v${pkg.version.replace(/\./g, '')}
124
+ https://github.com/patrikx3/${pkg.corifeus.reponame}/blob/main/change-log.md#v${pkg.version.replace(/\./g, '')}
125
125
 
126
126
  [![Snapcraft](https://snapcraft.io/static/images/badges/en/snap-store-black.svg)](https://snapcraft.io/${pkg.name}#cory-non-external)
127
127
  `,