From 2d3c46c8c2727cea576114cb18c4e06c4a696325 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Sat, 21 Sep 2024 17:51:56 +0800 Subject: [PATCH] chore: bump napi and napi-derive (#903) --- Cargo.toml | 4 ++-- src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c0a3d9c2..e0d85568 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,8 +14,8 @@ base64-simd = "0.8" cssparser = "0.29" infer = "0.16" libavif = { version = "0.14", default-features = false, features = ["codec-aom"] } -napi = { version = "3.0.0-alpha", default-features = false, features = ["napi3", "serde-json"] } -napi-derive = { version = "3.0.0-alpha.8", default-features = false } +napi = { version = "3.0.0-alpha.11", default-features = false, features = ["napi3", "serde-json"] } +napi-derive = { version = "3.0.0-alpha.11", default-features = false } nom = "7" num_cpus = "1" once_cell = "1" diff --git a/src/lib.rs b/src/lib.rs index b5e20a84..2eb7f059 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,7 +14,7 @@ use std::str::FromStr; use std::{mem, slice}; use base64::Engine; -use bindgen_prelude::BufferSlice; +use bindgen_prelude::{BufferSlice, JavaScriptClassExt}; use napi::bindgen_prelude::{AsyncTask, ClassInstance, Either3, This, Unknown}; use napi::*;