Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dxos/codec-protobuf

Package Overview
Dependencies
Maintainers
5
Versions
3007
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxos/codec-protobuf - npm Package Compare versions

Comparing version 0.6.12-main.15a606f to 0.6.12-main.2d19bf1

2

dist/lib/browser/meta.json

@@ -1,1 +0,1 @@

{"inputs":{"inject-globals:@inject-globals":{"bytes":324,"imports":[{"path":"@dxos/node-std/inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/buffer-patch.ts":{"bytes":1724,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts":{"bytes":6750,"imports":[{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts":{"bytes":14191,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts","kind":"import-statement","original":"./codegen"},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/codec.ts":{"bytes":8451,"imports":[{"path":"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts","kind":"import-statement","original":"./precompiled-mapping/create-message-mapper"},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/common.ts":{"bytes":2232,"imports":[{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/encoding.ts":{"bytes":1262,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/mapping.ts":{"bytes":8940,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/sanitizer.ts":{"bytes":5823,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/stream.ts":{"bytes":28948,"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/service.ts":{"bytes":24332,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/stream.ts","kind":"import-statement","original":"./stream"},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/schema.ts":{"bytes":10425,"imports":[{"path":"lodash.merge","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/codec.ts","kind":"import-statement","original":"./codec"},{"path":"packages/common/codec-protobuf/src/mapping.ts","kind":"import-statement","original":"./mapping"},{"path":"packages/common/codec-protobuf/src/service.ts","kind":"import-statement","original":"./service"},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/struct.ts":{"bytes":9065,"imports":[{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/any.ts":{"bytes":8337,"imports":[{"path":"packages/common/codec-protobuf/src/substitutions/struct.ts","kind":"import-statement","original":"./struct"},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/timestamp.ts":{"bytes":2066,"imports":[{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/index.ts":{"bytes":796,"imports":[{"path":"packages/common/codec-protobuf/src/substitutions/any.ts","kind":"import-statement","original":"./any"},{"path":"packages/common/codec-protobuf/src/substitutions/struct.ts","kind":"import-statement","original":"./struct"},{"path":"packages/common/codec-protobuf/src/substitutions/timestamp.ts","kind":"import-statement","original":"./timestamp"},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/compression.ts":{"bytes":1130,"imports":[{"path":"compress-json","kind":"import-statement","external":true},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/util.ts":{"bytes":1834,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/request-options.ts":{"bytes":628,"imports":[{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/index.ts":{"bytes":1595,"imports":[{"path":"packages/common/codec-protobuf/src/buffer-patch.ts","kind":"import-statement","original":"./buffer-patch"},{"path":"packages/common/codec-protobuf/src/codec.ts","kind":"import-statement","original":"./codec"},{"path":"packages/common/codec-protobuf/src/common.ts","kind":"import-statement","original":"./common"},{"path":"packages/common/codec-protobuf/src/encoding.ts","kind":"import-statement","original":"./encoding"},{"path":"packages/common/codec-protobuf/src/mapping.ts","kind":"import-statement","original":"./mapping"},{"path":"packages/common/codec-protobuf/src/sanitizer.ts","kind":"import-statement","original":"./sanitizer"},{"path":"packages/common/codec-protobuf/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/common/codec-protobuf/src/service.ts","kind":"import-statement","original":"./service"},{"path":"packages/common/codec-protobuf/src/stream.ts","kind":"import-statement","original":"./stream"},{"path":"packages/common/codec-protobuf/src/substitutions/index.ts","kind":"import-statement","original":"./substitutions"},{"path":"packages/common/codec-protobuf/src/compression.ts","kind":"import-statement","original":"./compression"},{"path":"packages/common/codec-protobuf/src/util.ts","kind":"import-statement","original":"./util"},{"path":"packages/common/codec-protobuf/src/request-options.ts","kind":"import-statement","original":"./request-options"},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"packages/common/codec-protobuf/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":49496},"packages/common/codec-protobuf/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/common/codec-protobuf/dist/lib/browser/chunk-6CWCUGGH.mjs","kind":"import-statement"},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"lodash.merge","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"compress-json","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true}],"exports":["OBJECT_CONVERSION_OPTIONS","ProtoCodec","Schema","Service","ServiceDescriptor","ServiceHandler","Stream","anySubstitutions","compressSchema","createMappingDescriptors","decodeProtobuf","decompressSchema","encodeProtobuf","getFirstStreamValue","mapMessage","patchBufferCodec","sanitize","structSubstitutions","timestampSubstitutions"],"entryPoint":"packages/common/codec-protobuf/src/index.ts","inputs":{"packages/common/codec-protobuf/src/buffer-patch.ts":{"bytesInOutput":169},"packages/common/codec-protobuf/src/index.ts":{"bytesInOutput":0},"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts":{"bytesInOutput":3528},"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts":{"bytesInOutput":740},"packages/common/codec-protobuf/src/codec.ts":{"bytesInOutput":1602},"packages/common/codec-protobuf/src/encoding.ts":{"bytesInOutput":151},"packages/common/codec-protobuf/src/mapping.ts":{"bytesInOutput":1963},"packages/common/codec-protobuf/src/sanitizer.ts":{"bytesInOutput":1122},"packages/common/codec-protobuf/src/schema.ts":{"bytesInOutput":2314},"packages/common/codec-protobuf/src/service.ts":{"bytesInOutput":6948},"packages/common/codec-protobuf/src/substitutions/struct.ts":{"bytesInOutput":2099},"packages/common/codec-protobuf/src/substitutions/any.ts":{"bytesInOutput":1940},"packages/common/codec-protobuf/src/substitutions/index.ts":{"bytesInOutput":0},"packages/common/codec-protobuf/src/substitutions/timestamp.ts":{"bytesInOutput":380},"packages/common/codec-protobuf/src/compression.ts":{"bytesInOutput":152},"packages/common/codec-protobuf/src/util.ts":{"bytesInOutput":301}},"bytes":24822},"packages/common/codec-protobuf/dist/lib/browser/stream.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/common/codec-protobuf/dist/lib/browser/stream.mjs":{"imports":[{"path":"packages/common/codec-protobuf/dist/lib/browser/chunk-6CWCUGGH.mjs","kind":"import-statement"}],"exports":["Stream"],"entryPoint":"packages/common/codec-protobuf/src/stream.ts","inputs":{},"bytes":139},"packages/common/codec-protobuf/dist/lib/browser/chunk-6CWCUGGH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13352},"packages/common/codec-protobuf/dist/lib/browser/chunk-6CWCUGGH.mjs":{"imports":[{"path":"@dxos/node-std/inject-globals","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["Stream"],"inputs":{"inject-globals:@inject-globals":{"bytesInOutput":79},"packages/common/codec-protobuf/src/stream.ts":{"bytesInOutput":7209}},"bytes":7471}}}
{"inputs":{"inject-globals:@inject-globals":{"bytes":324,"imports":[{"path":"@dxos/node-std/inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/buffer-patch.ts":{"bytes":1724,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts":{"bytes":6750,"imports":[{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts":{"bytes":14191,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts","kind":"import-statement","original":"./codegen"},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/codec.ts":{"bytes":10805,"imports":[{"path":"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts","kind":"import-statement","original":"./precompiled-mapping/create-message-mapper"},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/common.ts":{"bytes":2232,"imports":[{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/encoding.ts":{"bytes":1262,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/mapping.ts":{"bytes":8940,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/sanitizer.ts":{"bytes":5823,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/stream.ts":{"bytes":28948,"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/service.ts":{"bytes":24332,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/stream.ts","kind":"import-statement","original":"./stream"},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/schema.ts":{"bytes":10425,"imports":[{"path":"lodash.merge","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/codec.ts","kind":"import-statement","original":"./codec"},{"path":"packages/common/codec-protobuf/src/mapping.ts","kind":"import-statement","original":"./mapping"},{"path":"packages/common/codec-protobuf/src/service.ts","kind":"import-statement","original":"./service"},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/struct.ts":{"bytes":9065,"imports":[{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/any.ts":{"bytes":8337,"imports":[{"path":"packages/common/codec-protobuf/src/substitutions/struct.ts","kind":"import-statement","original":"./struct"},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/timestamp.ts":{"bytes":2066,"imports":[{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/index.ts":{"bytes":796,"imports":[{"path":"packages/common/codec-protobuf/src/substitutions/any.ts","kind":"import-statement","original":"./any"},{"path":"packages/common/codec-protobuf/src/substitutions/struct.ts","kind":"import-statement","original":"./struct"},{"path":"packages/common/codec-protobuf/src/substitutions/timestamp.ts","kind":"import-statement","original":"./timestamp"},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/compression.ts":{"bytes":1130,"imports":[{"path":"compress-json","kind":"import-statement","external":true},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/util.ts":{"bytes":1834,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/request-options.ts":{"bytes":628,"imports":[{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/index.ts":{"bytes":1595,"imports":[{"path":"packages/common/codec-protobuf/src/buffer-patch.ts","kind":"import-statement","original":"./buffer-patch"},{"path":"packages/common/codec-protobuf/src/codec.ts","kind":"import-statement","original":"./codec"},{"path":"packages/common/codec-protobuf/src/common.ts","kind":"import-statement","original":"./common"},{"path":"packages/common/codec-protobuf/src/encoding.ts","kind":"import-statement","original":"./encoding"},{"path":"packages/common/codec-protobuf/src/mapping.ts","kind":"import-statement","original":"./mapping"},{"path":"packages/common/codec-protobuf/src/sanitizer.ts","kind":"import-statement","original":"./sanitizer"},{"path":"packages/common/codec-protobuf/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/common/codec-protobuf/src/service.ts","kind":"import-statement","original":"./service"},{"path":"packages/common/codec-protobuf/src/stream.ts","kind":"import-statement","original":"./stream"},{"path":"packages/common/codec-protobuf/src/substitutions/index.ts","kind":"import-statement","original":"./substitutions"},{"path":"packages/common/codec-protobuf/src/compression.ts","kind":"import-statement","original":"./compression"},{"path":"packages/common/codec-protobuf/src/util.ts","kind":"import-statement","original":"./util"},{"path":"packages/common/codec-protobuf/src/request-options.ts","kind":"import-statement","original":"./request-options"},{"path":"@inject-globals","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"packages/common/codec-protobuf/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":50639},"packages/common/codec-protobuf/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/common/codec-protobuf/dist/lib/browser/chunk-6CWCUGGH.mjs","kind":"import-statement"},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"lodash.merge","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"compress-json","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true}],"exports":["OBJECT_CONVERSION_OPTIONS","ProtoCodec","Schema","Service","ServiceDescriptor","ServiceHandler","Stream","anySubstitutions","compressSchema","createMappingDescriptors","decodeProtobuf","decompressSchema","encodeProtobuf","getFirstStreamValue","mapMessage","patchBufferCodec","sanitize","structSubstitutions","timestampSubstitutions"],"entryPoint":"packages/common/codec-protobuf/src/index.ts","inputs":{"packages/common/codec-protobuf/src/buffer-patch.ts":{"bytesInOutput":169},"packages/common/codec-protobuf/src/index.ts":{"bytesInOutput":0},"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts":{"bytesInOutput":3528},"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts":{"bytesInOutput":740},"packages/common/codec-protobuf/src/codec.ts":{"bytesInOutput":2206},"packages/common/codec-protobuf/src/encoding.ts":{"bytesInOutput":151},"packages/common/codec-protobuf/src/mapping.ts":{"bytesInOutput":1963},"packages/common/codec-protobuf/src/sanitizer.ts":{"bytesInOutput":1122},"packages/common/codec-protobuf/src/schema.ts":{"bytesInOutput":2314},"packages/common/codec-protobuf/src/service.ts":{"bytesInOutput":6948},"packages/common/codec-protobuf/src/substitutions/struct.ts":{"bytesInOutput":2099},"packages/common/codec-protobuf/src/substitutions/any.ts":{"bytesInOutput":1940},"packages/common/codec-protobuf/src/substitutions/index.ts":{"bytesInOutput":0},"packages/common/codec-protobuf/src/substitutions/timestamp.ts":{"bytesInOutput":380},"packages/common/codec-protobuf/src/compression.ts":{"bytesInOutput":152},"packages/common/codec-protobuf/src/util.ts":{"bytesInOutput":301}},"bytes":25426},"packages/common/codec-protobuf/dist/lib/browser/stream.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/common/codec-protobuf/dist/lib/browser/stream.mjs":{"imports":[{"path":"packages/common/codec-protobuf/dist/lib/browser/chunk-6CWCUGGH.mjs","kind":"import-statement"}],"exports":["Stream"],"entryPoint":"packages/common/codec-protobuf/src/stream.ts","inputs":{},"bytes":139},"packages/common/codec-protobuf/dist/lib/browser/chunk-6CWCUGGH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13352},"packages/common/codec-protobuf/dist/lib/browser/chunk-6CWCUGGH.mjs":{"imports":[{"path":"@dxos/node-std/inject-globals","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["Stream"],"inputs":{"inject-globals:@inject-globals":{"bytesInOutput":79},"packages/common/codec-protobuf/src/stream.ts":{"bytesInOutput":7209}},"bytes":7471}}}

@@ -1,1 +0,1 @@

{"inputs":{"packages/common/codec-protobuf/src/buffer-patch.ts":{"bytes":1724,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts":{"bytes":6750,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts":{"bytes":14191,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts","kind":"import-statement","original":"./codegen"}],"format":"esm"},"packages/common/codec-protobuf/src/codec.ts":{"bytes":8451,"imports":[{"path":"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts","kind":"import-statement","original":"./precompiled-mapping/create-message-mapper"}],"format":"esm"},"packages/common/codec-protobuf/src/common.ts":{"bytes":2232,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/encoding.ts":{"bytes":1262,"imports":[{"path":"protobufjs","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/mapping.ts":{"bytes":8940,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/sanitizer.ts":{"bytes":5823,"imports":[{"path":"protobufjs","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/stream.ts":{"bytes":28948,"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/service.ts":{"bytes":24332,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/stream.ts","kind":"import-statement","original":"./stream"}],"format":"esm"},"packages/common/codec-protobuf/src/schema.ts":{"bytes":10425,"imports":[{"path":"lodash.merge","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/codec.ts","kind":"import-statement","original":"./codec"},{"path":"packages/common/codec-protobuf/src/mapping.ts","kind":"import-statement","original":"./mapping"},{"path":"packages/common/codec-protobuf/src/service.ts","kind":"import-statement","original":"./service"}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/struct.ts":{"bytes":9065,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/any.ts":{"bytes":8337,"imports":[{"path":"packages/common/codec-protobuf/src/substitutions/struct.ts","kind":"import-statement","original":"./struct"}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/timestamp.ts":{"bytes":2066,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/index.ts":{"bytes":796,"imports":[{"path":"packages/common/codec-protobuf/src/substitutions/any.ts","kind":"import-statement","original":"./any"},{"path":"packages/common/codec-protobuf/src/substitutions/struct.ts","kind":"import-statement","original":"./struct"},{"path":"packages/common/codec-protobuf/src/substitutions/timestamp.ts","kind":"import-statement","original":"./timestamp"}],"format":"esm"},"packages/common/codec-protobuf/src/compression.ts":{"bytes":1130,"imports":[{"path":"compress-json","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/util.ts":{"bytes":1834,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/request-options.ts":{"bytes":628,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/index.ts":{"bytes":1595,"imports":[{"path":"packages/common/codec-protobuf/src/buffer-patch.ts","kind":"import-statement","original":"./buffer-patch"},{"path":"packages/common/codec-protobuf/src/codec.ts","kind":"import-statement","original":"./codec"},{"path":"packages/common/codec-protobuf/src/common.ts","kind":"import-statement","original":"./common"},{"path":"packages/common/codec-protobuf/src/encoding.ts","kind":"import-statement","original":"./encoding"},{"path":"packages/common/codec-protobuf/src/mapping.ts","kind":"import-statement","original":"./mapping"},{"path":"packages/common/codec-protobuf/src/sanitizer.ts","kind":"import-statement","original":"./sanitizer"},{"path":"packages/common/codec-protobuf/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/common/codec-protobuf/src/service.ts","kind":"import-statement","original":"./service"},{"path":"packages/common/codec-protobuf/src/stream.ts","kind":"import-statement","original":"./stream"},{"path":"packages/common/codec-protobuf/src/substitutions/index.ts","kind":"import-statement","original":"./substitutions"},{"path":"packages/common/codec-protobuf/src/compression.ts","kind":"import-statement","original":"./compression"},{"path":"packages/common/codec-protobuf/src/util.ts","kind":"import-statement","original":"./util"},{"path":"packages/common/codec-protobuf/src/request-options.ts","kind":"import-statement","original":"./request-options"}],"format":"esm"}},"outputs":{"packages/common/codec-protobuf/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":49496},"packages/common/codec-protobuf/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/common/codec-protobuf/dist/lib/node-esm/chunk-5B3ZQMPG.mjs","kind":"import-statement"},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"lodash.merge","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"compress-json","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true}],"exports":["OBJECT_CONVERSION_OPTIONS","ProtoCodec","Schema","Service","ServiceDescriptor","ServiceHandler","Stream","anySubstitutions","compressSchema","createMappingDescriptors","decodeProtobuf","decompressSchema","encodeProtobuf","getFirstStreamValue","mapMessage","patchBufferCodec","sanitize","structSubstitutions","timestampSubstitutions"],"entryPoint":"packages/common/codec-protobuf/src/index.ts","inputs":{"packages/common/codec-protobuf/src/buffer-patch.ts":{"bytesInOutput":169},"packages/common/codec-protobuf/src/index.ts":{"bytesInOutput":0},"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts":{"bytesInOutput":3528},"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts":{"bytesInOutput":740},"packages/common/codec-protobuf/src/codec.ts":{"bytesInOutput":1602},"packages/common/codec-protobuf/src/encoding.ts":{"bytesInOutput":151},"packages/common/codec-protobuf/src/mapping.ts":{"bytesInOutput":1963},"packages/common/codec-protobuf/src/sanitizer.ts":{"bytesInOutput":1122},"packages/common/codec-protobuf/src/schema.ts":{"bytesInOutput":2314},"packages/common/codec-protobuf/src/service.ts":{"bytesInOutput":6948},"packages/common/codec-protobuf/src/substitutions/struct.ts":{"bytesInOutput":2099},"packages/common/codec-protobuf/src/substitutions/any.ts":{"bytesInOutput":1940},"packages/common/codec-protobuf/src/substitutions/index.ts":{"bytesInOutput":0},"packages/common/codec-protobuf/src/substitutions/timestamp.ts":{"bytesInOutput":380},"packages/common/codec-protobuf/src/compression.ts":{"bytesInOutput":152},"packages/common/codec-protobuf/src/util.ts":{"bytesInOutput":301}},"bytes":24881},"packages/common/codec-protobuf/dist/lib/node-esm/stream.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/common/codec-protobuf/dist/lib/node-esm/stream.mjs":{"imports":[{"path":"packages/common/codec-protobuf/dist/lib/node-esm/chunk-5B3ZQMPG.mjs","kind":"import-statement"}],"exports":["Stream"],"entryPoint":"packages/common/codec-protobuf/src/stream.ts","inputs":{},"bytes":198},"packages/common/codec-protobuf/dist/lib/node-esm/chunk-5B3ZQMPG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13345},"packages/common/codec-protobuf/dist/lib/node-esm/chunk-5B3ZQMPG.mjs":{"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["Stream"],"inputs":{"packages/common/codec-protobuf/src/stream.ts":{"bytesInOutput":7209}},"bytes":7416}}}
{"inputs":{"packages/common/codec-protobuf/src/buffer-patch.ts":{"bytes":1724,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts":{"bytes":6750,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts":{"bytes":14191,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts","kind":"import-statement","original":"./codegen"}],"format":"esm"},"packages/common/codec-protobuf/src/codec.ts":{"bytes":10805,"imports":[{"path":"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts","kind":"import-statement","original":"./precompiled-mapping/create-message-mapper"}],"format":"esm"},"packages/common/codec-protobuf/src/common.ts":{"bytes":2232,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/encoding.ts":{"bytes":1262,"imports":[{"path":"protobufjs","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/mapping.ts":{"bytes":8940,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/sanitizer.ts":{"bytes":5823,"imports":[{"path":"protobufjs","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/stream.ts":{"bytes":28948,"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/service.ts":{"bytes":24332,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/stream.ts","kind":"import-statement","original":"./stream"}],"format":"esm"},"packages/common/codec-protobuf/src/schema.ts":{"bytes":10425,"imports":[{"path":"lodash.merge","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/codec.ts","kind":"import-statement","original":"./codec"},{"path":"packages/common/codec-protobuf/src/mapping.ts","kind":"import-statement","original":"./mapping"},{"path":"packages/common/codec-protobuf/src/service.ts","kind":"import-statement","original":"./service"}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/struct.ts":{"bytes":9065,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/any.ts":{"bytes":8337,"imports":[{"path":"packages/common/codec-protobuf/src/substitutions/struct.ts","kind":"import-statement","original":"./struct"}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/timestamp.ts":{"bytes":2066,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/index.ts":{"bytes":796,"imports":[{"path":"packages/common/codec-protobuf/src/substitutions/any.ts","kind":"import-statement","original":"./any"},{"path":"packages/common/codec-protobuf/src/substitutions/struct.ts","kind":"import-statement","original":"./struct"},{"path":"packages/common/codec-protobuf/src/substitutions/timestamp.ts","kind":"import-statement","original":"./timestamp"}],"format":"esm"},"packages/common/codec-protobuf/src/compression.ts":{"bytes":1130,"imports":[{"path":"compress-json","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/util.ts":{"bytes":1834,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/request-options.ts":{"bytes":628,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/index.ts":{"bytes":1595,"imports":[{"path":"packages/common/codec-protobuf/src/buffer-patch.ts","kind":"import-statement","original":"./buffer-patch"},{"path":"packages/common/codec-protobuf/src/codec.ts","kind":"import-statement","original":"./codec"},{"path":"packages/common/codec-protobuf/src/common.ts","kind":"import-statement","original":"./common"},{"path":"packages/common/codec-protobuf/src/encoding.ts","kind":"import-statement","original":"./encoding"},{"path":"packages/common/codec-protobuf/src/mapping.ts","kind":"import-statement","original":"./mapping"},{"path":"packages/common/codec-protobuf/src/sanitizer.ts","kind":"import-statement","original":"./sanitizer"},{"path":"packages/common/codec-protobuf/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/common/codec-protobuf/src/service.ts","kind":"import-statement","original":"./service"},{"path":"packages/common/codec-protobuf/src/stream.ts","kind":"import-statement","original":"./stream"},{"path":"packages/common/codec-protobuf/src/substitutions/index.ts","kind":"import-statement","original":"./substitutions"},{"path":"packages/common/codec-protobuf/src/compression.ts","kind":"import-statement","original":"./compression"},{"path":"packages/common/codec-protobuf/src/util.ts","kind":"import-statement","original":"./util"},{"path":"packages/common/codec-protobuf/src/request-options.ts","kind":"import-statement","original":"./request-options"}],"format":"esm"}},"outputs":{"packages/common/codec-protobuf/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":50639},"packages/common/codec-protobuf/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/common/codec-protobuf/dist/lib/node-esm/chunk-5B3ZQMPG.mjs","kind":"import-statement"},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"lodash.merge","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"compress-json","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true}],"exports":["OBJECT_CONVERSION_OPTIONS","ProtoCodec","Schema","Service","ServiceDescriptor","ServiceHandler","Stream","anySubstitutions","compressSchema","createMappingDescriptors","decodeProtobuf","decompressSchema","encodeProtobuf","getFirstStreamValue","mapMessage","patchBufferCodec","sanitize","structSubstitutions","timestampSubstitutions"],"entryPoint":"packages/common/codec-protobuf/src/index.ts","inputs":{"packages/common/codec-protobuf/src/buffer-patch.ts":{"bytesInOutput":169},"packages/common/codec-protobuf/src/index.ts":{"bytesInOutput":0},"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts":{"bytesInOutput":3528},"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts":{"bytesInOutput":740},"packages/common/codec-protobuf/src/codec.ts":{"bytesInOutput":2206},"packages/common/codec-protobuf/src/encoding.ts":{"bytesInOutput":151},"packages/common/codec-protobuf/src/mapping.ts":{"bytesInOutput":1963},"packages/common/codec-protobuf/src/sanitizer.ts":{"bytesInOutput":1122},"packages/common/codec-protobuf/src/schema.ts":{"bytesInOutput":2314},"packages/common/codec-protobuf/src/service.ts":{"bytesInOutput":6948},"packages/common/codec-protobuf/src/substitutions/struct.ts":{"bytesInOutput":2099},"packages/common/codec-protobuf/src/substitutions/any.ts":{"bytesInOutput":1940},"packages/common/codec-protobuf/src/substitutions/index.ts":{"bytesInOutput":0},"packages/common/codec-protobuf/src/substitutions/timestamp.ts":{"bytesInOutput":380},"packages/common/codec-protobuf/src/compression.ts":{"bytesInOutput":152},"packages/common/codec-protobuf/src/util.ts":{"bytesInOutput":301}},"bytes":25485},"packages/common/codec-protobuf/dist/lib/node-esm/stream.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/common/codec-protobuf/dist/lib/node-esm/stream.mjs":{"imports":[{"path":"packages/common/codec-protobuf/dist/lib/node-esm/chunk-5B3ZQMPG.mjs","kind":"import-statement"}],"exports":["Stream"],"entryPoint":"packages/common/codec-protobuf/src/stream.ts","inputs":{},"bytes":198},"packages/common/codec-protobuf/dist/lib/node-esm/chunk-5B3ZQMPG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13345},"packages/common/codec-protobuf/dist/lib/node-esm/chunk-5B3ZQMPG.mjs":{"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["Stream"],"inputs":{"packages/common/codec-protobuf/src/stream.ts":{"bytesInOutput":7209}},"bytes":7416}}}

@@ -1,1 +0,1 @@

{"inputs":{"packages/common/codec-protobuf/src/buffer-patch.ts":{"bytes":1724,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts":{"bytes":6750,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts":{"bytes":14191,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts","kind":"import-statement","original":"./codegen"}],"format":"esm"},"packages/common/codec-protobuf/src/codec.ts":{"bytes":8451,"imports":[{"path":"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts","kind":"import-statement","original":"./precompiled-mapping/create-message-mapper"}],"format":"esm"},"packages/common/codec-protobuf/src/common.ts":{"bytes":2232,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/encoding.ts":{"bytes":1262,"imports":[{"path":"protobufjs","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/mapping.ts":{"bytes":8940,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/sanitizer.ts":{"bytes":5823,"imports":[{"path":"protobufjs","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/stream.ts":{"bytes":28948,"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/service.ts":{"bytes":24332,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/stream.ts","kind":"import-statement","original":"./stream"}],"format":"esm"},"packages/common/codec-protobuf/src/schema.ts":{"bytes":10425,"imports":[{"path":"lodash.merge","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/codec.ts","kind":"import-statement","original":"./codec"},{"path":"packages/common/codec-protobuf/src/mapping.ts","kind":"import-statement","original":"./mapping"},{"path":"packages/common/codec-protobuf/src/service.ts","kind":"import-statement","original":"./service"}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/struct.ts":{"bytes":9065,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/any.ts":{"bytes":8337,"imports":[{"path":"packages/common/codec-protobuf/src/substitutions/struct.ts","kind":"import-statement","original":"./struct"}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/timestamp.ts":{"bytes":2066,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/index.ts":{"bytes":796,"imports":[{"path":"packages/common/codec-protobuf/src/substitutions/any.ts","kind":"import-statement","original":"./any"},{"path":"packages/common/codec-protobuf/src/substitutions/struct.ts","kind":"import-statement","original":"./struct"},{"path":"packages/common/codec-protobuf/src/substitutions/timestamp.ts","kind":"import-statement","original":"./timestamp"}],"format":"esm"},"packages/common/codec-protobuf/src/compression.ts":{"bytes":1130,"imports":[{"path":"compress-json","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/util.ts":{"bytes":1834,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/request-options.ts":{"bytes":628,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/index.ts":{"bytes":1595,"imports":[{"path":"packages/common/codec-protobuf/src/buffer-patch.ts","kind":"import-statement","original":"./buffer-patch"},{"path":"packages/common/codec-protobuf/src/codec.ts","kind":"import-statement","original":"./codec"},{"path":"packages/common/codec-protobuf/src/common.ts","kind":"import-statement","original":"./common"},{"path":"packages/common/codec-protobuf/src/encoding.ts","kind":"import-statement","original":"./encoding"},{"path":"packages/common/codec-protobuf/src/mapping.ts","kind":"import-statement","original":"./mapping"},{"path":"packages/common/codec-protobuf/src/sanitizer.ts","kind":"import-statement","original":"./sanitizer"},{"path":"packages/common/codec-protobuf/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/common/codec-protobuf/src/service.ts","kind":"import-statement","original":"./service"},{"path":"packages/common/codec-protobuf/src/stream.ts","kind":"import-statement","original":"./stream"},{"path":"packages/common/codec-protobuf/src/substitutions/index.ts","kind":"import-statement","original":"./substitutions"},{"path":"packages/common/codec-protobuf/src/compression.ts","kind":"import-statement","original":"./compression"},{"path":"packages/common/codec-protobuf/src/util.ts","kind":"import-statement","original":"./util"},{"path":"packages/common/codec-protobuf/src/request-options.ts","kind":"import-statement","original":"./request-options"}],"format":"esm"}},"outputs":{"packages/common/codec-protobuf/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":49495},"packages/common/codec-protobuf/dist/lib/node/index.cjs":{"imports":[{"path":"packages/common/codec-protobuf/dist/lib/node/chunk-ZLPQOOYK.cjs","kind":"import-statement"},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"lodash.merge","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"compress-json","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true}],"exports":["OBJECT_CONVERSION_OPTIONS","ProtoCodec","Schema","Service","ServiceDescriptor","ServiceHandler","Stream","anySubstitutions","compressSchema","createMappingDescriptors","decodeProtobuf","decompressSchema","encodeProtobuf","getFirstStreamValue","mapMessage","patchBufferCodec","sanitize","structSubstitutions","timestampSubstitutions"],"entryPoint":"packages/common/codec-protobuf/src/index.ts","inputs":{"packages/common/codec-protobuf/src/buffer-patch.ts":{"bytesInOutput":169},"packages/common/codec-protobuf/src/index.ts":{"bytesInOutput":0},"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts":{"bytesInOutput":3528},"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts":{"bytesInOutput":740},"packages/common/codec-protobuf/src/codec.ts":{"bytesInOutput":1602},"packages/common/codec-protobuf/src/encoding.ts":{"bytesInOutput":151},"packages/common/codec-protobuf/src/mapping.ts":{"bytesInOutput":1963},"packages/common/codec-protobuf/src/sanitizer.ts":{"bytesInOutput":1122},"packages/common/codec-protobuf/src/schema.ts":{"bytesInOutput":2314},"packages/common/codec-protobuf/src/service.ts":{"bytesInOutput":6948},"packages/common/codec-protobuf/src/substitutions/struct.ts":{"bytesInOutput":2099},"packages/common/codec-protobuf/src/substitutions/any.ts":{"bytesInOutput":1940},"packages/common/codec-protobuf/src/substitutions/index.ts":{"bytesInOutput":0},"packages/common/codec-protobuf/src/substitutions/timestamp.ts":{"bytesInOutput":380},"packages/common/codec-protobuf/src/compression.ts":{"bytesInOutput":152},"packages/common/codec-protobuf/src/util.ts":{"bytesInOutput":301}},"bytes":24789},"packages/common/codec-protobuf/dist/lib/node/stream.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/common/codec-protobuf/dist/lib/node/stream.cjs":{"imports":[{"path":"packages/common/codec-protobuf/dist/lib/node/chunk-ZLPQOOYK.cjs","kind":"import-statement"}],"exports":["Stream"],"entryPoint":"packages/common/codec-protobuf/src/stream.ts","inputs":{},"bytes":106},"packages/common/codec-protobuf/dist/lib/node/chunk-ZLPQOOYK.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13343},"packages/common/codec-protobuf/dist/lib/node/chunk-ZLPQOOYK.cjs":{"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["Stream"],"inputs":{"packages/common/codec-protobuf/src/stream.ts":{"bytesInOutput":7209}},"bytes":7323}}}
{"inputs":{"packages/common/codec-protobuf/src/buffer-patch.ts":{"bytes":1724,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts":{"bytes":6750,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts":{"bytes":14191,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts","kind":"import-statement","original":"./codegen"}],"format":"esm"},"packages/common/codec-protobuf/src/codec.ts":{"bytes":10805,"imports":[{"path":"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts","kind":"import-statement","original":"./precompiled-mapping/create-message-mapper"}],"format":"esm"},"packages/common/codec-protobuf/src/common.ts":{"bytes":2232,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/encoding.ts":{"bytes":1262,"imports":[{"path":"protobufjs","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/mapping.ts":{"bytes":8940,"imports":[{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/sanitizer.ts":{"bytes":5823,"imports":[{"path":"protobufjs","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/stream.ts":{"bytes":28948,"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/service.ts":{"bytes":24332,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/stream.ts","kind":"import-statement","original":"./stream"}],"format":"esm"},"packages/common/codec-protobuf/src/schema.ts":{"bytes":10425,"imports":[{"path":"lodash.merge","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"packages/common/codec-protobuf/src/codec.ts","kind":"import-statement","original":"./codec"},{"path":"packages/common/codec-protobuf/src/mapping.ts","kind":"import-statement","original":"./mapping"},{"path":"packages/common/codec-protobuf/src/service.ts","kind":"import-statement","original":"./service"}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/struct.ts":{"bytes":9065,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/any.ts":{"bytes":8337,"imports":[{"path":"packages/common/codec-protobuf/src/substitutions/struct.ts","kind":"import-statement","original":"./struct"}],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/timestamp.ts":{"bytes":2066,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/substitutions/index.ts":{"bytes":796,"imports":[{"path":"packages/common/codec-protobuf/src/substitutions/any.ts","kind":"import-statement","original":"./any"},{"path":"packages/common/codec-protobuf/src/substitutions/struct.ts","kind":"import-statement","original":"./struct"},{"path":"packages/common/codec-protobuf/src/substitutions/timestamp.ts","kind":"import-statement","original":"./timestamp"}],"format":"esm"},"packages/common/codec-protobuf/src/compression.ts":{"bytes":1130,"imports":[{"path":"compress-json","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/util.ts":{"bytes":1834,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true}],"format":"esm"},"packages/common/codec-protobuf/src/request-options.ts":{"bytes":628,"imports":[],"format":"esm"},"packages/common/codec-protobuf/src/index.ts":{"bytes":1595,"imports":[{"path":"packages/common/codec-protobuf/src/buffer-patch.ts","kind":"import-statement","original":"./buffer-patch"},{"path":"packages/common/codec-protobuf/src/codec.ts","kind":"import-statement","original":"./codec"},{"path":"packages/common/codec-protobuf/src/common.ts","kind":"import-statement","original":"./common"},{"path":"packages/common/codec-protobuf/src/encoding.ts","kind":"import-statement","original":"./encoding"},{"path":"packages/common/codec-protobuf/src/mapping.ts","kind":"import-statement","original":"./mapping"},{"path":"packages/common/codec-protobuf/src/sanitizer.ts","kind":"import-statement","original":"./sanitizer"},{"path":"packages/common/codec-protobuf/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/common/codec-protobuf/src/service.ts","kind":"import-statement","original":"./service"},{"path":"packages/common/codec-protobuf/src/stream.ts","kind":"import-statement","original":"./stream"},{"path":"packages/common/codec-protobuf/src/substitutions/index.ts","kind":"import-statement","original":"./substitutions"},{"path":"packages/common/codec-protobuf/src/compression.ts","kind":"import-statement","original":"./compression"},{"path":"packages/common/codec-protobuf/src/util.ts","kind":"import-statement","original":"./util"},{"path":"packages/common/codec-protobuf/src/request-options.ts","kind":"import-statement","original":"./request-options"}],"format":"esm"}},"outputs":{"packages/common/codec-protobuf/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":50638},"packages/common/codec-protobuf/dist/lib/node/index.cjs":{"imports":[{"path":"packages/common/codec-protobuf/dist/lib/node/chunk-ZLPQOOYK.cjs","kind":"import-statement"},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"lodash.merge","kind":"import-statement","external":true},{"path":"protobufjs","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"compress-json","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true}],"exports":["OBJECT_CONVERSION_OPTIONS","ProtoCodec","Schema","Service","ServiceDescriptor","ServiceHandler","Stream","anySubstitutions","compressSchema","createMappingDescriptors","decodeProtobuf","decompressSchema","encodeProtobuf","getFirstStreamValue","mapMessage","patchBufferCodec","sanitize","structSubstitutions","timestampSubstitutions"],"entryPoint":"packages/common/codec-protobuf/src/index.ts","inputs":{"packages/common/codec-protobuf/src/buffer-patch.ts":{"bytesInOutput":169},"packages/common/codec-protobuf/src/index.ts":{"bytesInOutput":0},"packages/common/codec-protobuf/src/precompiled-mapping/create-message-mapper.ts":{"bytesInOutput":3528},"packages/common/codec-protobuf/src/precompiled-mapping/codegen.ts":{"bytesInOutput":740},"packages/common/codec-protobuf/src/codec.ts":{"bytesInOutput":2206},"packages/common/codec-protobuf/src/encoding.ts":{"bytesInOutput":151},"packages/common/codec-protobuf/src/mapping.ts":{"bytesInOutput":1963},"packages/common/codec-protobuf/src/sanitizer.ts":{"bytesInOutput":1122},"packages/common/codec-protobuf/src/schema.ts":{"bytesInOutput":2314},"packages/common/codec-protobuf/src/service.ts":{"bytesInOutput":6948},"packages/common/codec-protobuf/src/substitutions/struct.ts":{"bytesInOutput":2099},"packages/common/codec-protobuf/src/substitutions/any.ts":{"bytesInOutput":1940},"packages/common/codec-protobuf/src/substitutions/index.ts":{"bytesInOutput":0},"packages/common/codec-protobuf/src/substitutions/timestamp.ts":{"bytesInOutput":380},"packages/common/codec-protobuf/src/compression.ts":{"bytesInOutput":152},"packages/common/codec-protobuf/src/util.ts":{"bytesInOutput":301}},"bytes":25393},"packages/common/codec-protobuf/dist/lib/node/stream.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/common/codec-protobuf/dist/lib/node/stream.cjs":{"imports":[{"path":"packages/common/codec-protobuf/dist/lib/node/chunk-ZLPQOOYK.cjs","kind":"import-statement"}],"exports":["Stream"],"entryPoint":"packages/common/codec-protobuf/src/stream.ts","inputs":{},"bytes":106},"packages/common/codec-protobuf/dist/lib/node/chunk-ZLPQOOYK.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13343},"packages/common/codec-protobuf/dist/lib/node/chunk-ZLPQOOYK.cjs":{"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["Stream"],"inputs":{"packages/common/codec-protobuf/src/stream.ts":{"bytesInOutput":7209}},"bytes":7323}}}

@@ -41,3 +41,5 @@ import { type IConversionOptions } from 'protobufjs';

addJson(schema: any): void;
encodeToJson(value: T, options?: EncodingOptions): any;
decodeFromJson(data: any, options?: EncodingOptions): T;
}
//# sourceMappingURL=codec.d.ts.map
{
"name": "@dxos/codec-protobuf",
"version": "0.6.12-main.15a606f",
"version": "0.6.12-main.2d19bf1",
"homepage": "https://dxos.org",

@@ -42,8 +42,8 @@ "bugs": "https://github.com/dxos/dxos/issues",

"protobufjs": "^7.2.5",
"@dxos/context": "0.6.12-main.15a606f",
"@dxos/async": "0.6.12-main.15a606f",
"@dxos/invariant": "0.6.12-main.15a606f",
"@dxos/log": "0.6.12-main.15a606f",
"@dxos/node-std": "0.6.12-main.15a606f",
"@dxos/util": "0.6.12-main.15a606f"
"@dxos/async": "0.6.12-main.2d19bf1",
"@dxos/context": "0.6.12-main.2d19bf1",
"@dxos/invariant": "0.6.12-main.2d19bf1",
"@dxos/log": "0.6.12-main.2d19bf1",
"@dxos/node-std": "0.6.12-main.2d19bf1",
"@dxos/util": "0.6.12-main.2d19bf1"
},

@@ -50,0 +50,0 @@ "devDependencies": {

@@ -21,2 +21,11 @@ //

const JSON_CONVERSION_OPTIONS: IConversionOptions = {
// TODO(dmaretskyi): Internal crash with the current version of protobufjs.
// longs: String,
enums: String,
bytes: String,
defaults: false,
json: true,
};
/**

@@ -93,2 +102,12 @@ * Defines a generic encoder/decoder.

}
encodeToJson(value: T, options: EncodingOptions = {}): any {
const sub = this._encodeMapper(value, [this._schema, options]);
return this._type.toObject(sub, JSON_CONVERSION_OPTIONS);
}
decodeFromJson(data: any, options: EncodingOptions = {}): T {
const obj = this._type.toObject(this._type.fromObject(data), OBJECT_CONVERSION_OPTIONS);
return this._decodeMapper(obj, [this._schema, options]);
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc