@deckasoft/waify 0.2.2 → 0.3.3

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/cli/index.js CHANGED
@@ -318,17 +318,17 @@ var init_logger = __esm({
318
318
  const path = logPath();
319
319
  mkdirSync5(dirname4(path), { recursive: true });
320
320
  const timestamp = (/* @__PURE__ */ new Date()).toISOString();
321
- const line = `[${timestamp}] ${status} | ${detail}
321
+ const line = `[${timestamp}] ${status.toUpperCase()} | ${detail}
322
322
  `;
323
323
  appendFileSync(path, line, "utf-8");
324
324
  };
325
- LINE_RE = /^\[([^\]]+)\]\s+(sent|error)\s+\|\s+(.*)$/;
325
+ LINE_RE = /^\[([^\]]+)\]\s+(sent|error)\s+\|\s+(.*)$/i;
326
326
  parseLine = (line) => {
327
327
  const match = LINE_RE.exec(line);
328
328
  if (!match) return null;
329
329
  const [, timestamp, status, detail] = match;
330
330
  if (!timestamp || !status || detail === void 0) return null;
331
- return { timestamp, status, detail };
331
+ return { timestamp, status: status.toLowerCase(), detail };
332
332
  };
333
333
  readHistory = (limit) => {
334
334
  const path = logPath();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deckasoft/waify",
3
- "version": "0.2.2",
3
+ "version": "0.3.3",
4
4
  "description": "AI-powered daily message sender for WhatsApp, powered by OpenWA",
5
5
  "keywords": [
6
6
  "whatsapp",
@@ -46,9 +46,12 @@
46
46
  "zod": "^3.24.0"
47
47
  },
48
48
  "devDependencies": {
49
+ "@semantic-release/changelog": "^6.0.3",
50
+ "@semantic-release/git": "^10.0.1",
49
51
  "@types/node": "^22.0.0",
50
52
  "@types/qrcode-terminal": "^0.12.2",
51
53
  "@types/react": "^19.2.15",
54
+ "semantic-release": "^25.0.3",
52
55
  "tsup": "^8.5.1",
53
56
  "tsx": "^4.19.0",
54
57
  "typescript": "^5.8.0",