From 2f812a82708c7b6148f03b3847e318d81c815af4 Mon Sep 17 00:00:00 2001 From: bokuweb Date: Mon, 5 Oct 2020 16:22:17 +0900 Subject: [PATCH 1/3] fix: tsc erropr --- docx-wasm/js/index.ts | 2 +- docx-wasm/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docx-wasm/js/index.ts b/docx-wasm/js/index.ts index dd482d552..f87f00146 100644 --- a/docx-wasm/js/index.ts +++ b/docx-wasm/js/index.ts @@ -333,7 +333,7 @@ export class Docx { if (t.property.cellMargins) { const { top, right, bottom, left } = t.property.cellMargins; - table = table.set_margins(top, right, bottom, left); + table = table.set_cell_margins(top, right, bottom, left); } switch (t.property.align) { diff --git a/docx-wasm/package.json b/docx-wasm/package.json index d9ea0fbeb..8b43e21d6 100644 --- a/docx-wasm/package.json +++ b/docx-wasm/package.json @@ -1,6 +1,6 @@ { "name": "docx-wasm", - "version": "0.0.98", + "version": "0.0.100", "main": "dist/node/index.js", "browser": "dist/web/index.js", "author": "bokuweb ", From 49ea40f34e31ee6b4b4d17ea4b6816e4b356dcba Mon Sep 17 00:00:00 2001 From: bokuweb Date: Mon, 5 Oct 2020 16:24:25 +0900 Subject: [PATCH 2/3] add tsc --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9ebc72e8..72b10f18f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,6 +79,7 @@ jobs: - run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - run: rustup target add wasm32-unknown-unknown - run: cd docx-wasm && yarn install && yarn wasm-pack:web + - run: cd docx-wasm && yarn tsc lint: name: Clippy From 0805e17c4798c432edaa5dfb9790c159242fadf8 Mon Sep 17 00:00:00 2001 From: bokuweb Date: Mon, 5 Oct 2020 16:35:26 +0900 Subject: [PATCH 3/3] remove tsc --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72b10f18f..b9ebc72e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,6 @@ jobs: - run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - run: rustup target add wasm32-unknown-unknown - run: cd docx-wasm && yarn install && yarn wasm-pack:web - - run: cd docx-wasm && yarn tsc lint: name: Clippy