@cardanowall/crypto-core 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ type CanonicalCborValue = null | boolean | number | bigint | string | Uint8Array | readonly CanonicalCborValue[] | {
2
+ readonly [key: string]: CanonicalCborValue;
3
+ } | ReadonlyMap<string | number, CanonicalCborValue>;
4
+ declare function encodeCanonicalCbor(value: CanonicalCborValue): Uint8Array;
5
+ declare function decodeCanonicalCbor(bytes: Uint8Array): unknown;
6
+
7
+ export { type CanonicalCborValue as C, decodeCanonicalCbor as d, encodeCanonicalCbor as e };
@@ -0,0 +1,7 @@
1
+ type CanonicalCborValue = null | boolean | number | bigint | string | Uint8Array | readonly CanonicalCborValue[] | {
2
+ readonly [key: string]: CanonicalCborValue;
3
+ } | ReadonlyMap<string | number, CanonicalCborValue>;
4
+ declare function encodeCanonicalCbor(value: CanonicalCborValue): Uint8Array;
5
+ declare function decodeCanonicalCbor(bytes: Uint8Array): unknown;
6
+
7
+ export { type CanonicalCborValue as C, decodeCanonicalCbor as d, encodeCanonicalCbor as e };
package/dist/cbor.d.cts CHANGED
@@ -1,8 +1,4 @@
1
- type CanonicalCborValue = null | boolean | number | bigint | string | Uint8Array | readonly CanonicalCborValue[] | {
2
- readonly [key: string]: CanonicalCborValue;
3
- } | ReadonlyMap<string | number, CanonicalCborValue>;
4
- declare function encodeCanonicalCbor(value: CanonicalCborValue): Uint8Array;
5
- declare function decodeCanonicalCbor(bytes: Uint8Array): unknown;
1
+ export { C as CanonicalCborValue, d as decodeCanonicalCbor, e as encodeCanonicalCbor } from './canonical-DHeJLYDR.cjs';
6
2
 
7
3
  type CanonicalCborErrorCode = 'MALFORMED_CBOR';
8
4
  declare class CanonicalCborError extends Error {
@@ -14,4 +10,4 @@ declare class CanonicalCborError extends Error {
14
10
 
15
11
  declare function decodeCbor(bytes: Uint8Array): unknown;
16
12
 
17
- export { CanonicalCborError, type CanonicalCborErrorCode, type CanonicalCborValue, decodeCanonicalCbor, decodeCbor, encodeCanonicalCbor };
13
+ export { CanonicalCborError, type CanonicalCborErrorCode, decodeCbor };
package/dist/cbor.d.ts CHANGED
@@ -1,8 +1,4 @@
1
- type CanonicalCborValue = null | boolean | number | bigint | string | Uint8Array | readonly CanonicalCborValue[] | {
2
- readonly [key: string]: CanonicalCborValue;
3
- } | ReadonlyMap<string | number, CanonicalCborValue>;
4
- declare function encodeCanonicalCbor(value: CanonicalCborValue): Uint8Array;
5
- declare function decodeCanonicalCbor(bytes: Uint8Array): unknown;
1
+ export { C as CanonicalCborValue, d as decodeCanonicalCbor, e as encodeCanonicalCbor } from './canonical-DHeJLYDR.js';
6
2
 
7
3
  type CanonicalCborErrorCode = 'MALFORMED_CBOR';
8
4
  declare class CanonicalCborError extends Error {
@@ -14,4 +10,4 @@ declare class CanonicalCborError extends Error {
14
10
 
15
11
  declare function decodeCbor(bytes: Uint8Array): unknown;
16
12
 
17
- export { CanonicalCborError, type CanonicalCborErrorCode, type CanonicalCborValue, decodeCanonicalCbor, decodeCbor, encodeCanonicalCbor };
13
+ export { CanonicalCborError, type CanonicalCborErrorCode, decodeCbor };