Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pdfjs-dist

Package Overview
Dependencies
Maintainers
3
Versions
1544
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfjs-dist - npm Package Compare versions

Comparing version 2.0.453 to 2.0.455

2

bower.json
{
"name": "pdfjs-dist",
"version": "2.0.453",
"version": "2.0.455",
"main": [

@@ -5,0 +5,0 @@ "build/pdf.js",

@@ -226,3 +226,3 @@ /**

var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.453';
var workerVersion = '2.0.455';
if (apiVersion !== null && apiVersion !== workerVersion) {

@@ -229,0 +229,0 @@ throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));

@@ -237,3 +237,3 @@ /**

docId: docId,
apiVersion: '2.0.453',
apiVersion: '2.0.455',
source: {

@@ -1669,4 +1669,4 @@ data: source.data,

{
exports.version = version = '2.0.453';
exports.build = build = '115fbc47';
exports.version = version = '2.0.455';
exports.build = build = '6cc0efe1';
}

@@ -1673,0 +1673,0 @@ exports.getDocument = getDocument;

@@ -24,4 +24,4 @@ /**

var pdfjsVersion = '2.0.453';
var pdfjsBuild = '115fbc47';
var pdfjsVersion = '2.0.455';
var pdfjsBuild = '6cc0efe1';
var pdfjsSharedUtil = require('./shared/util.js');

@@ -28,0 +28,0 @@ var pdfjsDisplayAPI = require('./display/api.js');

@@ -24,5 +24,5 @@ /**

var pdfjsVersion = '2.0.453';
var pdfjsBuild = '115fbc47';
var pdfjsVersion = '2.0.455';
var pdfjsBuild = '6cc0efe1';
var pdfjsCoreWorker = require('./core/worker.js');
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

@@ -262,6 +262,6 @@ /**

describe('PDFWorker', function () {
if ((0, _is_node2.default)()) {
pending('Worker is not supported in Node.js.');
}
it('worker created or destroyed', function (done) {
if ((0, _is_node2.default)()) {
pending('Worker is not supported in Node.js.');
}
var worker = new _api.PDFWorker({ name: 'test1' });

@@ -283,2 +283,5 @@ worker.promise.then(function () {

it('worker created or destroyed by getDocument', function (done) {
if ((0, _is_node2.default)()) {
pending('Worker is not supported in Node.js.');
}
var loadingTask = (0, _api.getDocument)(basicApiGetDocumentParams);

@@ -303,2 +306,5 @@ var worker;

it('worker created and can be used in getDocument', function (done) {
if ((0, _is_node2.default)()) {
pending('Worker is not supported in Node.js.');
}
var worker = new _api.PDFWorker({ name: 'test1' });

@@ -324,2 +330,5 @@ var loadingTask = (0, _api.getDocument)((0, _test_utils.buildGetDocumentParams)(basicApiFileName, { worker: worker }));

it('creates more than one worker', function (done) {
if ((0, _is_node2.default)()) {
pending('Worker is not supported in Node.js.');
}
var worker1 = new _api.PDFWorker({ name: 'test1' });

@@ -340,2 +349,5 @@ var worker2 = new _api.PDFWorker({ name: 'test2' });

it('gets current workerSrc', function () {
if ((0, _is_node2.default)()) {
pending('Worker is not supported in Node.js.');
}
var workerSrc = _api.PDFWorker.getWorkerSrc();

@@ -1027,6 +1039,3 @@ expect(typeof workerSrc === 'undefined' ? 'undefined' : _typeof(workerSrc)).toEqual('string');

});
describe('Multiple PDFJS instances', function () {
if ((0, _is_node2.default)()) {
pending('TODO: Support Canvas testing in Node.js.');
}
describe('Multiple `getDocument` instances', function () {
var pdf1 = (0, _test_utils.buildGetDocumentParams)('tracemonkey.pdf');

@@ -1068,2 +1077,5 @@ var pdf2 = (0, _test_utils.buildGetDocumentParams)('TAMReview.pdf');

it('should correctly render PDFs in parallel', function (done) {
if ((0, _is_node2.default)()) {
pending('TODO: Support Canvas testing in Node.js.');
}
var baseline1, baseline2, baseline3;

@@ -1093,8 +1105,5 @@ var promiseDone = renderPDF(pdf1).then(function (data1) {

describe('PDFDataRangeTransport', function () {
if ((0, _is_node2.default)()) {
pending('XMLHttpRequest is not supported in Node.js.');
}
var pdfPath = new URL('../pdfs/tracemonkey.pdf', window.location).href;
var loadPromise;
function getDocumentData() {
var pdfPath = new URL('../pdfs/tracemonkey.pdf', window.location).href;
if (loadPromise) {

@@ -1118,2 +1127,5 @@ return loadPromise;

it('should fetch document info and page using ranges', function (done) {
if ((0, _is_node2.default)()) {
pending('XMLHttpRequest is not supported in Node.js.');
}
var transport;

@@ -1151,2 +1163,5 @@ var initialDataLength = 4000;

it('should fetch document info and page using range and streaming', function (done) {
if ((0, _is_node2.default)()) {
pending('XMLHttpRequest is not supported in Node.js.');
}
var transport;

@@ -1153,0 +1168,0 @@ var initialDataLength = 4000;

@@ -95,3 +95,3 @@ /**

});
it('should handle one operations', function (done) {
it('should handle one operation', function (done) {
var stream = new _stream.StringStream('Q');

@@ -117,3 +117,3 @@ runOperatorListCheck(partialEvaluator, stream, new ResourcesMock(), function (result) {

});
it('should handle tree glued operations', function (done) {
it('should handle three glued operations', function (done) {
var stream = new _stream.StringStream('fff');

@@ -120,0 +120,0 @@ runOperatorListCheck(partialEvaluator, stream, new ResourcesMock(), function (result) {

@@ -60,4 +60,4 @@ /**

});
var catchingExceptions = queryString.getParam('catch');
env.catchExceptions(typeof catchingExceptions === 'undefined' ? true : catchingExceptions);
var stoppingOnSpecFailure = queryString.getParam('failFast');
env.stopOnSpecFailure(typeof stoppingOnSpecFailure === 'undefined' ? false : stoppingOnSpecFailure);
var throwingExpectationFailures = queryString.getParam('throwFailures');

@@ -73,4 +73,4 @@ env.throwOnExpectationFailure(throwingExpectationFailures);

env: env,
onRaiseExceptionsClick: function onRaiseExceptionsClick() {
queryString.navigateWithNewParam('catch', !env.catchingExceptions());
onStopExecutionClick: function onStopExecutionClick() {
queryString.navigateWithNewParam('failFast', env.stoppingOnSpecFailure());
},

@@ -77,0 +77,0 @@ onThrowExpectationsClick: function onThrowExpectationsClick() {

@@ -51,4 +51,4 @@ /**

var pdfjsVersion = '2.0.453';
var pdfjsBuild = '115fbc47';
var pdfjsVersion = '2.0.455';
var pdfjsBuild = '6cc0efe1';
exports.PDFViewer = _pdf_viewer.PDFViewer;

@@ -55,0 +55,0 @@ exports.PDFSinglePageViewer = _pdf_single_page_viewer.PDFSinglePageViewer;

{
"name": "pdfjs-dist",
"version": "2.0.453",
"version": "2.0.455",
"main": "build/pdf.js",

@@ -16,3 +16,3 @@ "description": "Generic build of Mozilla's PDF.js library.",

"node-ensure": "^0.0.0",
"worker-loader": "^1.1.0"
"worker-loader": "^1.1.1"
},

@@ -19,0 +19,0 @@ "peerDependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc