Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change _flush() methods to public to fix TypeScript compile error #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"@types/lodash": "^4.14.98",
"@types/mocha": "^2.2.47",
"@types/mongodb": "^2.2.20",
"@types/node": "^7.0.52",
"@types/node": "^10.9.4",
"@types/request": "^2.47.0",
"@types/request-promise": "^4.1.41",
"@types/stream-buffers": "^3.0.2",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ class ODataStreamWrapper extends Transform {
if (typeof done == "function") done();
}

protected _flush(done?: Function) {
public _flush(done?: Function) {
if (typeof done == "function") done();
}

Expand Down Expand Up @@ -581,7 +581,7 @@ export class ODataProcessor extends Transform {
}
}

protected _flush(done?: Function) {
public _flush(done?: Function) {
if (this.streamEnabled && this.streamObject) {
if (this.options.objectMode) {
let flushObject: any = {
Expand Down