From 7982cf75275e238197ec7c2d54d03d3ec0738e7d Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Wed, 2 Mar 2022 20:25:26 -0700 Subject: [PATCH 1/2] add ignore scripts to npmrc --- .npmrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.npmrc b/.npmrc index 43c97e7..9951b11 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ package-lock=false +ignore-scripts=true From 25d5146bcac978c05ea654db6d9dfa413b0cd333 Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Thu, 3 Mar 2022 18:51:47 -0700 Subject: [PATCH 2/2] types: typescript now correctly identifies line as being fine --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index 8f32a5c..a7e64d1 100644 --- a/index.js +++ b/index.js @@ -126,7 +126,6 @@ export function findAndReplace(tree, find, replace, options) { while (match) { position = match.index - // @ts-expect-error this is perfectly fine, typescript. let value = replace(...match, {index: match.index, input: match.input}) if (typeof value === 'string') {