sealnet 1.5.0 → 1.5.1
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/README.md +2 -2
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/dist/index.cjs +29 -93
- package/dist/index.js +29 -93
- package/dist/seal.global.js +2 -2
- package/dist/seal.global.js.sha384 +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,8 +20,8 @@ and the SDK arrives as one global.
|
|
|
20
20
|
|
|
21
21
|
```html
|
|
22
22
|
<script
|
|
23
|
-
src="https://seal.net/sdk/v1.5.
|
|
24
|
-
integrity="sha384-
|
|
23
|
+
src="https://seal.net/sdk/v1.5.1/seal.js"
|
|
24
|
+
integrity="sha384-umXk1O37adiOwisfe53csecMymrXfiJq3nIe9XJvv71LVldK36c79yffRotoVxcB"
|
|
25
25
|
crossorigin="anonymous"
|
|
26
26
|
></script>
|
|
27
27
|
<script>
|
package/THIRD-PARTY-NOTICES.txt
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2173,22 +2173,22 @@ function buildHeader(segmentSize = DEFAULT_SEGMENT_SIZE) {
|
|
|
2173
2173
|
if (segmentSize < MIN_SEGMENT_SIZE || segmentSize > MAX_SEGMENT_SIZE) {
|
|
2174
2174
|
throw new Error(`Segment size must be between ${MIN_SEGMENT_SIZE} and ${MAX_SEGMENT_SIZE}`);
|
|
2175
2175
|
}
|
|
2176
|
-
const
|
|
2177
|
-
|
|
2178
|
-
const view = new DataView(
|
|
2176
|
+
const header2 = new Uint8Array(HEADER_LENGTH);
|
|
2177
|
+
header2.set(MAGIC, 0);
|
|
2178
|
+
const view = new DataView(header2.buffer);
|
|
2179
2179
|
view.setUint32(MAGIC_LENGTH, segmentSize, true);
|
|
2180
|
-
return
|
|
2180
|
+
return header2;
|
|
2181
2181
|
}
|
|
2182
|
-
function parseHeader(
|
|
2183
|
-
if (
|
|
2184
|
-
throw new Error(`Invalid header: expected ${HEADER_LENGTH} bytes, got ${
|
|
2182
|
+
function parseHeader(header2) {
|
|
2183
|
+
if (header2.length < HEADER_LENGTH) {
|
|
2184
|
+
throw new Error(`Invalid header: expected ${HEADER_LENGTH} bytes, got ${header2.length}`);
|
|
2185
2185
|
}
|
|
2186
2186
|
for (let i = 0; i < MAGIC_LENGTH; i++) {
|
|
2187
|
-
if (
|
|
2187
|
+
if (header2[i] !== MAGIC[i]) {
|
|
2188
2188
|
throw new Error("Invalid file: not an AEON encrypted file");
|
|
2189
2189
|
}
|
|
2190
2190
|
}
|
|
2191
|
-
const view = new DataView(
|
|
2191
|
+
const view = new DataView(header2.buffer, header2.byteOffset, header2.byteLength);
|
|
2192
2192
|
const segmentSize = view.getUint32(MAGIC_LENGTH, true);
|
|
2193
2193
|
if (segmentSize < MIN_SEGMENT_SIZE || segmentSize > MAX_SEGMENT_SIZE) {
|
|
2194
2194
|
throw new Error(`Invalid segment size: ${segmentSize}`);
|
|
@@ -2586,71 +2586,7 @@ var seal_address_v1_default = {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
]
|
|
2588
2588
|
};
|
|
2589
|
-
var
|
|
2590
|
-
header: "X-Seal-Client",
|
|
2591
|
-
headerless: {
|
|
2592
|
-
seal: "allow",
|
|
2593
|
-
pro: "allow"
|
|
2594
|
-
},
|
|
2595
|
-
clients: {
|
|
2596
|
-
cli: {
|
|
2597
|
-
min: "0",
|
|
2598
|
-
latest: "1.6.0",
|
|
2599
|
-
update: "seal update"
|
|
2600
|
-
},
|
|
2601
|
-
"sealnet-py": {
|
|
2602
|
-
min: "0",
|
|
2603
|
-
latest: "1.4.0",
|
|
2604
|
-
update: "pip install -U sealnet"
|
|
2605
|
-
},
|
|
2606
|
-
"sealnet-js": {
|
|
2607
|
-
min: "0",
|
|
2608
|
-
latest: "1.4.0",
|
|
2609
|
-
update: "npm i sealnet@latest"
|
|
2610
|
-
},
|
|
2611
|
-
"sdk-web": {
|
|
2612
|
-
min: "0",
|
|
2613
|
-
latest: "1.4.0",
|
|
2614
|
-
integrity: "sha384-tLe4sOcc/DDwe9iof3rJafPeSusTQaHeiGfS4nrsrfVTCk/rudbOq/uEmvudg9re",
|
|
2615
|
-
update: "replace the SEAL script tag with the one on https://seal.net/docs/sdk"
|
|
2616
|
-
},
|
|
2617
|
-
mcp: {
|
|
2618
|
-
min: "0",
|
|
2619
|
-
latest: "0.7.0",
|
|
2620
|
-
update: "npx -y sealnet-mcp@latest"
|
|
2621
|
-
},
|
|
2622
|
-
"tg-bot": {
|
|
2623
|
-
min: "0",
|
|
2624
|
-
latest: "1.4.0",
|
|
2625
|
-
update: "SEAL is updating this bot: try again in a few minutes"
|
|
2626
|
-
},
|
|
2627
|
-
"slack-bot": {
|
|
2628
|
-
min: "0",
|
|
2629
|
-
latest: "2.0.0",
|
|
2630
|
-
update: "ask the bot's operator to rebuild it from the latest SEAL release"
|
|
2631
|
-
},
|
|
2632
|
-
extension: {
|
|
2633
|
-
min: "0",
|
|
2634
|
-
latest: "1.0.0",
|
|
2635
|
-
update: "update the SEAL extension on your browser's extensions page"
|
|
2636
|
-
},
|
|
2637
|
-
"sealpro-cli": {
|
|
2638
|
-
min: "0",
|
|
2639
|
-
latest: "1.0.0",
|
|
2640
|
-
update: "rebuild SEAL Pro CLI from the repository"
|
|
2641
|
-
},
|
|
2642
|
-
web: {
|
|
2643
|
-
min: "0",
|
|
2644
|
-
latest: "0",
|
|
2645
|
-
update: "reload the page"
|
|
2646
|
-
},
|
|
2647
|
-
"pro-web": {
|
|
2648
|
-
min: "0",
|
|
2649
|
-
latest: "0",
|
|
2650
|
-
update: "reload the page"
|
|
2651
|
-
}
|
|
2652
|
-
}
|
|
2653
|
-
};
|
|
2589
|
+
var header = "X-Seal-Client";
|
|
2654
2590
|
var upload_default = {
|
|
2655
2591
|
version: 1,
|
|
2656
2592
|
upload: {
|
|
@@ -2693,7 +2629,7 @@ function setClientIdentity(name2, version) {
|
|
|
2693
2629
|
clientIdentity = `${name2}/${version}`;
|
|
2694
2630
|
}
|
|
2695
2631
|
function clientHeaders() {
|
|
2696
|
-
return clientIdentity === void 0 ? {} : { [
|
|
2632
|
+
return clientIdentity === void 0 ? {} : { [header]: clientIdentity };
|
|
2697
2633
|
}
|
|
2698
2634
|
var BackendError = class extends Error {
|
|
2699
2635
|
constructor(message, code, status, extra = {}) {
|
|
@@ -3654,10 +3590,10 @@ async function encryptBlobWithHash(blob, key2, segmentSize = DEFAULT_SEGMENT_SIZ
|
|
|
3654
3590
|
const hasher = computeHash ? createSha256Hasher() : null;
|
|
3655
3591
|
const md5 = computeHash ? new Md5() : null;
|
|
3656
3592
|
const parts = [];
|
|
3657
|
-
const
|
|
3658
|
-
parts.push(new Blob([
|
|
3659
|
-
if (hasher) hasher.update(
|
|
3660
|
-
md5?.update(
|
|
3593
|
+
const header2 = encryptor.getHeader();
|
|
3594
|
+
parts.push(new Blob([header2.buffer.slice(header2.byteOffset, header2.byteOffset + header2.byteLength)]));
|
|
3595
|
+
if (hasher) hasher.update(header2);
|
|
3596
|
+
md5?.update(header2);
|
|
3661
3597
|
let offset = 0;
|
|
3662
3598
|
while (offset < blob.size) {
|
|
3663
3599
|
const end = Math.min(offset + segmentSize, blob.size);
|
|
@@ -3696,8 +3632,8 @@ var Decryptor = class {
|
|
|
3696
3632
|
async init() {
|
|
3697
3633
|
await initWasm();
|
|
3698
3634
|
}
|
|
3699
|
-
parseHeader(
|
|
3700
|
-
const { segmentSize } = parseHeader(
|
|
3635
|
+
parseHeader(header2) {
|
|
3636
|
+
const { segmentSize } = parseHeader(header2);
|
|
3701
3637
|
this.segmentSize = segmentSize;
|
|
3702
3638
|
}
|
|
3703
3639
|
getSegmentSize() {
|
|
@@ -3764,11 +3700,11 @@ function createDecryptStream(key2, options = {}) {
|
|
|
3764
3700
|
async transform(chunk, controller) {
|
|
3765
3701
|
if (chunk.length > 0) pushPending(pending, chunk);
|
|
3766
3702
|
if (!headerParsed && pending.bytes >= HEADER_LENGTH) {
|
|
3767
|
-
const
|
|
3768
|
-
if (!isAeonFormat(
|
|
3703
|
+
const header2 = drainPending(pending, HEADER_LENGTH);
|
|
3704
|
+
if (!isAeonFormat(header2)) {
|
|
3769
3705
|
throw new Error("Not an AEON encrypted file");
|
|
3770
3706
|
}
|
|
3771
|
-
decryptor.parseHeader(
|
|
3707
|
+
decryptor.parseHeader(header2);
|
|
3772
3708
|
encSegmentSize = decryptor.getEncryptedSegmentSize();
|
|
3773
3709
|
headerParsed = true;
|
|
3774
3710
|
}
|
|
@@ -3821,7 +3757,7 @@ async function runCryptoPipeline(options) {
|
|
|
3821
3757
|
const encryptor = new Encryptor({ key: key2, segmentSize });
|
|
3822
3758
|
await encryptor.init();
|
|
3823
3759
|
const hasher = createSha256Hasher();
|
|
3824
|
-
const
|
|
3760
|
+
const header2 = buildHeader(segmentSize);
|
|
3825
3761
|
let headerPending = true;
|
|
3826
3762
|
let segmentNumber = 0;
|
|
3827
3763
|
let partNumber = 0;
|
|
@@ -3901,10 +3837,10 @@ async function runCryptoPipeline(options) {
|
|
|
3901
3837
|
log.debug(`encrypt segment=${segmentNumber} bytes=${plaintext.length} time=${Math.round(performance.now() - tEncStart)}ms`);
|
|
3902
3838
|
let partData;
|
|
3903
3839
|
if (headerPending) {
|
|
3904
|
-
partData = new Uint8Array(
|
|
3905
|
-
partData.set(
|
|
3906
|
-
partData.set(encrypted,
|
|
3907
|
-
hasher.update(
|
|
3840
|
+
partData = new Uint8Array(header2.length + encrypted.length);
|
|
3841
|
+
partData.set(header2, 0);
|
|
3842
|
+
partData.set(encrypted, header2.length);
|
|
3843
|
+
hasher.update(header2);
|
|
3908
3844
|
headerPending = false;
|
|
3909
3845
|
} else {
|
|
3910
3846
|
partData = encrypted;
|
|
@@ -3939,10 +3875,10 @@ async function runCryptoPipeline(options) {
|
|
|
3939
3875
|
await encryptOneSegment(drainSegment(pendingBytes));
|
|
3940
3876
|
}
|
|
3941
3877
|
if (headerPending) {
|
|
3942
|
-
hasher.update(
|
|
3878
|
+
hasher.update(header2);
|
|
3943
3879
|
headerPending = false;
|
|
3944
|
-
ciphertextPending.push(
|
|
3945
|
-
ciphertextPendingBytes +=
|
|
3880
|
+
ciphertextPending.push(header2);
|
|
3881
|
+
ciphertextPendingBytes += header2.length;
|
|
3946
3882
|
}
|
|
3947
3883
|
if (ciphertextPendingBytes > 0) {
|
|
3948
3884
|
await emitPart(await drainCiphertextPart(ciphertextPendingBytes));
|
|
@@ -7597,7 +7533,7 @@ async function dismissItem(api, item, opts) {
|
|
|
7597
7533
|
}
|
|
7598
7534
|
|
|
7599
7535
|
// src/index.ts
|
|
7600
|
-
var [CLIENT_NAME = "", CLIENT_VERSION = ""] = "sealnet-js/1.5.
|
|
7536
|
+
var [CLIENT_NAME = "", CLIENT_VERSION = ""] = "sealnet-js/1.5.1".split("/");
|
|
7601
7537
|
var SealClient = class {
|
|
7602
7538
|
seals;
|
|
7603
7539
|
api;
|
package/dist/index.js
CHANGED
|
@@ -2135,22 +2135,22 @@ function buildHeader(segmentSize = DEFAULT_SEGMENT_SIZE) {
|
|
|
2135
2135
|
if (segmentSize < MIN_SEGMENT_SIZE || segmentSize > MAX_SEGMENT_SIZE) {
|
|
2136
2136
|
throw new Error(`Segment size must be between ${MIN_SEGMENT_SIZE} and ${MAX_SEGMENT_SIZE}`);
|
|
2137
2137
|
}
|
|
2138
|
-
const
|
|
2139
|
-
|
|
2140
|
-
const view = new DataView(
|
|
2138
|
+
const header2 = new Uint8Array(HEADER_LENGTH);
|
|
2139
|
+
header2.set(MAGIC, 0);
|
|
2140
|
+
const view = new DataView(header2.buffer);
|
|
2141
2141
|
view.setUint32(MAGIC_LENGTH, segmentSize, true);
|
|
2142
|
-
return
|
|
2142
|
+
return header2;
|
|
2143
2143
|
}
|
|
2144
|
-
function parseHeader(
|
|
2145
|
-
if (
|
|
2146
|
-
throw new Error(`Invalid header: expected ${HEADER_LENGTH} bytes, got ${
|
|
2144
|
+
function parseHeader(header2) {
|
|
2145
|
+
if (header2.length < HEADER_LENGTH) {
|
|
2146
|
+
throw new Error(`Invalid header: expected ${HEADER_LENGTH} bytes, got ${header2.length}`);
|
|
2147
2147
|
}
|
|
2148
2148
|
for (let i = 0; i < MAGIC_LENGTH; i++) {
|
|
2149
|
-
if (
|
|
2149
|
+
if (header2[i] !== MAGIC[i]) {
|
|
2150
2150
|
throw new Error("Invalid file: not an AEON encrypted file");
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
|
-
const view = new DataView(
|
|
2153
|
+
const view = new DataView(header2.buffer, header2.byteOffset, header2.byteLength);
|
|
2154
2154
|
const segmentSize = view.getUint32(MAGIC_LENGTH, true);
|
|
2155
2155
|
if (segmentSize < MIN_SEGMENT_SIZE || segmentSize > MAX_SEGMENT_SIZE) {
|
|
2156
2156
|
throw new Error(`Invalid segment size: ${segmentSize}`);
|
|
@@ -2548,71 +2548,7 @@ var seal_address_v1_default = {
|
|
|
2548
2548
|
}
|
|
2549
2549
|
]
|
|
2550
2550
|
};
|
|
2551
|
-
var
|
|
2552
|
-
header: "X-Seal-Client",
|
|
2553
|
-
headerless: {
|
|
2554
|
-
seal: "allow",
|
|
2555
|
-
pro: "allow"
|
|
2556
|
-
},
|
|
2557
|
-
clients: {
|
|
2558
|
-
cli: {
|
|
2559
|
-
min: "0",
|
|
2560
|
-
latest: "1.6.0",
|
|
2561
|
-
update: "seal update"
|
|
2562
|
-
},
|
|
2563
|
-
"sealnet-py": {
|
|
2564
|
-
min: "0",
|
|
2565
|
-
latest: "1.4.0",
|
|
2566
|
-
update: "pip install -U sealnet"
|
|
2567
|
-
},
|
|
2568
|
-
"sealnet-js": {
|
|
2569
|
-
min: "0",
|
|
2570
|
-
latest: "1.4.0",
|
|
2571
|
-
update: "npm i sealnet@latest"
|
|
2572
|
-
},
|
|
2573
|
-
"sdk-web": {
|
|
2574
|
-
min: "0",
|
|
2575
|
-
latest: "1.4.0",
|
|
2576
|
-
integrity: "sha384-tLe4sOcc/DDwe9iof3rJafPeSusTQaHeiGfS4nrsrfVTCk/rudbOq/uEmvudg9re",
|
|
2577
|
-
update: "replace the SEAL script tag with the one on https://seal.net/docs/sdk"
|
|
2578
|
-
},
|
|
2579
|
-
mcp: {
|
|
2580
|
-
min: "0",
|
|
2581
|
-
latest: "0.7.0",
|
|
2582
|
-
update: "npx -y sealnet-mcp@latest"
|
|
2583
|
-
},
|
|
2584
|
-
"tg-bot": {
|
|
2585
|
-
min: "0",
|
|
2586
|
-
latest: "1.4.0",
|
|
2587
|
-
update: "SEAL is updating this bot: try again in a few minutes"
|
|
2588
|
-
},
|
|
2589
|
-
"slack-bot": {
|
|
2590
|
-
min: "0",
|
|
2591
|
-
latest: "2.0.0",
|
|
2592
|
-
update: "ask the bot's operator to rebuild it from the latest SEAL release"
|
|
2593
|
-
},
|
|
2594
|
-
extension: {
|
|
2595
|
-
min: "0",
|
|
2596
|
-
latest: "1.0.0",
|
|
2597
|
-
update: "update the SEAL extension on your browser's extensions page"
|
|
2598
|
-
},
|
|
2599
|
-
"sealpro-cli": {
|
|
2600
|
-
min: "0",
|
|
2601
|
-
latest: "1.0.0",
|
|
2602
|
-
update: "rebuild SEAL Pro CLI from the repository"
|
|
2603
|
-
},
|
|
2604
|
-
web: {
|
|
2605
|
-
min: "0",
|
|
2606
|
-
latest: "0",
|
|
2607
|
-
update: "reload the page"
|
|
2608
|
-
},
|
|
2609
|
-
"pro-web": {
|
|
2610
|
-
min: "0",
|
|
2611
|
-
latest: "0",
|
|
2612
|
-
update: "reload the page"
|
|
2613
|
-
}
|
|
2614
|
-
}
|
|
2615
|
-
};
|
|
2551
|
+
var header = "X-Seal-Client";
|
|
2616
2552
|
var upload_default = {
|
|
2617
2553
|
version: 1,
|
|
2618
2554
|
upload: {
|
|
@@ -2655,7 +2591,7 @@ function setClientIdentity(name2, version) {
|
|
|
2655
2591
|
clientIdentity = `${name2}/${version}`;
|
|
2656
2592
|
}
|
|
2657
2593
|
function clientHeaders() {
|
|
2658
|
-
return clientIdentity === void 0 ? {} : { [
|
|
2594
|
+
return clientIdentity === void 0 ? {} : { [header]: clientIdentity };
|
|
2659
2595
|
}
|
|
2660
2596
|
var BackendError = class extends Error {
|
|
2661
2597
|
constructor(message, code, status, extra = {}) {
|
|
@@ -3616,10 +3552,10 @@ async function encryptBlobWithHash(blob, key2, segmentSize = DEFAULT_SEGMENT_SIZ
|
|
|
3616
3552
|
const hasher = computeHash ? createSha256Hasher() : null;
|
|
3617
3553
|
const md5 = computeHash ? new Md5() : null;
|
|
3618
3554
|
const parts = [];
|
|
3619
|
-
const
|
|
3620
|
-
parts.push(new Blob([
|
|
3621
|
-
if (hasher) hasher.update(
|
|
3622
|
-
md5?.update(
|
|
3555
|
+
const header2 = encryptor.getHeader();
|
|
3556
|
+
parts.push(new Blob([header2.buffer.slice(header2.byteOffset, header2.byteOffset + header2.byteLength)]));
|
|
3557
|
+
if (hasher) hasher.update(header2);
|
|
3558
|
+
md5?.update(header2);
|
|
3623
3559
|
let offset = 0;
|
|
3624
3560
|
while (offset < blob.size) {
|
|
3625
3561
|
const end = Math.min(offset + segmentSize, blob.size);
|
|
@@ -3658,8 +3594,8 @@ var Decryptor = class {
|
|
|
3658
3594
|
async init() {
|
|
3659
3595
|
await initWasm();
|
|
3660
3596
|
}
|
|
3661
|
-
parseHeader(
|
|
3662
|
-
const { segmentSize } = parseHeader(
|
|
3597
|
+
parseHeader(header2) {
|
|
3598
|
+
const { segmentSize } = parseHeader(header2);
|
|
3663
3599
|
this.segmentSize = segmentSize;
|
|
3664
3600
|
}
|
|
3665
3601
|
getSegmentSize() {
|
|
@@ -3726,11 +3662,11 @@ function createDecryptStream(key2, options = {}) {
|
|
|
3726
3662
|
async transform(chunk, controller) {
|
|
3727
3663
|
if (chunk.length > 0) pushPending(pending, chunk);
|
|
3728
3664
|
if (!headerParsed && pending.bytes >= HEADER_LENGTH) {
|
|
3729
|
-
const
|
|
3730
|
-
if (!isAeonFormat(
|
|
3665
|
+
const header2 = drainPending(pending, HEADER_LENGTH);
|
|
3666
|
+
if (!isAeonFormat(header2)) {
|
|
3731
3667
|
throw new Error("Not an AEON encrypted file");
|
|
3732
3668
|
}
|
|
3733
|
-
decryptor.parseHeader(
|
|
3669
|
+
decryptor.parseHeader(header2);
|
|
3734
3670
|
encSegmentSize = decryptor.getEncryptedSegmentSize();
|
|
3735
3671
|
headerParsed = true;
|
|
3736
3672
|
}
|
|
@@ -3783,7 +3719,7 @@ async function runCryptoPipeline(options) {
|
|
|
3783
3719
|
const encryptor = new Encryptor({ key: key2, segmentSize });
|
|
3784
3720
|
await encryptor.init();
|
|
3785
3721
|
const hasher = createSha256Hasher();
|
|
3786
|
-
const
|
|
3722
|
+
const header2 = buildHeader(segmentSize);
|
|
3787
3723
|
let headerPending = true;
|
|
3788
3724
|
let segmentNumber = 0;
|
|
3789
3725
|
let partNumber = 0;
|
|
@@ -3863,10 +3799,10 @@ async function runCryptoPipeline(options) {
|
|
|
3863
3799
|
log.debug(`encrypt segment=${segmentNumber} bytes=${plaintext.length} time=${Math.round(performance.now() - tEncStart)}ms`);
|
|
3864
3800
|
let partData;
|
|
3865
3801
|
if (headerPending) {
|
|
3866
|
-
partData = new Uint8Array(
|
|
3867
|
-
partData.set(
|
|
3868
|
-
partData.set(encrypted,
|
|
3869
|
-
hasher.update(
|
|
3802
|
+
partData = new Uint8Array(header2.length + encrypted.length);
|
|
3803
|
+
partData.set(header2, 0);
|
|
3804
|
+
partData.set(encrypted, header2.length);
|
|
3805
|
+
hasher.update(header2);
|
|
3870
3806
|
headerPending = false;
|
|
3871
3807
|
} else {
|
|
3872
3808
|
partData = encrypted;
|
|
@@ -3901,10 +3837,10 @@ async function runCryptoPipeline(options) {
|
|
|
3901
3837
|
await encryptOneSegment(drainSegment(pendingBytes));
|
|
3902
3838
|
}
|
|
3903
3839
|
if (headerPending) {
|
|
3904
|
-
hasher.update(
|
|
3840
|
+
hasher.update(header2);
|
|
3905
3841
|
headerPending = false;
|
|
3906
|
-
ciphertextPending.push(
|
|
3907
|
-
ciphertextPendingBytes +=
|
|
3842
|
+
ciphertextPending.push(header2);
|
|
3843
|
+
ciphertextPendingBytes += header2.length;
|
|
3908
3844
|
}
|
|
3909
3845
|
if (ciphertextPendingBytes > 0) {
|
|
3910
3846
|
await emitPart(await drainCiphertextPart(ciphertextPendingBytes));
|
|
@@ -7559,7 +7495,7 @@ async function dismissItem(api, item, opts) {
|
|
|
7559
7495
|
}
|
|
7560
7496
|
|
|
7561
7497
|
// src/index.ts
|
|
7562
|
-
var [CLIENT_NAME = "", CLIENT_VERSION = ""] = "sealnet-js/1.5.
|
|
7498
|
+
var [CLIENT_NAME = "", CLIENT_VERSION = ""] = "sealnet-js/1.5.1".split("/");
|
|
7563
7499
|
var SealClient = class {
|
|
7564
7500
|
seals;
|
|
7565
7501
|
api;
|