freestyle-sandboxes 0.0.75-1 → 0.0.76
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/index.cjs +0 -2
- package/dist/index.mjs +0 -2
- package/package.json +1 -1
- package/src/index.ts +8 -25
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1083,31 +1083,14 @@ export class FreestyleSandboxes {
|
|
|
1083
1083
|
? content
|
|
1084
1084
|
: Buffer.from(content).toString(encoding);
|
|
1085
1085
|
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
// devServer: devServerInstance,
|
|
1095
|
-
// content: contentStr,
|
|
1096
|
-
// encoding,
|
|
1097
|
-
// },
|
|
1098
|
-
// });
|
|
1099
|
-
await client
|
|
1100
|
-
.put({
|
|
1101
|
-
url: `/ephemeral/v1/dev-servers/files/${path}`,
|
|
1102
|
-
body: {
|
|
1103
|
-
devServer: devServerInstance,
|
|
1104
|
-
content: contentStr,
|
|
1105
|
-
encoding,
|
|
1106
|
-
},
|
|
1107
|
-
})
|
|
1108
|
-
.then((response) => {
|
|
1109
|
-
console.log("Request PATH: ", response.request.url);
|
|
1110
|
-
});
|
|
1086
|
+
await client.put({
|
|
1087
|
+
url: `/ephemeral/v1/dev-servers/files/${path}`,
|
|
1088
|
+
body: {
|
|
1089
|
+
devServer: devServerInstance,
|
|
1090
|
+
content: contentStr,
|
|
1091
|
+
encoding,
|
|
1092
|
+
},
|
|
1093
|
+
});
|
|
1111
1094
|
|
|
1112
1095
|
if (response.error) {
|
|
1113
1096
|
throw new Error(
|