Skip to content

Commit

Permalink
chore(version): bump to 1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ffalt committed Dec 10, 2020
1 parent 1a57439 commit c98184c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<a name="0.1.5"></a>
## 0.1.5 (2020/12/10)
### Features
* option object optional
* pdf.js version 2.7.355

<a name="0.1.4"></a>
## 0.1.4 (2019/12/30)
### Fixes
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"bugs": {
"url": "https://github.com/ffalt/pdf.js-extract/issues"
},
"version": "0.1.4",
"version": "0.1.5",
"author": {
"name": "ffalt"
},
Expand Down
12 changes: 6 additions & 6 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe("PDFExtract", () => {
if (err) return done(err);
try {
expect(data.meta).toEqual(sampleOutput.meta);
deepEqualPages(data.pages, sampleOutput.pages, ['fontName']);
deepEqualPages(data.pages, sampleOutput.pages, ["fontName"]);
done();
} catch (error) {
done(error);
Expand All @@ -71,7 +71,7 @@ describe("PDFExtract", () => {
const buffer = await readFileAsync(sampleFile);
const data = await extract.extractBuffer(buffer, {});
expect(data.meta).toEqual(sampleOutput.meta);
deepEqualPages(data.pages, sampleOutput.pages, ['fontName']);
deepEqualPages(data.pages, sampleOutput.pages, ["fontName"]);
});
it("should extract encrypted pdf buffer without error", (done) => {
const extract = new PDFExtract();
Expand All @@ -88,7 +88,7 @@ describe("PDFExtract", () => {
if (err) return done(err);
try {
expect(data.meta).toEqual(sampleEncryptedOutput.meta);
deepEqualPages(data.pages, sampleEncryptedOutput.pages, ['fontName']);
deepEqualPages(data.pages, sampleEncryptedOutput.pages, ["fontName"]);
done();
} catch (error) {
done(error);
Expand Down Expand Up @@ -121,7 +121,7 @@ describe("PDFExtract", () => {
const data = await extract.extract(sampleFile, {});
//excludingEvery("fontName")
expect(data.meta).toEqual(sampleOutput.meta);
deepEqualPages(data.pages, sampleOutput.pages, ['fontName']);
deepEqualPages(data.pages, sampleOutput.pages, ["fontName"]);
});
it("should load and extract encrypted pdf without error", (done) => {
const extract = new PDFExtract();
Expand Down Expand Up @@ -152,7 +152,7 @@ describe("PDFExtract", () => {
const extract = new PDFExtract();
const data = await extract.extract(sampleCmapFile);
expect(data.meta).toEqual(sampleCmapOutput.meta);
deepEqualPages(data.pages, sampleCmapOutput.pages, ['fontName']);
deepEqualPages(data.pages, sampleCmapOutput.pages, ["fontName"]);
});
});

Expand Down Expand Up @@ -189,7 +189,7 @@ describe("PDFExtract.tools", () => {
"• Compact PDF files are smaller than their source files and download a",
"page at a time for fast display on the Web."
];
expect(text.join('\n')).toBe(content.join('\n'));
expect(text.join("\n")).toBe(content.join("\n"));
done();
} catch (error) {
done(error);
Expand Down

0 comments on commit c98184c

Please sign in to comment.