File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 28
28
- Reorganized the test file structure.
29
29
- Use the ` .js ` file extension in ` require ` paths.
30
30
- Use the Node.js ` Readable ` property ` readableEncoding ` instead of ` _readableState.encoding ` in tests.
31
+ - Use ` substring ` instead of the deprecated string method ` substr ` in tests.
31
32
- Fixed a typo in a code comment.
32
33
- Updated documentation.
33
34
- Added a ` license.md ` MIT License file, closing [ #86 ] ( https://github.com/jaydenseric/graphql-upload/issues/86 ) .
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export default async function abortingMultipartRequest(
44
44
if ( chunkAbortIndex !== - 1 ) {
45
45
if ( chunkAbortIndex !== 0 )
46
46
// Yield the final truncated chunk before aborting.
47
- yield textEncoder . encode ( chunkString . substr ( 0 , chunkAbortIndex ) ) ;
47
+ yield textEncoder . encode ( chunkString . substring ( 0 , chunkAbortIndex ) ) ;
48
48
49
49
// Abort the request after it has been received by the server request
50
50
// handler, or else Node.js won’t run the handler.
You can’t perform that action at this time.
0 commit comments