@capacitor-community/camera-preview
Advanced tools
Comparing version 4.0.0-0 to 4.0.0
{ | ||
"name": "@capacitor-community/camera-preview", | ||
"version": "4.0.0-0", | ||
"version": "4.0.0", | ||
"description": "Camera preview", | ||
@@ -33,8 +33,8 @@ "main": "dist/esm/index.js", | ||
"husky": "^7.0.4", | ||
"prettier": "^2.3.0", | ||
"prettier-plugin-java": "^1.0.2", | ||
"prettier": "^2.5.1", | ||
"prettier-plugin-java": "^1.6.1", | ||
"pretty-quick": "^3.1.3", | ||
"rimraf": "^3.0.2", | ||
"swiftlint": "^1.0.1", | ||
"typescript": "^4.1.5" | ||
"typescript": "^4.3.2" | ||
}, | ||
@@ -41,0 +41,0 @@ "husky": { |
@@ -11,3 +11,3 @@ <p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p> | ||
<br> | ||
Version 4 of this plugin requires Capacitor 4. If you are using Capacitor 3, use [version 3](https://github.com/capacitor-community/camera-preview/releases/tag/v3.1.2) | ||
Version 2+ of this plugin is compatible with Ionic 5+ and Capacitor 3. If your project uses Capacitor 2, please make sure you install [version 1](https://github.com/capacitor-community/camera-preview/releases/tag/v1.2.1) of this plugin. | ||
@@ -63,3 +63,12 @@ | ||
then in html add | ||
<div id="cameraPreview"></div> | ||
and | ||
ngOnInit() { const { CameraPreview } = Plugins; CameraPreview.start({ parent: "cameraPreview"}); } | ||
it will work | ||
# Methods | ||
@@ -66,0 +75,0 @@ |
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 3 instances 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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
343364
131
1
441
3