@ark/attest 0.50.0 → 0.52.0

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/out/cache/ts.js CHANGED
@@ -2,7 +2,7 @@ import { fromCwd, readFile } from "@ark/fs";
2
2
  import { printable, throwError, throwInternalError } from "@ark/util";
3
3
  import * as tsvfs from "@typescript/vfs";
4
4
  import { readFileSync } from "node:fs";
5
- import { dirname, join } from "node:path";
5
+ import { resolve, dirname, join } from "node:path";
6
6
  import ts from "typescript";
7
7
  import { getConfig } from "../config.js";
8
8
  export class TsServer {
@@ -110,7 +110,8 @@ const instantiateTsconfigFromPath = (path) => {
110
110
  throwConfigParseError(result.error);
111
111
  const rawConfig = result.config;
112
112
  rawConfig.compilerOptions = Object.assign(rawConfig.compilerOptions ?? {}, arkConfig.compilerOptions);
113
- const instantiatedConfig = ts.parseJsonConfigFileContent(rawConfig, ts.sys, dirname(path), {}, path);
113
+ const configPath = resolve(path);
114
+ const instantiatedConfig = ts.parseJsonConfigFileContent(rawConfig, ts.sys, dirname(configPath), {}, configPath);
114
115
  if (instantiatedConfig.errors.length > 0)
115
116
  throwConfigInstantiationError(instantiatedConfig);
116
117
  return instantiatedConfig;
package/out/config.js CHANGED
@@ -106,6 +106,13 @@ const parseTsVersions = (aliases) => {
106
106
  };
107
107
  let cachedConfig;
108
108
  export const getConfig = () => parseConfig();
109
+ // workaround for a bug in Node 25 that creates localStorage as an empty proxy,
110
+ // leading to @typescript/vfs eventually throwing when it sees that it is not
111
+ // undefined and tries to call `getItem`:
112
+ // https://github.com/nodejs/node/issues/60303
113
+ // this can be removed once the bug is addressed in Node
114
+ if (!globalThis.localStorage?.getItem)
115
+ globalThis.localStorage = undefined;
109
116
  export const ensureCacheDirs = () => {
110
117
  cachedConfig ??= getConfig();
111
118
  ensureDir(cachedConfig.cacheDir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ark/attest",
3
- "version": "0.50.0",
3
+ "version": "0.52.0",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "David Blass",
@@ -20,9 +20,13 @@
20
20
  "ark-ts": "./index.ts",
21
21
  "default": "./out/index.js"
22
22
  },
23
- "./internal/*": {
24
- "ark-ts": "./*",
25
- "default": "./out/*"
23
+ "./internal/*.ts": {
24
+ "ark-ts": "./*.ts",
25
+ "default": "./out/*.js"
26
+ },
27
+ "./internal/*.js": {
28
+ "ark-ts": "./*.ts",
29
+ "default": "./out/*.js"
26
30
  }
27
31
  },
28
32
  "files": [
@@ -36,9 +40,9 @@
36
40
  "@typescript/analyze-trace": "0.10.1",
37
41
  "@typescript/vfs": "1.6.1",
38
42
  "prettier": "3.6.2",
39
- "@ark/fs": "0.50.0",
40
- "@ark/util": "0.50.0",
41
- "arktype": "2.1.23"
43
+ "@ark/fs": "0.52.0",
44
+ "@ark/util": "0.52.0",
45
+ "arktype": "2.1.24"
42
46
  },
43
47
  "devDependencies": {
44
48
  "typescript": "5.9.3"