[object Object]

← back to Sanderson Onboard

chore: harvest_width.js refactor (hoist fs require) + v1.0.1→1.1.0 (session close)

e9c105a2e7feeaf95e39288d2326bfb54598b929 · 2026-08-10 10:15:55 -0700 · Steve Abrams

Files touched

Diff

commit e9c105a2e7feeaf95e39288d2326bfb54598b929
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon Aug 10 10:15:55 2026 -0700

    chore: harvest_width.js refactor (hoist fs require) + v1.0.1→1.1.0 (session close)
---
 VERSION                  | 2 +-
 scripts/harvest_width.js | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/VERSION b/VERSION
index 7dea76e..9084fa2 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.1
+1.1.0
diff --git a/scripts/harvest_width.js b/scripts/harvest_width.js
index 85f523a..7709e7a 100644
--- a/scripts/harvest_width.js
+++ b/scripts/harvest_width.js
@@ -11,6 +11,7 @@
 //
 // Usage: node scripts/harvest_width.js            (all null-width rows)
 //        node scripts/harvest_width.js --all      (re-harvest every row)
+const fs = require('fs');
 const https = require('https');
 const { execFileSync } = require('child_process');
 
@@ -49,7 +50,7 @@ const numFrom = s => { const m = String(s == null ? '' : s).match(/-?\d+(\.\d+)?
     await sleep(150);
   }
   if (updates.length) {
-    const fs = require('fs'), tmp = '/tmp/sanderson_width_updates.sql';
+    const tmp = '/tmp/sanderson_width_updates.sql';
     fs.writeFileSync(tmp, 'begin;\n' + updates.join('\n') + '\ncommit;\n');
     psqlFile(tmp);
   }

← fa05ca1 Sanderson: harvest product width from public retail API ($0,  ·  back to Sanderson Onboard  ·  auto-data-snapshot: 2026-08-11T05:01:24 (1 data files) — dat d6f5ac3 →