ctx-core 5.36.1 → 5.36.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,17 +30,6 @@ export class TextDecoderStream extends TransformStream {
|
|
|
30
30
|
controller.enqueue(decoded)
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
flush(controller) {
|
|
34
|
-
// If {fatal: false} is in options (the default), then the final call to
|
|
35
|
-
// decode() can produce extra output (usually the unicode replacement
|
|
36
|
-
// character 0xFFFD). When fatal is true, this call is just used for its
|
|
37
|
-
// side-effect of throwing a TypeError exception if the input is
|
|
38
|
-
// incomplete.
|
|
39
|
-
const output = decoder.decode()
|
|
40
|
-
if (output.length > 0) {
|
|
41
|
-
controller.enqueue(output)
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
33
|
})
|
|
45
34
|
this.encoding = encoding
|
|
46
35
|
this.fatal = fatal
|
|
@@ -23,17 +23,6 @@ export class TextEncoderStream extends TransformStream {
|
|
|
23
23
|
controller.enqueue(encoded)
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
-
flush(controller) {
|
|
27
|
-
// If {fatal: false} is in options (the default), then the final call to
|
|
28
|
-
// decode() can produce extra output (usually the unicode replacement
|
|
29
|
-
// character 0xFFFD). When fatal is true, this call is just used for its
|
|
30
|
-
// side-effect of throwing a TypeError exception if the input is
|
|
31
|
-
// incomplete.
|
|
32
|
-
const output = decoder.encode()
|
|
33
|
-
if (output.length > 0) {
|
|
34
|
-
controller.enqueue(output)
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
26
|
})
|
|
38
27
|
}
|
|
39
28
|
}
|