react-get-user-media
Advanced tools
Comparing version 0.1.4 to 0.1.5
{ | ||
"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 } |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
22624
3
2
16
5
277
1