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

simple-vue-camera

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-vue-camera - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

3

dist/components/Camera.vue.d.ts

@@ -36,3 +36,3 @@ import { PropType } from "vue";

stream: import("vue").Ref<MediaStream | undefined>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("loading" | "started" | "stopped" | "paused" | "resumed" | "camera-change" | "snapshot")[], "loading" | "started" | "stopped" | "paused" | "resumed" | "camera-change" | "snapshot", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("loading" | "started" | "stopped" | "paused" | "resumed" | "camera-change" | "snapshot" | "error")[], "loading" | "started" | "stopped" | "paused" | "resumed" | "camera-change" | "snapshot" | "error", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
resolution: {

@@ -65,2 +65,3 @@ type: PropType<Resolution>;

onSnapshot?: ((...args: any[]) => any) | undefined;
onError?: ((...args: any[]) => any) | undefined;
}, {

@@ -67,0 +68,0 @@ resolution: Resolution;

@@ -71,2 +71,3 @@ (function (global, factory) {

"snapshot",
"error",
],

@@ -139,3 +140,3 @@ props: {

var start = function () { return __awaiter(_this, void 0, void 0, function () {
var _a;
var _a, err_1;
return __generator(this, function (_b) {

@@ -145,5 +146,8 @@ switch (_b.label) {

emit("loading");
_b.label = 1;
case 1:
_b.trys.push([1, 3, , 4]);
_a = stream;
return [4 /*yield*/, navigator.mediaDevices.getUserMedia(constraints)];
case 1:
case 2:
_a.value = _b.sent();

@@ -154,3 +158,8 @@ if (!video.value)

emit("started");
return [2 /*return*/];
return [3 /*break*/, 4];
case 3:
err_1 = _b.sent();
emit("error", err_1);
return [3 /*break*/, 4];
case 4: return [2 /*return*/];
}

@@ -157,0 +166,0 @@ });

{
"name": "simple-vue-camera",
"version": "1.1.0",
"version": "1.1.1",
"private": false,

@@ -5,0 +5,0 @@ "main": "./dist/simple-vue-camera.umd.js",

@@ -187,2 +187,3 @@ # Simple Vue Camera

@snapshot="snapshot"
@error="error"
></camera>

@@ -203,2 +204,3 @@ </template>

const snapshot = (blob: Blob) => console.log("A snapshot has been taken");
const error = (error: Error) => console.log("error");

@@ -212,3 +214,4 @@ return {

cameraChange,
snapshot
snapshot,
error
}

@@ -228,2 +231,3 @@ }

| snapshot | `blob: Blob` | Emitted when a snapshot is taken |
| error | `error: Error` | Emitted when an error occurs |

@@ -230,0 +234,0 @@ ## Licence

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