@dbx-tools/databricks 0.3.20 → 0.3.22

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/cloud.ts +2 -2
package/package.json CHANGED
@@ -12,16 +12,16 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@databricks/sdk-experimental": "^0.17.0",
15
- "@dbx-tools/core": "0.3.20",
16
- "@dbx-tools/shared-core": "0.3.20",
17
- "@dbx-tools/appkit": "0.3.20"
15
+ "@dbx-tools/appkit": "0.3.22",
16
+ "@dbx-tools/core": "0.3.22",
17
+ "@dbx-tools/shared-core": "0.3.22"
18
18
  },
19
19
  "main": "index.ts",
20
20
  "license": "UNLICENSED",
21
21
  "publishConfig": {
22
22
  "access": "public"
23
23
  },
24
- "version": "0.3.20",
24
+ "version": "0.3.22",
25
25
  "types": "index.ts",
26
26
  "type": "module",
27
27
  "exports": {
package/src/cloud.ts CHANGED
@@ -23,8 +23,8 @@ import { mkdir, readFile, rename, unlink, writeFile } from "node:fs/promises";
23
23
  import { tmpdir } from "node:os";
24
24
  import { dirname, join } from "node:path";
25
25
 
26
- import { error, functionModule, hash, http, log, net } from "@dbx-tools/shared-core";
27
26
  import { file } from "@dbx-tools/core";
27
+ import { error, functionModule, hash, http, log, net } from "@dbx-tools/shared-core";
28
28
  import { resolveHostIps } from "./net";
29
29
 
30
30
  const logger = log.logger("cloud");
@@ -255,7 +255,7 @@ async function fetchText(url: string): Promise<string> {
255
255
  const expiresAt = new Date(createdAt.getTime() + RANGE_CACHE_TTL_MS);
256
256
  if (expiresAt > new Date()) {
257
257
  logger.debug("cached fetch hit", { url, cachePath });
258
- return await readFile(cachePath, "utf8");
258
+ return readFile(cachePath, "utf8");
259
259
  }
260
260
  }
261
261
  let tempPath: string | null = join(cacheDir, `${hash.id()}.txt`);