react-native-wakeword 1.1.117 → 1.1.118

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-wakeword",
3
- "version": "1.1.117",
3
+ "version": "1.1.118",
4
4
  "description": "Voice/Wake-word detection library for React Native",
5
5
  "main": "wakewords/index.js",
6
6
  "types": "wakewords/index.d.ts",
@@ -33,11 +33,11 @@ var instanceConfigs:instanceConfig[] = [
33
33
  ];
34
34
 
35
35
  // Helper function to format the ONNX file name
36
- const formatWakeWord = (fileName) => {
36
+ const formatWakeWord = (fileName: string) => {
37
37
  return fileName
38
38
  .replace(/_/g, ' ') // Use global flag to replace all underscores
39
39
  .replace('.onnx', '')
40
- .replace(/\b\w/g, (char) => char.toUpperCase()); // Capitalize each word
40
+ .replace(/\b\w/g, (char: string) => char.toUpperCase()); // Capitalize each word};
41
41
  };
42
42
 
43
43
  // Function to add a new instance dynamically