@character-foundry/character-foundry 0.1.6 → 0.1.8-dev.1765911776
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/README.md +81 -32
- package/dist/app-framework.cjs +1 -1
- package/dist/app-framework.cjs.map +1 -1
- package/dist/app-framework.js +1 -1
- package/dist/app-framework.js.map +1 -1
- package/dist/charx.cjs.map +1 -1
- package/dist/charx.js.map +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/dist/exporter.cjs +3 -3
- package/dist/exporter.cjs.map +1 -1
- package/dist/exporter.js +3 -3
- package/dist/exporter.js.map +1 -1
- package/dist/federation.cjs +6 -6
- package/dist/federation.cjs.map +1 -1
- package/dist/federation.js +6 -6
- package/dist/federation.js.map +1 -1
- package/dist/image-utils.cjs +249 -0
- package/dist/image-utils.cjs.map +1 -0
- package/dist/image-utils.d.cts +136 -0
- package/dist/image-utils.d.ts +136 -0
- package/dist/image-utils.js +226 -0
- package/dist/image-utils.js.map +1 -0
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/loader.cjs +4 -4
- package/dist/loader.cjs.map +1 -1
- package/dist/loader.js +4 -4
- package/dist/loader.js.map +1 -1
- package/dist/lorebook.cjs +5 -5
- package/dist/lorebook.cjs.map +1 -1
- package/dist/lorebook.js +5 -5
- package/dist/lorebook.js.map +1 -1
- package/dist/media.cjs.map +1 -1
- package/dist/media.js.map +1 -1
- package/dist/normalizer.cjs.map +1 -1
- package/dist/normalizer.js.map +1 -1
- package/dist/png.cjs +1 -1
- package/dist/png.cjs.map +1 -1
- package/dist/png.js +1 -1
- package/dist/png.js.map +1 -1
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.js.map +1 -1
- package/dist/tokenizers.cjs.map +1 -1
- package/dist/tokenizers.js.map +1 -1
- package/dist/voxta.cjs +1 -1
- package/dist/voxta.cjs.map +1 -1
- package/dist/voxta.js +1 -1
- package/dist/voxta.js.map +1 -1
- package/package.json +14 -3
package/dist/loader.cjs
CHANGED
|
@@ -750,7 +750,7 @@ function inflateSyncWithLimit(compressed, maxSize = MAX_INFLATED_SIZE) {
|
|
|
750
750
|
const chunks = [];
|
|
751
751
|
let totalSize = 0;
|
|
752
752
|
let error = null;
|
|
753
|
-
const inflater = new import_fflate2.Inflate((data,
|
|
753
|
+
const inflater = new import_fflate2.Inflate((data, _final) => {
|
|
754
754
|
if (error) return;
|
|
755
755
|
if (data && data.length > 0) {
|
|
756
756
|
totalSize += data.length;
|
|
@@ -8343,7 +8343,7 @@ function parsePng(data, options) {
|
|
|
8343
8343
|
throw new SizeLimitError(estimatedSize, options.maxAssetSize, `Orphan chunk ${chunk.keyword}`);
|
|
8344
8344
|
}
|
|
8345
8345
|
const buffer = decode(chunk.text);
|
|
8346
|
-
|
|
8346
|
+
const extMatch = assetId.match(/\.([^.]+)$/);
|
|
8347
8347
|
let ext = extMatch ? extMatch[1] : null;
|
|
8348
8348
|
if (!ext) {
|
|
8349
8349
|
const detected = detectExtension(buffer);
|
|
@@ -8392,7 +8392,7 @@ function parseCharx(data, options) {
|
|
|
8392
8392
|
isMain: asset.descriptor.type === "icon"
|
|
8393
8393
|
// Main icon is type='icon' in descriptor
|
|
8394
8394
|
}));
|
|
8395
|
-
|
|
8395
|
+
const sourceFormat = charxData.isRisuFormat ? "charx_risu" : "charx";
|
|
8396
8396
|
return {
|
|
8397
8397
|
card: charxData.card,
|
|
8398
8398
|
assets,
|
|
@@ -8511,7 +8511,7 @@ function parseJson(data, options) {
|
|
|
8511
8511
|
}
|
|
8512
8512
|
return parseJsonFromParsed(parsed, jsonStr, data, options);
|
|
8513
8513
|
}
|
|
8514
|
-
function parseJsonFromParsed(parsed, jsonStr, rawBuffer,
|
|
8514
|
+
function parseJsonFromParsed(parsed, jsonStr, rawBuffer, _options) {
|
|
8515
8515
|
const spec = detectSpec(parsed);
|
|
8516
8516
|
let card;
|
|
8517
8517
|
let sourceFormat;
|