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