UNPKG

tupleson

Version:

A hackable JSON serializer/deserializer

1 lines 1.96 kB
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from \"./errors.js\";\n\n// --- sync --\nexport { createTson } from \"./sync/createTson.js\";\nexport { createTsonDeserialize, createTsonParser } from \"./sync/deserialize.js\";\nexport { createTsonSerialize, createTsonStringify } from \"./sync/serialize.js\";\nexport type { TsonType } from \"./sync/syncTypes.js\";\nexport type {\n\tTsonOptions,\n\tTsonSerialized,\n\tTsonStringified,\n} from \"./sync/syncTypes.js\";\n\n// type handlers\nexport * from \"./sync/handlers/tsonBigint.js\";\nexport * from \"./sync/handlers/tsonDate.js\";\nexport * from \"./sync/handlers/tsonRegExp.js\";\nexport * from \"./sync/handlers/tsonSet.js\";\nexport * from \"./sync/handlers/tsonMap.js\";\nexport * from \"./sync/handlers/tsonUndefined.js\";\nexport * from \"./sync/handlers/tsonUnknownObjectGuard.js\";\nexport * from \"./sync/handlers/tsonNumberGuard.js\";\nexport * from \"./sync/handlers/tsonURL.js\";\nexport * from \"./sync/handlers/tsonSymbol.js\";\n\n// --- async --\nexport type { TsonAsyncOptions } from \"./async/asyncTypes.js\";\nexport {\n\ttype TsonParseAsyncOptions,\n\tcreateTsonParseAsync,\n\tcreateTsonParseEventSource,\n\tcreateTsonParseJsonStreamResponse,\n} from \"./async/deserializeAsync.js\";\nexport {\n\tcreateAsyncTsonSerialize,\n\tcreateTsonSSEResponse,\n\tcreateTsonSerializeJsonStreamResponse,\n\tcreateTsonStreamAsync,\n} from \"./async/serializeAsync.js\";\nexport * from \"./async/asyncErrors.js\";\n\n// type handlers\nexport * from \"./async/handlers/tsonPromise.js\";\nexport * from \"./async/handlers/tsonAsyncIterable.js\";\n"],"mappings":"AAAA,cAAc;AAGd,SAAS,kBAAkB;AAC3B,SAAS,uBAAuB,wBAAwB;AACxD,SAAS,qBAAqB,2BAA2B;AASzD,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAId;AAAA,EAEC;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,cAAc;AAGd,cAAc;AACd,cAAc;","names":[]}