@bcts/envelope 1.0.0-alpha.20 → 1.0.0-alpha.22
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.
- package/LICENSE +2 -1
- package/dist/index.cjs +142 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +37 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.iife.js +142 -0
- package/dist/index.iife.js.map +1 -1
- package/dist/index.mjs +142 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -27
- package/src/base/assertion.ts +6 -0
- package/src/base/assertions.ts +6 -0
- package/src/base/cbor.ts +6 -0
- package/src/base/digest.ts +4 -0
- package/src/base/elide.ts +6 -0
- package/src/base/envelope-decodable.ts +6 -0
- package/src/base/envelope-encodable.ts +6 -0
- package/src/base/envelope.ts +6 -0
- package/src/base/error.ts +6 -0
- package/src/base/index.ts +6 -0
- package/src/base/leaf.ts +6 -0
- package/src/base/queries.ts +6 -0
- package/src/base/ur.ts +6 -0
- package/src/base/walk.ts +6 -0
- package/src/base/wrap.ts +6 -0
- package/src/extension/attachment.ts +4 -0
- package/src/extension/compress.ts +6 -0
- package/src/extension/edge.ts +4 -0
- package/src/extension/encrypt.ts +6 -0
- package/src/extension/event.ts +4 -0
- package/src/extension/expression.ts +6 -0
- package/src/extension/index.ts +6 -0
- package/src/extension/proof.ts +6 -0
- package/src/extension/recipient.ts +4 -0
- package/src/extension/request.ts +4 -0
- package/src/extension/response.ts +4 -0
- package/src/extension/salt.ts +6 -0
- package/src/extension/secret.ts +6 -0
- package/src/extension/signature.ts +4 -0
- package/src/extension/sskr.ts +6 -0
- package/src/extension/types.ts +6 -0
- package/src/format/diagnostic.ts +6 -0
- package/src/format/envelope-summary.ts +6 -0
- package/src/format/format-context.ts +6 -0
- package/src/format/hex.ts +6 -0
- package/src/format/index.ts +6 -0
- package/src/format/mermaid.ts +6 -0
- package/src/format/notation.ts +6 -0
- package/src/format/tree.ts +6 -0
- package/src/index.ts +6 -0
- package/src/seal.ts +6 -0
- package/src/utils/index.ts +4 -0
- package/src/utils/string.ts +4 -0
package/package.json
CHANGED
|
@@ -1,29 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcts/envelope",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Gordian Envelope for TypeScript",
|
|
6
6
|
"license": "BSD-2-Clause-Patent",
|
|
7
|
-
"
|
|
8
|
-
{
|
|
9
|
-
"name": "Leonardo Custodio",
|
|
10
|
-
"email": "leonardo.custodio@parity.io",
|
|
11
|
-
"url": "https://github.com/leonardocustodio"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"name": "Karim Jedda",
|
|
15
|
-
"email": "karim@parity.io",
|
|
16
|
-
"url": "https://github.com/KarimJedda"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
7
|
+
"author": "Parity Technologies <admin@parity.io> (https://parity.io)",
|
|
19
8
|
"homepage": "https://bcts.dev",
|
|
20
9
|
"repository": {
|
|
21
10
|
"type": "git",
|
|
22
|
-
"url": "https://github.com/
|
|
11
|
+
"url": "https://github.com/paritytech/bcts",
|
|
23
12
|
"directory": "packages/envelope"
|
|
24
13
|
},
|
|
25
14
|
"bugs": {
|
|
26
|
-
"url": "https://github.com/
|
|
15
|
+
"url": "https://github.com/paritytech/bcts/issues"
|
|
27
16
|
},
|
|
28
17
|
"main": "dist/index.cjs",
|
|
29
18
|
"module": "dist/index.mjs",
|
|
@@ -71,26 +60,26 @@
|
|
|
71
60
|
"devDependencies": {
|
|
72
61
|
"@bcts/eslint": "^0.1.0",
|
|
73
62
|
"@bcts/tsconfig": "^0.1.0",
|
|
74
|
-
"@eslint/js": "^
|
|
75
|
-
"@types/node": "^25.2
|
|
63
|
+
"@eslint/js": "^10.0.1",
|
|
64
|
+
"@types/node": "^25.3.2",
|
|
76
65
|
"@types/pako": "^2.0.3",
|
|
77
|
-
"eslint": "^
|
|
66
|
+
"eslint": "^10.0.2",
|
|
78
67
|
"prettier": "^3.8.1",
|
|
79
68
|
"ts-node": "^10.9.2",
|
|
80
69
|
"tsdown": "^0.20.3",
|
|
81
|
-
"typedoc": "^0.28.
|
|
70
|
+
"typedoc": "^0.28.17",
|
|
82
71
|
"typescript": "^5.9.3",
|
|
83
72
|
"vitest": "^4.0.18"
|
|
84
73
|
},
|
|
85
74
|
"dependencies": {
|
|
86
|
-
"@bcts/components": "^1.0.0-alpha.
|
|
87
|
-
"@bcts/crypto": "^1.0.0-alpha.
|
|
88
|
-
"@bcts/dcbor": "^1.0.0-alpha.
|
|
89
|
-
"@bcts/known-values": "^1.0.0-alpha.
|
|
90
|
-
"@bcts/rand": "^1.0.0-alpha.
|
|
91
|
-
"@bcts/sskr": "^1.0.0-alpha.
|
|
92
|
-
"@bcts/tags": "^1.0.0-alpha.
|
|
93
|
-
"@bcts/uniform-resources": "^1.0.0-alpha.
|
|
75
|
+
"@bcts/components": "^1.0.0-alpha.22",
|
|
76
|
+
"@bcts/crypto": "^1.0.0-alpha.22",
|
|
77
|
+
"@bcts/dcbor": "^1.0.0-alpha.22",
|
|
78
|
+
"@bcts/known-values": "^1.0.0-alpha.22",
|
|
79
|
+
"@bcts/rand": "^1.0.0-alpha.22",
|
|
80
|
+
"@bcts/sskr": "^1.0.0-alpha.22",
|
|
81
|
+
"@bcts/tags": "^1.0.0-alpha.22",
|
|
82
|
+
"@bcts/uniform-resources": "^1.0.0-alpha.22",
|
|
94
83
|
"pako": "^2.1.0"
|
|
95
84
|
}
|
|
96
85
|
}
|
package/src/base/assertion.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import { Digest, type DigestProvider } from "./digest";
|
|
2
8
|
import { Envelope } from "./envelope";
|
|
3
9
|
import { type EnvelopeEncodable } from "./envelope-encodable";
|
package/src/base/assertions.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import { Envelope } from "./envelope";
|
|
2
8
|
import type { EnvelopeEncodableValue } from "./envelope-encodable";
|
|
3
9
|
import { EnvelopeError } from "./error";
|
package/src/base/cbor.ts
CHANGED
package/src/base/digest.ts
CHANGED
package/src/base/elide.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import type { Cbor } from "@bcts/dcbor";
|
|
2
8
|
import { tryIntoText, tryIntoBool, tryIntoByteString, isNull, decodeCbor } from "@bcts/dcbor";
|
|
3
9
|
import { Envelope } from "./envelope";
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import type { CborTaggedEncodable } from "@bcts/dcbor";
|
|
2
8
|
import type { KnownValue } from "@bcts/known-values";
|
|
3
9
|
import type { Envelope } from "./envelope";
|
package/src/base/envelope.ts
CHANGED
package/src/base/error.ts
CHANGED
package/src/base/index.ts
CHANGED
package/src/base/leaf.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import type { Cbor } from "@bcts/dcbor";
|
|
2
8
|
import { isNumber, isNaN, asArray, asMap, asText } from "@bcts/dcbor";
|
|
3
9
|
import type { KnownValue } from "@bcts/known-values";
|
package/src/base/queries.ts
CHANGED
package/src/base/ur.ts
CHANGED
package/src/base/walk.ts
CHANGED
package/src/base/wrap.ts
CHANGED
package/src/extension/edge.ts
CHANGED
package/src/extension/encrypt.ts
CHANGED
package/src/extension/event.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import { Envelope } from "../base/envelope";
|
|
2
8
|
import { type EnvelopeEncodable, type EnvelopeEncodableValue } from "../base/envelope-encodable";
|
|
3
9
|
import { EnvelopeError } from "../base/error";
|
package/src/extension/index.ts
CHANGED
package/src/extension/proof.ts
CHANGED
package/src/extension/request.ts
CHANGED
package/src/extension/salt.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import { Envelope } from "../base/envelope";
|
|
2
8
|
import { EnvelopeError } from "../base/error";
|
|
3
9
|
import type { EnvelopeEncodableValue } from "../base/envelope-encodable";
|
package/src/extension/secret.ts
CHANGED
package/src/extension/sskr.ts
CHANGED
package/src/extension/types.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import { Envelope } from "../base/envelope";
|
|
2
8
|
import { type EnvelopeEncodableValue } from "../base/envelope-encodable";
|
|
3
9
|
import { EnvelopeError } from "../base/error";
|
package/src/format/diagnostic.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
/// Envelope summary functionality for generating short text representations.
|
|
2
8
|
///
|
|
3
9
|
/// This module provides the EnvelopeSummary interface and implementations
|
package/src/format/hex.ts
CHANGED
package/src/format/index.ts
CHANGED
package/src/format/mermaid.ts
CHANGED
package/src/format/notation.ts
CHANGED
package/src/format/tree.ts
CHANGED
package/src/index.ts
CHANGED
package/src/seal.ts
CHANGED
package/src/utils/index.ts
CHANGED
package/src/utils/string.ts
CHANGED