Skip to content

Commit

Permalink
fix: crlf uses 2 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiand391 committed Jan 24, 2025
1 parent 3b9437b commit dc6dde8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
os: [ubuntu-latest, windows-latest]
command:
- 'yarn test:nuts:bulk:export'
- 'yarn test:nuts:bulk:import'
- 'yarn test:nuts:bulk:update'
- 'yarn test:nuts:data:bulk-upsert-delete'
- 'yarn test:nuts:data:create'
- 'yarn test:nuts:data:query'
- 'yarn test:nuts:data:record'
- 'yarn test:nuts:data:search'
- 'yarn test:nuts:data:tree'
# - 'yarn test:nuts:bulk:import'
# - 'yarn test:nuts:bulk:update'
# - 'yarn test:nuts:data:bulk-upsert-delete'
# - 'yarn test:nuts:data:create'
# - 'yarn test:nuts:data:query'
# - 'yarn test:nuts:data:record'
# - 'yarn test:nuts:data:search'
# - 'yarn test:nuts:data:tree'
fail-fast: false
with:
os: ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions src/bulkUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ export async function exportRecords(
? [
Readable.from(
res.body.slice(
res.body.indexOf(EOL) + 1,
platform() === 'win32' ? res.body.lastIndexOf(lineEndingsMap[outputInfo.lineEnding]) : undefined
res.body.indexOf(EOL) + (outputInfo.lineEnding === 'LF' ? 1 : 2),
platform() === 'win32' ? res.body.lastIndexOf('\n') : undefined
)
),
fs.createWriteStream(outputInfo.filePath, {
Expand Down

0 comments on commit dc6dde8

Please sign in to comment.