recorder-client 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +19 -14
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -14,20 +14,25 @@ npm i recorder-client
14
14
 
15
15
  ### API
16
16
 
17
- | property | type | description | default |
18
- | :-------------: | :-----------------------: | :-------------------------------------------------------------------------: | :-------: |
19
- | sampleRate | number | audio sampling rate | undefined |
20
- | chunkSize | number | number of samples in the audio data block (length of the audio buffer zone) | undefined |
21
- | ignoreMute | boolean | ignore mute | undefined |
22
- | ondataavailable | (pcm: Int16Array) => void | real-time audio data | undefined |
23
- | onpause | () => void | pause event | undefined |
24
- | onresume | () => void | resume event | undefined |
25
- | onstart | () => void | start event | undefined |
26
- | onstop | (wav: Blob) => void | stop event | undefined |
27
- | pause | () => void | audio pause | undefined |
28
- | resume | () => void | audio resume | undefined |
29
- | start | () => void | audio start | undefined |
30
- | stop | () => void | audio stop | undefined |
17
+ | property | type | description | default |
18
+ | :--------: | :-----: | :-------------------------------------------------------------------------: | :-------: |
19
+ | sampleRate | number | audio sampling rate | undefined |
20
+ | chunkSize | number | number of samples in the audio data block (length of the audio buffer zone) | undefined |
21
+ | ignoreMute | boolean | ignore mute | undefined |
22
+
23
+ ### Event
24
+
25
+ | property | type | description |
26
+ | :-------------: | :-----------------------: | :------------------: |
27
+ | ondataavailable | (pcm: Int16Array) => void | real-time audio data |
28
+ | onpause | () => void | pause event |
29
+ | onresume | () => void | resume event |
30
+ | onstart | () => void | start event |
31
+ | onstop | (wav: Blob) => void | stop event |
32
+ | pause | () => void | audio pause |
33
+ | resume | () => void | audio resume |
34
+ | start | () => void | audio start |
35
+ | stop | () => void | audio stop |
31
36
 
32
37
  ### Helper
33
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "recorder-client",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "audio recording client",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
@@ -31,11 +31,11 @@
31
31
  "@rollup/plugin-typescript": "^12.1.4",
32
32
  "@types/node": "^24.3.0",
33
33
  "happy-dom": "^18.0.1",
34
- "rollup": "^4.47.1",
34
+ "rollup": "^4.48.0",
35
35
  "rollup-plugin-dts": "^6.2.3",
36
36
  "tslib": "^2.8.1",
37
- "typescript": "^5.8.3",
38
- "typescript-eslint-standard": "^9.59.0",
37
+ "typescript": "^5.9.2",
38
+ "typescript-eslint-standard": "^9.60.0",
39
39
  "vitest": "^3.2.4"
40
40
  },
41
41
  "author": "mivui",