Ran npm run style.fix added "line_ending" configuration to .editorconfig to match the results
This commit is contained in:
@ -7,6 +7,7 @@ indent_style = space
|
|||||||
indent_size = 4
|
indent_size = 4
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
end_of_line = lf
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
max_line_length = off
|
max_line_length = off
|
||||||
|
@ -46,7 +46,9 @@ export interface IDocumentTemplate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class ImportDotx {
|
export class ImportDotx {
|
||||||
public async extract(data: Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream): Promise<IDocumentTemplate> {
|
public async extract(
|
||||||
|
data: Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream,
|
||||||
|
): Promise<IDocumentTemplate> {
|
||||||
const zipContent = await JSZip.loadAsync(data);
|
const zipContent = await JSZip.loadAsync(data);
|
||||||
|
|
||||||
const documentContent = await zipContent.files["word/document.xml"].async("text");
|
const documentContent = await zipContent.files["word/document.xml"].async("text");
|
||||||
|
Reference in New Issue
Block a user