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

Add decodeStream #46

Merged
merged 5 commits into from
May 30, 2019
Merged

Add decodeStream #46

merged 5 commits into from
May 30, 2019

Conversation

sergeyzenchenko
Copy link
Collaborator

No description provided.

…ecodeStream

# Conflicts:
#	src/decodeAsync.ts
src/Decoder.ts Outdated

try {
while (true) {
let result = this.decodeSync();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let result = this.decodeSync();
const result = this.decodeSync();

for await (let item of decoder.decodeArrayStream(stream)) {
yield item;
}
return decoder.decodeArrayStream(stream);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


const result = [];

for await (let item of decodeStream(createStream())) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for await (let item of decodeStream(createStream())) {
for await (const item of decodeStream(createStream())) {

@sergeyzenchenko
Copy link
Collaborator Author

fixed @gfx

@codecov-io
Copy link

codecov-io commented May 30, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@580e798). Click here to learn what that means.
The diff coverage is 87.5%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #46   +/-   ##
=========================================
  Coverage          ?   93.45%           
=========================================
  Files             ?       15           
  Lines             ?      840           
  Branches          ?      175           
=========================================
  Hits              ?      785           
  Misses            ?       29           
  Partials          ?       26
Impacted Files Coverage Δ
src/decodeAsync.ts 100% <100%> (ø)
src/Decoder.ts 95.88% <77.77%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 580e798...ad1d0d0. Read the comment docs.

Copy link
Member

@gfx gfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

@gfx gfx mentioned this pull request May 30, 2019
@sergeyzenchenko sergeyzenchenko merged commit 8d59417 into master May 30, 2019
@sergeyzenchenko sergeyzenchenko deleted the decodeStream branch May 30, 2019 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants