ng2-pdf-viewer
Advanced tools
Comparing version 7.0.2 to 8.0.0
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
/// <amd-module name="ng2-pdf-viewer" /> | ||
export * from './public_api'; |
{ | ||
"name": "ng2-pdf-viewer", | ||
"version": "7.0.2", | ||
"version": "8.0.0", | ||
"description": "Angular 5+ component for rendering PDF", | ||
@@ -28,3 +28,3 @@ "license": "MIT", | ||
"pdfjs-dist": "~2.11.338", | ||
"tslib": "^2.0.0" | ||
"tslib": "^2.3.1" | ||
}, | ||
@@ -34,11 +34,22 @@ "peerDependencies": { | ||
}, | ||
"$schema": "./node_modules/ng-packagr/package.schema.json", | ||
"main": "bundles/ng2-pdf-viewer.umd.js", | ||
"module": "fesm2015/ng2-pdf-viewer.js", | ||
"es2015": "fesm2015/ng2-pdf-viewer.js", | ||
"esm2015": "esm2015/ng2-pdf-viewer.js", | ||
"fesm2015": "fesm2015/ng2-pdf-viewer.js", | ||
"module": "fesm2015/ng2-pdf-viewer.mjs", | ||
"es2020": "fesm2020/ng2-pdf-viewer.mjs", | ||
"esm2020": "esm2020/ng2-pdf-viewer.mjs", | ||
"fesm2020": "fesm2020/ng2-pdf-viewer.mjs", | ||
"fesm2015": "fesm2015/ng2-pdf-viewer.mjs", | ||
"typings": "ng2-pdf-viewer.d.ts", | ||
"metadata": "ng2-pdf-viewer.metadata.json", | ||
"exports": { | ||
"./package.json": { | ||
"default": "./package.json" | ||
}, | ||
".": { | ||
"types": "./ng2-pdf-viewer.d.ts", | ||
"esm2020": "./esm2020/ng2-pdf-viewer.mjs", | ||
"es2020": "./fesm2020/ng2-pdf-viewer.mjs", | ||
"es2015": "./fesm2015/ng2-pdf-viewer.mjs", | ||
"node": "./fesm2015/ng2-pdf-viewer.mjs", | ||
"default": "./fesm2020/ng2-pdf-viewer.mjs" | ||
} | ||
}, | ||
"sideEffects": false | ||
} |
@@ -9,8 +9,2 @@ <h1 align="center">Angular PDF Viewer</h1> | ||
</a> | ||
<a href="https://david-dm.org/vadimdez/ng2-pdf-viewer" title="dependencies status"> | ||
<img src="https://david-dm.org/vadimdez/ng2-pdf-viewer/status.svg"/> | ||
</a> | ||
<a href="https://travis-ci.org/VadimDez/ng2-pdf-viewer" title="test"> | ||
<img src="https://travis-ci.org/VadimDez/ng2-pdf-viewer.svg?branch=master"/> | ||
</a> | ||
<a href="https://gitter.im/ngx-pdf-viewer/Lobby" title="Gitter"> | ||
@@ -50,8 +44,18 @@ <img src="https://img.shields.io/gitter/room/nwjs/nw.js.svg" alt="Gitter"/> | ||
### Angular >= 12 | ||
``` | ||
npm install ng2-pdf-viewer --save | ||
npm install ng2-pdf-viewer | ||
``` | ||
> Partial Ivy compilated library bundles. | ||
*Note: For angular 4 or less use version `3.0.8`* | ||
### Angular >= 4 | ||
``` | ||
npm install ng2-pdf-viewer@^7.0.0 | ||
``` | ||
### Angular < 4 | ||
``` | ||
npm install ng2-pdf-viewer@~3.0.8 | ||
``` | ||
## Usage | ||
@@ -92,3 +96,3 @@ | ||
[original-size]="false" | ||
style="style="width: 400px; height: 500px" | ||
style="width: 400px; height: 500px" | ||
></pdf-viewer> | ||
@@ -95,0 +99,0 @@ ` |
@@ -6,2 +6,3 @@ /** | ||
import type { PDFSource, PDFProgressData } from './typings'; | ||
import * as i0 from "@angular/core"; | ||
export declare enum RenderTextMode { | ||
@@ -95,2 +96,4 @@ DISABLED = 0, | ||
private setupResizeListener; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<PdfViewerComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<PdfViewerComponent, "pdf-viewer", never, { "src": "src"; "cMapsUrl": "c-maps-url"; "page": "page"; "renderText": "render-text"; "renderTextMode": "render-text-mode"; "originalSize": "original-size"; "showAll": "show-all"; "stickToPage": "stick-to-page"; "zoom": "zoom"; "zoomScale": "zoom-scale"; "rotation": "rotation"; "externalLinkTarget": "external-link-target"; "autoresize": "autoresize"; "fitToPage": "fit-to-page"; "showBorders": "show-borders"; }, { "afterLoadComplete": "after-load-complete"; "pageRendered": "page-rendered"; "pageInitialized": "pages-initialized"; "textLayerRendered": "text-layer-rendered"; "onError": "error"; "onProgress": "on-progress"; "pageChange": "pageChange"; }, never, never>; | ||
} |
@@ -0,3 +1,8 @@ | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "./pdf-viewer.component"; | ||
export * from './typings'; | ||
export declare class PdfViewerModule { | ||
static ɵfac: i0.ɵɵFactoryDeclaration<PdfViewerModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<PdfViewerModule, [typeof i1.PdfViewerComponent], never, [typeof i1.PdfViewerComponent]>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<PdfViewerModule>; | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2865
0
552
392241
20
6
1
Updatedtslib@^2.3.1