Skip to content

Commit

Permalink
Merge pull request #1 from unicorn-utterances/v1
Browse files Browse the repository at this point in the history
feat: release 1.0, update types, internal packages, drop Node 14
  • Loading branch information
crutchcorn authored Jun 24, 2024
2 parents bd3d8f9 + a3abfae commit 7103b2d
Show file tree
Hide file tree
Showing 7 changed files with 14,850 additions and 11,411 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ node_modules
.node_repl_history

.idea/
.tap/
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {is} from 'unist-util-is';

function replaceAllBetween(parent, start, end, func) {
function replaceAllBetween(parent, start, end, function_) {
if (!parent || !parent.type || !parent.children) {
throw new Error('Expected parent node');
}
Expand Down Expand Up @@ -69,7 +69,7 @@ function replaceAllBetween(parent, start, end, func) {

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

const changedArray = func(replaced);
const changedArray = function_(replaced);

const diff = children.splice(
offsetStart,
Expand Down
Loading

0 comments on commit 7103b2d

Please sign in to comment.