extendable-media-recorder
Advanced tools
Comparing version 9.1.6 to 9.1.7
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/regenerator'), require('media-encoder-host'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/typeof'), require('@babel/runtime/helpers/assertThisInitialized'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('@babel/runtime/helpers/slicedToArray'), require('@babel/runtime/helpers/toConsumableArray'), require('recorder-audio-worklet'), require('standardized-audio-context'), require('multi-buffer-data-view'), require('subscribable-things')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/regenerator', 'media-encoder-host', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/typeof', '@babel/runtime/helpers/assertThisInitialized', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', '@babel/runtime/helpers/slicedToArray', '@babel/runtime/helpers/toConsumableArray', 'recorder-audio-worklet', 'standardized-audio-context', 'multi-buffer-data-view', 'subscribable-things'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.extendableMediaRecorder = {}, global._asyncToGenerator, global._regeneratorRuntime, global.mediaEncoderHost, global._classCallCheck, global._createClass, global._typeof, global._assertThisInitialized, global._inherits, global._possibleConstructorReturn, global._getPrototypeOf, global._slicedToArray, global._toConsumableArray, global.recorderAudioWorklet, global.standardizedAudioContext, global.multiBufferDataView, global.subscribableThings)); | ||
})(this, (function (exports, _asyncToGenerator, _regeneratorRuntime, mediaEncoderHost, _classCallCheck, _createClass, _typeof, _assertThisInitialized, _inherits, _possibleConstructorReturn, _getPrototypeOf, _slicedToArray, _toConsumableArray, recorderAudioWorklet, standardizedAudioContext, multiBufferDataView, subscribableThings) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/regenerator'), require('media-encoder-host'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/typeof'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('@babel/runtime/helpers/assertThisInitialized'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/slicedToArray'), require('@babel/runtime/helpers/toConsumableArray'), require('recorder-audio-worklet'), require('standardized-audio-context'), require('multi-buffer-data-view'), require('subscribable-things')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/regenerator', 'media-encoder-host', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/typeof', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', '@babel/runtime/helpers/assertThisInitialized', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/slicedToArray', '@babel/runtime/helpers/toConsumableArray', 'recorder-audio-worklet', 'standardized-audio-context', 'multi-buffer-data-view', 'subscribable-things'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.extendableMediaRecorder = {}, global._asyncToGenerator, global._regeneratorRuntime, global.mediaEncoderHost, global._classCallCheck, global._createClass, global._typeof, global._possibleConstructorReturn, global._getPrototypeOf, global._assertThisInitialized, global._inherits, global._slicedToArray, global._toConsumableArray, global.recorderAudioWorklet, global.standardizedAudioContext, global.multiBufferDataView, global.subscribableThings)); | ||
})(this, (function (exports, _asyncToGenerator, _regeneratorRuntime, mediaEncoderHost, _classCallCheck, _createClass, _typeof, _possibleConstructorReturn, _getPrototypeOf, _assertThisInitialized, _inherits, _slicedToArray, _toConsumableArray, recorderAudioWorklet, standardizedAudioContext, multiBufferDataView, subscribableThings) { 'use strict'; | ||
@@ -204,8 +204,19 @@ var createBlobEventFactory = function createBlobEventFactory(nativeBlobEventConstructor) { | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | ||
function _callSuper(_this, derived, args) { | ||
function isNativeReflectConstruct() { | ||
if (typeof Reflect === "undefined" || !Reflect.construct) return false; | ||
if (Reflect.construct.sham) return false; | ||
if (typeof Proxy === "function") return true; | ||
try { | ||
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
} catch (e) { | ||
return false; | ||
} | ||
} | ||
derived = _getPrototypeOf(derived); | ||
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args)); | ||
} | ||
var createMediaRecorderConstructor = function createMediaRecorderConstructor(createNativeMediaRecorder, createNotSupportedError, createWebAudioMediaRecorder, createWebmPcmMediaRecorder, encoderRegexes, eventTargetConstructor, nativeMediaRecorderConstructor) { | ||
return /*#__PURE__*/function (_eventTargetConstruct) { | ||
_inherits(MediaRecorder, _eventTargetConstruct); | ||
var _super = _createSuper(MediaRecorder); | ||
function MediaRecorder(stream) { | ||
@@ -220,3 +231,3 @@ var _this; | ||
var internalMediaRecorder = createNativeMediaRecorder(nativeMediaRecorderConstructor, stream, options); | ||
_this = _super.call(this, internalMediaRecorder); | ||
_this = _callSuper(this, MediaRecorder, [internalMediaRecorder]); | ||
_this._internalMediaRecorder = internalMediaRecorder; | ||
@@ -226,3 +237,3 @@ } else if (mimeType !== undefined && encoderRegexes.some(function (regex) { | ||
})) { | ||
_this = _super.call(this); | ||
_this = _callSuper(this, MediaRecorder); | ||
// Bug #10: Safari does not yet implement the isTypeSupported() method. | ||
@@ -229,0 +240,0 @@ if (nativeMediaRecorderConstructor !== null && nativeMediaRecorderConstructor.isTypeSupported !== undefined && nativeMediaRecorderConstructor.isTypeSupported('audio/webm;codecs=pcm')) { |
@@ -18,8 +18,8 @@ { | ||
"dependencies": { | ||
"@babel/runtime": "^7.23.7", | ||
"media-encoder-host": "^8.0.104", | ||
"multi-buffer-data-view": "^5.0.13", | ||
"recorder-audio-worklet": "^6.0.17", | ||
"standardized-audio-context": "^25.3.61", | ||
"subscribable-things": "^2.1.28", | ||
"@babel/runtime": "^7.23.8", | ||
"media-encoder-host": "^8.0.105", | ||
"multi-buffer-data-view": "^5.0.14", | ||
"recorder-audio-worklet": "^6.0.18", | ||
"standardized-audio-context": "^25.3.63", | ||
"subscribable-things": "^2.1.29", | ||
"tslib": "^2.6.2" | ||
@@ -32,3 +32,3 @@ }, | ||
"@babel/plugin-transform-runtime": "^7.23.7", | ||
"@babel/preset-env": "^7.23.7", | ||
"@babel/preset-env": "^7.23.8", | ||
"@commitlint/cli": "^17.7.2", | ||
@@ -41,4 +41,4 @@ "@commitlint/config-angular": "^17.7.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-holy-grail": "^57.2.26", | ||
"extendable-media-recorder-wav-encoder": "^7.0.101", | ||
"eslint-config-holy-grail": "^57.2.27", | ||
"extendable-media-recorder-wav-encoder": "^7.0.102", | ||
"grunt": "^1.6.1", | ||
@@ -59,5 +59,5 @@ "grunt-cli": "^1.4.3", | ||
"mocha": "^10.2.0", | ||
"prettier": "^3.1.1", | ||
"prettier": "^3.2.4", | ||
"rimraf": "^5.0.5", | ||
"rollup": "^4.9.3", | ||
"rollup": "^4.9.5", | ||
"sinon": "^17.0.1", | ||
@@ -102,3 +102,3 @@ "sinon-chai": "^3.7.0", | ||
"types": "build/es2019/module.d.ts", | ||
"version": "9.1.6" | ||
"version": "9.1.7" | ||
} |
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
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
3859
278230