minimal-forge-work-pack-sync 0.1.6 → 0.1.7
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10582,7 +10582,7 @@ var DEFAULT_DEBUG_TRACE_LIMITS = {
|
|
|
10582
10582
|
};
|
|
10583
10583
|
|
|
10584
10584
|
// packages/shared/src/contracts/settings.ts
|
|
10585
|
-
var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.
|
|
10585
|
+
var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.7";
|
|
10586
10586
|
var WORK_PACK_SYNC_PLUGIN_PACKAGE = `minimal-forge-work-pack-sync@${WORK_PACK_SYNC_PLUGIN_VERSION}`;
|
|
10587
10587
|
var WORK_PACK_SYNC_PLUGIN_FILENAME = `minimal-forge-work-pack-sync-${WORK_PACK_SYNC_PLUGIN_VERSION}.tgz`;
|
|
10588
10588
|
|
|
@@ -11490,7 +11490,7 @@ async function writeTextAtomic(filePath, content) {
|
|
|
11490
11490
|
}
|
|
11491
11491
|
|
|
11492
11492
|
// packages/cli/src/workPackSyncPlugin.ts
|
|
11493
|
-
var PLUGIN_VERSION = "0.1.
|
|
11493
|
+
var PLUGIN_VERSION = "0.1.7";
|
|
11494
11494
|
var STATUS_FILENAME = "work-pack-startup-status.json";
|
|
11495
11495
|
var activeSync = /* @__PURE__ */ new Map();
|
|
11496
11496
|
var ForgeWorkPackSyncServer = async (_input, options) => {
|
|
@@ -11554,7 +11554,7 @@ function resolveStartupPaths() {
|
|
|
11554
11554
|
}
|
|
11555
11555
|
async function readWellKnownForgeCredentials(authPath, forgeBaseUrl) {
|
|
11556
11556
|
const raw = await readFile2(authPath, "utf8");
|
|
11557
|
-
const parsed = JSON.parse(raw);
|
|
11557
|
+
const parsed = JSON.parse(raw.startsWith("\uFEFF") ? raw.slice(1) : raw);
|
|
11558
11558
|
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
11559
11559
|
throw new Error("A autentica\xE7\xE3o do OpenCode n\xE3o \xE9 um objeto JSON v\xE1lido");
|
|
11560
11560
|
}
|