@tapjs/snapshot
Advanced tools
Comparing version 0.0.0-18 to 0.0.0-19
@@ -172,2 +172,11 @@ "use strict"; | ||
} | ||
// \r\n line endings are annoying with git and other systems that | ||
// will "helpfully" make them into \n instead. Plus, when loaded | ||
// as JavaScript, they're just turned into \n anyway. | ||
if (found.includes('\r\n')) { | ||
found = defaultFormatSnapshot({ | ||
...this.compareOptions, | ||
bufferChunkSize: 16, | ||
})(Buffer.from(found)); | ||
} | ||
if (this.writeSnapshot) { | ||
@@ -174,0 +183,0 @@ this.#snapshot.snap(found, m); |
@@ -168,2 +168,11 @@ import { argv, cwd, env, mainScript, normalizeMessageExtra, } from '@tapjs/core'; | ||
} | ||
// \r\n line endings are annoying with git and other systems that | ||
// will "helpfully" make them into \n instead. Plus, when loaded | ||
// as JavaScript, they're just turned into \n anyway. | ||
if (found.includes('\r\n')) { | ||
found = defaultFormatSnapshot({ | ||
...this.compareOptions, | ||
bufferChunkSize: 16, | ||
})(Buffer.from(found)); | ||
} | ||
if (this.writeSnapshot) { | ||
@@ -170,0 +179,0 @@ this.#snapshot.snap(found, m); |
{ | ||
"name": "@tapjs/snapshot", | ||
"version": "0.0.0-18", | ||
"version": "0.0.0-19", | ||
"description": "", | ||
"author": "Isaac Z. Schlueter <i@izs.me> (https://blog.izs.me)", | ||
"type": "module", | ||
"keywords": [ | ||
"tapjs plugin" | ||
], | ||
"exports": { | ||
@@ -40,3 +43,3 @@ "./package.json": { | ||
"peerDependencies": { | ||
"@tapjs/core": "0.0.0-18" | ||
"@tapjs/core": "0.0.0-19" | ||
}, | ||
@@ -43,0 +46,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100538
942