Skip to content

Commit

Permalink
web
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Oct 30, 2023
1 parent 0af14bc commit 389106c
Show file tree
Hide file tree
Showing 12 changed files with 890 additions and 347 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/web-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -35,6 +35,10 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Build Web SDK
run: yarn && yarn copywasm && yarn copyppn && yarn build
working-directory: binding/web

- name: Pre-build dependencies
run: npm install yarn

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions binding/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Koala Noise Suppression engine for web browsers (via WebAssembly)",
"author": "Picovoice Inc",
"license": "Apache-2.0",
"version": "1.0.3",
"version": "2.0.0",
"keywords": [
"koala",
"web",
Expand Down Expand Up @@ -67,6 +67,6 @@
"wasm-feature-detect": "^1.5.0"
},
"engines": {
"node": ">=14"
"node": ">=16"
}
}
2 changes: 2 additions & 0 deletions binding/web/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Koala } from './koala';
import { KoalaWorker } from './koala_worker';
import * as KoalaErrors from './koala_errors';

import {
KoalaModel,
Expand All @@ -25,6 +26,7 @@ KoalaWorker.setWasmSimd(koalaWasmSimd);

export {
Koala,
KoalaErrors,
KoalaModel,
KoalaOptions,
KoalaWorker,
Expand Down
Loading

0 comments on commit 389106c

Please sign in to comment.