Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

getusermedia

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getusermedia - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

.jshintignore

2

build.js

@@ -5,3 +5,3 @@ var bundle = require('browserify')(),

bundle.add('./getusermedia');
bundle.add('./index-browser');
bundle.bundle({standalone: 'getUserMedia'}).pipe(fs.createWriteStream('getusermedia.bundle.js'));

@@ -1,8 +0,7 @@

(function(e){if("function"==typeof bootstrap)bootstrap("getusermedia",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeGetUserMedia=e}else"undefined"!=typeof window?window.getUserMedia=e():global.getUserMedia=e()})(function(){var define,ses,bootstrap,module,exports;
return (function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({1:[function(require,module,exports){
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.getUserMedia=e():"undefined"!=typeof global?global.getUserMedia=e():"undefined"!=typeof self&&(self.getUserMedia=e())}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
// getUserMedia helper by @HenrikJoreteg
var func = (navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia);
var func = (window.navigator.getUserMedia ||
window.navigator.webkitGetUserMedia ||
window.navigator.mozGetUserMedia ||
window.navigator.msGetUserMedia);

@@ -32,3 +31,3 @@

func.call(navigator, constraints, function (stream) {
func.call(window.navigator, constraints, function (stream) {
cb(null, stream);

@@ -67,4 +66,5 @@ }, function (err) {

},{}]},{},[1])(1)
},{}]},{},[1])
(1)
});
;
{
"name": "getusermedia",
"version": "0.2.1",
"description": "cross-browser getUserMedia shim with node.js style error-first API.",
"main": "getusermedia.js",
"repository": {
"type": "git",
"url": "https://github.com/HenrikJoreteg/getUserMedia"
"version": "0.2.2",
"author": "Henrik Joreteg <henrik@andyet.net>",
"browser": "index-browser.js",
"devDependencies": {
"browserify": "2.x",
"precommit-hook": "0.3.x"
},

@@ -15,7 +16,8 @@ "keywords": [

],
"author": "Henrik Joreteg <henrik@andyet.net>",
"license": "MIT",
"devDependencies": {
"browserify": "2.x"
"main": "index-node.js",
"repository": {
"type": "git",
"url": "https://github.com/HenrikJoreteg/getUserMedia"
}
}
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