Skip to content

Commit

Permalink
Update pdfjs-dist to 2.5.207
Browse files Browse the repository at this point in the history
Closes #686
  • Loading branch information
wojtekmaj committed Nov 20, 2020
1 parent 304af0d commit 1533b4d
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"make-event-props": "^1.1.0",
"merge-class-names": "^1.1.1",
"merge-refs": "^1.0.0",
"pdfjs-dist": "2.4.456",
"pdfjs-dist": "2.5.207",
"prop-types": "^15.6.2",
"worker-loader": "^3.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Document.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
import makeEventProps from 'make-event-props';
import makeCancellable from 'make-cancellable-promise';
import mergeClassNames from 'merge-class-names';
import pdfjs from 'pdfjs-dist/build/pdf';
import * as pdfjs from 'pdfjs-dist';

import DocumentContext from './DocumentContext';

Expand Down
4 changes: 2 additions & 2 deletions src/Page.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ describe('Page', () => {
unregisterPageArguments = page._pageIndex;
});

describe('loading', () => {
it('loads a page and calls onLoadSuccess callback properly', async () => {
describe.only('loading', () => {
it.only('loads a page and calls onLoadSuccess callback properly', async () => {
const { func: onLoadSuccess, promise: onLoadSuccessPromise } = makeAsyncCallback();

shallow(
Expand Down
2 changes: 1 addition & 1 deletion src/Page/AnnotationLayer.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import pdfjs from 'pdfjs-dist/build/pdf';
import * as pdfjs from 'pdfjs-dist/build/pdf';
import makeCancellable from 'make-cancellable-promise';

import DocumentContext from '../DocumentContext';
Expand Down
2 changes: 1 addition & 1 deletion src/Page/PageSVG.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import pdfjs from 'pdfjs-dist/build/pdf';
import * as pdfjs from 'pdfjs-dist/build/pdf';

import PageContext from '../PageContext';

Expand Down
2 changes: 1 addition & 1 deletion src/entry.jest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pdfjs from 'pdfjs-dist/es5/build/pdf';
import * as pdfjs from 'pdfjs-dist/es5/build/pdf';
import Document from './Document';
import Outline from './Outline';
import Page from './Page';
Expand Down
2 changes: 1 addition & 1 deletion src/entry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pdfjs from 'pdfjs-dist/build/pdf';
import * as pdfjs from 'pdfjs-dist/build/pdf';
import Document from './Document';
import Outline from './Outline';
import Page from './Page';
Expand Down
2 changes: 1 addition & 1 deletion src/entry.parcel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pdfjs from 'pdfjs-dist/build/pdf';
import * as pdfjs from 'pdfjs-dist/build/pdf';
import Document from './Document';
import Outline from './Outline';
import Page from './Page';
Expand Down
2 changes: 1 addition & 1 deletion src/entry.webpack.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pdfjs from 'pdfjs-dist/build/pdf';
import * as pdfjs from 'pdfjs-dist/build/pdf';
import Document from './Document';
import Outline from './Outline';
import Page from './Page';
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6755,10 +6755,10 @@ fsevents@^2.1.2:
languageName: node
linkType: hard

"pdfjs-dist@npm:2.4.456":
version: 2.4.456
resolution: "pdfjs-dist@npm:2.4.456"
checksum: 3d90379d6503127d5b969d16a23cb1928cd58e01752efa065c1b530fd9981f4ec9a4239e37fff7690315ff8d4335994f3e292206ac1d537cdf3e5b0f6ddcd27d
"pdfjs-dist@npm:2.5.207":
version: 2.5.207
resolution: "pdfjs-dist@npm:2.5.207"
checksum: b1a1536d46507493316cdb1f90e103f95a1538353c592c5b31a70bff39d4a10ee731541705d95aa36b7293ffca8af2203af2a86af1761fae75b65b1be196c147
languageName: node
linkType: hard

Expand Down Expand Up @@ -7032,7 +7032,7 @@ fsevents@^2.1.2:
make-event-props: ^1.1.0
merge-class-names: ^1.1.1
merge-refs: ^1.0.0
pdfjs-dist: 2.4.456
pdfjs-dist: 2.5.207
prop-types: ^15.6.2
react: ^16.7.0
react-dom: ^16.7.0
Expand Down

0 comments on commit 1533b4d

Please sign in to comment.