@ark/attest 0.52.0 → 0.54.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.
@@ -84,13 +84,11 @@ const writeCachedInlineSnapshotUpdates = () => {
84
84
  const snapshotArgsToQueuedUpdate = ({ position, serializedValue, snapFunctionName = "snap", baselinePath }) => {
85
85
  const snapCall = findCallExpressionAncestor(position, snapFunctionName);
86
86
  let newArgText = typeof serializedValue === "string" && serializedValue.includes("\n") ?
87
- "`" +
88
- serializedValue.replaceAll("`", "\\`").replaceAll("${", "\\${") +
89
- "`"
87
+ "`" + serializedValue.replace(/`/g, "\\`").replace(/\${/g, "\\${") + "`"
90
88
  : JSON.stringify(serializedValue);
91
89
  newArgText = newArgText
92
- .replaceAll(/"\$ark.bigint-(-?\d+)"/g, "$1n")
93
- .replaceAll(/"\$ark.undefined"/g, "undefined");
90
+ .replace(/"\$ark.bigint-(-?\d+)"/g, "$1n")
91
+ .replace(/"\$ark.undefined"/g, "undefined");
94
92
  return {
95
93
  position,
96
94
  snapCall,
package/out/cache/ts.js CHANGED
@@ -20,7 +20,7 @@ export class TsServer {
20
20
  this.tsConfigInfo = tsConfigInfo ?? getTsConfigInfoOrThrow();
21
21
  const tsLibPaths = getTsLibFiles(this.tsConfigInfo.parsed.options);
22
22
  // TS represents windows paths as `C:/Users/ssalb/...`
23
- const normalizedCwd = fromCwd().replaceAll("\\", "/");
23
+ const normalizedCwd = fromCwd().replace(/\\/g, "/");
24
24
  this.rootFiles = this.tsConfigInfo.parsed.fileNames.filter(path => {
25
25
  if (!path.startsWith(normalizedCwd))
26
26
  return;
@@ -35,7 +35,7 @@ export class TsServer {
35
35
  TsServer._instance = this;
36
36
  }
37
37
  getSourceFileOrThrow(path) {
38
- const tsPath = path.replaceAll("\\", "/");
38
+ const tsPath = path.replace(/\\/g, "/");
39
39
  const existingFile = this.virtualEnv.getSourceFile(tsPath);
40
40
  if (existingFile)
41
41
  return existingFile;
@@ -142,7 +142,7 @@ export const getStringifiableType = (node) => {
142
142
  const nonTruncated = typeChecker.typeToString(nodeType, undefined, ts.TypeFormatFlags.NoTruncation);
143
143
  stringified =
144
144
  nonTruncated.includes(" any") && !stringified.includes(" any") ?
145
- nonTruncated.replaceAll(" any", " cyclic")
145
+ nonTruncated.replace(/ any/g, " cyclic")
146
146
  : nonTruncated;
147
147
  }
148
148
  return Object.assign(nodeType, {
package/out/cli/trace.js CHANGED
@@ -553,6 +553,6 @@ const writeToCsv = (filePath, headers, rows) => {
553
553
  };
554
554
  const escapeForCsv = (value) => {
555
555
  if (value.includes(",") || value.includes('"') || value.includes("\n"))
556
- return `"${value.replaceAll('"', '""')}"`;
556
+ return `"${value.replace(/"/g, '""')}"`;
557
557
  return value;
558
558
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ark/attest",
3
- "version": "0.52.0",
3
+ "version": "0.54.0",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "David Blass",
@@ -40,9 +40,9 @@
40
40
  "@typescript/analyze-trace": "0.10.1",
41
41
  "@typescript/vfs": "1.6.1",
42
42
  "prettier": "3.6.2",
43
- "@ark/fs": "0.52.0",
44
- "@ark/util": "0.52.0",
45
- "arktype": "2.1.24"
43
+ "@ark/util": "0.54.0",
44
+ "@ark/fs": "0.54.0",
45
+ "arktype": "2.1.26"
46
46
  },
47
47
  "devDependencies": {
48
48
  "typescript": "5.9.3"