Switch to BiomeJS (#306)

This commit is contained in:
Gregory Schier authored and GitHub committed 2025-11-23 08:38:13 -08:00
1 parent 2bac610efe
commit ec3e2e16a9
332 files changed
+3007 -4097

No files matched your search

+4 -2
View File
@@ -1,5 +1,5 @@
import type { Context, GetHttpAuthenticationConfigRequest, PluginDefinition } from '@yaakapp/api';
import crypto from 'node:crypto';
import type { Context, GetHttpAuthenticationConfigRequest, PluginDefinition } from '@yaakapp/api';
import OAuth from 'oauth-1.0a';
const signatures = {
@@ -139,7 +139,9 @@ export const plugin: PluginDefinition = {
for (const key of requestUrl.searchParams.keys()) {
if (key.startsWith('oauth_')) continue;
const all = requestUrl.searchParams.getAll(key);
requestData.data[key] = all.length > 1 ? all : all[0]!;
const first = all[0];
if (first == null) continue;
requestData.data[key] = all.length > 1 ? all : first;
}
// (2) Manual oauth_* overrides