Skip to content

Commit

Permalink
style: run eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Feb 9, 2025
1 parent d8c6117 commit 1232786
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/generator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function addConfig(module: string, base: string) {

const url = new URL(base)
const hostname = url.hostname
const regex = /(?:https?:\/\/)?(?:www\.)?([^\/]+)\/?.*/
const regex = /(?:https?:\/\/)?(?:www\.)?([^/]+).*/
const mainDomain = hostname.match(regex)?.[1] || hostname
// 检查一下 hostnames 里面有没有这个域名,没有的话就加进去
if (!hostnames.includes(`${mainDomain}`))
Expand Down
1 change: 0 additions & 1 deletion packages/modules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { unblockRequest } from './raycast/universal'
import { raycastTrialStatus } from './raycast/customs/custom'
import { raycastTranslate } from './raycast/customs/translate'
import { lemonSqueezyDeactivate } from './lemon-squeezy/deactivate'
import { locafeNotchNook } from './locafe/notchnook/verify'
import { kerLigActivate } from './kerlig/activate'
import { screenStudioVerify } from './screen-studio/verify'
import { screenStudioActivate } from './screen-studio/activate'
Expand Down
6 changes: 4 additions & 2 deletions packages/modules/raycast/customs/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ export async function raycastTranslate() {
if (
[0, 3].includes((requestParams.id + 5) % 29)
|| (requestParams.id + 3) % 13 === 0
)
) {
requestBody = requestBody.replace('"method":"', '"method" : "')
else
}
else {
requestBody = requestBody.replace('"method":"', '"method": "')
}

const translateResponse = await httpClient.post({
url: endpoint,
Expand Down
2 changes: 1 addition & 1 deletion packages/modules/screen-studio/v3.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ResponseDone, destr } from '@as/shared'
import { generateLemonSqueezyShare, getLemonSqueezyLicenseKeyFromRequest, lemonSqueezyInstance } from '../lemon-squeezy/share'
import { getLemonSqueezyLicenseKeyFromRequest } from '../lemon-squeezy/share'

export function screenStudioAuthorizeLicenseKeyInV3() {
const body = destr($request.body) as {
Expand Down

0 comments on commit 1232786

Please sign in to comment.