Pārlūkot izejas kodu

chore(deps) Update dependency eslint-config-standard-with-typescript to v26 (#5981)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
renovate[bot] 2 gadi atpakaļ
vecāks
revīzija
7ae67dde69

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
core/tauri/scripts/bundle.global.js


+ 1 - 1
tooling/api/package.json

@@ -45,7 +45,7 @@
     "@typescript-eslint/parser": "5.48.0",
     "eslint": "8.31.0",
     "eslint-config-prettier": "8.6.0",
-    "eslint-config-standard-with-typescript": "24.0.0",
+    "eslint-config-standard-with-typescript": "26.0.0",
     "eslint-plugin-import": "2.26.0",
     "eslint-plugin-n": "15.6.0",
     "eslint-plugin-node": "11.1.0",

+ 7 - 5
tooling/api/src/updater.ts

@@ -98,13 +98,14 @@ async function installUpdate(): Promise<void> {
     function onStatusChange(statusResult: UpdateStatusResult): void {
       if (statusResult.error) {
         cleanListener()
-        return reject(statusResult.error)
+        reject(statusResult.error)
+        return
       }
 
       // install complete
       if (statusResult.status === 'DONE') {
         cleanListener()
-        return resolve()
+        resolve()
       }
     }
 
@@ -155,7 +156,7 @@ async function checkUpdate(): Promise<UpdateResult> {
   return new Promise((resolve, reject) => {
     function onUpdateAvailable(manifest: UpdateManifest): void {
       cleanListener()
-      return resolve({
+      resolve({
         manifest,
         shouldUpdate: true
       })
@@ -164,12 +165,13 @@ async function checkUpdate(): Promise<UpdateResult> {
     function onStatusChange(statusResult: UpdateStatusResult): void {
       if (statusResult.error) {
         cleanListener()
-        return reject(statusResult.error)
+        reject(statusResult.error)
+        return
       }
 
       if (statusResult.status === 'UPTODATE') {
         cleanListener()
-        return resolve({
+        resolve({
           shouldUpdate: false
         })
       }

+ 1 - 1
tooling/api/src/window.ts

@@ -1720,7 +1720,7 @@ class WindowManager extends WebviewWindowHandle {
    * @since 1.0.2
    */
   async onCloseRequested(
-    handler: (event: CloseRequestedEvent) => void
+    handler: (event: CloseRequestedEvent) => void | Promise<void>
   ): Promise<UnlistenFn> {
     return this.listen<null>(TauriEvent.WINDOW_CLOSE_REQUESTED, (event) => {
       const evt = new CloseRequestedEvent(event)

+ 4 - 4
tooling/api/yarn.lock

@@ -641,10 +641,10 @@ eslint-config-prettier@8.6.0:
   resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.6.0.tgz#dec1d29ab728f4fa63061774e1672ac4e363d207"
   integrity sha512-bAF0eLpLVqP5oEVUFKpMA+NnRFICwn9X8B5jrR9FcqnYBuPbqWEjTEspPWMj5ye6czoSLDweCzSo3Ko7gGrZaA==
 
-eslint-config-standard-with-typescript@24.0.0:
-  version "24.0.0"
-  resolved "https://registry.yarnpkg.com/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-24.0.0.tgz#30e83b580380fd71477bf80bcb5405e8a46f555f"
-  integrity sha512-vEnGXZ5aiR1enl9652iIP4nTpY3GPcNEwuhrsPbKO3Ce3D6T3yCqZdkUPk8nJetfdL/yO0DLsHg2d/l9iECIdg==
+eslint-config-standard-with-typescript@26.0.0:
+  version "26.0.0"
+  resolved "https://registry.yarnpkg.com/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-26.0.0.tgz#c72c5858e97b20ddb29892fbdfb63468ca1e5e2b"
+  integrity sha512-TluIWunQo76qp4MHyYIaTT+sN2q2v/jTeE3Dj4rXsSbx27GOUEOujhJaAL3v9dHVQelAK13gZ5Jy9IWnWCyFrg==
   dependencies:
     "@typescript-eslint/parser" "^5.0.0"
     eslint-config-standard "17.0.0"

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels