docx 7.4.0 → 7.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -26,21 +26,21 @@
26
26
 
27
27
  Here are examples of `docx` being used with basic `HTML/JS` in a browser environment:
28
28
 
29
- * https://codepen.io/dolanmiu/pen/RwNeObg
30
- * https://jsfiddle.net/dolanmiu/onadx1gu/
29
+ - https://codepen.io/dolanmiu/pen/RwNeObg
30
+ - https://jsfiddle.net/dolanmiu/onadx1gu/
31
31
 
32
32
  Here is an example of `docx` working in `Angular`:
33
33
 
34
- * https://stackblitz.com/edit/angular-docx
34
+ - https://stackblitz.com/edit/angular-docx
35
35
 
36
36
  Here is an example of `docx` working in `React`:
37
37
 
38
- * https://stackblitz.com/edit/react-docx
39
- * https://stackblitz.com/edit/react-docx-images (adding images to Word Document)
38
+ - https://stackblitz.com/edit/react-docx
39
+ - https://stackblitz.com/edit/react-docx-images (adding images to Word Document)
40
40
 
41
41
  Here is an example of `docx` working in `Vue.js`:
42
42
 
43
- * https://stackblitz.com/edit/vuejs-docx
43
+ - https://stackblitz.com/edit/vuejs-docx
44
44
 
45
45
  ## Node
46
46
 
@@ -48,15 +48,15 @@ Press `endpoint` on the `RunKit` website:
48
48
 
49
49
  ![RunKit Instructions](https://user-images.githubusercontent.com/2917613/38582539-f84311b6-3d07-11e8-90db-5885ae02c3c4.png)
50
50
 
51
- * https://runkit.com/dolanmiu/docx-demo1 - Simple paragraph and text
52
- * https://runkit.com/dolanmiu/docx-demo2 - Advanced Paragraphs and text
53
- * https://runkit.com/dolanmiu/docx-demo3 - Bullet points
54
- * https://runkit.com/dolanmiu/docx-demo4 - Simple table
55
- * https://runkit.com/dolanmiu/docx-demo5 - Images
56
- * https://runkit.com/dolanmiu/docx-demo6 - Margins
57
- * https://runkit.com/dolanmiu/docx-demo7 - Landscape
58
- * https://runkit.com/dolanmiu/docx-demo8 - Header and Footer
59
- * https://runkit.com/dolanmiu/docx-demo10 - **My CV generated with docx**
51
+ - https://runkit.com/dolanmiu/docx-demo1 - Simple paragraph and text
52
+ - https://runkit.com/dolanmiu/docx-demo2 - Advanced Paragraphs and text
53
+ - https://runkit.com/dolanmiu/docx-demo3 - Bullet points
54
+ - https://runkit.com/dolanmiu/docx-demo4 - Simple table
55
+ - https://runkit.com/dolanmiu/docx-demo5 - Images
56
+ - https://runkit.com/dolanmiu/docx-demo6 - Margins
57
+ - https://runkit.com/dolanmiu/docx-demo7 - Landscape
58
+ - https://runkit.com/dolanmiu/docx-demo8 - Header and Footer
59
+ - https://runkit.com/dolanmiu/docx-demo10 - **My CV generated with docx**
60
60
 
61
61
  More [here](https://github.com/dolanmiu/docx/tree/master/demo)
62
62
 
@@ -88,7 +88,6 @@ Read the contribution guidelines [here](https://docx.js.org/#/contribution-guide
88
88
  [<img src="https://i.imgur.com/PXo25um.png" alt="drawing" height="50"/>](https://www.circadianrisk.com/)
89
89
  [<img src="https://i.imgur.com/AKGhtlh.png" alt="drawing"/>](https://lexense.com/)
90
90
 
91
-
92
91
  ...and many more!
93
92
 
94
93
  ---
@@ -1,11 +1,11 @@
1
1
  import * as JSZip from "jszip";
2
2
  import { File } from "../../file/file";
3
- import { PrettityType } from "./packer";
3
+ import { PrettifyType } from "./packer";
4
4
  export declare class Compiler {
5
5
  private readonly formatter;
6
6
  private readonly imageReplacer;
7
7
  private readonly numberingReplacer;
8
8
  constructor();
9
- compile(file: File, prettifyXml?: boolean | PrettityType): JSZip;
9
+ compile(file: File, prettifyXml?: boolean | PrettifyType): JSZip;
10
10
  private xmlifyFile;
11
11
  }
@@ -1,14 +1,14 @@
1
1
  /// <reference types="node" />
2
2
  import { File } from "../../file/file";
3
- export declare enum PrettityType {
3
+ export declare enum PrettifyType {
4
4
  NONE = "",
5
5
  WITH_2_BLANKS = " ",
6
6
  WITH_4_BLANKS = " ",
7
7
  WITH_TAB = "\t"
8
8
  }
9
9
  export declare class Packer {
10
- static toBuffer(file: File, prettify?: boolean | PrettityType): Promise<Buffer>;
11
- static toBase64String(file: File, prettify?: boolean | PrettityType): Promise<string>;
12
- static toBlob(file: File, prettify?: boolean | PrettityType): Promise<Blob>;
10
+ static toBuffer(file: File, prettify?: boolean | PrettifyType): Promise<Buffer>;
11
+ static toBase64String(file: File, prettify?: boolean | PrettifyType): Promise<string>;
12
+ static toBlob(file: File, prettify?: boolean | PrettifyType): Promise<Blob>;
13
13
  private static readonly compiler;
14
14
  }
@@ -1,7 +1,7 @@
1
1
  export * from "./math-accent-character";
2
2
  export * from "./math-base";
3
3
  export * from "./math-limit-location";
4
- export * from "./math-naray-properties";
4
+ export * from "./math-n-ary-properties";
5
5
  export * from "./math-sub-script";
6
6
  export * from "./math-sum";
7
7
  export * from "./math-super-script";
@@ -1,4 +1,4 @@
1
1
  import { XmlComponent } from "../../../../file/xml-components";
2
- export declare class MathNArayProperties extends XmlComponent {
2
+ export declare class MathNAryProperties extends XmlComponent {
3
3
  constructor(accent: string, hasSuperScript: boolean, hasSubScript: boolean);
4
4
  }