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

svelte-pdfjs

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-pdfjs - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

LICENSE

3

_utils/handleRenderError.js

@@ -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

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