From 91c08c3e24afeaba3d143cf637d4a06b645ec0c9 Mon Sep 17 00:00:00 2001 From: Oli Evans Date: Wed, 24 Jan 2024 14:27:08 +0000 Subject: [PATCH] feat: export car multicodec code Export the multicodec code for CAR from _the_ car module to avoid this sort of thing: https://github.com/search?q=org:web3-storage+0x0202&type=code License: MIT Signed-off-by: Oli Evans --- src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.js b/src/index.js index 5763b35..616f05a 100644 --- a/src/index.js +++ b/src/index.js @@ -9,6 +9,9 @@ import { CarWriter } from './writer.js' // @see https://www.iana.org/assignments/media-types/application/vnd.ipld.car export const contentType = 'application/vnd.ipld.car' +// @see: https://github.com/multiformats/multicodec/blob/696e701b6cb61f54b67a33b002201450d021f312/table.csv#L140 +export const code = 0x0202 + export { CarReader, CarBufferReader,