nsa-sheets-db-builder 0.0.1-alpha.3 → 0.0.1-alpha.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": "nsa-sheets-db-builder",
3
- "version": "0.0.1-alpha.3",
3
+ "version": "0.0.1-alpha.4",
4
4
  "description": "DDL provisioner for Google Sheets — creates spreadsheets, sheets, and headers",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -26,9 +26,7 @@ function getLogger(): any {
26
26
  // ── Auth ──────────────────────────────────
27
27
 
28
28
  function validateApiKey(key: string): boolean {
29
- const storedKey = PropertiesService.getScriptProperties().getProperty('DDL_API_KEY');
30
- if (!storedKey) return false;
31
- return key === storedKey;
29
+ return !!DEPLOYER_CONFIG.ddlAdminKey && key === DEPLOYER_CONFIG.ddlAdminKey;
32
30
  }
33
31
 
34
32
  // ── Response Helper ───────────────────────