@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/esm/index.js CHANGED
@@ -155,6 +155,36 @@ gitHosts$2.gist = Object.assign({}, defaults$1, {
155
155
  }
156
156
  });
157
157
 
158
+ gitHosts$2.sourcehut = Object.assign({}, defaults$1, {
159
+ protocols: ['git+ssh:', 'https:'],
160
+ domain: 'git.sr.ht',
161
+ treepath: 'tree',
162
+ browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'main')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,
163
+ filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || 'main'}/${path}`,
164
+ httpstemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,
165
+ tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || 'main'}.tar.gz`,
166
+ bugstemplate: ({ domain, user, project }) => `https://todo.sr.ht/${user}/${project}`,
167
+ docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,
168
+ extract: (url) => {
169
+ let [, user, project, aux] = url.pathname.split('/', 4);
170
+
171
+ // tarball url
172
+ if (['archive'].includes(aux)) {
173
+ return
174
+ }
175
+
176
+ if (project && project.endsWith('.git')) {
177
+ project = project.slice(0, -4);
178
+ }
179
+
180
+ if (!user || !project) {
181
+ return
182
+ }
183
+
184
+ return { user, project, committish: url.hash.slice(1) }
185
+ }
186
+ });
187
+
158
188
  const names = Object.keys(gitHosts$2);
159
189
  gitHosts$2.byShortcut = {};
160
190
  gitHosts$2.byDomain = {};
@@ -4053,8 +4083,10 @@ function patch$1 (fs) {
4053
4083
  return function (target, options) {
4054
4084
  var stats = options ? orig.call(fs, target, options)
4055
4085
  : orig.call(fs, target);
4056
- if (stats.uid < 0) stats.uid += 0x100000000;
4057
- if (stats.gid < 0) stats.gid += 0x100000000;
4086
+ if (stats) {
4087
+ if (stats.uid < 0) stats.uid += 0x100000000;
4088
+ if (stats.gid < 0) stats.gid += 0x100000000;
4089
+ }
4058
4090
  return stats;
4059
4091
  }
4060
4092
  }
@@ -7206,7 +7238,7 @@ function getChalk(options) {
7206
7238
  }
7207
7239
 
7208
7240
  function highlight(code, options = {}) {
7209
- if (shouldHighlight(options)) {
7241
+ if (code !== "" && shouldHighlight(options)) {
7210
7242
  const chalk = getChalk(options);
7211
7243
  const defs = getDefs$1(chalk);
7212
7244
  return highlightTokens(defs, code);
@@ -7678,7 +7710,9 @@ const processOk = function (process) {
7678
7710
  // some kind of non-node environment, just no-op
7679
7711
  /* istanbul ignore if */
7680
7712
  if (!processOk(process$1)) {
7681
- signalExit.exports = function () {};
7713
+ signalExit.exports = function () {
7714
+ return function () {}
7715
+ };
7682
7716
  } else {
7683
7717
  var assert = require$$5$1;
7684
7718
  var signals = signals$1.exports;
@@ -7711,7 +7745,7 @@ if (!processOk(process$1)) {
7711
7745
  signalExit.exports = function (cb, opts) {
7712
7746
  /* istanbul ignore if */
7713
7747
  if (!processOk(commonjsGlobal.process)) {
7714
- return
7748
+ return function () {}
7715
7749
  }
7716
7750
  assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler');
7717
7751
 
@@ -10464,6 +10498,6 @@ async function updateConfig(project, codecovCfg, opts) {
10464
10498
  }
10465
10499
 
10466
10500
  export { updateConfig };
10467
- // BUILD: Mon Jan 03 2022 15:02:31 GMT+0100 (Central European Standard Time)
10501
+ // BUILD: Sun Feb 06 2022 11:26:28 GMT+0100 (Central European Standard Time)
10468
10502
 
10469
10503
  //# sourceMappingURL=index.js.map