react-get-user-media
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -16,1 +16,7 @@ 0.1.0 ~ 0.1.8 | ||
- Renaming `missingElement` no `elementNotFound` on consoleErrors. | ||
0.1.11 | ||
- `StopStream` does not trigger an error anymore if no stream is found | ||
- Updating dependencies |
@@ -96,3 +96,3 @@ 'use strict'; | ||
stopStream() { | ||
if (!this.stream) return consoleErrors.missingStream('stopStream'); | ||
if (!this.stream) return; | ||
@@ -99,0 +99,0 @@ this.stream.getTracks().forEach(track => track.stop()); |
{ | ||
"name": "react-get-user-media", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "A high order component that exposes some functions related to navigator.mediaDevices", | ||
@@ -42,9 +42,9 @@ "main": "src/index.js", | ||
"enzyme-adapter-react-16": "^1.1.1", | ||
"jest": "^23.1.0", | ||
"parcel-bundler": "^1.9.2", | ||
"jest": "^23.2.0", | ||
"parcel-bundler": "^1.9.3", | ||
"react": "^16.4.1", | ||
"react-dom": "^16.4.1", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^0.61.1", | ||
"rollup-plugin-babel": "^3.0.4", | ||
"rollup": "^0.61.2", | ||
"rollup-plugin-babel": "^3.0.5", | ||
"rollup-plugin-commonjs": "^9.1.3", | ||
@@ -51,0 +51,0 @@ "rollup-plugin-node-resolve": "^3.3.0", |
@@ -60,3 +60,3 @@ require('webrtc-adapter') | ||
stopStream () { | ||
if (!this.stream) return consoleErrors.missingStream('stopStream') | ||
if (!this.stream) return | ||
@@ -63,0 +63,0 @@ this.stream.getTracks().forEach(track => track.stop()) |
Sorry, the diff of this file is not supported yet
26738