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

react-get-user-media

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-get-user-media - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

dist/react-get-user-media.js

51

package.json
{
"name": "react-get-user-media",
"version": "0.1.4",
"description": "",
"main": "lib/index.js",
"version": "0.1.5",
"description": "A high order component that exposes some functions related to navigator.mediaDevices",
"main": "src/index.js",
"module": "dist/react-get-user-media.js",
"scripts": {
"start": "NODE_PATH=./ parcel samples.html",
"build": "NODE_PATH=./ parcel build src",
"test": "NODE_PATH=./ jest --coverage"
"debug": "NODE_PATH=./ parcel samples.html --out-dir debug",
"test": "NODE_PATH=./ jest --coverage",
"build": "rollup -c",
"prepublishOnly": "NODE_ENV=production npm run clean && npm run lint && npm run build",
"clean": "rimraf dist",
"lint": "standard"
},
"keywords": [],
"author": "",
"keywords": [
"react",
"webrtc-adapter",
"getUserMedia"
],
"author": "Felipe Ramos <f3liperamos@hotmail.com>",
"license": "ISC",
"files": [
"dist"
],
"peerDependencies": {
"react": "^15.0.0-0 || ^16.0.0-0"
},
"dependencies": {

@@ -18,8 +32,5 @@ "audio-recorder-polyfill": "^0.1.2",

},
"peerDependencies": {
"react": ">=15.0.0",
"react-dom": ">=15.0.0"
},
"devDependencies": {
"babel-preset-react-app": "^3.1.1",
"babel-plugin-external-helpers": "^6.22.0",
"babel-preset-react": "^6.24.1",
"enzyme": "^3.3.0",

@@ -29,2 +40,11 @@ "enzyme-adapter-react-16": "^1.1.1",

"parcel-bundler": "^1.9.2",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"rimraf": "^2.6.2",
"rollup": "^0.61.1",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-uglify": "^4.0.0",
"standard": "^11.0.1"

@@ -35,3 +55,6 @@ },

"atob",
"Blob"
"Blob",
"test",
"expect",
"describe"
]

@@ -38,0 +61,0 @@ },

@@ -1,5 +0,5 @@

import 'webrtc-adapter'
import React from 'react'
import dataURLToBlob from './dataURLToBlob'
import consoleErrors from './consoleErrors'
require('webrtc-adapter')
const React = require('react')
const dataURLToBlob = require('./dataURLToBlob')
const consoleErrors = require('./consoleErrors')

@@ -15,3 +15,3 @@ const VIDEO_MIME_TYPE = 'video/webm;codecs=vp8'

export const withGetUserMedia = (HOCProps = {}) => Component => {
const withGetUserMedia = (HOCProps = {}) => Component => {
class GetUserMedia extends React.Component {

@@ -53,5 +53,4 @@ constructor (props) {

if (HOCProps.streamElementId) {
console.log(window);
console.log(window)
this.streamElementId = document.getElementById(HOCProps.streamElementId)

@@ -173,1 +172,5 @@ this.streamElementId.setAttribute('autoPlay', true)

}
withGetUserMedia.version = React.version
module.exports = { withGetUserMedia }
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