From 7424409eb7539d461059587040bac2db9a982366 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Tue, 28 May 2024 10:06:17 +0200 Subject: [PATCH] chore(align-deps): address CodeQL alerts (#3161) Addresses: - https://github.com/microsoft/rnx-kit/security/code-scanning/1 - https://github.com/microsoft/rnx-kit/security/code-scanning/2 --- .changeset/mean-cars-learn.md | 2 ++ packages/align-deps/scripts/update-readme.mjs | 2 +- packages/align-deps/tsconfig.json | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .changeset/mean-cars-learn.md diff --git a/.changeset/mean-cars-learn.md b/.changeset/mean-cars-learn.md new file mode 100644 index 000000000..a845151cc --- /dev/null +++ b/.changeset/mean-cars-learn.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/align-deps/scripts/update-readme.mjs b/packages/align-deps/scripts/update-readme.mjs index 68172fd6e..44f8c1526 100755 --- a/packages/align-deps/scripts/update-readme.mjs +++ b/packages/align-deps/scripts/update-readme.mjs @@ -67,7 +67,7 @@ const table = markdownTable([ const pkg = preset[profileVersion][capability]; if ("version" in pkg) { const { name, version } = pkg; - return `${name}@${version.replace("<", "<").replace(">", ">")}`; + return `${name}@${version.replaceAll("<", "<").replaceAll(">", ">")}`; } else if (pkg.capabilities.length > 0) { return `Meta package for installing ${pkg.capabilities .map((name) => `\`${name}\``) diff --git a/packages/align-deps/tsconfig.json b/packages/align-deps/tsconfig.json index 5e66f1f77..107a45da7 100644 --- a/packages/align-deps/tsconfig.json +++ b/packages/align-deps/tsconfig.json @@ -1,7 +1,8 @@ { "extends": "@rnx-kit/tsconfig/tsconfig.json", "compilerOptions": { - "alwaysStrict": false + "alwaysStrict": false, + "lib": ["ES2021"] }, "include": ["src"] }