@squadbase/vite-server 0.1.3 → 0.1.4-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +265 -71
- package/dist/connectors/airtable-oauth.js +10 -0
- package/dist/connectors/airtable.js +10 -0
- package/dist/connectors/amplitude.js +10 -0
- package/dist/connectors/anthropic.js +10 -0
- package/dist/connectors/asana.js +10 -0
- package/dist/connectors/attio.js +487 -110
- package/dist/connectors/backlog-api-key.js +10 -0
- package/dist/connectors/customerio.js +10 -0
- package/dist/connectors/dbt.js +10 -0
- package/dist/connectors/gamma.js +10 -0
- package/dist/connectors/gemini.js +10 -0
- package/dist/connectors/gmail-oauth.js +10 -0
- package/dist/connectors/gmail.js +14 -4
- package/dist/connectors/google-ads.js +10 -0
- package/dist/connectors/google-analytics-oauth.js +10 -0
- package/dist/connectors/google-analytics.js +10 -0
- package/dist/connectors/google-calendar-oauth.js +10 -0
- package/dist/connectors/google-calendar.js +14 -6
- package/dist/connectors/google-docs.js +10 -0
- package/dist/connectors/google-drive.js +10 -0
- package/dist/connectors/google-sheets.js +10 -0
- package/dist/connectors/google-slides.js +10 -0
- package/dist/connectors/grafana.js +10 -0
- package/dist/connectors/hubspot-oauth.js +10 -0
- package/dist/connectors/hubspot.js +10 -0
- package/dist/connectors/intercom-oauth.js +10 -0
- package/dist/connectors/intercom.js +10 -0
- package/dist/connectors/jira-api-key.js +10 -0
- package/dist/connectors/kintone-api-token.js +10 -0
- package/dist/connectors/kintone.js +10 -0
- package/dist/connectors/linkedin-ads.js +10 -0
- package/dist/connectors/mailchimp-oauth.js +10 -0
- package/dist/connectors/mailchimp.js +10 -0
- package/dist/connectors/mixpanel.js +10 -0
- package/dist/connectors/notion-oauth.js +10 -0
- package/dist/connectors/notion.js +10 -0
- package/dist/connectors/openai.js +10 -0
- package/dist/connectors/sentry.js +10 -0
- package/dist/connectors/shopify-oauth.js +10 -0
- package/dist/connectors/shopify.js +10 -0
- package/dist/connectors/stripe-api-key.js +10 -0
- package/dist/connectors/stripe-oauth.js +10 -0
- package/dist/connectors/wix-store.js +10 -0
- package/dist/connectors/zendesk-oauth.js +10 -0
- package/dist/connectors/zendesk.js +10 -0
- package/dist/index.js +265 -71
- package/dist/main.js +265 -71
- package/dist/vite-plugin.js +265 -71
- package/package.json +1 -1
|
@@ -260,6 +260,14 @@ function resolveEnvVarOptional(entry, key) {
|
|
|
260
260
|
import { getContext } from "hono/context-storage";
|
|
261
261
|
import { getCookie } from "hono/cookie";
|
|
262
262
|
var APP_SESSION_COOKIE_NAME = "__Host-squadbase-session";
|
|
263
|
+
function normalizeHeaders(input) {
|
|
264
|
+
const out = {};
|
|
265
|
+
if (!input) return out;
|
|
266
|
+
new Headers(input).forEach((value, key) => {
|
|
267
|
+
out[key] = value;
|
|
268
|
+
});
|
|
269
|
+
return out;
|
|
270
|
+
}
|
|
263
271
|
function createSandboxProxyFetch(connectionId) {
|
|
264
272
|
return async (input, init) => {
|
|
265
273
|
const token = process.env.INTERNAL_SQUADBASE_OAUTH_MACHINE_CREDENTIAL;
|
|
@@ -283,6 +291,7 @@ function createSandboxProxyFetch(connectionId) {
|
|
|
283
291
|
body: JSON.stringify({
|
|
284
292
|
url: originalUrl,
|
|
285
293
|
method: originalMethod,
|
|
294
|
+
headers: normalizeHeaders(init?.headers),
|
|
286
295
|
body: originalBody
|
|
287
296
|
})
|
|
288
297
|
});
|
|
@@ -317,6 +326,7 @@ function createDeployedAppProxyFetch(connectionId) {
|
|
|
317
326
|
body: JSON.stringify({
|
|
318
327
|
url: originalUrl,
|
|
319
328
|
method: originalMethod,
|
|
329
|
+
headers: normalizeHeaders(init?.headers),
|
|
320
330
|
body: originalBody
|
|
321
331
|
})
|
|
322
332
|
});
|
package/dist/connectors/asana.js
CHANGED
|
@@ -668,6 +668,14 @@ function resolveEnvVarOptional(entry, key) {
|
|
|
668
668
|
import { getContext } from "hono/context-storage";
|
|
669
669
|
import { getCookie } from "hono/cookie";
|
|
670
670
|
var APP_SESSION_COOKIE_NAME = "__Host-squadbase-session";
|
|
671
|
+
function normalizeHeaders(input) {
|
|
672
|
+
const out = {};
|
|
673
|
+
if (!input) return out;
|
|
674
|
+
new Headers(input).forEach((value, key) => {
|
|
675
|
+
out[key] = value;
|
|
676
|
+
});
|
|
677
|
+
return out;
|
|
678
|
+
}
|
|
671
679
|
function createSandboxProxyFetch(connectionId) {
|
|
672
680
|
return async (input, init) => {
|
|
673
681
|
const token = process.env.INTERNAL_SQUADBASE_OAUTH_MACHINE_CREDENTIAL;
|
|
@@ -691,6 +699,7 @@ function createSandboxProxyFetch(connectionId) {
|
|
|
691
699
|
body: JSON.stringify({
|
|
692
700
|
url: originalUrl,
|
|
693
701
|
method: originalMethod,
|
|
702
|
+
headers: normalizeHeaders(init?.headers),
|
|
694
703
|
body: originalBody
|
|
695
704
|
})
|
|
696
705
|
});
|
|
@@ -725,6 +734,7 @@ function createDeployedAppProxyFetch(connectionId) {
|
|
|
725
734
|
body: JSON.stringify({
|
|
726
735
|
url: originalUrl,
|
|
727
736
|
method: originalMethod,
|
|
737
|
+
headers: normalizeHeaders(init?.headers),
|
|
728
738
|
body: originalBody
|
|
729
739
|
})
|
|
730
740
|
});
|