diff --git a/__test__/index.spec.mjs b/__test__/index.spec.mjs
index 98550db..da64167 100644
--- a/__test__/index.spec.mjs
+++ b/__test__/index.spec.mjs
@@ -104,7 +104,7 @@ test("should get all childs correctly", (t) => {
t.deepEqual(
$.select("body")
- .getChildrens()
+ .getChildren()
.map((e) => e.outerHtml()),
['
first
', 'second
'],
);
diff --git a/package.json b/package.json
index 7b968b0..7fb93bc 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "niddle",
- "version": "0.0.1",
+ "version": "0.0.3",
"main": "index.js",
"types": "index.d.ts",
"files": [
@@ -51,21 +51,22 @@
},
"repository": "git@github.com:xusd320/niddle.git",
"optionalDependencies": {
- "niddle-win32-x64-msvc": "0.0.1",
- "niddle-darwin-x64": "0.0.1",
- "niddle-linux-x64-gnu": "0.0.1",
- "niddle-darwin-arm64": "0.0.1",
- "niddle-android-arm64": "0.0.1",
- "niddle-linux-arm64-gnu": "0.0.1",
- "niddle-linux-arm64-musl": "0.0.1",
- "niddle-win32-arm64-msvc": "0.0.1",
- "niddle-linux-arm-gnueabihf": "0.0.1",
- "niddle-linux-arm-musleabihf": "0.0.1",
- "niddle-linux-x64-musl": "0.0.1",
- "niddle-freebsd-x64": "0.0.1",
- "niddle-win32-ia32-msvc": "0.0.1",
- "niddle-android-arm-eabi": "0.0.1",
- "niddle-darwin-universal": "0.0.1",
- "niddle-linux-riscv64-gnu": "0.0.1"
+ "niddle-win32-x64-msvc": "0.0.2",
+ "niddle-darwin-x64": "0.0.2",
+ "niddle-linux-x64-gnu": "0.0.2",
+ "niddle-darwin-arm64": "0.0.2",
+ "niddle-android-arm64": "0.0.2",
+ "niddle-linux-arm64-gnu": "0.0.2",
+ "niddle-linux-arm64-musl": "0.0.2",
+ "niddle-win32-arm64-msvc": "0.0.2",
+ "niddle-linux-arm-gnueabihf": "0.0.2",
+ "niddle-linux-arm-musleabihf": "0.0.2",
+ "niddle-linux-x64-musl": "0.0.2",
+ "niddle-freebsd-x64": "0.0.2",
+ "niddle-win32-ia32-msvc": "0.0.2",
+ "niddle-android-arm-eabi": "0.0.2",
+ "niddle-darwin-universal": "0.0.2",
+ "niddle-linux-riscv64-gnu": "0.0.2"
}
-}
\ No newline at end of file
+}
+
diff --git a/src/node_repr/query.rs b/src/node_repr/query.rs
index c2ee17a..1c25ab6 100644
--- a/src/node_repr/query.rs
+++ b/src/node_repr/query.rs
@@ -26,7 +26,7 @@ impl NodeRepr {
}
#[napi]
- pub fn get_childrens(&self) -> Vec {
+ pub fn get_children(&self) -> Vec {
self.node_ref.children().map(Into::into).collect()
}