Skip to content

Commit

Permalink
Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
qwtel committed Aug 27, 2024
1 parent 071dbbe commit 2eed4ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion v8-value-serializer/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workers/v8-value-serializer",
"version": "0.5.2",
"version": "0.5.3",
"exports": {
".": "./index.ts",
"./stream": "./stream.ts",
Expand Down
6 changes: 3 additions & 3 deletions v8-value-serializer/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @module
*/

import { Serializer, type SerializerOptions, Deserializer, type DeserializerOptions } from "./serdes.ts";
import { Serializer, SerializerOptions, Deserializer, DeserializerOptions } from "./serdes.ts";

/** Customize behavior of the serializer stream */
export interface SerializerStreamOptions extends SerializerOptions {
Expand All @@ -33,7 +33,7 @@ export class SerializerStream extends TransformStream<any, Uint8Array> {
super({
transform(value, controller) {
const body = new Ser(options).serialize(value);
const chunk = new Serializer().serialize(body);
const chunk = new Ser().serialize(body);
controller.enqueue(chunk);
},
});
Expand Down Expand Up @@ -62,7 +62,7 @@ export class DeserializerStream extends TransformStream<Uint8Array, any> {
return;
}

const deserializer = new Deserializer(chunk);
const deserializer = new Des(chunk);
(deserializer as any).deserializer.suppressDeserializationErrors = true;
const body = (deserializer as any).deserializer.readObject();

Expand Down

0 comments on commit 2eed4ef

Please sign in to comment.