@lark-apaas/observable 1.0.4-alpha.0 → 1.0.4-alpha.1

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/dist/index.cjs CHANGED
@@ -8844,7 +8844,7 @@ __name(hrTimeToNanosNumber, "hrTimeToNanosNumber");
8844
8844
 
8845
8845
  // package.json
8846
8846
  var package_default = {
8847
- version: "1.0.4-alpha.0"};
8847
+ version: "1.0.4-alpha.1"};
8848
8848
 
8849
8849
  // src/const.ts
8850
8850
  var AppEnv = /* @__PURE__ */ (function(AppEnv2) {
@@ -8910,8 +8910,14 @@ var SnipingConfigManager = class _SnipingConfigManager {
8910
8910
  try {
8911
8911
  const res = JSON.parse(configStr);
8912
8912
  const { logs: logs2, traces, metrics } = res ?? {};
8913
- if (Array.isArray(logs2?.module) && Array.isArray(traces?.module) && Array.isArray(metrics?.module)) {
8914
- this.config = res;
8913
+ if (Array.isArray(logs2?.module)) {
8914
+ this.config.logs.module = logs2.module;
8915
+ }
8916
+ if (Array.isArray(traces?.module)) {
8917
+ this.config.traces.module = traces.module;
8918
+ }
8919
+ if (Array.isArray(metrics?.module)) {
8920
+ this.config.metrics.module = metrics.module;
8915
8921
  }
8916
8922
  } catch (error) {
8917
8923
  console.error("Failed to parse sniping config:", error);