Skip to content

Commit 7e03c25

Browse files
committed
publish 2.1.1
1 parent 52e9674 commit 7e03c25

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
node: [14, 16]
17+
node: [14, 16, 18, 20]
1818
steps:
1919
- name: Checkout ${{ matrix.node }}
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v3
2121

2222
- name: Setup node ${{ matrix.node }}
23-
uses: actions/setup-node@v1
23+
uses: actions/setup-node@v3
2424
with:
2525
node-version: ${{ matrix.node }}
2626

2727
- name: Cache dependencies ${{ matrix.node }}
28-
uses: actions/cache@v1
28+
uses: actions/cache@v3
2929
with:
3030
path: ~/.npm
3131
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**2.2.1**
1+
**2.1.1**
22
- added [TypeScript types](./src/index.d.ts)
33

44
**2.1.0**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "easy-speech",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "Cross browser Speech Synthesis",
55
"type": "module",
66
"main": "./dist/EasySpeech.cjs.js",

src/demo.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ async function populateVoices (initialized) {
151151
inputs.language.appendChild(option)
152152
})
153153

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

@@ -177,7 +176,7 @@ function updateVoiceSelect (voices, value, defaultURI) {
177176
filteredVoices = value === 'all'
178177
? voices
179178
: voices.filter(voice => (
180-
voice.lang.indexOf(`${value}-`) > -1 ||
179+
voice.lang.indexOf(`${value}-`) > -1 ||
181180
voice.lang.indexOf(`${value}_`) > -1))
182181
.sort((a, b) => a.name.localeCompare(b.name))
183182

@@ -205,7 +204,7 @@ function updateVoiceSelect (voices, value, defaultURI) {
205204
}
206205
}
207206

208-
function selectVoice(index) {
207+
function selectVoice (index) {
209208
if (index < 0 || index > filteredVoices.length - 1) {
210209
values.voice = undefined
211210
return

0 commit comments

Comments
 (0)