Skip to content

Commit 3bab68b

Browse files
committed
update js dist
1 parent 843db18 commit 3bab68b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist-js/index.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function registerFunction(pythonFunctionCall, numberOfArgs, jsFunctionName
4545
*/
4646
async function registerJs(pythonFunctionCall, jsFunctionName) {
4747
if (jsFunctionName === undefined) {
48-
jsFunctionName = pythonFunctionCall.replace(".", "_");
48+
jsFunctionName = pythonFunctionCall.replaceAll(".", "_");
4949
}
5050
call[jsFunctionName] = function (...args) { return callFunction(pythonFunctionCall, args); };
5151
}

dist-js/index.iife.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ var __TAURI_PYTHON_PLUGIN_API__ = (function (exports) {
8686
*/
8787
async function registerJs(pythonFunctionCall, jsFunctionName) {
8888
if (jsFunctionName === undefined) {
89-
jsFunctionName = pythonFunctionCall.replace(".", "_");
89+
jsFunctionName = pythonFunctionCall.replaceAll(".", "_");
9090
}
9191
call[jsFunctionName] = function (...args) { return callFunction(pythonFunctionCall, args); };
9292
}

dist-js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async function registerFunction(pythonFunctionCall, numberOfArgs, jsFunctionName
4343
*/
4444
async function registerJs(pythonFunctionCall, jsFunctionName) {
4545
if (jsFunctionName === undefined) {
46-
jsFunctionName = pythonFunctionCall.replace(".", "_");
46+
jsFunctionName = pythonFunctionCall.replaceAll(".", "_");
4747
}
4848
call[jsFunctionName] = function (...args) { return callFunction(pythonFunctionCall, args); };
4949
}

0 commit comments

Comments
 (0)