@squadbase/vite-server 0.0.1-build-21 → 0.0.1-build-22

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 CHANGED
@@ -17063,19 +17063,19 @@ function createConnectorRegistry() {
17063
17063
  }
17064
17064
  var APP_SESSION_COOKIE_NAME = "__Host-squadbase-session";
17065
17065
  function createSandboxProxyFetch(connectionId) {
17066
- const token = process.env.INTERNAL_SQUADBASE_OAUTH_MACHINE_CREDENTIAL;
17067
- const sandboxId = process.env.INTERNAL_SQUADBASE_SANDBOX_ID;
17068
- if (!token || !sandboxId) {
17069
- throw new Error(
17070
- "Connection proxy is not configured. Please check your deployment settings."
17071
- );
17072
- }
17073
- const envPrefix = process.env.SQUADBASE_ENV === "prod" ? "" : `${process.env.SQUADBASE_ENV ?? "dev1"}-`;
17074
- const proxyUrl = `https://${sandboxId}.preview.${envPrefix}app.squadbase.dev/_sqcore/connections/${connectionId}/request`;
17075
17066
  return async (input, init) => {
17067
+ const token = process.env.INTERNAL_SQUADBASE_OAUTH_MACHINE_CREDENTIAL;
17068
+ const sandboxId = process.env.INTERNAL_SQUADBASE_SANDBOX_ID;
17069
+ if (!token || !sandboxId) {
17070
+ throw new Error(
17071
+ "Connection proxy is not configured. Please check your deployment settings."
17072
+ );
17073
+ }
17076
17074
  const originalUrl = typeof input === "string" ? input : input instanceof URL ? input.href : input.url;
17077
17075
  const originalMethod = init?.method ?? "GET";
17078
17076
  const originalBody = init?.body ? JSON.parse(init.body) : void 0;
17077
+ const envPrefix = process.env.SQUADBASE_ENV === "prod" ? "" : `${process.env.SQUADBASE_ENV ?? "dev1"}-`;
17078
+ const proxyUrl = `https://${sandboxId}.preview.${envPrefix}app.squadbase.dev/_sqcore/connections/${connectionId}/request`;
17079
17079
  return fetch(proxyUrl, {
17080
17080
  method: "POST",
17081
17081
  headers: {
package/dist/index.js CHANGED
@@ -16998,19 +16998,19 @@ function createConnectorRegistry() {
16998
16998
  }
16999
16999
  var APP_SESSION_COOKIE_NAME = "__Host-squadbase-session";
17000
17000
  function createSandboxProxyFetch(connectionId) {
17001
- const token = process.env.INTERNAL_SQUADBASE_OAUTH_MACHINE_CREDENTIAL;
17002
- const sandboxId = process.env.INTERNAL_SQUADBASE_SANDBOX_ID;
17003
- if (!token || !sandboxId) {
17004
- throw new Error(
17005
- "Connection proxy is not configured. Please check your deployment settings."
17006
- );
17007
- }
17008
- const envPrefix = process.env.SQUADBASE_ENV === "prod" ? "" : `${process.env.SQUADBASE_ENV ?? "dev1"}-`;
17009
- const proxyUrl = `https://${sandboxId}.preview.${envPrefix}app.squadbase.dev/_sqcore/connections/${connectionId}/request`;
17010
17001
  return async (input, init) => {
17002
+ const token = process.env.INTERNAL_SQUADBASE_OAUTH_MACHINE_CREDENTIAL;
17003
+ const sandboxId = process.env.INTERNAL_SQUADBASE_SANDBOX_ID;
17004
+ if (!token || !sandboxId) {
17005
+ throw new Error(
17006
+ "Connection proxy is not configured. Please check your deployment settings."
17007
+ );
17008
+ }
17011
17009
  const originalUrl = typeof input === "string" ? input : input instanceof URL ? input.href : input.url;
17012
17010
  const originalMethod = init?.method ?? "GET";
17013
17011
  const originalBody = init?.body ? JSON.parse(init.body) : void 0;
17012
+ const envPrefix = process.env.SQUADBASE_ENV === "prod" ? "" : `${process.env.SQUADBASE_ENV ?? "dev1"}-`;
17013
+ const proxyUrl = `https://${sandboxId}.preview.${envPrefix}app.squadbase.dev/_sqcore/connections/${connectionId}/request`;
17014
17014
  return fetch(proxyUrl, {
17015
17015
  method: "POST",
17016
17016
  headers: {
package/dist/main.js CHANGED
@@ -16998,19 +16998,19 @@ function createConnectorRegistry() {
16998
16998
  }
16999
16999
  var APP_SESSION_COOKIE_NAME = "__Host-squadbase-session";
17000
17000
  function createSandboxProxyFetch(connectionId) {
17001
- const token = process.env.INTERNAL_SQUADBASE_OAUTH_MACHINE_CREDENTIAL;
17002
- const sandboxId = process.env.INTERNAL_SQUADBASE_SANDBOX_ID;
17003
- if (!token || !sandboxId) {
17004
- throw new Error(
17005
- "Connection proxy is not configured. Please check your deployment settings."
17006
- );
17007
- }
17008
- const envPrefix = process.env.SQUADBASE_ENV === "prod" ? "" : `${process.env.SQUADBASE_ENV ?? "dev1"}-`;
17009
- const proxyUrl = `https://${sandboxId}.preview.${envPrefix}app.squadbase.dev/_sqcore/connections/${connectionId}/request`;
17010
17001
  return async (input, init) => {
17002
+ const token = process.env.INTERNAL_SQUADBASE_OAUTH_MACHINE_CREDENTIAL;
17003
+ const sandboxId = process.env.INTERNAL_SQUADBASE_SANDBOX_ID;
17004
+ if (!token || !sandboxId) {
17005
+ throw new Error(
17006
+ "Connection proxy is not configured. Please check your deployment settings."
17007
+ );
17008
+ }
17011
17009
  const originalUrl = typeof input === "string" ? input : input instanceof URL ? input.href : input.url;
17012
17010
  const originalMethod = init?.method ?? "GET";
17013
17011
  const originalBody = init?.body ? JSON.parse(init.body) : void 0;
17012
+ const envPrefix = process.env.SQUADBASE_ENV === "prod" ? "" : `${process.env.SQUADBASE_ENV ?? "dev1"}-`;
17013
+ const proxyUrl = `https://${sandboxId}.preview.${envPrefix}app.squadbase.dev/_sqcore/connections/${connectionId}/request`;
17014
17014
  return fetch(proxyUrl, {
17015
17015
  method: "POST",
17016
17016
  headers: {
@@ -16999,19 +16999,19 @@ function createConnectorRegistry() {
16999
16999
  }
17000
17000
  var APP_SESSION_COOKIE_NAME = "__Host-squadbase-session";
17001
17001
  function createSandboxProxyFetch(connectionId) {
17002
- const token = process.env.INTERNAL_SQUADBASE_OAUTH_MACHINE_CREDENTIAL;
17003
- const sandboxId = process.env.INTERNAL_SQUADBASE_SANDBOX_ID;
17004
- if (!token || !sandboxId) {
17005
- throw new Error(
17006
- "Connection proxy is not configured. Please check your deployment settings."
17007
- );
17008
- }
17009
- const envPrefix = process.env.SQUADBASE_ENV === "prod" ? "" : `${process.env.SQUADBASE_ENV ?? "dev1"}-`;
17010
- const proxyUrl = `https://${sandboxId}.preview.${envPrefix}app.squadbase.dev/_sqcore/connections/${connectionId}/request`;
17011
17002
  return async (input, init) => {
17003
+ const token = process.env.INTERNAL_SQUADBASE_OAUTH_MACHINE_CREDENTIAL;
17004
+ const sandboxId = process.env.INTERNAL_SQUADBASE_SANDBOX_ID;
17005
+ if (!token || !sandboxId) {
17006
+ throw new Error(
17007
+ "Connection proxy is not configured. Please check your deployment settings."
17008
+ );
17009
+ }
17012
17010
  const originalUrl = typeof input === "string" ? input : input instanceof URL ? input.href : input.url;
17013
17011
  const originalMethod = init?.method ?? "GET";
17014
17012
  const originalBody = init?.body ? JSON.parse(init.body) : void 0;
17013
+ const envPrefix = process.env.SQUADBASE_ENV === "prod" ? "" : `${process.env.SQUADBASE_ENV ?? "dev1"}-`;
17014
+ const proxyUrl = `https://${sandboxId}.preview.${envPrefix}app.squadbase.dev/_sqcore/connections/${connectionId}/request`;
17015
17015
  return fetch(proxyUrl, {
17016
17016
  method: "POST",
17017
17017
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squadbase/vite-server",
3
- "version": "0.0.1-build-21",
3
+ "version": "0.0.1-build-22",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {