Skip to content

Commit

Permalink
[MNT-24538] Use pdfjs legacy version
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKinas committed Jan 14, 2025
1 parent 94c630d commit ced1025
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.13.0
20.18.1
2 changes: 0 additions & 2 deletions lib/content-services/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ module.exports = function (config) {
{ pattern: 'node_modules/pdfjs-dist/legacy/build/pdf.mjs', included: true, watched: false, type: 'module' },
{ pattern: 'node_modules/pdfjs-dist/legacy/build/pdf.worker.mjs', included: true, watched: false, type: 'module' },
{ pattern: 'node_modules/pdfjs-dist/legacy/web/pdf_viewer.mjs', included: true, watched: false, type: 'module' },
{ pattern: 'node_modules/pdfjs-dist/legacy/build/pdf.mjs.map', included: true, watched: false, type: 'module' },
{ pattern: 'node_modules/pdfjs-dist/legacy/build/pdf.worker.mjs.map', included: true, watched: false, type: 'module' },
{
pattern: 'node_modules/@angular/material/prebuilt-themes/indigo-pink.css',
included: true,
Expand Down
2 changes: 0 additions & 2 deletions lib/core/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ module.exports = function (config) {
{ pattern: 'node_modules/pdfjs-dist/legacy/build/pdf.worker.mjs', included: true, watched: false, served: true, type: 'module' },
{ pattern: 'node_modules/pdfjs-dist/legacy/build/pdf.worker.min.mjs', included: true, watched: false, served: true, type: 'module' },
{ pattern: 'node_modules/pdfjs-dist/legacy/web/pdf_viewer.mjs', included: true, watched: false, type: 'module' },
{ pattern: 'node_modules/pdfjs-dist/legacy/build/pdf.mjs.map', included: true, watched: false, type: 'module' },
{ pattern: 'node_modules/pdfjs-dist/legacy/build/pdf.worker.mjs.map', included: true, watched: false, type: 'module' },
{
pattern: 'node_modules/@angular/material/prebuilt-themes/indigo-pink.css',
included: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { MatDialog } from '@angular/material/dialog';
import { MatIconModule } from '@angular/material/icon';
import { MatProgressBarModule } from '@angular/material/progress-bar';
import { TranslateModule } from '@ngx-translate/core';
import { AnnotationMode, OnProgressParameters, PDFDocumentLoadingTask, PDFDocumentProxy } from 'pdfjs-dist';
import { AnnotationMode, OnProgressParameters, PDFDocumentLoadingTask, PDFDocumentProxy } from 'pdfjs-dist/legacy/build/pdf.mjs';
import { Subject } from 'rxjs';
import { catchError, delay } from 'rxjs/operators';
import { AppConfigService } from '../../../app-config';
Expand Down
2 changes: 1 addition & 1 deletion lib/process-services-cloud/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.13.0
20.18.1

0 comments on commit ced1025

Please sign in to comment.