freestyle-sandboxes 0.1.36 → 0.1.37
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/index.cjs +9 -12
- package/index.mjs +9 -12
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -6517,8 +6517,9 @@ async function convertSpecSnapshotsToTemplates(spec, processBuilders = true) {
|
|
|
6517
6517
|
});
|
|
6518
6518
|
}
|
|
6519
6519
|
async function processOuterSpecBuilders(spec) {
|
|
6520
|
-
|
|
6521
|
-
|
|
6520
|
+
const builders = spec.builders ?? {} ?? {};
|
|
6521
|
+
for (const key in builders) {
|
|
6522
|
+
const builder = builders[key];
|
|
6522
6523
|
if (builder) {
|
|
6523
6524
|
if (builder.configureSpec) {
|
|
6524
6525
|
spec = await builder.configureSpec(spec);
|
|
@@ -6544,9 +6545,8 @@ async function processOuterSpecBuilders(spec) {
|
|
|
6544
6545
|
return spec;
|
|
6545
6546
|
}
|
|
6546
6547
|
async function processSpecTree(spec) {
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
)) {
|
|
6548
|
+
const builders = spec.builders ?? {} ?? {};
|
|
6549
|
+
for (const [key, builder] of Object.entries(builders)) {
|
|
6550
6550
|
if (builder) {
|
|
6551
6551
|
if (builder.configureSpec) {
|
|
6552
6552
|
spec = await builder.configureSpec(spec);
|
|
@@ -6579,13 +6579,10 @@ function collectSpecBuilders(spec) {
|
|
|
6579
6579
|
if (isVmSpecLike$1(spec.raw.snapshot)) {
|
|
6580
6580
|
builders = collectSpecBuilders(spec.raw.snapshot);
|
|
6581
6581
|
}
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
if (builder) {
|
|
6587
|
-
builders[key] = builder;
|
|
6588
|
-
}
|
|
6582
|
+
const specBuilders = spec.builders ?? {} ?? {};
|
|
6583
|
+
for (const [key, builder] of Object.entries(specBuilders)) {
|
|
6584
|
+
if (builder) {
|
|
6585
|
+
builders[key] = builder;
|
|
6589
6586
|
}
|
|
6590
6587
|
}
|
|
6591
6588
|
return builders;
|
package/index.mjs
CHANGED
|
@@ -6515,8 +6515,9 @@ async function convertSpecSnapshotsToTemplates(spec, processBuilders = true) {
|
|
|
6515
6515
|
});
|
|
6516
6516
|
}
|
|
6517
6517
|
async function processOuterSpecBuilders(spec) {
|
|
6518
|
-
|
|
6519
|
-
|
|
6518
|
+
const builders = spec.builders ?? {} ?? {};
|
|
6519
|
+
for (const key in builders) {
|
|
6520
|
+
const builder = builders[key];
|
|
6520
6521
|
if (builder) {
|
|
6521
6522
|
if (builder.configureSpec) {
|
|
6522
6523
|
spec = await builder.configureSpec(spec);
|
|
@@ -6542,9 +6543,8 @@ async function processOuterSpecBuilders(spec) {
|
|
|
6542
6543
|
return spec;
|
|
6543
6544
|
}
|
|
6544
6545
|
async function processSpecTree(spec) {
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
)) {
|
|
6546
|
+
const builders = spec.builders ?? {} ?? {};
|
|
6547
|
+
for (const [key, builder] of Object.entries(builders)) {
|
|
6548
6548
|
if (builder) {
|
|
6549
6549
|
if (builder.configureSpec) {
|
|
6550
6550
|
spec = await builder.configureSpec(spec);
|
|
@@ -6577,13 +6577,10 @@ function collectSpecBuilders(spec) {
|
|
|
6577
6577
|
if (isVmSpecLike$1(spec.raw.snapshot)) {
|
|
6578
6578
|
builders = collectSpecBuilders(spec.raw.snapshot);
|
|
6579
6579
|
}
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
if (builder) {
|
|
6585
|
-
builders[key] = builder;
|
|
6586
|
-
}
|
|
6580
|
+
const specBuilders = spec.builders ?? {} ?? {};
|
|
6581
|
+
for (const [key, builder] of Object.entries(specBuilders)) {
|
|
6582
|
+
if (builder) {
|
|
6583
|
+
builders[key] = builder;
|
|
6587
6584
|
}
|
|
6588
6585
|
}
|
|
6589
6586
|
return builders;
|