Răsfoiți Sursa

PDF.js version 1.6.322 - See mozilla/pdf.js@043cea251df376122c4cd276d82bd8166863849c

Pdf Bot 8 ani în urmă
părinte
comite
0e0fbef97d
5 a modificat fișierele cu 22 adăugiri și 18 ștergeri
  1. 1 1
      bower.json
  2. 9 7
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 9 7
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.6.320",
+  "version": "1.6.322",
   "main": [
     "build/pdf.js",
     "build/pdf.worker.js"

+ 9 - 7
build/pdf.combined.js

@@ -23,8 +23,8 @@
  }
 }(this, function (exports) {
  'use strict';
- var pdfjsVersion = '1.6.320';
- var pdfjsBuild = '7f678e3';
+ var pdfjsVersion = '1.6.322';
+ var pdfjsBuild = '043cea2';
  var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
  var pdfjsLibs = {};
  (function pdfjsWrapper() {
@@ -54060,7 +54060,7 @@
            argsLength--;
           }
           while (argsLength < numArgs && nonProcessedArgs.length !== 0) {
-           if (!args) {
+           if (args === null) {
             args = [];
            }
            args.unshift(nonProcessedArgs.pop());
@@ -54068,12 +54068,14 @@
           }
          }
          if (argsLength < numArgs) {
-          info('Command ' + fn + ': because expected ' + numArgs + ' args, but received ' + argsLength + ' args; skipping');
-          args = null;
+          warn('Skipping command ' + fn + ': expected ' + numArgs + ' args, but received ' + argsLength + ' args.');
+          if (args !== null) {
+           args.length = 0;
+          }
           continue;
          }
         } else if (argsLength > numArgs) {
-         info('Command ' + fn + ': expected [0,' + numArgs + '] args, but received ' + argsLength + ' args');
+         info('Command ' + fn + ': expected [0,' + numArgs + '] args, but received ' + argsLength + ' args.');
         }
         this.preprocessCommand(fn, args);
         operation.fn = fn;
@@ -54084,7 +54086,7 @@
          return false;
         }
         if (obj !== null) {
-         if (!args) {
+         if (args === null) {
           args = [];
          }
          args.push(obj);

+ 2 - 2
build/pdf.js

@@ -23,8 +23,8 @@
  }
 }(this, function (exports) {
  'use strict';
- var pdfjsVersion = '1.6.320';
- var pdfjsBuild = '7f678e3';
+ var pdfjsVersion = '1.6.322';
+ var pdfjsBuild = '043cea2';
  var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
  var pdfjsLibs = {};
  (function pdfjsWrapper() {

+ 9 - 7
build/pdf.worker.js

@@ -23,8 +23,8 @@
  }
 }(this, function (exports) {
  'use strict';
- var pdfjsVersion = '1.6.320';
- var pdfjsBuild = '7f678e3';
+ var pdfjsVersion = '1.6.322';
+ var pdfjsBuild = '043cea2';
  var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
  var pdfjsLibs = {};
  (function pdfjsWrapper() {
@@ -47447,7 +47447,7 @@
            argsLength--;
           }
           while (argsLength < numArgs && nonProcessedArgs.length !== 0) {
-           if (!args) {
+           if (args === null) {
             args = [];
            }
            args.unshift(nonProcessedArgs.pop());
@@ -47455,12 +47455,14 @@
           }
          }
          if (argsLength < numArgs) {
-          info('Command ' + fn + ': because expected ' + numArgs + ' args, but received ' + argsLength + ' args; skipping');
-          args = null;
+          warn('Skipping command ' + fn + ': expected ' + numArgs + ' args, but received ' + argsLength + ' args.');
+          if (args !== null) {
+           args.length = 0;
+          }
           continue;
          }
         } else if (argsLength > numArgs) {
-         info('Command ' + fn + ': expected [0,' + numArgs + '] args, but received ' + argsLength + ' args');
+         info('Command ' + fn + ': expected [0,' + numArgs + '] args, but received ' + argsLength + ' args.');
         }
         this.preprocessCommand(fn, args);
         operation.fn = fn;
@@ -47471,7 +47473,7 @@
          return false;
         }
         if (obj !== null) {
-         if (!args) {
+         if (args === null) {
           args = [];
          }
          args.push(obj);

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.6.320",
+  "version": "1.6.322",
   "main": "build/pdf.js",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [