Skip to content

Commit

Permalink
publish 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jankapunkt committed Aug 31, 2023
1 parent 52e9674 commit 7e03c25
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16]
node: [14, 16, 18, 20]
steps:
- name: Checkout ${{ matrix.node }}
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- name: Cache dependencies ${{ matrix.node }}
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**2.2.1**
**2.1.1**
- added [TypeScript types](./src/index.d.ts)

**2.1.0**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "easy-speech",
"version": "2.1.0",
"version": "2.1.1",
"description": "Cross browser Speech Synthesis",
"type": "module",
"main": "./dist/EasySpeech.cjs.js",
Expand Down
5 changes: 2 additions & 3 deletions src/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ async function populateVoices (initialized) {
inputs.language.appendChild(option)
})


debug('attach events, cleanup')
inputs.voice = document.querySelector('#voice-select')

Expand All @@ -177,7 +176,7 @@ function updateVoiceSelect (voices, value, defaultURI) {
filteredVoices = value === 'all'
? voices
: voices.filter(voice => (
voice.lang.indexOf(`${value}-`) > -1 ||
voice.lang.indexOf(`${value}-`) > -1 ||
voice.lang.indexOf(`${value}_`) > -1))
.sort((a, b) => a.name.localeCompare(b.name))

Expand Down Expand Up @@ -205,7 +204,7 @@ function updateVoiceSelect (voices, value, defaultURI) {
}
}

function selectVoice(index) {
function selectVoice (index) {
if (index < 0 || index > filteredVoices.length - 1) {
values.voice = undefined
return
Expand Down

0 comments on commit 7e03c25

Please sign in to comment.