freestyle-sandboxes 0.0.32 → 0.0.34

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.
@@ -46,7 +46,10 @@ const prepareDirForDeployment = async (directory) => {
46
46
  console.error(`Error reading file ${relativePath}:`, error);
47
47
  }
48
48
  }
49
- return files;
49
+ return {
50
+ kind: "files",
51
+ files
52
+ };
50
53
  };
51
54
  const prepareDirForDeploymentSync = (directory) => {
52
55
  const files = {};
@@ -68,7 +71,10 @@ const prepareDirForDeploymentSync = (directory) => {
68
71
  console.error(`Error reading file ${relativePath}:`, error);
69
72
  }
70
73
  }
71
- return files;
74
+ return {
75
+ kind: "files",
76
+ files
77
+ };
72
78
  };
73
79
  const prepareNextJsForDeployment = async (directory) => {
74
80
  const publicDir = path__namespace.join(directory, "public");
@@ -1,12 +1,10 @@
1
- import { W as FreestyleDeployWebPayload, $ as FreestyleFile } from '../types.gen-BCdfx7yt.js';
1
+ import { D as DeploymentSource } from '../types.gen-BuhQ5LpB.js';
2
2
 
3
- declare const prepareDirForDeployment: (directory: string) => Promise<FreestyleDeployWebPayload["files"]>;
4
- declare const prepareDirForDeploymentSync: (directory: string) => {
5
- [key: string]: FreestyleFile;
6
- };
3
+ declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
4
+ declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
7
5
  /**
8
6
  * This is in beta, and may not work as expected. **SUBJECT TO CHANGE.**
9
7
  */
10
- declare const prepareNextJsForDeployment: (directory: string) => Promise<FreestyleDeployWebPayload["files"]>;
8
+ declare const prepareNextJsForDeployment: (directory: string) => Promise<DeploymentSource>;
11
9
 
12
10
  export { prepareDirForDeployment, prepareDirForDeploymentSync, prepareNextJsForDeployment };
@@ -1,12 +1,10 @@
1
- import { W as FreestyleDeployWebPayload, $ as FreestyleFile } from '../types.gen-BCdfx7yt.js';
1
+ import { D as DeploymentSource } from '../types.gen-BuhQ5LpB.js';
2
2
 
3
- declare const prepareDirForDeployment: (directory: string) => Promise<FreestyleDeployWebPayload["files"]>;
4
- declare const prepareDirForDeploymentSync: (directory: string) => {
5
- [key: string]: FreestyleFile;
6
- };
3
+ declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
4
+ declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
7
5
  /**
8
6
  * This is in beta, and may not work as expected. **SUBJECT TO CHANGE.**
9
7
  */
10
- declare const prepareNextJsForDeployment: (directory: string) => Promise<FreestyleDeployWebPayload["files"]>;
8
+ declare const prepareNextJsForDeployment: (directory: string) => Promise<DeploymentSource>;
11
9
 
12
10
  export { prepareDirForDeployment, prepareDirForDeploymentSync, prepareNextJsForDeployment };
@@ -23,7 +23,10 @@ const prepareDirForDeployment = async (directory) => {
23
23
  console.error(`Error reading file ${relativePath}:`, error);
24
24
  }
25
25
  }
26
- return files;
26
+ return {
27
+ kind: "files",
28
+ files
29
+ };
27
30
  };
28
31
  const prepareDirForDeploymentSync = (directory) => {
29
32
  const files = {};
@@ -45,7 +48,10 @@ const prepareDirForDeploymentSync = (directory) => {
45
48
  console.error(`Error reading file ${relativePath}:`, error);
46
49
  }
47
50
  }
48
- return files;
51
+ return {
52
+ kind: "files",
53
+ files
54
+ };
49
55
  };
50
56
  const prepareNextJsForDeployment = async (directory) => {
51
57
  const publicDir = path.join(directory, "public");
@@ -271,6 +271,10 @@ export type FreestyleExecuteScriptParamsConfiguration = {
271
271
  customHeaders?: {
272
272
  [key: string]: (string);
273
273
  };
274
+ /**
275
+ * Proxy all outgoing requests through this URL
276
+ */
277
+ proxy?: (string) | null;
274
278
  };
275
279
 
276
280
  export type FreestyleExecuteScriptResultSuccess = {