Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
xusd320 committed Jul 15, 2024
1 parent bcb21f3 commit e714fc8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion __test__/index.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ test("should get all childs correctly", (t) => {

t.deepEqual(
$.select("body")
.getChildrens()
.getChildren()
.map((e) => e.outerHtml()),
['<div class="one">first</div>', '<div id="two">second</div>'],
);
Expand Down
37 changes: 19 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "niddle",
"version": "0.0.1",
"version": "0.0.3",
"main": "index.js",
"types": "index.d.ts",
"files": [
Expand Down Expand Up @@ -51,21 +51,22 @@
},
"repository": "[email protected]: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"
}
}
}

2 changes: 1 addition & 1 deletion src/node_repr/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl NodeRepr {
}

#[napi]
pub fn get_childrens(&self) -> Vec<NodeRepr> {
pub fn get_children(&self) -> Vec<NodeRepr> {
self.node_ref.children().map(Into::into).collect()
}

Expand Down

0 comments on commit e714fc8

Please sign in to comment.