extendable-media-recorder
Advanced tools
Comparing version 7.1.6 to 7.1.7
@@ -38,6 +38,8 @@ import { encode, instantiate } from 'media-encoder-host'; | ||
}; | ||
nativeMediaRecorder.addEventListener('error', () => { | ||
nativeMediaRecorder.addEventListener('error', (event) => { | ||
stop(); | ||
// Bug #3 & #4: Chrome throws an error event without any error. | ||
eventTarget.dispatchEvent(new ErrorEvent('error', { error: createInvalidModificationError() })); | ||
eventTarget.dispatchEvent(new ErrorEvent('error', { | ||
error: event.error === undefined ? createInvalidModificationError() : event.error | ||
})); | ||
}); | ||
@@ -44,0 +46,0 @@ nativeMediaRecorder.addEventListener('pause', () => eventTarget.dispatchEvent(new Event('pause'))); |
@@ -934,7 +934,7 @@ (function (global, factory) { | ||
}; | ||
nativeMediaRecorder.addEventListener('error', function () { | ||
nativeMediaRecorder.addEventListener('error', function (event) { | ||
stop(); | ||
// Bug #3 & #4: Chrome throws an error event without any error. | ||
eventTarget.dispatchEvent(new ErrorEvent('error', { | ||
error: createInvalidModificationError() | ||
error: event.error === undefined ? createInvalidModificationError() : event.error | ||
})); | ||
@@ -941,0 +941,0 @@ }); |
@@ -39,3 +39,3 @@ { | ||
"eslint": "^8.35.0", | ||
"eslint-config-holy-grail": "^55.0.14", | ||
"eslint-config-holy-grail": "^55.0.15", | ||
"extendable-media-recorder-wav-encoder": "^7.0.84", | ||
@@ -59,4 +59,4 @@ "grunt": "^1.6.1", | ||
"pretty-quick": "^3.1.3", | ||
"rimraf": "^4.3.0", | ||
"rollup": "^3.18.0", | ||
"rimraf": "^4.4.0", | ||
"rollup": "^3.19.1", | ||
"sinon": "^15.0.1", | ||
@@ -69,3 +69,3 @@ "sinon-chai": "^3.7.0", | ||
"typescript": "^4.9.5", | ||
"webpack": "^5.75.0" | ||
"webpack": "^5.76.0" | ||
}, | ||
@@ -97,3 +97,3 @@ "files": [ | ||
"types": "build/es2019/module.d.ts", | ||
"version": "7.1.6" | ||
"version": "7.1.7" | ||
} |
@@ -55,6 +55,10 @@ import { encode, instantiate } from 'media-encoder-host'; | ||
nativeMediaRecorder.addEventListener('error', () => { | ||
nativeMediaRecorder.addEventListener('error', (event) => { | ||
stop(); | ||
// Bug #3 & #4: Chrome throws an error event without any error. | ||
eventTarget.dispatchEvent(new ErrorEvent('error', { error: createInvalidModificationError() })); | ||
eventTarget.dispatchEvent( | ||
new ErrorEvent('error', { | ||
error: (<ErrorEvent>event).error === undefined ? createInvalidModificationError() : (<ErrorEvent>event).error | ||
}) | ||
); | ||
}); | ||
@@ -61,0 +65,0 @@ nativeMediaRecorder.addEventListener('pause', () => eventTarget.dispatchEvent(new Event('pause'))); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
274818
3812