@uppy/webcam
Advanced tools
Comparing version 0.30.4 to 0.30.5
@@ -7,5 +7,5 @@ var _require = require('preact'), | ||
"svg", | ||
{ "aria-hidden": "true", fill: "#0097DC", width: "66", height: "55", viewBox: "0 0 66 55", xmlns: "http://www.w3.org/2000/svg" }, | ||
{ "aria-hidden": "true", fill: "#0097DC", width: "66", height: "55", viewBox: "0 0 66 55" }, | ||
h("path", { d: "M57.3 8.433c4.59 0 8.1 3.51 8.1 8.1v29.7c0 4.59-3.51 8.1-8.1 8.1H8.7c-4.59 0-8.1-3.51-8.1-8.1v-29.7c0-4.59 3.51-8.1 8.1-8.1h9.45l4.59-7.02c.54-.54 1.35-1.08 2.16-1.08h16.2c.81 0 1.62.54 2.16 1.08l4.59 7.02h9.45zM33 14.64c-8.62 0-15.393 6.773-15.393 15.393 0 8.62 6.773 15.393 15.393 15.393 8.62 0 15.393-6.773 15.393-15.393 0-8.62-6.773-15.393-15.393-15.393zM33 40c-5.648 0-9.966-4.319-9.966-9.967 0-5.647 4.318-9.966 9.966-9.966s9.966 4.319 9.966 9.966C42.966 35.681 38.648 40 33 40z", "fill-rule": "evenodd" }) | ||
); | ||
}; |
@@ -65,3 +65,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
var defaultLocale = { | ||
_this.defaultLocale = { | ||
strings: { | ||
@@ -82,3 +82,2 @@ smile: 'Smile!', | ||
countdown: false, | ||
locale: defaultLocale, | ||
modes: ['video-audio', 'video-only', 'audio-only', 'picture'], | ||
@@ -92,3 +91,3 @@ mirror: true, | ||
// i18n | ||
_this.translator = new Translator([defaultLocale, _this.uppy.locale, _this.opts.locale]); | ||
_this.translator = new Translator([_this.defaultLocale, _this.uppy.locale, _this.opts.locale]); | ||
_this.i18n = _this.translator.translate.bind(_this.translator); | ||
@@ -95,0 +94,0 @@ _this.i18nArray = _this.translator.translateArray.bind(_this.translator); |
{ | ||
"name": "@uppy/webcam", | ||
"description": "Uppy plugin that takes photos or records videos using the device's camera.", | ||
"version": "0.30.4", | ||
"version": "0.30.5", | ||
"license": "MIT", | ||
@@ -29,7 +29,7 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "0.30.4", | ||
"@uppy/utils": "0.30.5", | ||
"preact": "^8.2.9" | ||
}, | ||
"devDependencies": { | ||
"@uppy/core": "0.30.4" | ||
"@uppy/core": "0.30.5" | ||
}, | ||
@@ -39,3 +39,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "7ae8af44abdd42eef71c46b831b2e3dadb00237f" | ||
"gitHead": "0f95529cc56175c017e149dd3a122a3bcf9325b7" | ||
} |
const { h } = require('preact') | ||
module.exports = (props) => { | ||
return <svg aria-hidden="true" fill="#0097DC" width="66" height="55" viewBox="0 0 66 55" xmlns="http://www.w3.org/2000/svg"> | ||
return <svg aria-hidden="true" fill="#0097DC" width="66" height="55" viewBox="0 0 66 55"> | ||
<path d="M57.3 8.433c4.59 0 8.1 3.51 8.1 8.1v29.7c0 4.59-3.51 8.1-8.1 8.1H8.7c-4.59 0-8.1-3.51-8.1-8.1v-29.7c0-4.59 3.51-8.1 8.1-8.1h9.45l4.59-7.02c.54-.54 1.35-1.08 2.16-1.08h16.2c.81 0 1.62.54 2.16 1.08l4.59 7.02h9.45zM33 14.64c-8.62 0-15.393 6.773-15.393 15.393 0 8.62 6.773 15.393 15.393 15.393 8.62 0 15.393-6.773 15.393-15.393 0-8.62-6.773-15.393-15.393-15.393zM33 40c-5.648 0-9.966-4.319-9.966-9.967 0-5.647 4.318-9.966 9.966-9.966s9.966 4.319 9.966 9.966C42.966 35.681 38.648 40 33 40z" fill-rule="evenodd" /> | ||
</svg> | ||
} |
@@ -46,3 +46,3 @@ const { h } = require('preact') | ||
const defaultLocale = { | ||
this.defaultLocale = { | ||
strings: { | ||
@@ -62,3 +62,2 @@ smile: 'Smile!', | ||
countdown: false, | ||
locale: defaultLocale, | ||
modes: [ | ||
@@ -78,3 +77,3 @@ 'video-audio', | ||
// i18n | ||
this.translator = new Translator([ defaultLocale, this.uppy.locale, this.opts.locale ]) | ||
this.translator = new Translator([ this.defaultLocale, this.uppy.locale, this.opts.locale ]) | ||
this.i18n = this.translator.translate.bind(this.translator) | ||
@@ -81,0 +80,0 @@ this.i18nArray = this.translator.translateArray.bind(this.translator) |
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
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
44924
1030
- Removed@uppy/utils@0.30.4(transitive)
Updated@uppy/utils@0.30.5