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

@tato30/vue-pdf

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tato30/vue-pdf - npm Package Compare versions

Comparing version 1.9.3 to 1.9.4

0

dist/types/components/index.d.ts
export * from './types';
export * from './usePDF';
export { default as VuePDF } from './VuePDF.vue';

@@ -0,0 +0,0 @@ import type { AnnotationEventPayload } from '../types';

@@ -0,0 +0,0 @@ import type { HighlightEventPayload, HighlightOptions } from '../types';

@@ -0,0 +0,0 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{

2

dist/types/components/types.d.ts

@@ -64,3 +64,3 @@ import type { PageViewport } from 'pdfjs-dist';

export type OnErrorCallback = (error: any) => void;
export type PDFSrc = string | URL | TypedArray | PDFDataRangeTransport | DocumentInitParameters;
export type PDFSrc = string | URL | TypedArray | PDFDataRangeTransport | DocumentInitParameters | undefined | null;
export interface PDFOptions {

@@ -67,0 +67,0 @@ onProgress?: OnProgressCallback;

@@ -0,0 +0,0 @@ import type { Ref } from 'vue';

@@ -0,0 +0,0 @@ import type { PDFDocumentProxy } from 'pdfjs-dist';

@@ -0,0 +0,0 @@ import type { TextContent } from 'pdfjs-dist/types/src/display/text_layer';

@@ -0,0 +0,0 @@ import type { IPDFLinkService } from 'pdfjs-dist/types/web/interfaces';

@@ -0,0 +0,0 @@ import 'pdfjs-dist/web/pdf_viewer.css';

@@ -0,0 +0,0 @@ import type { Plugin } from 'vue';

{
"name": "@tato30/vue-pdf",
"version": "1.9.3",
"version": "1.9.4",
"description": "PDF viewer for Vue 3",

@@ -10,9 +10,9 @@ "author": {

"license": "MIT",
"homepage": "https://github.com/TaTo30/VuePDF/",
"homepage": "https://github.com/TaTo30/vue-pdf/",
"repository": {
"type": "git",
"url": "git+https://github.com/TaTo30/VuePDF.git"
"url": "git+https://github.com/TaTo30/vue-pdf.git"
},
"bugs": {
"url": "https://github.com/TaTo30/VuePDF/issues"
"url": "https://github.com/TaTo30/vue-pdf/issues"
},

@@ -45,4 +45,2 @@ "keywords": [

"build:dts": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.build.json",
"publish": "npm publish --access public",
"publish:beta": "npm publish --tag beta --access public",
"preview": "vite preview --port 5050",

@@ -49,0 +47,0 @@ "lint": "eslint .",

@@ -0,0 +0,0 @@ <div align="center">

export * from './types'
export * from './usePDF'
export { default as VuePDF } from './VuePDF.vue'

@@ -88,2 +88,4 @@ import type { PageViewport } from 'pdfjs-dist'

| DocumentInitParameters
| undefined
| null

@@ -90,0 +92,0 @@ export interface PDFOptions {

@@ -52,3 +52,3 @@ import * as PDFJS from 'pdfjs-dist'

function processLoadingTask(source: PDFSrc) {
const loadingTask = PDFJS.getDocument(source)
const loadingTask = PDFJS.getDocument(source!)
if (options.onProgress)

@@ -113,6 +113,6 @@ loadingTask.onProgress = options.onProgress

if (isRef(src)) {
if (src.value !== undefined)
if (src.value)
processLoadingTask(src.value)
watch(src, () => {
if (src.value !== undefined)
if (src.value)
processLoadingTask(src.value)

@@ -122,3 +122,3 @@ })

else {
if (src !== undefined)
if (src)
processLoadingTask(src)

@@ -125,0 +125,0 @@ }

@@ -0,0 +0,0 @@ /* eslint-disable @typescript-eslint/no-unsafe-member-access */

@@ -0,0 +0,0 @@ import type { TextItem } from 'pdfjs-dist/types/src/display/api'

@@ -0,0 +0,0 @@ import type { IPDFLinkService } from 'pdfjs-dist/types/web/interfaces'

@@ -0,0 +0,0 @@ declare module "*?worker" {

@@ -0,0 +0,0 @@ import type { Plugin } from 'vue'

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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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