[object Object]

← back to Designerwallcoverings

TK-00058 fix: rename const URL->API_URL in fentucci clear (TDZ shadowed global URL constructor; canary caught it)

a150b98aaa16d2ec92b347543fa80bf117afa2fd · 2026-08-31 11:48:31 -0700 · Steve Abrams

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit a150b98aaa16d2ec92b347543fa80bf117afa2fd
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon Aug 31 11:48:31 2026 -0700

    TK-00058 fix: rename const URL->API_URL in fentucci clear (TDZ shadowed global URL constructor; canary caught it)
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
 scripts/tk-00058-fentucci-needs-width/clear-needs-width.mjs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/tk-00058-fentucci-needs-width/clear-needs-width.mjs b/scripts/tk-00058-fentucci-needs-width/clear-needs-width.mjs
index 4aa526b..49977a8 100644
--- a/scripts/tk-00058-fentucci-needs-width/clear-needs-width.mjs
+++ b/scripts/tk-00058-fentucci-needs-width/clear-needs-width.mjs
@@ -23,6 +23,7 @@ const OUT = path.join(HERE, '_resolved');
 fs.mkdirSync(OUT, { recursive: true });
 
 const SHOP = 'designer-laboratory-sandbox.myshopify.com';
+const API_URL = `https://${SHOP}/admin/api/2024-10/graphql.json`;
 function token() {
   const env = fs.readFileSync(path.join(os.homedir(), 'Projects/secrets-manager/.env'), 'utf8');
   const m = env.split('\n').find(l => /^SHOPIFY_ADMIN_TOKEN=/i.test(l));
@@ -30,10 +31,9 @@ function token() {
   return m.split('=').slice(1).join('=').trim().replace(/^["']|["']$/g, '');
 }
 const TOKEN = token();
-const URL = `https://${SHOP}/admin/api/2024-10/graphql.json`;
 
 async function gql(query, variables) {
-  const r = await fetch(URL, {
+  const r = await fetch(API_URL, {
     method: 'POST',
     headers: { 'X-Shopify-Access-Token': TOKEN, 'Content-Type': 'application/json' },
     body: JSON.stringify({ query, variables }),

← 1cd9880 Add TK-10456 price recovery probe  ·  back to Designerwallcoverings  ·  Draft TK-10456 vendor pricing requests 2b62045 →