skykoi 2026.3.278 → 2026.3.279
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/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
dcee1826a1165741299b7b0015d66b772772797fb7e0741baf872c7d79d278b9
|
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import chalk, { Chalk } from "chalk";
|
|
|
21
21
|
import fs, { constants, createWriteStream, existsSync, promises, statSync } from "node:fs";
|
|
22
22
|
import path, { join } from "node:path";
|
|
23
23
|
import { Logger } from "tslog";
|
|
24
|
-
import
|
|
24
|
+
import JSON5 from "json5";
|
|
25
25
|
import os, { homedir, tmpdir } from "node:os";
|
|
26
26
|
import { promisify } from "node:util";
|
|
27
27
|
import fs$1 from "node:fs/promises";
|
|
@@ -33,7 +33,7 @@ import { exec as exec$1 } from "child_process";
|
|
|
33
33
|
import { createReadStream as createReadStream$1, createWriteStream as createWriteStream$1, promises as promises$1 } from "fs";
|
|
34
34
|
import { Readable, Transform } from "stream";
|
|
35
35
|
import { platform, release, tmpdir as tmpdir$1 } from "os";
|
|
36
|
-
import EventEmitter, { EventEmitter
|
|
36
|
+
import EventEmitter$1, { EventEmitter, once } from "events";
|
|
37
37
|
import { promisify as promisify$1 } from "util";
|
|
38
38
|
import { join as join$1 } from "path";
|
|
39
39
|
import * as Crypto from "crypto";
|
|
@@ -2262,7 +2262,7 @@ function readLoggingConfig() {
|
|
|
2262
2262
|
try {
|
|
2263
2263
|
if (!fs.existsSync(configPath)) return;
|
|
2264
2264
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
2265
|
-
const logging =
|
|
2265
|
+
const logging = JSON5.parse(raw)?.logging;
|
|
2266
2266
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
2267
2267
|
return logging;
|
|
2268
2268
|
} catch {
|
|
@@ -19010,7 +19010,7 @@ var IncludeProcessor = class IncludeProcessor {
|
|
|
19010
19010
|
};
|
|
19011
19011
|
const defaultResolver = {
|
|
19012
19012
|
readFile: (p) => fs.readFileSync(p, "utf-8"),
|
|
19013
|
-
parseJson: (raw) =>
|
|
19013
|
+
parseJson: (raw) => JSON5.parse(raw)
|
|
19014
19014
|
};
|
|
19015
19015
|
/**
|
|
19016
19016
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -21707,18 +21707,18 @@ function resolveConfigPathForDeps(deps) {
|
|
|
21707
21707
|
function normalizeDeps(overrides = {}) {
|
|
21708
21708
|
return {
|
|
21709
21709
|
fs: overrides.fs ?? fs,
|
|
21710
|
-
json5: overrides.json5 ??
|
|
21710
|
+
json5: overrides.json5 ?? JSON5,
|
|
21711
21711
|
env: overrides.env ?? process.env,
|
|
21712
21712
|
homedir: overrides.homedir ?? os.homedir,
|
|
21713
21713
|
configPath: overrides.configPath ?? "",
|
|
21714
21714
|
logger: overrides.logger ?? console
|
|
21715
21715
|
};
|
|
21716
21716
|
}
|
|
21717
|
-
function parseConfigJson5(raw, json5
|
|
21717
|
+
function parseConfigJson5(raw, json5 = JSON5) {
|
|
21718
21718
|
try {
|
|
21719
21719
|
return {
|
|
21720
21720
|
ok: true,
|
|
21721
|
-
parsed: json5
|
|
21721
|
+
parsed: json5.parse(raw)
|
|
21722
21722
|
};
|
|
21723
21723
|
} catch (err) {
|
|
21724
21724
|
return {
|
|
@@ -22232,7 +22232,7 @@ function loadSessionStore(storePath, opts = {}) {
|
|
|
22232
22232
|
let mtimeMs = getFileMtimeMs(storePath);
|
|
22233
22233
|
try {
|
|
22234
22234
|
const raw = fs.readFileSync(storePath, "utf-8");
|
|
22235
|
-
const parsed =
|
|
22235
|
+
const parsed = JSON5.parse(raw);
|
|
22236
22236
|
if (isSessionStoreRecord(parsed)) store = parsed;
|
|
22237
22237
|
mtimeMs = getFileMtimeMs(storePath) ?? mtimeMs;
|
|
22238
22238
|
} catch {}
|
|
@@ -227729,7 +227729,7 @@ const BUFFERABLE_EVENT_SET = new Set([
|
|
|
227729
227729
|
* making the data processing more efficient.
|
|
227730
227730
|
*/
|
|
227731
227731
|
const makeEventBuffer = (logger) => {
|
|
227732
|
-
const ev = new EventEmitter();
|
|
227732
|
+
const ev = new EventEmitter$1();
|
|
227733
227733
|
const historyCache = /* @__PURE__ */ new Set();
|
|
227734
227734
|
let data = makeBufferData();
|
|
227735
227735
|
let isBuffering = false;
|
|
@@ -233299,7 +233299,7 @@ var BinaryInfo = class {
|
|
|
233299
233299
|
|
|
233300
233300
|
//#endregion
|
|
233301
233301
|
//#region node_modules/.pnpm/@whiskeysockets+baileys@7.0.0-rc.9_audio-decode@2.2.3_sharp@0.34.5/node_modules/@whiskeysockets/baileys/lib/Socket/Client/types.js
|
|
233302
|
-
var AbstractSocketClient = class extends EventEmitter
|
|
233302
|
+
var AbstractSocketClient = class extends EventEmitter {
|
|
233303
233303
|
constructor(url, config) {
|
|
233304
233304
|
super();
|
|
233305
233305
|
this.url = url;
|