@donmahallem/lerna2codecov 0.1.2 → 0.1.3

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
  }
@@ -10464,6 +10496,6 @@ async function updateConfig(project, codecovCfg, opts) {
10464
10496
  }
10465
10497
 
10466
10498
  export { updateConfig };
10467
- // BUILD: Fri Jan 07 2022 14:36:06 GMT+0100 (Central European Standard Time)
10499
+ // BUILD: Sun Jan 09 2022 16:10:12 GMT+0100 (Central European Standard Time)
10468
10500
 
10469
10501
  //# sourceMappingURL=index.js.map