rulesync 7.6.2 → 7.7.0
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 +1 -1
- package/dist/{chunk-MG4OE47A.js → chunk-KDYNNWMK.js} +987 -606
- package/dist/cli/index.cjs +1275 -890
- package/dist/cli/index.js +8 -4
- package/dist/index.cjs +1011 -630
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +13 -13
package/dist/cli/index.js
CHANGED
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
removeTempDirectory,
|
|
61
61
|
stringifyFrontmatter,
|
|
62
62
|
writeFileContent
|
|
63
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-KDYNNWMK.js";
|
|
64
64
|
|
|
65
65
|
// src/cli/index.ts
|
|
66
66
|
import { Command } from "commander";
|
|
@@ -69,8 +69,8 @@ import { Command } from "commander";
|
|
|
69
69
|
var ANNOUNCEMENT = "".trim();
|
|
70
70
|
|
|
71
71
|
// src/lib/fetch.ts
|
|
72
|
-
import { Semaphore } from "es-toolkit/promise";
|
|
73
72
|
import { join } from "path";
|
|
73
|
+
import { Semaphore } from "es-toolkit/promise";
|
|
74
74
|
|
|
75
75
|
// src/lib/github-client.ts
|
|
76
76
|
import { RequestError } from "@octokit/request-error";
|
|
@@ -1608,8 +1608,8 @@ async function initCommand() {
|
|
|
1608
1608
|
}
|
|
1609
1609
|
|
|
1610
1610
|
// src/lib/sources.ts
|
|
1611
|
-
import { Semaphore as Semaphore2 } from "es-toolkit/promise";
|
|
1612
1611
|
import { join as join5, resolve, sep } from "path";
|
|
1612
|
+
import { Semaphore as Semaphore2 } from "es-toolkit/promise";
|
|
1613
1613
|
|
|
1614
1614
|
// src/lib/sources-lock.ts
|
|
1615
1615
|
import { createHash } from "crypto";
|
|
@@ -2040,6 +2040,10 @@ async function listCommands() {
|
|
|
2040
2040
|
const commands = await Promise.all(
|
|
2041
2041
|
mdFiles.map(async (file) => {
|
|
2042
2042
|
try {
|
|
2043
|
+
checkPathTraversal({
|
|
2044
|
+
relativePath: file,
|
|
2045
|
+
intendedRootDir: commandsDir
|
|
2046
|
+
});
|
|
2043
2047
|
const command = await RulesyncCommand.fromFile({
|
|
2044
2048
|
relativeFilePath: file
|
|
2045
2049
|
});
|
|
@@ -3795,7 +3799,7 @@ async function updateCommand(currentVersion, options) {
|
|
|
3795
3799
|
}
|
|
3796
3800
|
|
|
3797
3801
|
// src/cli/index.ts
|
|
3798
|
-
var getVersion = () => "7.
|
|
3802
|
+
var getVersion = () => "7.7.0";
|
|
3799
3803
|
var main = async () => {
|
|
3800
3804
|
const program = new Command();
|
|
3801
3805
|
const version = getVersion();
|