New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-tune-trace

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tune-trace - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

11

dist/index.js

@@ -79,7 +79,3 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
return Promise.resolve(navigator.mediaDevices.getUserMedia({
audio: true
})).then(function (stream) {
_this.mediaRecorder = new MediaRecorder(stream);
});
return Promise.resolve();
} catch (e) {

@@ -207,2 +203,3 @@ return Promise.reject(e);

window.stream = _this.stream = _this$getStream;
_this.mediaRecorder = new MediaRecorder(_this.stream);
});

@@ -238,2 +235,3 @@ }, function (err) {

window.stream = _this.stream = _this$getStream2;
_this.mediaRecorder = new MediaRecorder(_this.stream);
});

@@ -265,3 +263,3 @@ }, function (err) {

var audioBlob = new Blob(_this.audioChunks, {
type: "audio/ogg; codecs=opus"
type: 'audio/ogg; codecs=opus'
});

@@ -273,2 +271,3 @@ _this.setState({

var audioUrl = URL.createObjectURL(_this.state.audioBlob);
_this.mediaRecorder.stop();
onStop && onStop({

@@ -275,0 +274,0 @@ blob: _this.state.audioBlob,

@@ -77,7 +77,3 @@ import React from 'react';

navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
return Promise.resolve(navigator.mediaDevices.getUserMedia({
audio: true
})).then(function (stream) {
_this.mediaRecorder = new MediaRecorder(stream);
});
return Promise.resolve();
} catch (e) {

@@ -205,2 +201,3 @@ return Promise.reject(e);

window.stream = _this.stream = _this$getStream;
_this.mediaRecorder = new MediaRecorder(_this.stream);
});

@@ -236,2 +233,3 @@ }, function (err) {

window.stream = _this.stream = _this$getStream2;
_this.mediaRecorder = new MediaRecorder(_this.stream);
});

@@ -263,3 +261,3 @@ }, function (err) {

var audioBlob = new Blob(_this.audioChunks, {
type: "audio/ogg; codecs=opus"
type: 'audio/ogg; codecs=opus'
});

@@ -271,2 +269,3 @@ _this.setState({

var audioUrl = URL.createObjectURL(_this.state.audioBlob);
_this.mediaRecorder.stop();
onStop && onStop({

@@ -273,0 +272,0 @@ blob: _this.state.audioBlob,

{
"name": "react-tune-trace",
"version": "1.0.0",
"version": "1.0.1",
"description": "Audio / Voice Recorder for React",

@@ -5,0 +5,0 @@ "author": "noobieprogrammer",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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