Skip to content

Commit a3abfae

Browse files
committed
feat: release 1.0, update types, internal packages, drop Node 14 and lower
1 parent bd3d8f9 commit a3abfae

File tree

7 files changed

+14850
-11411
lines changed

7 files changed

+14850
-11411
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ node_modules
3838
.node_repl_history
3939

4040
.idea/
41+
.tap/

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {is} from 'unist-util-is';
22

3-
function replaceAllBetween(parent, start, end, func) {
3+
function replaceAllBetween(parent, start, end, function_) {
44
if (!parent || !parent.type || !parent.children) {
55
throw new Error('Expected parent node');
66
}
@@ -69,7 +69,7 @@ function replaceAllBetween(parent, start, end, func) {
6969

7070
const replaced = children.slice(offsetStart, offsetEnd + 1);
7171

72-
const changedArray = func(replaced);
72+
const changedArray = function_(replaced);
7373

7474
const diff = children.splice(
7575
offsetStart,

0 commit comments

Comments
 (0)