Skip to content

Commit

Permalink
Update version to 2.0.10
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Liang <[email protected]>
  • Loading branch information
std4lqi committed Jan 9, 2024
1 parent 4d81140 commit d43687e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ await connection.uploadFile(input, '/u/username/hosts');
##### Parameter

* filePath - _string_ - USS file path name.
* transferMode - _TransferMode_ - `TransferMode.ASCII`, `TransferMode.BINARY` and `TransferMode.ASCII_NO_TRAILING_BLANKS`. The `TransferMode.ASCII` and `TransferMode.ASCII_NO_TRAILING_BLANKS` asks z/OS FTP service to convert `EBCDIC` characters to `ASCII`. The `TransferMode.ASCII_NO_TRAILING_BLANKS` asks z/OS FTP service to remove trailing blanks.
* transferMode - _TransferMode_ - `TransferMode.ASCII`, or `TransferMode.BINARY`. The `TransferMode.ASCII` asks z/OS FTP service to convert `EBCDIC` characters to `ASCII`.
* stream - _boolean_ - `true` if you want to obtain a [ReadableStream](https://nodejs.org/api/stream.html#stream_readable_streams) of the file content, or `false` to read a full file into memory (in Buffer). The buffer accepts up to 4MB data. For large file, use `stream=true` instead.

##### Return
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zos-node-accessor",
"version": "2.0.9",
"version": "2.0.10",
"description": "Accessing z/OS dataset and interacting with JES in NodeJS way",
"main": "./lib/zosAccessor.js",
"types": "./lib/zosAccessor.d.ts",
Expand Down
7 changes: 0 additions & 7 deletions src/__test__/downloadFile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,6 @@ describe('The method of downloadFile()', () => {
expect(buffer.toString()).toBe(text);
});

it.only('can get USS file in ASCII_NO_TRAILING_BLANKS mode', async () => {
const text = 'Hello\r\n';

const buffer = await accessor.downloadFile(getUSSPath('nodeacc/hello_with_trailingblanks.txt'), TransferMode.ASCII_NO_TRAILING_BLANKS);
expect(buffer.toString()).toBe(text);
});

// Can get USS file in ASCII mode as STREAM
it('can get USS file in ASCII mode as STREAM', async () => {
const text = 'Hello\r\n';
Expand Down

0 comments on commit d43687e

Please sign in to comment.