@donmahallem/lerna2codecov 0.1.0 → 0.1.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.
package/dist/cjs/index.js CHANGED
@@ -172,6 +172,36 @@ gitHosts$2.gist = Object.assign({}, defaults$1, {
172
172
  }
173
173
  });
174
174
 
175
+ gitHosts$2.sourcehut = Object.assign({}, defaults$1, {
176
+ protocols: ['git+ssh:', 'https:'],
177
+ domain: 'git.sr.ht',
178
+ treepath: 'tree',
179
+ browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'main')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,
180
+ filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || 'main'}/${path}`,
181
+ httpstemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,
182
+ tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || 'main'}.tar.gz`,
183
+ bugstemplate: ({ domain, user, project }) => `https://todo.sr.ht/${user}/${project}`,
184
+ docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,
185
+ extract: (url) => {
186
+ let [, user, project, aux] = url.pathname.split('/', 4);
187
+
188
+ // tarball url
189
+ if (['archive'].includes(aux)) {
190
+ return
191
+ }
192
+
193
+ if (project && project.endsWith('.git')) {
194
+ project = project.slice(0, -4);
195
+ }
196
+
197
+ if (!user || !project) {
198
+ return
199
+ }
200
+
201
+ return { user, project, committish: url.hash.slice(1) }
202
+ }
203
+ });
204
+
175
205
  const names = Object.keys(gitHosts$2);
176
206
  gitHosts$2.byShortcut = {};
177
207
  gitHosts$2.byDomain = {};
@@ -4070,8 +4100,10 @@ function patch$1 (fs) {
4070
4100
  return function (target, options) {
4071
4101
  var stats = options ? orig.call(fs, target, options)
4072
4102
  : orig.call(fs, target);
4073
- if (stats.uid < 0) stats.uid += 0x100000000;
4074
- if (stats.gid < 0) stats.gid += 0x100000000;
4103
+ if (stats) {
4104
+ if (stats.uid < 0) stats.uid += 0x100000000;
4105
+ if (stats.gid < 0) stats.gid += 0x100000000;
4106
+ }
4075
4107
  return stats;
4076
4108
  }
4077
4109
  }
@@ -7223,7 +7255,7 @@ function getChalk(options) {
7223
7255
  }
7224
7256
 
7225
7257
  function highlight(code, options = {}) {
7226
- if (shouldHighlight(options)) {
7258
+ if (code !== "" && shouldHighlight(options)) {
7227
7259
  const chalk = getChalk(options);
7228
7260
  const defs = getDefs$1(chalk);
7229
7261
  return highlightTokens(defs, code);
@@ -7695,7 +7727,9 @@ const processOk = function (process) {
7695
7727
  // some kind of non-node environment, just no-op
7696
7728
  /* istanbul ignore if */
7697
7729
  if (!processOk(process$1)) {
7698
- signalExit.exports = function () {};
7730
+ signalExit.exports = function () {
7731
+ return function () {}
7732
+ };
7699
7733
  } else {
7700
7734
  var assert = require$$5__default$1["default"];
7701
7735
  var signals = signals$1.exports;
@@ -7728,7 +7762,7 @@ if (!processOk(process$1)) {
7728
7762
  signalExit.exports = function (cb, opts) {
7729
7763
  /* istanbul ignore if */
7730
7764
  if (!processOk(commonjsGlobal.process)) {
7731
- return
7765
+ return function () {}
7732
7766
  }
7733
7767
  assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler');
7734
7768
 
@@ -10481,6 +10515,6 @@ async function updateConfig(project, codecovCfg, opts) {
10481
10515
  }
10482
10516
 
10483
10517
  exports.updateConfig = updateConfig;
10484
- // BUILD: Mon Jan 03 2022 15:02:31 GMT+0100 (Central European Standard Time)
10518
+ // BUILD: Sun Feb 06 2022 11:26:28 GMT+0100 (Central European Standard Time)
10485
10519
 
10486
10520
  //# sourceMappingURL=index.js.map