audio-recorder-polyfill
Advanced tools
Comparing version 0.3.2 to 0.3.3
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 0.3.3 | ||
* Fix `createWorker` error. | ||
## 0.3.2 | ||
@@ -5,0 +8,0 @@ * Fix WAV encoder regression. |
@@ -8,3 +8,3 @@ import waveEncoder from './wave-encoder/index.js' | ||
.toString() | ||
.replace(/^function\s*\(\)\s*{/, '') | ||
.replace(/^(\(\)\s+=>|function\s*\(\))\s*{/, '') | ||
.replace(/}$/, '') | ||
@@ -11,0 +11,0 @@ let blob = new Blob([js]) |
{ | ||
"name": "audio-recorder-polyfill", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "MediaRecorder polyfill to record audio in Edge and Safari", | ||
@@ -26,3 +26,17 @@ "keywords": [ | ||
"main": "index.cjs", | ||
"module": "index.js" | ||
"module": "index.js", | ||
"exports": { | ||
".": { | ||
"require": "./index.cjs", | ||
"import": "./index.js" | ||
}, | ||
"./mpeg-encoder": { | ||
"require": "./mpeg-encoder/index.cjs", | ||
"import": "./mpeg-encoder/index.js" | ||
}, | ||
"./wave-encoder": { | ||
"require": "./wave-encoder/index.cjs", | ||
"import": "./wave-encoder/index.js" | ||
} | ||
} | ||
} |
@@ -165,3 +165,3 @@ # Audio Recorder Polyfill | ||
As default ,this polyfill saves records to `.wav` files. Compression | ||
As default, this polyfill saves records to `.wav` files. Compression | ||
is not very good, but encoding is fast and simple. | ||
@@ -176,3 +176,3 @@ | ||
import AudioRecorder from 'audio-recorder-polyfill' | ||
import mpegEncoder from './ogg-opus-encoder' | ||
import mpegEncoder from 'audio-recorder-polyfill/mpeg-encoder' | ||
@@ -179,0 +179,0 @@ AudioRecorder.encoder = mpegEncoder |
Sorry, the diff of this file is not supported yet
28374