@scrthq/runlog 0.0.47 → 0.0.48
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/runlog.js +25 -2
- package/package.json +1 -1
package/dist/runlog.js
CHANGED
|
@@ -26942,8 +26942,26 @@ var Signature = external_exports.object({
|
|
|
26942
26942
|
}).strict().describe(
|
|
26943
26943
|
"Proof that a pack's contents are unchanged since its author signed them. Not a restriction on copying."
|
|
26944
26944
|
);
|
|
26945
|
+
var LICENSE_IDS = [
|
|
26946
|
+
"CC0-1.0",
|
|
26947
|
+
"CC-BY-4.0",
|
|
26948
|
+
"CC-BY-SA-4.0",
|
|
26949
|
+
"CC-BY-NC-4.0",
|
|
26950
|
+
"CC-BY-NC-SA-4.0",
|
|
26951
|
+
"CC-BY-ND-4.0",
|
|
26952
|
+
"CC-BY-NC-ND-4.0",
|
|
26953
|
+
"MIT",
|
|
26954
|
+
"Apache-2.0",
|
|
26955
|
+
"BSD-3-Clause",
|
|
26956
|
+
"Unlicense",
|
|
26957
|
+
"OGL-1.0a",
|
|
26958
|
+
"ORC",
|
|
26959
|
+
"proprietary",
|
|
26960
|
+
"custom"
|
|
26961
|
+
];
|
|
26945
26962
|
var License = external_exports.object({
|
|
26946
|
-
id: external_exports.
|
|
26963
|
+
id: external_exports.enum(LICENSE_IDS).describe("The license, by SPDX identifier where one applies; `proprietary` or `custom` with the terms in `text`."),
|
|
26964
|
+
text: external_exports.string().max(4e4).optional().describe("The license or notice in full, shown with the pack and printed in its rulebook. Required for `proprietary` and `custom`; welcome on any."),
|
|
26947
26965
|
redistributable: external_exports.boolean().describe(
|
|
26948
26966
|
"Whether this pack's text may be included in exports meant for other people. When false the app shares roll results and references but never the rules prose, so a private transcription of a commercial rulebook stays private."
|
|
26949
26967
|
),
|
|
@@ -27345,6 +27363,9 @@ function lintPack(pack) {
|
|
|
27345
27363
|
}
|
|
27346
27364
|
});
|
|
27347
27365
|
}
|
|
27366
|
+
if ((pack.license.id === "proprietary" || pack.license.id === "custom") && !pack.license.text?.trim()) {
|
|
27367
|
+
d.push(err("license/text-required", "license.text", `a ${pack.license.id} license needs its terms in license.text`));
|
|
27368
|
+
}
|
|
27348
27369
|
const requirements = new Map((pack.requires ?? []).map((r) => [r.id, r]));
|
|
27349
27370
|
for (const [tableId, table] of Object.entries(pack.tables)) {
|
|
27350
27371
|
table.entries.forEach((e, i) => {
|
|
@@ -28403,6 +28424,7 @@ function summaryDoc(pack) {
|
|
|
28403
28424
|
b.p(pack.description);
|
|
28404
28425
|
b.p([pack.category ? `Category: ${pack.category}` : "", pack.tags?.length ? `Tags: ${pack.tags.join(", ")}` : ""].filter(Boolean).join(" \xB7 "), "muted");
|
|
28405
28426
|
b.p(license(pack), "muted");
|
|
28427
|
+
if (pack.license.text) b.p(pack.license.text, "note");
|
|
28406
28428
|
b.h(2, "How it plays");
|
|
28407
28429
|
const unitRange = `${pack.unit.min === pack.unit.max ? pack.unit.min : `${pack.unit.min}\u2013${pack.unit.max}`}`;
|
|
28408
28430
|
b.p(
|
|
@@ -28437,6 +28459,7 @@ function rulebookDoc(pack) {
|
|
|
28437
28459
|
const b = new Builder();
|
|
28438
28460
|
b.p(pack.description);
|
|
28439
28461
|
b.p(license(pack), "muted");
|
|
28462
|
+
if (pack.license.text) b.p(pack.license.text, "note");
|
|
28440
28463
|
b.h(2, "What you need");
|
|
28441
28464
|
b.list(whatYouNeed(pack));
|
|
28442
28465
|
b.h(2, "Terms");
|
|
@@ -30028,7 +30051,7 @@ id: com.example.__NAME__
|
|
|
30028
30051
|
version: "0.1.0"
|
|
30029
30052
|
title: __NAME__
|
|
30030
30053
|
license:
|
|
30031
|
-
id:
|
|
30054
|
+
id: MIT
|
|
30032
30055
|
redistributable: true
|
|
30033
30056
|
capabilities: []
|
|
30034
30057
|
|