@dongdev/fca-unofficial 2.0.2 → 2.0.4

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/CHANGELOG.md CHANGED
@@ -35,3 +35,9 @@ Too lazy to write changelog, sorry! (will write changelog in the next release, t
35
35
 
36
36
  ## v2.0.1 - 2025-10-05
37
37
  - Hotfix / auto bump
38
+
39
+ ## v2.0.2 - 2025-10-05
40
+ - Hotfix / auto bump
41
+
42
+ ## v2.0.3 - 2025-10-05
43
+ - Hotfix / auto bump
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dongdev/fca-unofficial",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "A Facebook chat API without XMPP, will not be deprecated after April 30th, 2015.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -4,7 +4,7 @@ const utils = require("../../utils");
4
4
  const log = require("npmlog");
5
5
  const fs = require("fs");
6
6
  const path = require("path");
7
- const logger = require("../lib/logger");
7
+ const logger = require("../../../func/logger");
8
8
 
9
9
  function formatEventReminders(reminder) {
10
10
  return {
@@ -167,8 +167,8 @@ module.exports = function (defaultFuncs, api, ctx) {
167
167
  return { Success: false, Data: null, Error: lastErr ? String(lastErr.message || lastErr) : "Unknown" };
168
168
  };
169
169
 
170
- const dbFiles = fs.readdirSync(path.join(__dirname, "../lib/database")).filter(f => path.extname(f) === ".js").reduce((acc, file) => {
171
- acc[path.basename(file, ".js")] = require(path.join(__dirname, "../lib/database", file))(api);
170
+ const dbFiles = fs.readdirSync(path.join(__dirname, "../../database")).filter(f => path.extname(f) === ".js").reduce((acc, file) => {
171
+ acc[path.basename(file, ".js")] = require(path.join(__dirname, "../../database", file))(api);
172
172
  return acc;
173
173
  }, {});
174
174
  const { threadData } = dbFiles;