@enclave-vm/stream 2.9.2 → 2.10.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.
package/esm/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- // libs/enclavejs-stream/src/index.ts
1
+ // libs/stream/src/index.ts
2
2
  export * from "@enclave-vm/types";
3
3
 
4
- // libs/enclavejs-stream/src/ndjson.ts
4
+ // libs/stream/src/ndjson.ts
5
5
  import {
6
6
  parseStreamEventOrEncrypted
7
7
  } from "@enclave-vm/types";
@@ -203,7 +203,7 @@ async function* parseNdjsonStream(stream) {
203
203
  }
204
204
  }
205
205
 
206
- // libs/enclavejs-stream/src/crypto/ecdh.ts
206
+ // libs/stream/src/crypto/ecdh.ts
207
207
  import {
208
208
  SupportedCurve,
209
209
  EncryptionErrorCode,
@@ -342,7 +342,7 @@ async function processServerHello(serverHello) {
342
342
  };
343
343
  }
344
344
 
345
- // libs/enclavejs-stream/src/crypto/hkdf.ts
345
+ // libs/stream/src/crypto/hkdf.ts
346
346
  import { HkdfInfo, AES_256_KEY_SIZE, EncryptionErrorCode as EncryptionErrorCode2 } from "@enclave-vm/types";
347
347
  function toArrayBuffer(arr) {
348
348
  if (arr.byteOffset === 0 && arr.byteLength === arr.buffer.byteLength) {
@@ -429,7 +429,7 @@ async function deriveSessionCryptoKeys(sharedSecret, sessionId) {
429
429
  };
430
430
  }
431
431
 
432
- // libs/enclavejs-stream/src/crypto/aes-gcm.ts
432
+ // libs/stream/src/crypto/aes-gcm.ts
433
433
  import {
434
434
  AES_GCM_NONCE_SIZE,
435
435
  AES_GCM_TAG_SIZE,
@@ -683,7 +683,7 @@ var SessionEncryptionContext = class _SessionEncryptionContext {
683
683
  }
684
684
  };
685
685
 
686
- // libs/enclavejs-stream/src/reconnect.ts
686
+ // libs/stream/src/reconnect.ts
687
687
  var ConnectionState = {
688
688
  /** Not connected */
689
689
  Disconnected: "disconnected",
package/index.js CHANGED
@@ -18,7 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
- // libs/enclavejs-stream/src/index.ts
21
+ // libs/stream/src/index.ts
22
22
  var index_exports = {};
23
23
  __export(index_exports, {
24
24
  AesGcmError: () => AesGcmError,
@@ -64,7 +64,7 @@ __export(index_exports, {
64
64
  module.exports = __toCommonJS(index_exports);
65
65
  __reExport(index_exports, require("@enclave-vm/types"), module.exports);
66
66
 
67
- // libs/enclavejs-stream/src/ndjson.ts
67
+ // libs/stream/src/ndjson.ts
68
68
  var import_types = require("@enclave-vm/types");
69
69
  function serializeEvent(event) {
70
70
  return JSON.stringify(event);
@@ -264,7 +264,7 @@ async function* parseNdjsonStream(stream) {
264
264
  }
265
265
  }
266
266
 
267
- // libs/enclavejs-stream/src/crypto/ecdh.ts
267
+ // libs/stream/src/crypto/ecdh.ts
268
268
  var import_types2 = require("@enclave-vm/types");
269
269
  var EcdhError = class extends Error {
270
270
  constructor(message, code) {
@@ -397,7 +397,7 @@ async function processServerHello(serverHello) {
397
397
  };
398
398
  }
399
399
 
400
- // libs/enclavejs-stream/src/crypto/hkdf.ts
400
+ // libs/stream/src/crypto/hkdf.ts
401
401
  var import_types3 = require("@enclave-vm/types");
402
402
  function toArrayBuffer(arr) {
403
403
  if (arr.byteOffset === 0 && arr.byteLength === arr.buffer.byteLength) {
@@ -484,7 +484,7 @@ async function deriveSessionCryptoKeys(sharedSecret, sessionId) {
484
484
  };
485
485
  }
486
486
 
487
- // libs/enclavejs-stream/src/crypto/aes-gcm.ts
487
+ // libs/stream/src/crypto/aes-gcm.ts
488
488
  var import_types4 = require("@enclave-vm/types");
489
489
  function toArrayBuffer2(arr) {
490
490
  if (arr.byteOffset === 0 && arr.byteLength === arr.buffer.byteLength) {
@@ -730,7 +730,7 @@ var SessionEncryptionContext = class _SessionEncryptionContext {
730
730
  }
731
731
  };
732
732
 
733
- // libs/enclavejs-stream/src/reconnect.ts
733
+ // libs/stream/src/reconnect.ts
734
734
  var ConnectionState = {
735
735
  /** Not connected */
736
736
  Disconnected: "disconnected",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enclave-vm/stream",
3
- "version": "2.9.2",
3
+ "version": "2.10.0",
4
4
  "description": "Streaming protocol implementation for EnclaveJS runtime (NDJSON, encryption, reconnection)",
5
5
  "author": "AgentFront <info@agentfront.dev>",
6
6
  "homepage": "https://github.com/agentfront/enclave",
@@ -34,6 +34,6 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@enclave-vm/types": "2.9.2"
37
+ "@enclave-vm/types": "2.10.0"
38
38
  }
39
39
  }