Skip to content

Commit

Permalink
fix: rc16
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb committed Oct 31, 2024
1 parent 0e4f6cd commit fd82bc3
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 24 deletions.
2 changes: 1 addition & 1 deletion docx-core/src/documents/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ impl Docx {
pub fn comments_json(&mut self) -> String {
self.reset();
self.update_dependencies();
serde_json::to_string_pretty(&self.comments.comments).unwrap()
serde_json::to_string_pretty(&self.comments).unwrap()
}

fn reset(&self) {
Expand Down
2 changes: 1 addition & 1 deletion docx-wasm/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ export class Docx {
const docx = this.createDocx();
const json = docx.comments_json();
docx.free();
return JSON.parse(json) as CommentJSON[];
return JSON.parse(json) as { comments: CommentJSON[] };
}

build() {
Expand Down
8 changes: 5 additions & 3 deletions docx-wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docx-wasm",
"version": "0.4.18-rc13",
"version": "0.4.18-rc16",
"main": "dist/node/index.js",
"browser": "dist/web/index.js",
"author": "bokuweb <bokuweb12@gmail.com>",
Expand All @@ -22,8 +22,10 @@
"copy:bindings": "cpy '../docx-core/bindings' './js/json'",
"prepublishOnly": "pnpm run build"
},
"overrides": {
"**/serialize-javascript": "6.0.2"
"pnpm": {
"overrides": {
"serialize-javascript": "6.0.2"
}
},
"devDependencies": {
"@types/file-saver": "2.0.7",
Expand Down
39 changes: 21 additions & 18 deletions docx-wasm/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.82
1.73

0 comments on commit fd82bc3

Please sign in to comment.