ryugi-artifacts 1.39.0 → 1.39.1
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/cli.cjs +6 -5
- package/dist/server.cjs +6 -5
- package/dist/viewer-lib/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -460,17 +460,18 @@ function readConfig(file) {
|
|
|
460
460
|
return { config: defaults(), warning: `config.json is not valid JSON: ${err.message}` };
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
+
var IGNORED = ["config.json", "artifacts/*", "!artifacts/document/", "artifacts/document/*/.artifact-id"];
|
|
463
464
|
function ensureGitignore(dir) {
|
|
464
465
|
const file = import_node_path3.default.join(dir, ".gitignore");
|
|
465
466
|
let current = "";
|
|
466
467
|
try {
|
|
467
468
|
current = import_node_fs5.default.readFileSync(file, "utf8");
|
|
468
469
|
} catch {
|
|
469
|
-
import_node_fs5.default.writeFileSync(file, "config.json\n");
|
|
470
|
-
return;
|
|
471
470
|
}
|
|
472
|
-
|
|
473
|
-
|
|
471
|
+
const present = new Set(current.split(/\r?\n/).map((line) => line.trim()));
|
|
472
|
+
const missing = IGNORED.filter((line) => !present.has(line));
|
|
473
|
+
if (missing.length === 0) return;
|
|
474
|
+
import_node_fs5.default.writeFileSync(file, `${current}${current === "" || current.endsWith("\n") ? "" : "\n"}${missing.join("\n")}
|
|
474
475
|
`);
|
|
475
476
|
}
|
|
476
477
|
function ensureConfig(file) {
|
|
@@ -1477,7 +1478,7 @@ async function main(argv) {
|
|
|
1477
1478
|
return await monitor({ json: !!values.json }, emit);
|
|
1478
1479
|
}
|
|
1479
1480
|
if (command === "--version" || command === "-v") {
|
|
1480
|
-
console.log("1.39.
|
|
1481
|
+
console.log("1.39.1");
|
|
1481
1482
|
return 0;
|
|
1482
1483
|
}
|
|
1483
1484
|
if (command === "--help" || command === "-h") {
|
package/dist/server.cjs
CHANGED
|
@@ -89346,17 +89346,18 @@ function readConfig(file) {
|
|
|
89346
89346
|
return { config: defaults(), warning: `config.json is not valid JSON: ${err.message}` };
|
|
89347
89347
|
}
|
|
89348
89348
|
}
|
|
89349
|
+
var IGNORED = ["config.json", "artifacts/*", "!artifacts/document/", "artifacts/document/*/.artifact-id"];
|
|
89349
89350
|
function ensureGitignore(dir) {
|
|
89350
89351
|
const file = import_node_path14.default.join(dir, ".gitignore");
|
|
89351
89352
|
let current = "";
|
|
89352
89353
|
try {
|
|
89353
89354
|
current = import_node_fs14.default.readFileSync(file, "utf8");
|
|
89354
89355
|
} catch {
|
|
89355
|
-
import_node_fs14.default.writeFileSync(file, "config.json\n");
|
|
89356
|
-
return;
|
|
89357
89356
|
}
|
|
89358
|
-
|
|
89359
|
-
|
|
89357
|
+
const present = new Set(current.split(/\r?\n/).map((line) => line.trim()));
|
|
89358
|
+
const missing = IGNORED.filter((line) => !present.has(line));
|
|
89359
|
+
if (missing.length === 0) return;
|
|
89360
|
+
import_node_fs14.default.writeFileSync(file, `${current}${current === "" || current.endsWith("\n") ? "" : "\n"}${missing.join("\n")}
|
|
89360
89361
|
`);
|
|
89361
89362
|
}
|
|
89362
89363
|
function ensureConfig(file) {
|
|
@@ -91947,7 +91948,7 @@ function touchEntry(dir, entry) {
|
|
|
91947
91948
|
}
|
|
91948
91949
|
|
|
91949
91950
|
// package.json
|
|
91950
|
-
var version = "1.39.
|
|
91951
|
+
var version = "1.39.1";
|
|
91951
91952
|
|
|
91952
91953
|
// src/server/main.ts
|
|
91953
91954
|
async function main() {
|
package/dist/viewer-lib/index.js
CHANGED
|
@@ -4592,7 +4592,7 @@ function zi(e, t) {
|
|
|
4592
4592
|
}
|
|
4593
4593
|
//#endregion
|
|
4594
4594
|
//#region src/viewer/lib/version.ts
|
|
4595
|
-
var Bi = "1.39.
|
|
4595
|
+
var Bi = "1.39.1", Vi = 100, Hi = 2e3, Ui = 50, Wi = (e, t = Vi) => typeof e == "string" && e.length > 0 && e.length <= t, Gi = (e) => typeof e == "number" && Number.isFinite(e), Ki = (e) => Gi(e) && e >= 0 && e <= 1;
|
|
4596
4596
|
function qi(e) {
|
|
4597
4597
|
if (!Array.isArray(e) || e.length === 0 || e.length > Ui) return null;
|
|
4598
4598
|
let t = [];
|