@duckcodeailabs/dql-compiler 1.2.0 → 1.2.2

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.
@@ -989,7 +989,7 @@ export function emitWorkbookHTML(workbook, theme, runtimeJS, options = {}) {
989
989
  var n2 = parseInt(m[1], 10);
990
990
  if (!isNaN(n2)) return n2;
991
991
  }
992
- } catch (_) {}
992
+ } catch (e) { console.warn('[dql] dqlGetInitialPage URL/hash parse failed', e); }
993
993
  return 0;
994
994
  }
995
995
 
@@ -1044,7 +1044,7 @@ export function emitWorkbookHTML(workbook, theme, runtimeJS, options = {}) {
1044
1044
  var u = new URL(window.location.href);
1045
1045
  u.searchParams.set('page', String(pageIndex));
1046
1046
  history.replaceState(null, '', u.toString());
1047
- } catch (_) {}
1047
+ } catch (e) { console.warn('[dql] page URL sync failed', e); }
1048
1048
 
1049
1049
  // Re-initialize charts for the new page
1050
1050
  if (typeof initDashboard === 'function') initDashboard();
@@ -37,7 +37,7 @@ export function emitRuntimeJS() {
37
37
  for (var si = 0; si < el.selectedOptions.length; si++) {
38
38
  selected.push(el.selectedOptions[si].value);
39
39
  }
40
- } catch (_) {}
40
+ } catch (e) { console.warn('[dql] filter selectedOptions iteration failed for', f.id, e); }
41
41
  vars[f.param] = selected;
42
42
  } else if (el && 'value' in el) {
43
43
  vars[f.param] = el.value;
@@ -54,7 +54,7 @@ export function emitRuntimeJS() {
54
54
  Object.keys(filterState || {}).forEach(function(k) {
55
55
  if (vars[k] === undefined) vars[k] = filterState[k];
56
56
  });
57
- } catch (_) {}
57
+ } catch (e) { console.warn('[dql] filterState merge failed', e); }
58
58
 
59
59
  // Merge dashboard params (URL/default-driven)
60
60
  if (DQL_CONFIG.params) {
@@ -71,7 +71,7 @@ export function emitRuntimeJS() {
71
71
  Object.keys(paramActionState || {}).forEach(function(key) {
72
72
  vars[key] = paramActionState[key];
73
73
  });
74
- } catch (_) {}
74
+ } catch (e) { console.warn('[dql] paramActionState merge failed', e); }
75
75
 
76
76
  // Merge URL params (lowest precedence; ignore breadcrumb/system params)
77
77
  urlParams.forEach(function(value, key) {
@@ -1105,7 +1105,7 @@ export function emitRuntimeJS() {
1105
1105
  try {
1106
1106
  var state = encodeURIComponent(JSON.stringify(captureStateSnapshot()));
1107
1107
  url += '&dqlState=' + state;
1108
- } catch (_) {}
1108
+ } catch (e) { console.warn('[dql] dqlState capture failed', e); }
1109
1109
 
1110
1110
  window.location.href = url;
1111
1111
  }
@@ -1266,7 +1266,7 @@ export function emitRuntimeJS() {
1266
1266
  for (var s = 0; s < el.selectedOptions.length; s++) {
1267
1267
  selected.push(el.selectedOptions[s].value);
1268
1268
  }
1269
- } catch (_) {}
1269
+ } catch (e) { console.warn('[dql] captureFilters selectedOptions failed for', filter.id, e); }
1270
1270
  if (selected.length > 0) {
1271
1271
  filterState[filter.param] = selected;
1272
1272
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckcodeailabs/dql-compiler",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "DQL compiler: IR lowering, Vega-Lite code generation, HTML/CSS emitting",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "@duckcodeailabs/dql-core": "^1.2.0"
27
+ "@duckcodeailabs/dql-core": "^1.2.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "vitest": "^3.0.0",