@fabric-harness/databricks 3.0.0 → 3.0.2

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.js CHANGED
@@ -4769,8 +4769,8 @@ function snakeValue2(value) {
4769
4769
  );
4770
4770
  const attachment = record2.attachment;
4771
4771
  if (attachment && typeof attachment === "object" && !Array.isArray(attachment)) {
4772
- delete record2.attachment;
4773
- Object.assign(record2, attachment);
4772
+ const { attachment: _attachment, ...withoutAttachment } = record2;
4773
+ return { ...withoutAttachment, ...attachment };
4774
4774
  }
4775
4775
  return record2;
4776
4776
  }
@@ -59258,12 +59258,13 @@ async function sweepDatabricksAuthoringCertification(clients, options = {}) {
59258
59258
  }
59259
59259
  }
59260
59260
  for (const root of options.workspaceRoots ?? []) {
59261
- if (!clients.preview) {
59261
+ const preview = clients.preview;
59262
+ if (!preview) {
59262
59263
  throw new Error("Workspace certification sweeping requires the explicit preview client.");
59263
59264
  }
59264
59265
  let listing;
59265
59266
  try {
59266
- listing = await clients.preview.get(
59267
+ listing = await preview.get(
59267
59268
  "/api/2.0/workspace/list",
59268
59269
  { path: root }
59269
59270
  );
@@ -59276,7 +59277,7 @@ async function sweepDatabricksAuthoringCertification(clients, options = {}) {
59276
59277
  add(
59277
59278
  "workspace-object",
59278
59279
  object2.path,
59279
- () => clients.preview.post(
59280
+ () => preview.post(
59280
59281
  "/api/2.0/workspace/delete",
59281
59282
  { path: object2.path, recursive: true },
59282
59283
  {},