From 20980325276c41151fd214ef91a7b8a15a543960 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 22 Sep 2026 07:16:52 -0400 Subject: [PATCH 1/2] chore: remove unused export --- src/uneval.js | 1 - src/utils.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/uneval.js b/src/uneval.js index 0fc7dca..8396dec 100644 --- a/src/uneval.js +++ b/src/uneval.js @@ -13,7 +13,6 @@ import { is_buffer, is_plain_object, is_primitive, - stringify_key, stringify_sparse_array, stringify_string, valid_array_indices diff --git a/src/utils.js b/src/utils.js index d7f4325..a7cc65a 100644 --- a/src/utils.js +++ b/src/utils.js @@ -223,7 +223,7 @@ export function enumerable_symbols(object) { const is_identifier = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/; /** @param {string} key */ -export function stringify_key(key) { +function stringify_key(key) { return is_identifier.test(key) ? '.' + key : '[' + JSON.stringify(key) + ']'; } From 5bbc6c44d0b9c477c1750c90110df024e49bcd0b Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 22 Sep 2026 07:42:15 -0400 Subject: [PATCH 2/2] enforce --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index 2963099..5a7fe75 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,6 +8,7 @@ "emitDeclarationOnly": true, "diagnostics": true, "noEmitOnError": true, + "noUnusedLocals": true, "lib": ["es6", "esnext", "dom"], "module": "esnext", "target": "esnext",