@majordigital/create-acorn 1.6.3 → 1.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majordigital/create-acorn",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "Interactive starter CLI for Acorn with Storyblok/Prismic/DatoCMS, TypeScript, and Tailwind.",
5
5
  "bin": {
6
6
  "create-acorn": "bin/create-acorn.mjs",
@@ -29,9 +29,9 @@ const concurrency = isLocalhost ? 2 : 5;
29
29
  // Support Netlify Basic Auth (password-protected preview deploys).
30
30
  // Set NETLIFY_AUTH=user:password in your environment before running.
31
31
  const netlifyAuth = process.env.NETLIFY_AUTH;
32
- const headers = netlifyAuth
33
- ? { Authorization: `Basic ${Buffer.from(netlifyAuth).toString("base64")}` }
34
- : {};
32
+ const crawlUrl = netlifyAuth
33
+ ? baseUrl.replace(/^(https?:\/\/)/, `$1${netlifyAuth}@`)
34
+ : baseUrl;
35
35
 
36
36
  const checker = new LinkChecker();
37
37
 
@@ -49,11 +49,10 @@ console.log(`Concurrency: ${concurrency}`);
49
49
  console.log("This may take several minutes...\n");
50
50
 
51
51
  const result = await checker.check({
52
- path: baseUrl,
52
+ path: crawlUrl,
53
53
  recurse: true,
54
54
  concurrency,
55
55
  timeout: 30000,
56
- headers,
57
56
  linksToSkip: [
58
57
  // Skip external links to avoid false positives from rate limiting
59
58
  `^(?!(${baseUrl.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}))`,