removed lodash

This commit is contained in:
Sergio Mendonça
2018-09-20 07:09:17 -03:00
parent 7cd8864fb9
commit 0684738ec2
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,6 @@
"fast-xml-parser": "^3.3.6", "fast-xml-parser": "^3.3.6",
"image-size": "^0.6.2", "image-size": "^0.6.2",
"jszip": "^3.1.5", "jszip": "^3.1.5",
"lodash": "^4.17.11",
"xml": "^1.0.1" "xml": "^1.0.1"
}, },
"author": "Dolan Miu", "author": "Dolan Miu",

View File

@ -1,4 +1,3 @@
import { cloneDeep } from "lodash";
import { AppProperties } from "./app-properties/app-properties"; import { AppProperties } from "./app-properties/app-properties";
import { ContentTypes } from "./content-types/content-types"; import { ContentTypes } from "./content-types/content-types";
import { CoreProperties, IPropertiesOptions } from "./core-properties"; import { CoreProperties, IPropertiesOptions } from "./core-properties";
@ -328,7 +327,9 @@ export class File {
const bookmarkId = `_TOC_${this.currentTocBookmarkId}`; const bookmarkId = `_TOC_${this.currentTocBookmarkId}`;
// console.log("Generating content for paragraph: ", bookmarkId); // console.log("Generating content for paragraph: ", bookmarkId);
const generatedParagraph = cloneDeep(paragraph); // deep clone the original paragraph
const generatedParagraph = Object.assign(Object.create(Object.getPrototypeOf(paragraph)), paragraph);
generatedParagraph.clearPageBreaks().rightTabStop(9016, "dot"); generatedParagraph.clearPageBreaks().rightTabStop(9016, "dot");
const tabRun = new Run(); const tabRun = new Run();