@vercel/sandbox 0.0.10 → 0.0.12-pre.0
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/api-client/api-client.d.ts +1 -1
- package/dist/api-client/api-client.js +1 -1
- package/dist/sandbox.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -2
- package/src/api-client/api-client.ts +2 -2
- package/src/sandbox.ts +1 -1
- package/src/version.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -98,7 +98,7 @@ class APIClient extends base_client_1.BaseClient {
|
|
|
98
98
|
sandboxId: params.sandboxId,
|
|
99
99
|
});
|
|
100
100
|
for (const file of params.files) {
|
|
101
|
-
await writer.addFile({ name: file.path, content: file.
|
|
101
|
+
await writer.addFile({ name: file.path, content: file.content });
|
|
102
102
|
}
|
|
103
103
|
writer.end();
|
|
104
104
|
await (0, base_client_1.parseOrThrow)(validators_1.EmptyResponse, await response);
|
package/dist/sandbox.d.ts
CHANGED
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.12-pre.0";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/sandbox",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12-pre.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"ms": "2.1.3",
|
|
17
17
|
"node-fetch": "2.6.11",
|
|
18
18
|
"tar-stream": "3.1.7",
|
|
19
|
-
"zlib": "1.0.5",
|
|
20
19
|
"zod": "3.24.4"
|
|
21
20
|
},
|
|
22
21
|
"devDependencies": {
|
|
@@ -174,14 +174,14 @@ export class APIClient extends BaseClient {
|
|
|
174
174
|
|
|
175
175
|
async writeFiles(params: {
|
|
176
176
|
sandboxId: string;
|
|
177
|
-
files: { path: string;
|
|
177
|
+
files: { path: string; content: Buffer }[];
|
|
178
178
|
}) {
|
|
179
179
|
const { writer, response } = this.getFileWriter({
|
|
180
180
|
sandboxId: params.sandboxId,
|
|
181
181
|
});
|
|
182
182
|
|
|
183
183
|
for (const file of params.files) {
|
|
184
|
-
await writer.addFile({ name: file.path, content: file.
|
|
184
|
+
await writer.addFile({ name: file.path, content: file.content });
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
writer.end();
|
package/src/sandbox.ts
CHANGED
|
@@ -323,7 +323,7 @@ export class Sandbox {
|
|
|
323
323
|
* @param files - Array of files with path and stream/buffer contents
|
|
324
324
|
* @returns A promise that resolves when the files are written
|
|
325
325
|
*/
|
|
326
|
-
async writeFiles(files: { path: string;
|
|
326
|
+
async writeFiles(files: { path: string; content: Buffer }[]) {
|
|
327
327
|
return this.client.writeFiles({
|
|
328
328
|
sandboxId: this.sandbox.id,
|
|
329
329
|
files: files,
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Autogenerated by inject-version.ts
|
|
2
|
-
export const VERSION = "0.0.
|
|
2
|
+
export const VERSION = "0.0.12-pre.0";
|