From dac073805bd469b6a75ba0e12dc402d82608f296 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 6 Nov 2023 14:00:25 +0800 Subject: [PATCH] fix(cli): js binding template (#1788) - Close https://github.com/napi-rs/napi-rs/issues/1775 --- cli/src/api/templates/js-binding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/api/templates/js-binding.ts b/cli/src/api/templates/js-binding.ts index e4ab5133..652702ee 100644 --- a/cli/src/api/templates/js-binding.ts +++ b/cli/src/api/templates/js-binding.ts @@ -290,7 +290,7 @@ if (!nativeBinding) { } ${idents - .map((ident) => `module.exports.${ident} = binding.${ident}`) + .map((ident) => `module.exports.${ident} = nativeBinding.${ident}`) .join('\n')} ` }