svelte-pdfjs
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -0,5 +1,6 @@ | ||
import { RenderingCancelledException } from "pdfjs-dist/build/pdf"; | ||
export default function (e) { | ||
if (e.name != "RenderingCancelledException") { | ||
if (!(e instanceof RenderingCancelledException)) { | ||
console.error(e); | ||
} | ||
} |
import { SvelteComponentTyped } from "svelte"; | ||
import type { OnProgressParameters, PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api'; | ||
declare const __propDef: { | ||
@@ -8,5 +9,6 @@ props: { | ||
pdfPassword?: string; | ||
progressCallback?: (progress: OnProgressParameters) => void; | ||
}; | ||
events: { | ||
documentloaded: CustomEvent<any>; | ||
documentloaded: CustomEvent<PDFDocumentProxy>; | ||
} & { | ||
@@ -13,0 +15,0 @@ [evt: string]: CustomEvent<any>; |
{ | ||
"name": "svelte-pdfjs", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"devDependencies": { | ||
"@sveltejs/adapter-netlify": "^1.0.0-next.35", | ||
"@sveltejs/kit": "next", | ||
@@ -6,0 +7,0 @@ "@typescript-eslint/eslint-plugin": "^4.31.1", |
@@ -5,2 +5,5 @@ ## svelte-pdfjs | ||
## SSR | ||
Partially SSR compatible. The internal library Pdf.js throws a warning when attempting SSR, can be fixed through vite-plugin-iso if being used in svelte kit. | ||
Partially SSR compatible. The internal library Pdf.js throws a warning when attempting SSR, can be fixed through vite-plugin-iso if being used in svelte kit. | ||
## License | ||
[MIT](LICENSE) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
5889
7
0
30
8
15