dependency-change-report 1.3.2 → 1.3.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/cli.mjs +4 -4
- package/package.json +1 -1
package/cli.mjs
CHANGED
|
@@ -42,8 +42,8 @@ const compare = command(
|
|
|
42
42
|
const token = process.env.GITHUB_TOKEN;
|
|
43
43
|
if (token) {
|
|
44
44
|
console.log(`Original repo URL: ${repoUrl}`);
|
|
45
|
-
// Convert https://github.com/owner/repo to https://token@github.com/owner/repo
|
|
46
|
-
repoUrl = repoUrl.replace('https://github.com/', `https://${token}@github.com/`);
|
|
45
|
+
// Convert https://github.com/owner/repo to https://token:x-oauth-basic@github.com/owner/repo
|
|
46
|
+
repoUrl = repoUrl.replace('https://github.com/', `https://${token}:x-oauth-basic@github.com/`);
|
|
47
47
|
console.log('Modified repo URL to use GitHub token authentication');
|
|
48
48
|
console.log('Using GitHub token for private repository access');
|
|
49
49
|
} else {
|
|
@@ -207,8 +207,8 @@ const auto = command(
|
|
|
207
207
|
const token = process.env.GITHUB_TOKEN;
|
|
208
208
|
if (token) {
|
|
209
209
|
console.log(`Original repo URL: ${repoUrl}`);
|
|
210
|
-
// Convert https://github.com/owner/repo to https://token@github.com/owner/repo
|
|
211
|
-
repoUrl = repoUrl.replace('https://github.com/', `https://${token}@github.com/`);
|
|
210
|
+
// Convert https://github.com/owner/repo to https://token:x-oauth-basic@github.com/owner/repo
|
|
211
|
+
repoUrl = repoUrl.replace('https://github.com/', `https://${token}:x-oauth-basic@github.com/`);
|
|
212
212
|
console.log('Modified repo URL to use GitHub token authentication');
|
|
213
213
|
console.log('Using GitHub token for private repository access');
|
|
214
214
|
} else {
|