Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump dependencies #3832

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 31 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"dependencies": {
"@fontsource/dancing-script": "^5.1.0",
"@libresign/vue-pdf-editor": "^1.2.7",
"@libresign/vue-pdf-editor": "^1.3.7",
"@marionebl/option": "^1.0.8",
"@nextcloud/auth": "^2.4.0",
"@nextcloud/axios": "^2.5.1",
Expand Down
5 changes: 5 additions & 0 deletions src/Components/PdfEditor/PdfEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
</template>

<script>
import VuePdfEditor from '@libresign/vue-pdf-editor'

Check failure on line 40 in src/Components/PdfEditor/PdfEditor.vue

View workflow job for this annotation

GitHub Actions / NPM lint

No default export found in imported module "@libresign/vue-pdf-editor"
import { GlobalWorkerOptions } from 'pdfjs-dist'

Check failure on line 41 in src/Components/PdfEditor/PdfEditor.vue

View workflow job for this annotation

GitHub Actions / NPM lint

"pdfjs-dist" is extraneous
import pdfWorkerCode from 'pdfjs-dist/legacy/build/pdf.worker.min.mjs'

Check failure on line 42 in src/Components/PdfEditor/PdfEditor.vue

View workflow job for this annotation

GitHub Actions / NPM lint

"pdfjs-dist" is extraneous

import Signature from './Signature.vue'

Expand All @@ -58,6 +60,9 @@
default: false,
},
},
async mounted() {
GlobalWorkerOptions.workerSrc = pdfWorkerCode
},
methods: {
endInit(event) {
this.$emit('pdf-editor:end-init', { ...event })
Expand Down
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ module.exports = merge(nextcloudWebpackConfig, {
resourceQuery: /raw/,
type: 'asset/source',
},
{
test: /pdf\.worker(\.min)?\.mjs$/,
type: 'asset/resource'
},
],
},
cache: true,
Expand Down
Loading