From 6b347052a44863ad35c659bcae5bc16f6ec295aa Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Mon, 21 Nov 2022 21:50:54 +0100 Subject: [PATCH] Apply formatting --- public/apple-app-site-association.json | 75 ++++++++++++++++++++++++-- src/index.ts | 2 +- 2 files changed, 73 insertions(+), 4 deletions(-) diff --git a/public/apple-app-site-association.json b/public/apple-app-site-association.json index 60da8ea..3f4d9b7 100644 --- a/public/apple-app-site-association.json +++ b/public/apple-app-site-association.json @@ -4,15 +4,84 @@ "details": [ { "appID": "9Z6432XD7L.app.organicmaps", - "paths": ["NOT /", "NOT /app", "NOT /get", "NOT /im_get", "NOT /install", "NOT /test*", "NOT /f", "NOT /fd", "NOT /fdroid", "NOT /g", "NOT /gp", "NOT /google", "NOT /googleplay", "NOT /h", "NOT /hw", "NOT /huawei", "NOT /i", "NOT /ios", "NOT /iphone", "NOT /ipad", "NOT /ipod", "*"] + "paths": [ + "NOT /", + "NOT /app", + "NOT /get", + "NOT /im_get", + "NOT /install", + "NOT /test*", + "NOT /f", + "NOT /fd", + "NOT /fdroid", + "NOT /g", + "NOT /gp", + "NOT /google", + "NOT /googleplay", + "NOT /h", + "NOT /hw", + "NOT /huawei", + "NOT /i", + "NOT /ios", + "NOT /iphone", + "NOT /ipad", + "NOT /ipod", + "*" + ] }, { "appID": "9Z6432XD7L.app.organicmaps.debug", - "paths": ["NOT /", "NOT /app", "NOT /get", "NOT /im_get", "NOT /install", "NOT /test*", "NOT /f", "NOT /fd", "NOT /fdroid", "NOT /g", "NOT /gp", "NOT /google", "NOT /googleplay", "NOT /h", "NOT /hw", "NOT /huawei", "NOT /i", "NOT /ios", "NOT /iphone", "NOT /ipad", "NOT /ipod", "*"] + "paths": [ + "NOT /", + "NOT /app", + "NOT /get", + "NOT /im_get", + "NOT /install", + "NOT /test*", + "NOT /f", + "NOT /fd", + "NOT /fdroid", + "NOT /g", + "NOT /gp", + "NOT /google", + "NOT /googleplay", + "NOT /h", + "NOT /hw", + "NOT /huawei", + "NOT /i", + "NOT /ios", + "NOT /iphone", + "NOT /ipad", + "NOT /ipod", + "*" + ] }, { "appID": "9Z6432XD7L.app.organicmaps.beta", - "paths": ["NOT /", "NOT /app", "NOT /get", "NOT /im_get", "NOT /install", "NOT /test*", "NOT /f", "NOT /fd", "NOT /fdroid", "NOT /g", "NOT /gp", "NOT /google", "NOT /googleplay", "NOT /h", "NOT /hw", "NOT /huawei", "NOT /i", "NOT /ios", "NOT /iphone", "NOT /ipad", "NOT /ipod", "*"] + "paths": [ + "NOT /", + "NOT /app", + "NOT /get", + "NOT /im_get", + "NOT /install", + "NOT /test*", + "NOT /f", + "NOT /fd", + "NOT /fdroid", + "NOT /g", + "NOT /gp", + "NOT /google", + "NOT /googleplay", + "NOT /h", + "NOT /hw", + "NOT /huawei", + "NOT /i", + "NOT /ios", + "NOT /iphone", + "NOT /ipad", + "NOT /ipod", + "*" + ] } ] } diff --git a/src/index.ts b/src/index.ts index 0c46a25..795f3b5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -78,7 +78,7 @@ async function handleFetchEvent(event: FetchEvent) { // Try to return a static resource first. try { return await getAssetFromKV(event, getAssetOptions); - } catch (_) { } + } catch (_) {} // No static resource were found, try to handle a specific dynamic request. getAssetOptions.mapRequestToAsset = (request: Request) => { const url = new URL(request.url);