@cronn/lib-file-snapshots 1.2.0 → 1.2.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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -1
  2. package/package.json +19 -18
package/dist/index.mjs CHANGED
@@ -178,7 +178,8 @@ var MarkdownTableSerializer = class {
178
178
  serialize(value) {
179
179
  const { columns, rows } = value;
180
180
  if (columns.length === 0) throw new Error("Markdown table must have at least one column.");
181
- return addTrailingNewLine(markdownTable([columns, ...rows.map((row) => row.map((cellValue) => this.serializeCellValue(cellValue)))]));
181
+ const normalizedRows = rows.map((row) => row.map((cellValue) => this.serializeCellValue(cellValue)));
182
+ return addTrailingNewLine(markdownTable([columns, ...normalizedRows]));
182
183
  }
183
184
  serializeCellValue(value) {
184
185
  let normalizedValue = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cronn/lib-file-snapshots",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "The library agnostic core for testing file snapshots",
5
5
  "keywords": [
6
6
  "file snapshots"
@@ -28,44 +28,45 @@
28
28
  }
29
29
  },
30
30
  "dependencies": {
31
- "markdown-table": "3.0.4"
31
+ "markdown-table": "^3.0.4"
32
32
  },
33
33
  "devDependencies": {
34
- "@arethetypeswrong/core": "0.18.2",
35
- "@types/node": "24.12.4",
36
- "@typescript/native-preview": "7.0.0-dev.20260518.1",
37
- "@vitest/coverage-v8": "4.1.6",
38
- "eslint": "10.4.0",
34
+ "@arethetypeswrong/core": "0.18.5",
35
+ "@cronn/shared-configs": "0.0.0",
36
+ "@types/node": "24.13.3",
37
+ "@typescript/native": "npm:typescript@^7.0.2",
38
+ "@vitest/coverage-v8": "4.1.11",
39
+ "eslint": "10.9.1",
39
40
  "eslint-config-prettier": "10.1.8",
40
- "eslint-plugin-check-file": "3.3.1",
41
+ "eslint-plugin-check-file": "3.3.2",
41
42
  "eslint-plugin-unused-imports": "4.4.1",
42
- "publint": "0.3.21",
43
+ "publint": "0.3.24",
43
44
  "rimraf": "6.1.3",
44
- "tsdown": "0.22.0",
45
- "typescript-eslint": "8.59.4",
46
- "vitest": "4.1.6",
47
- "node": "runtime:>=24.14.1 <25",
48
- "@cronn/shared-configs": "0.0.0"
45
+ "tsdown": "0.22.14",
46
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
47
+ "typescript-eslint": "8.68.0",
48
+ "vitest": "4.1.11",
49
+ "node": "runtime:24.20.0"
49
50
  },
50
51
  "devEngines": {
51
52
  "packageManager": {
52
53
  "name": "pnpm",
53
- "version": "11.3.0",
54
+ "version": "11.25.0",
54
55
  "onFail": "download"
55
56
  },
56
57
  "runtime": {
57
58
  "name": "node",
58
- "version": ">=24.14.1 <25",
59
+ "version": "24.20.0",
59
60
  "onFail": "download"
60
61
  }
61
62
  },
62
63
  "engines": {
63
- "node": "^20 || ^22 || >=24"
64
+ "node": "^22 || ^24 || >=26"
64
65
  },
65
66
  "scripts": {
66
67
  "build": "tsdown",
67
68
  "clean": "rimraf .turbo dist coverage",
68
- "compile": "tsgo",
69
+ "compile": "tsc",
69
70
  "lint:check": "eslint src/ --max-warnings=0",
70
71
  "lint:fix": "eslint src/ --max-warnings=0 --fix",
71
72
  "test": "vitest run",