freestyle-sandboxes 0.0.43 → 0.0.44

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 CHANGED
@@ -220,7 +220,7 @@ ${JSON.stringify(
220
220
  * Deploy a Web project to a sandbox.
221
221
  */
222
222
  async deployWeb(source, config) {
223
- if (Array.isArray(config.build.command)) {
223
+ if (Array.isArray(config.build?.command)) {
224
224
  config.build.command = config.build.command.join(" && ");
225
225
  }
226
226
  const response = await handleDeployWebV2({
package/dist/index.mjs CHANGED
@@ -218,7 +218,7 @@ ${JSON.stringify(
218
218
  * Deploy a Web project to a sandbox.
219
219
  */
220
220
  async deployWeb(source, config) {
221
- if (Array.isArray(config.build.command)) {
221
+ if (Array.isArray(config.build?.command)) {
222
222
  config.build.command = config.build.command.join(" && ");
223
223
  }
224
224
  const response = await handleDeployWebV2({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freestyle-sandboxes",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
package/src/index.ts CHANGED
@@ -144,7 +144,7 @@ export class FreestyleSandboxes {
144
144
  });
145
145
  }
146
146
  ): Promise<FreestyleDeployWebSuccessResponseV2> {
147
- if (Array.isArray(config.build.command)) {
147
+ if (Array.isArray(config.build?.command)) {
148
148
  config.build.command = config.build.command.join(" && ") as string;
149
149
  }
150
150