From bc9b7397f740481a2be0e35b38ec8e666cab9618 Mon Sep 17 00:00:00 2001 From: Meno Abels Date: Mon, 16 Dec 2024 16:40:36 +0100 Subject: [PATCH] chore: fix the cli --- cborg/bin.js | 2 +- cborg/diagnostic.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cborg/bin.js b/cborg/bin.js index d74924e..4e7c352 100755 --- a/cborg/bin.js +++ b/cborg/bin.js @@ -1,7 +1,7 @@ #!/usr/bin/env node import process from 'process' -import { decode, encode } from '../cborg.js' +import { decode, encode } from 'cborg' import { tokensToDiagnostic, fromDiag } from './diagnostic.js' import { fromHex as _fromHex, toHex } from 'cborg/utils' diff --git a/cborg/diagnostic.js b/cborg/diagnostic.js index c596f58..2a4d907 100644 --- a/cborg/diagnostic.js +++ b/cborg/diagnostic.js @@ -1,6 +1,5 @@ import { Tokeniser } from './decode.js' -import { Type } from './token.js' -import { uintBoundaries, toHex, fromHex } from 'cborg/utils' +import { uintBoundaries, toHex, fromHex, Type } from 'cborg/utils' const utf8Encoder = new TextEncoder() const utf8Decoder = new TextDecoder()