+1
-1
| { | ||
| "name": "git-filter", | ||
| "version": "2.2.0", | ||
| "version": "2.3.0", | ||
| "description": "Create a filtered copy of a git repo with full commit history preserved", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
+6
-6
@@ -486,5 +486,5 @@ #!/usr/bin/env node | ||
| const ignoredPaths = options.ignoredPaths || []; | ||
| const commitDescriptionPrepend = | ||
| typeof options.commitDescriptionPrepend === "string" | ||
| ? options.commitDescriptionPrepend | ||
| const commitDescriptionAppend = | ||
| typeof options.commitDescriptionAppend === "string" | ||
| ? options.commitDescriptionAppend | ||
| : `This commit was filtered by https://github.com/kubk/git-filter\nSome files were excluded, so this commit may appear empty or incomplete.`; | ||
@@ -503,3 +503,3 @@ return { | ||
| ignoredPaths, | ||
| commitDescriptionPrepend, | ||
| commitDescriptionAppend, | ||
| }; | ||
@@ -783,4 +783,4 @@ } | ||
| if (options.commitDescriptionPrepend) { | ||
| commit.message = options.commitDescriptionPrepend + "\n\n" + commit.message; | ||
| if (options.commitDescriptionAppend) { | ||
| commit.message = commit.message.trimEnd() + "\n\n" + options.commitDescriptionAppend + "\n"; | ||
| } | ||
@@ -787,0 +787,0 @@ |
+26
-26
@@ -196,3 +196,3 @@ const path = require("path"); | ||
| const config = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": true, | ||
@@ -223,3 +223,3 @@ "targetRepoPath": "${folder}-target", | ||
| const config = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": true, | ||
@@ -305,3 +305,3 @@ "targetRepoPath": "${folder}-target", | ||
| const config = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": true, | ||
@@ -392,3 +392,3 @@ "targetRepoPath": "${folder}-target", | ||
| const config = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": true, | ||
@@ -476,3 +476,3 @@ "targetRepoPath": "${folder}-target", | ||
| const config = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -646,3 +646,3 @@ "followByLogFile": true, | ||
| const config = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -821,3 +821,3 @@ "followByLogFile": false, | ||
| const config1 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -840,3 +840,3 @@ "syncAllFilesOnLastFollowCommit": true, | ||
| const config2 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -935,3 +935,3 @@ "syncAllFilesOnLastFollowCommit": true, | ||
| const config1 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -954,3 +954,3 @@ "syncAllFilesOnLastFollowCommit": true, | ||
| const config2 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -1059,3 +1059,3 @@ "syncAllFilesOnLastFollowCommit": true, | ||
| const config1 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -1078,3 +1078,3 @@ "syncAllFilesOnLastFollowCommit": false, | ||
| const config2 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -1165,3 +1165,3 @@ "syncAllFilesOnLastFollowCommit": false, | ||
| const config1 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -1185,3 +1185,3 @@ "syncAllFilesOnLastFollowCommit": true, | ||
| const config2 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -1281,3 +1281,3 @@ "syncAllFilesOnLastFollowCommit": true, | ||
| const config1 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -1301,3 +1301,3 @@ "syncAllFilesOnLastFollowCommit": true, | ||
| const config2 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -1407,3 +1407,3 @@ "syncAllFilesOnLastFollowCommit": true, | ||
| const config1 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -1426,3 +1426,3 @@ "syncAllFilesOnLastFollowCommit": false, | ||
| const config2 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -1513,3 +1513,3 @@ "syncAllFilesOnLastFollowCommit": false, | ||
| const config1 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -1572,3 +1572,3 @@ "syncAllFilesOnLastFollowCommit": false, | ||
| const config1 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": true, | ||
@@ -1611,3 +1611,3 @@ "targetRepoPath": "${folder}-target", | ||
| const config1 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -1668,3 +1668,3 @@ "targetRepoPath": "${folder}-target", | ||
| const config1 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -1725,3 +1725,3 @@ "targetRepoPath": "${folder}-target", | ||
| const config1 = `{ | ||
| "commitDescriptionPrepend": "", | ||
| "commitDescriptionAppend": "", | ||
| "forceReCreateRepo": false, | ||
@@ -1754,3 +1754,3 @@ "targetRepoPath": "${folder}-target", | ||
| test("git-filter commitDescriptionPrepend default", async () => { | ||
| test("git-filter commitDescriptionAppend default", async () => { | ||
| const folder = "ignore.commit-description-prepend"; | ||
@@ -1781,6 +1781,6 @@ const config = `{ | ||
| test("git-filter commitDescriptionPrepend custom", async () => { | ||
| test("git-filter commitDescriptionAppend custom", async () => { | ||
| const folder = "ignore.commit-description-prepend-custom"; | ||
| const config = `{ | ||
| "commitDescriptionPrepend": "Custom prepend message", | ||
| "commitDescriptionAppend": "Custom prepend message", | ||
| "forceReCreateRepo": true, | ||
@@ -1787,0 +1787,0 @@ "targetRepoPath": "${folder}-target", |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2
-33.33%90664
-0.02%