@vitest/snapshot 5.0.0-beta.5 → 5.0.0-beta.6

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.js +1 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -810,7 +810,7 @@ class SnapshotState {
810
810
  }
811
811
  if (rawSnapshot) {
812
812
  // normalize EOL when snapshot contains CRLF but received is LF
813
- if (rawSnapshot.content && rawSnapshot.content.match(/\r\n/) && !receivedSerialized.match(/\r\n/)) {
813
+ if (rawSnapshot.content && /\r\n/.test(rawSnapshot.content) && !/\r\n/.test(receivedSerialized)) {
814
814
  rawSnapshot.content = normalizeNewlines(rawSnapshot.content);
815
815
  }
816
816
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/snapshot",
3
3
  "type": "module",
4
- "version": "5.0.0-beta.5",
4
+ "version": "5.0.0-beta.6",
5
5
  "description": "Vitest snapshot manager",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -48,8 +48,8 @@
48
48
  "dependencies": {
49
49
  "magic-string": "^0.30.21",
50
50
  "pathe": "^2.0.3",
51
- "@vitest/pretty-format": "5.0.0-beta.5",
52
- "@vitest/utils": "5.0.0-beta.5"
51
+ "@vitest/pretty-format": "5.0.0-beta.6",
52
+ "@vitest/utils": "5.0.0-beta.6"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/natural-compare": "^1.4.3",