@fern-api/replay 0.8.0 → 0.8.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 +4 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -13013,7 +13013,7 @@ function isReplayCommit(commit) {
|
|
|
13013
13013
|
return commit.message.startsWith("[fern-replay]");
|
|
13014
13014
|
}
|
|
13015
13015
|
function isRevertCommit(message) {
|
|
13016
|
-
return
|
|
13016
|
+
return /^Revert ".+"$/.test(message);
|
|
13017
13017
|
}
|
|
13018
13018
|
function parseRevertedSha(fullBody) {
|
|
13019
13019
|
const match2 = fullBody.match(/This reverts commit ([0-9a-f]{40})\./);
|
|
@@ -13148,6 +13148,9 @@ var ReplayDetector = class {
|
|
|
13148
13148
|
revertIndicesToRemove.add(idx);
|
|
13149
13149
|
}
|
|
13150
13150
|
}
|
|
13151
|
+
if (!matchedExisting && !matchedNew) {
|
|
13152
|
+
revertIndicesToRemove.add(i);
|
|
13153
|
+
}
|
|
13151
13154
|
}
|
|
13152
13155
|
const filteredPatches = newPatches.filter((_, i) => !revertIndicesToRemove.has(i));
|
|
13153
13156
|
return { patches: filteredPatches, revertedPatchIds: [...revertedPatchIdSet] };
|