getusermedia
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10732
10
134
2
1