diff --git a/src/message/http/index.ts b/src/message/http/index.ts index c72e7fe..e4cd738 100644 --- a/src/message/http/index.ts +++ b/src/message/http/index.ts @@ -4,7 +4,6 @@ */ import { types } from "util"; -import JSONbig from "json-bigint"; import { CloudEvent, CloudEventV1, CONSTANTS, Mode, Version } from "../.."; import { Message, Headers, Binding } from ".."; @@ -20,8 +19,6 @@ import { import { isStringOrObjectOrThrow, ValidationError } from "../../event/validation"; import { JSONParser, MappedParser, Parser, parserByContentType } from "../../parsers"; -const JSON = JSONbig(({ useNativeBigInt: true })); - /** * Serialize a CloudEvent for HTTP transport in binary mode * @implements {Serializer} diff --git a/test/integration/parser_test.ts b/test/integration/parser_test.ts index 70860e6..5be19b3 100644 --- a/test/integration/parser_test.ts +++ b/test/integration/parser_test.ts @@ -55,7 +55,6 @@ describe("JSON Event Format Parser", () => { const payload = "{gg"; const parser = new Parser(); - console.error("BIG_INT", process.env["CLOUDEVENT_BIG_INT"]); // TODO: Should the parser catch the SyntaxError and re-throw a ValidationError? expect(parser.parse.bind(parser, payload)).to.throw(SyntaxError); });