File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed
Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " tauri " : patch
3+ ---
4+
5+ Allow ` window.__TAURI__.invoke ` to be moved to another variable.
Original file line number Diff line number Diff line change 1010 - ' .github/workflows/test-core.yml'
1111 - ' core/**'
1212 - ' examples/**'
13- - ' cli /**'
13+ - ' tooling /**'
1414
1515env :
1616 RUST_BACKTRACE : 1
Original file line number Diff line number Diff line change @@ -93,14 +93,12 @@ if (!String.prototype.startsWith) {
9393 } ;
9494
9595 window . __TAURI__ . invoke = function invoke ( cmd , args = { } ) {
96- var _this = this ;
97-
9896 return new Promise ( function ( resolve , reject ) {
99- var callback = _this . transformCallback ( function ( r ) {
97+ var callback = window . __TAURI__ . transformCallback ( function ( r ) {
10098 resolve ( r ) ;
10199 delete window [ error ] ;
102100 } , true ) ;
103- var error = _this . transformCallback ( function ( e ) {
101+ var error = window . __TAURI__ . transformCallback ( function ( e ) {
104102 reject ( e ) ;
105103 delete window [ callback ] ;
106104 } , true ) ;
Original file line number Diff line number Diff line change @@ -42,5 +42,6 @@ module.exports = {
4242 transform : {
4343 '\\.toml$' : 'jest-transform-toml' ,
4444 '\\.(js|ts)$' : 'babel-jest'
45- }
45+ } ,
46+ transformIgnorePatterns : [ 'node_modules/(?!(is-png|imagemin|p-pipe)/)' ]
4647}
You can’t perform that action at this time.
0 commit comments