@ziztechnology/dial-library 0.0.14 → 0.0.15

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.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,9 +1,10 @@
1
1
  import { Gunzip } from "fflate";
2
- const resolveLogIntervalMs = (intervalMs = void 0) => typeof intervalMs === "number" && Number.isFinite(intervalMs) && intervalMs > 0 ? intervalMs : 500;
2
+ const resolveLogIntervalMs = (intervalMs = void 0) => typeof intervalMs === "number" && Number.isFinite(intervalMs) && intervalMs > 0 ? intervalMs : 200;
3
3
  //#endregion
4
4
  //#region src/helper/debugger.ts
5
5
  const logIntervalMs = resolveLogIntervalMs();
6
6
  const lastLoggedAtByType = /* @__PURE__ */ new Map();
7
+ let hasLoggedSdkVersion = false;
7
8
  const createLogTypeKey = (moduleName, scope, phase) => JSON.stringify([
8
9
  moduleName,
9
10
  scope,
@@ -38,6 +39,10 @@ const dialSdkDebugWarn = (moduleName, scope, phase, data) => {
38
39
  if (!shouldLog(moduleName, scope, phase)) return;
39
40
  const message = `[DIAL_SDK_DEBUG - ${moduleName}] ${scope}: ${phase}`;
40
41
  try {
42
+ if (!hasLoggedSdkVersion) {
43
+ console.log(`[DIAL_SDK_DEBUG] SDK version: 0.0.15`);
44
+ hasLoggedSdkVersion = true;
45
+ }
41
46
  if (data === void 0) console.log(message);
42
47
  else console.log(message, stringifyDebugData(data));
43
48
  } catch {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziztechnology/dial-library",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "private": false,
5
5
  "description": "Tooony 表盘工具函数、方法",
6
6
  "files": [