Browse Source

PDF.js version 1.4.231 - See mozilla/pdf.js@fa2f80d0fde9ec3b296b1ab23bb593a58c43a34f

Pdf Bot 9 years ago
parent
commit
f16596f36c
6 changed files with 29 additions and 12 deletions
  1. 1 1
      bower.json
  2. 2 2
      build/pdf.combined.js
  3. 2 4
      build/pdf.js
  4. 18 0
      build/pdf.worker.entry.js
  5. 2 2
      build/pdf.worker.js
  6. 4 3
      package.json

+ 1 - 1
bower.json

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

+ 2 - 2
build/pdf.combined.js

@@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
   // Use strict in our context only - users might not want it
   'use strict';
 
-var pdfjsVersion = '1.4.229';
-var pdfjsBuild = 'b834b68';
+var pdfjsVersion = '1.4.231';
+var pdfjsBuild = 'fa2f80d';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?

+ 2 - 4
build/pdf.js

@@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
   // Use strict in our context only - users might not want it
   'use strict';
 
-var pdfjsVersion = '1.4.229';
-var pdfjsBuild = 'b834b68';
+var pdfjsVersion = '1.4.231';
+var pdfjsBuild = 'fa2f80d';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?
@@ -8612,8 +8612,6 @@ if (typeof window === 'undefined') {
   useRequireEnsure = true;
 }
 if (typeof __webpack_require__ !== 'undefined') {
-  // Webpack - get/bundle pdf.worker.js as additional file.
-  workerSrc = require('entry?name=[hash]-worker.js!./pdf.worker.js');
   useRequireEnsure = true;
 }
 if (typeof requirejs !== 'undefined' && requirejs.toUrl) {

+ 18 - 0
build/pdf.worker.entry.js

@@ -0,0 +1,18 @@
+/* Copyright 2016 Mozilla Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(typeof window !== 'undefined' ? window : {}).pdfjsDistBuildPdfWorker =
+  require('./pdf.worker.js');
+

+ 2 - 2
build/pdf.worker.js

@@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
   // Use strict in our context only - users might not want it
   'use strict';
 
-var pdfjsVersion = '1.4.229';
-var pdfjsBuild = 'b834b68';
+var pdfjsVersion = '1.4.231';
+var pdfjsBuild = 'fa2f80d';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?

+ 4 - 3
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.4.229",
+  "version": "1.4.231",
   "main": "build/pdf.js",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [
@@ -11,9 +11,10 @@
   "homepage": "http://mozilla.github.io/pdf.js/",
   "bugs": "https://github.com/mozilla/pdf.js/issues",
   "license": "Apache-2.0",
+  "dependencies": {
+    "node-ensure": "^0.0.0"
+  },
   "browser": {
-    "entry?name=[hash]-worker.js!./pdf.worker.js": false,
-    "./build/pdf.worker.js": false,
     "node-ensure": false
   },
   "format": "amd",