@floegence/flowersec-core 7.4.0 → 7.5.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/THIRD_PARTY_NOTICES.md +5 -5
- package/dist/browser/connectSessionV3.d.ts +2 -1
- package/dist/browser/connectSessionV3.js +4 -1
- package/dist/node/acceptorV3.js +2 -2
- package/dist/node/tunnelRuntimeV3.js +3 -4
- package/dist/node/webSocketServerV3.js +1 -1
- package/dist/proxy/index.d.ts +1 -1
- package/dist/proxy/index.js +1 -1
- package/dist/proxy/integration.d.ts +12 -0
- package/dist/proxy/integration.js +33 -0
- package/dist/proxy/runtime.d.ts +2 -1
- package/dist/proxy/runtime.js +13 -5
- package/dist/proxy/sessionRotation.d.ts +26 -0
- package/dist/proxy/sessionRotation.js +131 -0
- package/dist/v3/connectionController.d.ts +9 -2
- package/dist/v3/connectionController.js +23 -6
- package/dist/v3/contract.d.ts +2 -0
- package/dist/v3/publicSession.d.ts +5 -1
- package/dist/v3/publicSession.js +6 -0
- package/dist/v3/session.d.ts +3 -0
- package/dist/v3/session.js +34 -0
- package/package.json +3 -3
- package/sbom/cyclonedx.json +31 -31
- package/sbom/spdx.json +38 -38
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
This file is generated from the canonical Flowersec source dependency inventory for flowersec-ts.
|
|
4
4
|
Do not edit it manually. License decisions are reviewed by the repository source license policy.
|
|
5
5
|
|
|
6
|
-
- @floegence/flowersec-node-native 7.
|
|
7
|
-
- @floegence/flowersec-node-native-darwin-arm64 7.
|
|
8
|
-
- @floegence/flowersec-node-native-darwin-x64 7.
|
|
9
|
-
- @floegence/flowersec-node-native-linux-arm64-gnu 7.
|
|
10
|
-
- @floegence/flowersec-node-native-linux-x64-gnu 7.
|
|
6
|
+
- @floegence/flowersec-node-native 7.5.0 (Declared: MIT; selected: MIT; source: https://github.com/floegence/flowersec.git)
|
|
7
|
+
- @floegence/flowersec-node-native-darwin-arm64 7.5.0 (Declared: MIT; selected: MIT; source: https://github.com/floegence/flowersec.git)
|
|
8
|
+
- @floegence/flowersec-node-native-darwin-x64 7.5.0 (Declared: MIT; selected: MIT; source: https://github.com/floegence/flowersec.git)
|
|
9
|
+
- @floegence/flowersec-node-native-linux-arm64-gnu 7.5.0 (Declared: MIT; selected: MIT; source: https://github.com/floegence/flowersec.git)
|
|
10
|
+
- @floegence/flowersec-node-native-linux-x64-gnu 7.5.0 (Declared: MIT; selected: MIT; source: https://github.com/floegence/flowersec.git)
|
|
11
11
|
- @noble/ciphers 2.4.0 (Declared: MIT; selected: MIT; source: https://registry.npmjs.org/@noble/ciphers/-/ciphers-2.4.0.tgz)
|
|
12
12
|
- @noble/curves 2.4.0 (Declared: MIT; selected: MIT; source: https://registry.npmjs.org/@noble/curves/-/curves-2.4.0.tgz)
|
|
13
13
|
- @noble/hashes 2.4.0 (Declared: MIT; selected: MIT; source: https://registry.npmjs.org/@noble/hashes/-/hashes-2.4.0.tgz)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Session } from "../public/contract.js";
|
|
2
2
|
import { RPCHandlers, type SessionHandlerBinding } from "../public/sessionHandlers.js";
|
|
3
3
|
import { type ArtifactLeaseV3 } from "../v3/artifactLease.js";
|
|
4
|
-
import { type ArtifactSourceV3, type ConnectionControllerV3 } from "../v3/connectionController.js";
|
|
4
|
+
import { type ArtifactSourceV3, type ConnectionControllerV3, type RotationDriver } from "../v3/connectionController.js";
|
|
5
5
|
import { type PrivateLoopbackArtifactLeaseV1, type PrivateLoopbackArtifactSourceV1 } from "./privateLoopbackV1.js";
|
|
6
6
|
import { type HTTPDirectArtifactLeaseV1, type HTTPDirectArtifactSourceV1 } from "./httpDirectV1.js";
|
|
7
7
|
type RPCOptions = Readonly<{
|
|
@@ -35,6 +35,7 @@ export type PrivateLoopbackConnectionControllerOptionsV1 = ControllerRPCOptions
|
|
|
35
35
|
}>;
|
|
36
36
|
export declare function connectV3(lease: ArtifactLeaseV3, options?: SessionOptionsV3): Promise<Session>;
|
|
37
37
|
export declare function createConnectionControllerV3(source: ArtifactSourceV3, options?: ConnectionControllerOptionsV3): Promise<ConnectionControllerV3<Session>>;
|
|
38
|
+
export declare function createBrowserController(source: ArtifactSourceV3, options: ConnectionControllerOptionsV3, rotation?: RotationDriver<Session>): Promise<ConnectionControllerV3<Session>>;
|
|
38
39
|
export type HTTPDirectSessionOptionsV1 = PrivateLoopbackSessionOptionsV1;
|
|
39
40
|
export type HTTPDirectConnectionControllerOptionsV1 = PrivateLoopbackConnectionControllerOptionsV1;
|
|
40
41
|
export declare function connectPrivateLoopbackV1(lease: PrivateLoopbackArtifactLeaseV1, options: PrivateLoopbackSessionOptionsV1): Promise<Session>;
|
|
@@ -18,6 +18,9 @@ export async function connectV3(lease, options = {}) {
|
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
export async function createConnectionControllerV3(source, options = {}) {
|
|
21
|
+
return createBrowserController(source, options);
|
|
22
|
+
}
|
|
23
|
+
export async function createBrowserController(source, options, rotation) {
|
|
21
24
|
requireControllerHandlers(options);
|
|
22
25
|
const registry = await BrowserRuntimeCapabilityRegistryV3.create();
|
|
23
26
|
const runtime = browserRuntime(registry, options);
|
|
@@ -27,7 +30,7 @@ export async function createConnectionControllerV3(source, options = {}) {
|
|
|
27
30
|
projectSessionFailure,
|
|
28
31
|
...(options.maximumAttempts === undefined ? {} : { maximumAttempts: options.maximumAttempts }),
|
|
29
32
|
};
|
|
30
|
-
return createCoreControllerV3(source, async (context) => await attemptClaimedArtifactLeaseV3(context, runtime), coreOptions);
|
|
33
|
+
return createCoreControllerV3(source, async (context) => await attemptClaimedArtifactLeaseV3(context, runtime), coreOptions, rotation);
|
|
31
34
|
}
|
|
32
35
|
const privateProfile = {
|
|
33
36
|
validateOrigin: validatePrivateLoopbackOriginV1,
|
package/dist/node/acceptorV3.js
CHANGED
|
@@ -172,7 +172,7 @@ export async function createAcceptorV3(options) {
|
|
|
172
172
|
const running = listener.carrier === "websocket"
|
|
173
173
|
? await startNodeWebSocketListenerV3({
|
|
174
174
|
...listener,
|
|
175
|
-
maxPendingSessions:
|
|
175
|
+
maxPendingSessions: options.maxPendingSessions ?? 1024,
|
|
176
176
|
...(options.admissionTimeoutMs === undefined ? {} : { pendingSessionTimeoutMs: options.admissionTimeoutMs }),
|
|
177
177
|
inboundBidirectionalStreamCapacity: options.maxInboundStreams + 2,
|
|
178
178
|
})
|
|
@@ -278,7 +278,7 @@ async function listen(state, listener, ingress) {
|
|
|
278
278
|
function validateOptions(options) {
|
|
279
279
|
validateWebTransportListeners(options.listeners);
|
|
280
280
|
if (options.listeners.length === 0 ||
|
|
281
|
-
(options.maxPendingSessions !== undefined && (!Number.isSafeInteger(options.maxPendingSessions) || options.maxPendingSessions < 1
|
|
281
|
+
(options.maxPendingSessions !== undefined && (!Number.isSafeInteger(options.maxPendingSessions) || options.maxPendingSessions < 1)) ||
|
|
282
282
|
!Number.isSafeInteger(options.maxInboundStreams) || options.maxInboundStreams < 1 ||
|
|
283
283
|
options.maxInboundStreams > 128 || typeof options.authorize !== "function" ||
|
|
284
284
|
(options.admissionTimeoutMs !== undefined &&
|
|
@@ -13,7 +13,6 @@ const DEFAULT_ADMISSION_TIMEOUT_MS = 10_000;
|
|
|
13
13
|
const DEFAULT_CLEANUP_TIMEOUT_MS = 2_000;
|
|
14
14
|
const DEFAULT_MAX_CONCURRENT_ADMISSIONS = 1_024;
|
|
15
15
|
const DEFAULT_MAX_PENDING_LEGS = 1_024;
|
|
16
|
-
const DEFAULT_MAX_ACTIVE_PAIRS = 1_024;
|
|
17
16
|
const DEFAULT_MAX_CONCURRENT_STREAMS = 128;
|
|
18
17
|
const ID = /^[A-Za-z0-9._~-]{1,128}$/u;
|
|
19
18
|
const BUILT_IN_ADMISSION_REASONS = [
|
|
@@ -645,7 +644,7 @@ function validateOptions(options) {
|
|
|
645
644
|
validateWebTransportListeners(options.listeners);
|
|
646
645
|
const limits = {
|
|
647
646
|
maxPendingLegs: options.maxPendingLegs ?? DEFAULT_MAX_PENDING_LEGS,
|
|
648
|
-
maxActivePairs: options.maxActivePairs ??
|
|
647
|
+
maxActivePairs: options.maxActivePairs ?? Number.MAX_SAFE_INTEGER,
|
|
649
648
|
maxConcurrentStreams: options.maxConcurrentStreams ?? DEFAULT_MAX_CONCURRENT_STREAMS,
|
|
650
649
|
maxConcurrentAdmissions: options.maxConcurrentAdmissions ?? DEFAULT_MAX_CONCURRENT_ADMISSIONS,
|
|
651
650
|
pairTimeoutMs: options.pairTimeoutMs ?? DEFAULT_PAIR_TIMEOUT_MS,
|
|
@@ -656,9 +655,9 @@ function validateOptions(options) {
|
|
|
656
655
|
!Number.isSafeInteger(options.maxInboundStreams) ||
|
|
657
656
|
options.maxInboundStreams < 1 || options.maxInboundStreams > 128 || typeof options.authorize !== "function" ||
|
|
658
657
|
(options.release !== undefined && typeof options.release !== "function") ||
|
|
659
|
-
!boundedInteger(limits.maxPendingLegs, 1,
|
|
658
|
+
!boundedInteger(limits.maxPendingLegs, 1, Number.MAX_SAFE_INTEGER) || !boundedInteger(limits.maxActivePairs, 1, Number.MAX_SAFE_INTEGER) ||
|
|
660
659
|
!boundedInteger(limits.maxConcurrentStreams, 1, 128) ||
|
|
661
|
-
!boundedInteger(limits.maxConcurrentAdmissions, 1,
|
|
660
|
+
!boundedInteger(limits.maxConcurrentAdmissions, 1, Number.MAX_SAFE_INTEGER) ||
|
|
662
661
|
!boundedInteger(limits.pairTimeoutMs, 1, 60_000) ||
|
|
663
662
|
!boundedInteger(limits.admissionTimeoutMs, 1, 60_000) ||
|
|
664
663
|
!boundedInteger(limits.cleanupTimeoutMs, 1, 60_000)) {
|
|
@@ -143,7 +143,7 @@ function validateOptions(options) {
|
|
|
143
143
|
options.allowedOrigins.some((origin) => !validOrigin(origin)) ||
|
|
144
144
|
!Number.isInteger(options.inboundBidirectionalStreamCapacity) ||
|
|
145
145
|
options.inboundBidirectionalStreamCapacity < 3 || options.inboundBidirectionalStreamCapacity > 130 ||
|
|
146
|
-
(options.maxPendingSessions !== undefined && (!Number.isSafeInteger(options.maxPendingSessions) || options.maxPendingSessions < 1
|
|
146
|
+
(options.maxPendingSessions !== undefined && (!Number.isSafeInteger(options.maxPendingSessions) || options.maxPendingSessions < 1)) ||
|
|
147
147
|
(options.pendingSessionTimeoutMs !== undefined && (!Number.isSafeInteger(options.pendingSessionTimeoutMs) || options.pendingSessionTimeoutMs < 1 || options.pendingSessionTimeoutMs > 600_000)) ||
|
|
148
148
|
(options.cleanupTimeoutMs !== undefined && (!Number.isSafeInteger(options.cleanupTimeoutMs) || options.cleanupTimeoutMs < 1 || options.cleanupTimeoutMs > 600_000)) ||
|
|
149
149
|
options.tls.certificate.length === 0 || options.tls.privateKey.length === 0) {
|
package/dist/proxy/index.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ export type { ProxyAppServiceWorkerControlOptions, ProxyAppWindowHandle, ProxyCo
|
|
|
12
12
|
export { installWebSocketPatch } from "./wsPatch.js";
|
|
13
13
|
export type { WebSocketPatchOptions } from "./wsPatch.js";
|
|
14
14
|
export { disableUpstreamServiceWorkerRegister } from "./disableUpstreamServiceWorkerRegister.js";
|
|
15
|
-
export { connectProxyBrowser, connectProxyControllerBrowser, } from "./integration.js";
|
|
15
|
+
export { connectProxyBrowser, connectRotatingProxyBrowser, connectProxyControllerBrowser, } from "./integration.js";
|
|
16
16
|
export type { ProxyBrowserConnectOptions, ProxyBrowserHandle, ProxyControllerBrowserConnectOptions, ProxyControllerBrowserHandle, } from "./integration.js";
|
|
17
17
|
export type { ProxyFetchRequest, ProxyHeader, ProxyRuntime, ProxyRuntimeControllerBridgeScope, ProxyRuntimeHTTPScope, ProxyRuntimeLimits, ProxyRuntimeOptions, ProxyRequestInit, ProxyRuntimePathPolicy, ProxyRuntimeScopeLimits, ProxyRuntimeScope, ProxyRuntimeServiceWorkerScope, } from "./types.js";
|
package/dist/proxy/index.js
CHANGED
|
@@ -6,4 +6,4 @@ export { createServiceWorkerControllerGuard } from "./controllerGuard.js";
|
|
|
6
6
|
export { registerProxyAppWindow, registerProxyAppWindowWithServiceWorkerControl, registerProxyAppWindowWithServiceWorkerRuntime, registerProxyControllerWindow, } from "./windowBridge.js";
|
|
7
7
|
export { installWebSocketPatch } from "./wsPatch.js";
|
|
8
8
|
export { disableUpstreamServiceWorkerRegister } from "./disableUpstreamServiceWorkerRegister.js";
|
|
9
|
-
export { connectProxyBrowser, connectProxyControllerBrowser, } from "./integration.js";
|
|
9
|
+
export { connectProxyBrowser, connectRotatingProxyBrowser, connectProxyControllerBrowser, } from "./integration.js";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { type SessionOptionsV3 } from "../browser/connectSessionV3.js";
|
|
2
|
+
import { type ConnectionControllerOptionsV3 } from "../browser/connectSessionV3.js";
|
|
3
|
+
import type { ArtifactSourceV3 } from "../v3/connectionController.js";
|
|
2
4
|
import { type ArtifactLeaseV3 } from "../v3/artifactLease.js";
|
|
3
5
|
import type { Session } from "../public/contract.js";
|
|
4
6
|
import type { ProxyRuntime, ProxyRuntimeOptions } from "./types.js";
|
|
@@ -19,6 +21,16 @@ export type ProxyBrowserHandle = Readonly<{
|
|
|
19
21
|
runtime: ProxyRuntime;
|
|
20
22
|
dispose(): Promise<void>;
|
|
21
23
|
}>;
|
|
24
|
+
export declare function connectRotatingProxyBrowser(source: ArtifactSourceV3, options?: Omit<ProxyBrowserConnectOptions, "connect"> & Readonly<{
|
|
25
|
+
connect?: ConnectionControllerOptionsV3;
|
|
26
|
+
minimumRemaining?: number;
|
|
27
|
+
setupBudgetMs?: number;
|
|
28
|
+
drainTimeoutMs?: number;
|
|
29
|
+
signal?: AbortSignal;
|
|
30
|
+
}>): Promise<Readonly<{
|
|
31
|
+
runtime: ProxyRuntime;
|
|
32
|
+
dispose(): Promise<void>;
|
|
33
|
+
}>>;
|
|
22
34
|
export declare function connectProxyBrowser(lease: ArtifactLeaseV3, options?: ProxyBrowserConnectOptions): Promise<ProxyBrowserHandle>;
|
|
23
35
|
export type ProxyControllerBrowserConnectOptions = ProxyBrowserConnectOptions & Readonly<{
|
|
24
36
|
controller: Omit<RegisterProxyControllerWindowOptions, "runtime">;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { connectV3 } from "../browser/connectSessionV3.js";
|
|
2
|
+
import { createBrowserController } from "../browser/connectSessionV3.js";
|
|
3
|
+
import { DirectProxyRotation } from "./sessionRotation.js";
|
|
2
4
|
import { leaseScopeV3 } from "../v3/artifactLease.js";
|
|
3
5
|
import { createScopedProxyRuntime } from "./runtime.js";
|
|
4
6
|
import { assertProxyRuntimeScope, PROXY_RUNTIME_SCOPE } from "./scope.js";
|
|
@@ -12,6 +14,37 @@ function proxyAuthority(lease) {
|
|
|
12
14
|
throw new TypeError("unsupported proxy scope version");
|
|
13
15
|
return assertProxyRuntimeScope(entry.payload);
|
|
14
16
|
}
|
|
17
|
+
export async function connectRotatingProxyBrowser(source, options = {}) {
|
|
18
|
+
const rotation = new DirectProxyRotation(options.minimumRemaining ?? 4096, options.setupBudgetMs ?? 10_000, options.drainTimeoutMs ?? 60_000);
|
|
19
|
+
const controller = await createBrowserController(source, options.connect ?? {}, rotation);
|
|
20
|
+
let runtime;
|
|
21
|
+
const dispose = async () => {
|
|
22
|
+
options.signal?.removeEventListener("abort", cancel);
|
|
23
|
+
runtime?.dispose();
|
|
24
|
+
await controller.close();
|
|
25
|
+
};
|
|
26
|
+
const cancel = () => { void dispose(); };
|
|
27
|
+
try {
|
|
28
|
+
options.signal?.throwIfAborted();
|
|
29
|
+
options.signal?.addEventListener("abort", cancel, { once: true });
|
|
30
|
+
controller.start();
|
|
31
|
+
const session = await controller.waitForSession();
|
|
32
|
+
const authority = rotation.authority;
|
|
33
|
+
const worker = options.serviceWorker;
|
|
34
|
+
if (worker && authority && (authority.mode !== "service_worker" || worker.scriptUrl !== authority.serviceWorker.scriptUrl || worker.scope !== authority.serviceWorker.scope)) {
|
|
35
|
+
throw new TypeError("service worker does not match the proxy scope");
|
|
36
|
+
}
|
|
37
|
+
if (worker)
|
|
38
|
+
await registerServiceWorkerAndEnsureControl(worker);
|
|
39
|
+
options.signal?.throwIfAborted();
|
|
40
|
+
runtime = createScopedProxyRuntime({ ...options.runtime, session }, authority, rotation);
|
|
41
|
+
return Object.freeze({ runtime, dispose });
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
await dispose();
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
15
48
|
export async function connectProxyBrowser(lease, options = {}) {
|
|
16
49
|
const authority = proxyAuthority(lease);
|
|
17
50
|
if (authority && options.serviceWorker && (authority.mode !== "service_worker" ||
|
package/dist/proxy/runtime.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { DirectProxyRotation } from "./sessionRotation.js";
|
|
1
2
|
import type { ProxyRuntime, ProxyRuntimeOptions, ProxyRuntimeScope } from "./types.js";
|
|
2
3
|
export declare function createProxyRuntime(options: ProxyRuntimeOptions): ProxyRuntime;
|
|
3
|
-
export declare function createScopedProxyRuntime(options: ProxyRuntimeOptions, authority?: ProxyRuntimeScope): ProxyRuntime;
|
|
4
|
+
export declare function createScopedProxyRuntime(options: ProxyRuntimeOptions, authority?: ProxyRuntimeScope, rotation?: DirectProxyRotation): ProxyRuntime;
|
|
4
5
|
export type EnsureServiceWorkerRuntimeRegisteredOptions = Readonly<{
|
|
5
6
|
timeoutMs?: number;
|
|
6
7
|
runtimeRegistrationToken?: string;
|
package/dist/proxy/runtime.js
CHANGED
|
@@ -242,7 +242,7 @@ function publicFailure(error) {
|
|
|
242
242
|
export function createProxyRuntime(options) {
|
|
243
243
|
return createScopedProxyRuntime(options);
|
|
244
244
|
}
|
|
245
|
-
export function createScopedProxyRuntime(options, authority) {
|
|
245
|
+
export function createScopedProxyRuntime(options, authority, rotation) {
|
|
246
246
|
if (authority) {
|
|
247
247
|
const grantedHeaders = authority.http?.extraRequestHeaders ?? [];
|
|
248
248
|
const limits = Object.fromEntries(Object.entries(authority.limits ?? {}).map(([key, ceiling]) => {
|
|
@@ -291,6 +291,7 @@ export function createScopedProxyRuntime(options, authority) {
|
|
|
291
291
|
let activeEvents = 0;
|
|
292
292
|
const active = new Set();
|
|
293
293
|
const lifetime = new AbortController();
|
|
294
|
+
const streamOwner = rotation ?? options.session;
|
|
294
295
|
const register = () => void ensureServiceWorkerRuntimeRegistered({
|
|
295
296
|
timeoutMs: 2_000,
|
|
296
297
|
...(runtimeRegistrationToken === undefined ? {} : { runtimeRegistrationToken }),
|
|
@@ -373,7 +374,7 @@ export function createScopedProxyRuntime(options, authority) {
|
|
|
373
374
|
arm(remaining);
|
|
374
375
|
release = await admission.acquire(body.length, controller.signal, eventRequested);
|
|
375
376
|
controller.signal.throwIfAborted();
|
|
376
|
-
stream = await
|
|
377
|
+
stream = await streamOwner.openStream(PROXY_HTTP_STREAM_KIND, {
|
|
377
378
|
signal: controller.signal,
|
|
378
379
|
metadata: createStreamMetadata({ protocol: "flowersec.proxy.http", version: 2 }),
|
|
379
380
|
});
|
|
@@ -546,7 +547,7 @@ export function createScopedProxyRuntime(options, authority) {
|
|
|
546
547
|
void stream?.reset().catch(() => undefined);
|
|
547
548
|
};
|
|
548
549
|
const establish = async () => {
|
|
549
|
-
const stream = await
|
|
550
|
+
const stream = await streamOwner.openStream(PROXY_WEBSOCKET_STREAM_KIND, {
|
|
550
551
|
signal,
|
|
551
552
|
metadata: createStreamMetadata({ protocol: "flowersec.proxy.websocket", version: 2 }),
|
|
552
553
|
});
|
|
@@ -615,8 +616,15 @@ export function createScopedProxyRuntime(options, authority) {
|
|
|
615
616
|
serviceWorker.addEventListener("controllerchange", register);
|
|
616
617
|
register();
|
|
617
618
|
}
|
|
618
|
-
|
|
619
|
-
|
|
619
|
+
if (rotation) {
|
|
620
|
+
rotation.lifetime.signal.addEventListener("abort", terminate, { once: true, signal: lifetime.signal });
|
|
621
|
+
if (rotation.lifetime.signal.aborted)
|
|
622
|
+
terminate();
|
|
623
|
+
}
|
|
624
|
+
else {
|
|
625
|
+
void options.session.waitTermination({ signal: lifetime.signal }).then(terminate, () => { if (!disposed)
|
|
626
|
+
terminate(); });
|
|
627
|
+
}
|
|
620
628
|
return runtime;
|
|
621
629
|
}
|
|
622
630
|
export async function ensureServiceWorkerRuntimeRegistered(options = {}) {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ByteStream, type Session } from "../public/contract.js";
|
|
2
|
+
import type { ArtifactV3 } from "../v3/artifact.js";
|
|
3
|
+
import { streamBudgetOwner } from "../v3/publicSession.js";
|
|
4
|
+
import type { RotationDriver } from "../v3/connectionController.js";
|
|
5
|
+
import type { ProxyRuntimeScope } from "./types.js";
|
|
6
|
+
export declare class DirectProxyRotation implements RotationDriver<Session> {
|
|
7
|
+
private readonly minimum;
|
|
8
|
+
private readonly setupMs;
|
|
9
|
+
private readonly drainMs;
|
|
10
|
+
private readonly budget;
|
|
11
|
+
readonly lifetime: AbortController;
|
|
12
|
+
authority: ProxyRuntimeScope | undefined;
|
|
13
|
+
private binding;
|
|
14
|
+
private previousToken;
|
|
15
|
+
private current;
|
|
16
|
+
private draining;
|
|
17
|
+
private shutdown;
|
|
18
|
+
constructor(minimum: number, setupMs: number, drainMs: number, budget?: typeof streamBudgetOwner);
|
|
19
|
+
accept(artifact: ArtifactV3): void;
|
|
20
|
+
publish(session: Session): Promise<void>;
|
|
21
|
+
canServe(session: Session): boolean;
|
|
22
|
+
openStream(...args: Parameters<Session["openStream"]>): Promise<ByteStream>;
|
|
23
|
+
private retire;
|
|
24
|
+
slot(): Promise<void>;
|
|
25
|
+
stop(): Promise<void>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { SessionError } from "../public/contract.js";
|
|
2
|
+
import { canonicalizeJCSV3 } from "../v3/jcs.js";
|
|
3
|
+
import { streamBudgetOwner } from "../v3/publicSession.js";
|
|
4
|
+
import { assertProxyRuntimeScope, PROXY_RUNTIME_SCOPE } from "./scope.js";
|
|
5
|
+
export class DirectProxyRotation {
|
|
6
|
+
minimum;
|
|
7
|
+
setupMs;
|
|
8
|
+
drainMs;
|
|
9
|
+
budget;
|
|
10
|
+
lifetime = new AbortController();
|
|
11
|
+
authority;
|
|
12
|
+
binding;
|
|
13
|
+
previousToken;
|
|
14
|
+
current;
|
|
15
|
+
draining = Promise.resolve();
|
|
16
|
+
shutdown;
|
|
17
|
+
constructor(minimum, setupMs, drainMs, budget = streamBudgetOwner) {
|
|
18
|
+
this.minimum = minimum;
|
|
19
|
+
this.setupMs = setupMs;
|
|
20
|
+
this.drainMs = drainMs;
|
|
21
|
+
this.budget = budget;
|
|
22
|
+
if (!Number.isSafeInteger(minimum) || minimum < 1 || minimum >= 1_048_576 ||
|
|
23
|
+
!Number.isSafeInteger(setupMs) || setupMs < 1 || !Number.isSafeInteger(drainMs) || drainMs < 1 || drainMs > 2_147_483_647) {
|
|
24
|
+
throw new TypeError("invalid proxy session rotation budget");
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
accept(artifact) {
|
|
28
|
+
const path = artifact.path;
|
|
29
|
+
if (path.kind !== "direct")
|
|
30
|
+
throw new TypeError("rotating browser proxy requires a direct grant");
|
|
31
|
+
const scope = artifact.scoped.find(entry => entry.scope === PROXY_RUNTIME_SCOPE.name);
|
|
32
|
+
if (scope && scope.scope_version !== PROXY_RUNTIME_SCOPE.version)
|
|
33
|
+
throw new TypeError("unsupported proxy scope version");
|
|
34
|
+
const authority = scope && assertProxyRuntimeScope(scope.payload);
|
|
35
|
+
const binding = canonicalizeJCSV3([artifact.session.channel_id, path.listener_audience, artifact.scoped]);
|
|
36
|
+
if ((this.binding !== undefined && this.binding !== binding) || this.previousToken === path.routing_token) {
|
|
37
|
+
throw new TypeError("incompatible proxy rotation grant");
|
|
38
|
+
}
|
|
39
|
+
this.binding = binding;
|
|
40
|
+
this.authority = authority;
|
|
41
|
+
this.previousToken = path.routing_token;
|
|
42
|
+
}
|
|
43
|
+
publish(session) {
|
|
44
|
+
const old = this.current;
|
|
45
|
+
this.current = { session, references: 0 };
|
|
46
|
+
if (old)
|
|
47
|
+
this.draining = this.retire(old);
|
|
48
|
+
return this.budget(session).watch(this.minimum, this.setupMs);
|
|
49
|
+
}
|
|
50
|
+
canServe(session) {
|
|
51
|
+
return this.current?.session === session && this.budget(session).available();
|
|
52
|
+
}
|
|
53
|
+
async openStream(...args) {
|
|
54
|
+
const generation = this.current;
|
|
55
|
+
if (this.lifetime.signal.aborted || !generation)
|
|
56
|
+
throw new SessionError("closed");
|
|
57
|
+
if (!this.canServe(generation.session))
|
|
58
|
+
throw new SessionError("resource_exhausted");
|
|
59
|
+
generation.references++;
|
|
60
|
+
let released = false;
|
|
61
|
+
const release = () => {
|
|
62
|
+
if (released)
|
|
63
|
+
return;
|
|
64
|
+
released = true;
|
|
65
|
+
if (--generation.references === 0)
|
|
66
|
+
generation.finish?.();
|
|
67
|
+
};
|
|
68
|
+
try {
|
|
69
|
+
const stream = await generation.session.openStream(...args);
|
|
70
|
+
let eof = false, fin = false;
|
|
71
|
+
return {
|
|
72
|
+
kind: stream.kind,
|
|
73
|
+
get terminalError() { return stream.terminalError; },
|
|
74
|
+
async read(options) {
|
|
75
|
+
const value = await stream.read(options);
|
|
76
|
+
if (value === null) {
|
|
77
|
+
eof = true;
|
|
78
|
+
if (fin)
|
|
79
|
+
release();
|
|
80
|
+
}
|
|
81
|
+
return value;
|
|
82
|
+
},
|
|
83
|
+
write: (bytes, options) => stream.write(bytes, options),
|
|
84
|
+
async closeWrite() { await stream.closeWrite(); fin = true; if (eof)
|
|
85
|
+
release(); },
|
|
86
|
+
async reset() { try {
|
|
87
|
+
await stream.reset();
|
|
88
|
+
}
|
|
89
|
+
finally {
|
|
90
|
+
release();
|
|
91
|
+
} },
|
|
92
|
+
async close() { try {
|
|
93
|
+
await stream.close();
|
|
94
|
+
}
|
|
95
|
+
finally {
|
|
96
|
+
release();
|
|
97
|
+
} },
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
catch (error) {
|
|
101
|
+
release();
|
|
102
|
+
throw error;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
async retire(generation) {
|
|
106
|
+
if (generation.references > 0 && !this.lifetime.signal.aborted) {
|
|
107
|
+
await new Promise(resolve => {
|
|
108
|
+
const timer = setTimeout(finish, this.drainMs);
|
|
109
|
+
const lifetime = this.lifetime.signal;
|
|
110
|
+
function finish() {
|
|
111
|
+
clearTimeout(timer);
|
|
112
|
+
lifetime.removeEventListener("abort", finish);
|
|
113
|
+
delete generation.finish;
|
|
114
|
+
resolve();
|
|
115
|
+
}
|
|
116
|
+
generation.finish = finish;
|
|
117
|
+
lifetime.addEventListener("abort", finish, { once: true });
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
await generation.session.close().catch(() => undefined);
|
|
121
|
+
}
|
|
122
|
+
slot() { return this.draining; }
|
|
123
|
+
stop() {
|
|
124
|
+
if (this.shutdown)
|
|
125
|
+
return this.shutdown;
|
|
126
|
+
this.lifetime.abort();
|
|
127
|
+
this.shutdown = Promise.allSettled([this.draining, this.current?.session.close()]).then(() => undefined);
|
|
128
|
+
this.current = undefined;
|
|
129
|
+
return this.shutdown;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -69,6 +69,13 @@ export type ConnectionDiagnosticV3 = Readonly<{
|
|
|
69
69
|
}>;
|
|
70
70
|
/** Produces a stable diagnostic value without retaining a Session or transport detail. */
|
|
71
71
|
export declare function connectionDiagnosticV3(snapshot: ConnectionControllerSnapshotV3): ConnectionDiagnosticV3;
|
|
72
|
+
export interface RotationDriver<Session> {
|
|
73
|
+
accept(artifact: ArtifactV3): void;
|
|
74
|
+
publish(session: Session): Promise<void>;
|
|
75
|
+
canServe(session: Session): boolean;
|
|
76
|
+
slot(): Promise<void>;
|
|
77
|
+
stop(): Promise<void>;
|
|
78
|
+
}
|
|
72
79
|
export type ConnectionControllerOptionsV3 = Readonly<{
|
|
73
80
|
tunnelIngressURL?: string;
|
|
74
81
|
maximumAttempts?: number;
|
|
@@ -86,7 +93,7 @@ export declare class ConnectionControllerV3Error extends Error {
|
|
|
86
93
|
}
|
|
87
94
|
export declare class ConnectionControllerV3<Session extends ManagedSessionV3 = ManagedSessionV3> {
|
|
88
95
|
#private;
|
|
89
|
-
constructor(source: ArtifactSourceV3, connector: LeaseConnectorV3<Session>, options: ConnectionControllerOptionsV3);
|
|
96
|
+
constructor(source: ArtifactSourceV3, connector: LeaseConnectorV3<Session>, options: ConnectionControllerOptionsV3, rotation?: RotationDriver<Session>);
|
|
90
97
|
get state(): ConnectionControllerStateV3;
|
|
91
98
|
get currentSession(): Session | undefined;
|
|
92
99
|
get failure(): ConnectionControllerFailureV3 | undefined;
|
|
@@ -98,4 +105,4 @@ export declare class ConnectionControllerV3<Session extends ManagedSessionV3 = M
|
|
|
98
105
|
}>): Promise<Session>;
|
|
99
106
|
close(): Promise<void>;
|
|
100
107
|
}
|
|
101
|
-
export declare function createConnectionControllerV3<Session extends ManagedSessionV3>(source: ArtifactSourceV3, connector: LeaseConnectorV3<Session>, options: ConnectionControllerOptionsV3): ConnectionControllerV3<Session>;
|
|
108
|
+
export declare function createConnectionControllerV3<Session extends ManagedSessionV3>(source: ArtifactSourceV3, connector: LeaseConnectorV3<Session>, options: ConnectionControllerOptionsV3, rotation?: RotationDriver<Session>): ConnectionControllerV3<Session>;
|
|
@@ -55,6 +55,8 @@ export class ConnectionControllerV3 {
|
|
|
55
55
|
#capabilitySnapshot;
|
|
56
56
|
#projectSessionFailure;
|
|
57
57
|
#lifetime = new AbortController();
|
|
58
|
+
#rotation;
|
|
59
|
+
#retrying = false;
|
|
58
60
|
#listeners = new Map();
|
|
59
61
|
#cycle;
|
|
60
62
|
#state = "idle";
|
|
@@ -65,7 +67,8 @@ export class ConnectionControllerV3 {
|
|
|
65
67
|
#scheduler;
|
|
66
68
|
#closeOperation;
|
|
67
69
|
#transitionGeneration = 0;
|
|
68
|
-
constructor(source, connector, options) {
|
|
70
|
+
constructor(source, connector, options, rotation) {
|
|
71
|
+
this.#rotation = rotation;
|
|
69
72
|
if (source === null || typeof source !== "object" || typeof source.acquire !== "function") {
|
|
70
73
|
throw new TypeError("Flowersec v5 artifact source must provide acquire()");
|
|
71
74
|
}
|
|
@@ -100,10 +103,10 @@ export class ConnectionControllerV3 {
|
|
|
100
103
|
resolveScheduler = resolve;
|
|
101
104
|
rejectScheduler = reject;
|
|
102
105
|
});
|
|
103
|
-
void this.#run().then(resolveScheduler, rejectScheduler);
|
|
106
|
+
void this.#run().finally(() => this.#rotation?.stop()).then(resolveScheduler, rejectScheduler);
|
|
104
107
|
}
|
|
105
108
|
retryNow() {
|
|
106
|
-
return this.#
|
|
109
|
+
return this.#retrying && this.#retry.retryNow();
|
|
107
110
|
}
|
|
108
111
|
subscribe(listener) {
|
|
109
112
|
if (typeof listener !== "function")
|
|
@@ -193,6 +196,7 @@ export class ConnectionControllerV3 {
|
|
|
193
196
|
unsubscribe();
|
|
194
197
|
void Promise.allSettled([
|
|
195
198
|
this.#scheduler ?? Promise.resolve(),
|
|
199
|
+
this.#rotation?.stop() ?? Promise.resolve(),
|
|
196
200
|
active?.close() ?? Promise.resolve(),
|
|
197
201
|
]).then(() => resolveClose());
|
|
198
202
|
return closeOperation;
|
|
@@ -274,6 +278,7 @@ export class ConnectionControllerV3 {
|
|
|
274
278
|
let allCandidates;
|
|
275
279
|
try {
|
|
276
280
|
validateArtifactV3(artifact);
|
|
281
|
+
this.#rotation?.accept(artifact);
|
|
277
282
|
allCandidates = canonicalizeCandidatesV3(artifact.path.kind, artifact.path.candidates).candidates;
|
|
278
283
|
}
|
|
279
284
|
catch {
|
|
@@ -366,8 +371,17 @@ export class ConnectionControllerV3 {
|
|
|
366
371
|
this.#failure = undefined;
|
|
367
372
|
this.#disposition = undefined;
|
|
368
373
|
this.#session = result.session;
|
|
374
|
+
const budget = this.#rotation?.publish(result.session);
|
|
369
375
|
this.#transition("connected");
|
|
370
|
-
const
|
|
376
|
+
const ended = this.#waitTermination(result.session);
|
|
377
|
+
const termination = budget ? await Promise.race([ended, budget.then(() => "rotate")]) : await ended;
|
|
378
|
+
if (termination === "rotate") {
|
|
379
|
+
await this.#rotation.slot();
|
|
380
|
+
next = "primary";
|
|
381
|
+
replacementContext = undefined;
|
|
382
|
+
pendingDisposition = undefined;
|
|
383
|
+
continue;
|
|
384
|
+
}
|
|
371
385
|
if (termination === undefined || this.#lifetime.signal.aborted)
|
|
372
386
|
return;
|
|
373
387
|
this.#session = undefined;
|
|
@@ -592,6 +606,9 @@ export class ConnectionControllerV3 {
|
|
|
592
606
|
#transition(state) {
|
|
593
607
|
if (this.#state === "closed" && state !== "closed")
|
|
594
608
|
return;
|
|
609
|
+
this.#retrying = state === "waiting";
|
|
610
|
+
if ((state === "waiting" || state === "connecting") && this.#session && this.#rotation?.canServe(this.#session))
|
|
611
|
+
state = "connected";
|
|
595
612
|
this.#state = state;
|
|
596
613
|
const generation = ++this.#transitionGeneration;
|
|
597
614
|
const snapshot = this.#snapshot();
|
|
@@ -614,8 +631,8 @@ function detachableSubscription(remove) {
|
|
|
614
631
|
remove = undefined;
|
|
615
632
|
};
|
|
616
633
|
}
|
|
617
|
-
export function createConnectionControllerV3(source, connector, options) {
|
|
618
|
-
return new ConnectionControllerV3(source, connector, options);
|
|
634
|
+
export function createConnectionControllerV3(source, connector, options, rotation) {
|
|
635
|
+
return new ConnectionControllerV3(source, connector, options, rotation);
|
|
619
636
|
}
|
|
620
637
|
/** Serializes source delivery and controller cancellation at one ownership gate. */
|
|
621
638
|
class SourceAcquisitionRaceV3 {
|
package/dist/v3/contract.d.ts
CHANGED
|
@@ -49,6 +49,8 @@ export interface InternalSessionV3 {
|
|
|
49
49
|
streams: number;
|
|
50
50
|
residual: number;
|
|
51
51
|
}>;
|
|
52
|
+
watchStreamBudget?(minimum: number, setupMs: number): Promise<void>;
|
|
53
|
+
canAllocateStream?(): boolean;
|
|
52
54
|
readonly unreliableMessages?: UnreliableMessageChannelV3 | undefined;
|
|
53
55
|
openStream(kind: string, options?: InternalStreamOpenOptionsV3): Promise<InternalByteStreamV3>;
|
|
54
56
|
acceptStream(options?: OperationOptionsV3): Promise<InternalIncomingStreamV3>;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import type { ByteStreamV3 } from "./contract.js";
|
|
1
|
+
import type { ByteStreamV3, SessionV3 } from "./contract.js";
|
|
2
|
+
export declare function streamBudgetOwner(session: SessionV3): {
|
|
3
|
+
watch: (minimum: number, setupMs: number) => Promise<void>;
|
|
4
|
+
available: () => boolean;
|
|
5
|
+
};
|
|
2
6
|
export declare function incomingResetSignal(stream: ByteStreamV3): AbortSignal | undefined;
|
package/dist/v3/publicSession.js
CHANGED
|
@@ -4,6 +4,12 @@ import { assertRpcTypeId } from "../rpc/validate.js";
|
|
|
4
4
|
import { raceWithSignal } from "../utils/abort.js";
|
|
5
5
|
const internals = new WeakMap();
|
|
6
6
|
const incomingOwners = new WeakMap();
|
|
7
|
+
export function streamBudgetOwner(session) {
|
|
8
|
+
const owner = internals.get(session);
|
|
9
|
+
if (!owner?.watchStreamBudget || !owner.canAllocateStream)
|
|
10
|
+
throw new TypeError("unmanaged session");
|
|
11
|
+
return { watch: owner.watchStreamBudget.bind(owner), available: owner.canAllocateStream.bind(owner) };
|
|
12
|
+
}
|
|
7
13
|
export function incomingResetSignal(stream) {
|
|
8
14
|
return incomingOwners.get(stream)?.resetSignal;
|
|
9
15
|
}
|
package/dist/v3/session.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ export declare class SessionV3 implements SessionV3Contract {
|
|
|
96
96
|
private applicationWriteBytes;
|
|
97
97
|
private applicationWrites;
|
|
98
98
|
private nextLogicalID;
|
|
99
|
+
private budgetChanged;
|
|
99
100
|
private receivedGoAway;
|
|
100
101
|
private receivedGoAwayLastAccepted;
|
|
101
102
|
private receivedGoAwayReason;
|
|
@@ -189,6 +190,8 @@ export declare class SessionV3 implements SessionV3Contract {
|
|
|
189
190
|
private closeOnce;
|
|
190
191
|
private waitStopped;
|
|
191
192
|
waitTermination(): Promise<SessionTerminationV3>;
|
|
193
|
+
canAllocateStream(): boolean;
|
|
194
|
+
watchStreamBudget(minimum: number, setupMs: number): Promise<void>;
|
|
192
195
|
runtimeInventory(): Readonly<{
|
|
193
196
|
active: boolean;
|
|
194
197
|
streams: number;
|
package/dist/v3/session.js
CHANGED
|
@@ -119,6 +119,7 @@ export class SessionV3 {
|
|
|
119
119
|
applicationWriteBytes = 0;
|
|
120
120
|
applicationWrites = 0;
|
|
121
121
|
nextLogicalID;
|
|
122
|
+
budgetChanged;
|
|
122
123
|
receivedGoAway = false;
|
|
123
124
|
receivedGoAwayLastAccepted = 0n;
|
|
124
125
|
receivedGoAwayReason = 0;
|
|
@@ -434,6 +435,7 @@ export class SessionV3 {
|
|
|
434
435
|
throw new SessionV3Error("resource_exhausted", "logical stream lifetime ledger exhausted");
|
|
435
436
|
}
|
|
436
437
|
this.nextLogicalID += 2n;
|
|
438
|
+
this.budgetChanged?.(true);
|
|
437
439
|
const setupAction = this.outboundLedger.validFSS3(id);
|
|
438
440
|
ledgerAllocated = true;
|
|
439
441
|
if (setupAction === "reset") {
|
|
@@ -713,6 +715,7 @@ export class SessionV3 {
|
|
|
713
715
|
throw this.terminalError ?? new SessionV3Error("closed", "Flowersec v5 session closed");
|
|
714
716
|
if (!this.sentGoAway) {
|
|
715
717
|
this.sentGoAway = true;
|
|
718
|
+
this.budgetChanged?.(false);
|
|
716
719
|
this.sentGoAwayLastAccepted = this.peerLedger.frontier;
|
|
717
720
|
this.sentGoAwayReason = reason;
|
|
718
721
|
}
|
|
@@ -894,6 +897,35 @@ export class SessionV3 {
|
|
|
894
897
|
async waitTermination() {
|
|
895
898
|
return await this.termination;
|
|
896
899
|
}
|
|
900
|
+
canAllocateStream() {
|
|
901
|
+
return this.lifecycle === "open" && !this.sentGoAway && !this.receivedGoAway && this.nextLogicalID <= maxLogicalStreamIDV3(this.role);
|
|
902
|
+
}
|
|
903
|
+
watchStreamBudget(minimum, setupMs) {
|
|
904
|
+
return new Promise(resolve => {
|
|
905
|
+
const buckets = new Uint32Array(30);
|
|
906
|
+
let last = Math.floor(performance.now() / 1000);
|
|
907
|
+
let total = 0;
|
|
908
|
+
this.budgetChanged = allocated => {
|
|
909
|
+
const second = Math.floor(performance.now() / 1000);
|
|
910
|
+
for (let tick = Math.max(last + 1, second - 29); tick <= second; tick++) {
|
|
911
|
+
total -= buckets[tick % 30];
|
|
912
|
+
buckets[tick % 30] = 0;
|
|
913
|
+
}
|
|
914
|
+
last = second;
|
|
915
|
+
if (allocated) {
|
|
916
|
+
buckets[second % 30] = buckets[second % 30] + 1;
|
|
917
|
+
total++;
|
|
918
|
+
}
|
|
919
|
+
const rate = Math.max(buckets[second % 30], total / 30);
|
|
920
|
+
const remaining = Number((maxLogicalStreamIDV3(this.role) + 2n - this.nextLogicalID) / 2n);
|
|
921
|
+
if (!this.canAllocateStream() || remaining <= Math.max(minimum, Math.ceil(2 * rate * setupMs / 1000))) {
|
|
922
|
+
this.budgetChanged = undefined;
|
|
923
|
+
resolve();
|
|
924
|
+
}
|
|
925
|
+
};
|
|
926
|
+
this.budgetChanged(false);
|
|
927
|
+
});
|
|
928
|
+
}
|
|
897
929
|
runtimeInventory() {
|
|
898
930
|
let streams = 0, residual = 0;
|
|
899
931
|
for (const stream of this.streams.values())
|
|
@@ -1191,6 +1223,7 @@ export class SessionV3 {
|
|
|
1191
1223
|
}
|
|
1192
1224
|
const lastAccepted = this.peerLedger.frontier;
|
|
1193
1225
|
this.sentGoAway = true;
|
|
1226
|
+
this.budgetChanged?.(false);
|
|
1194
1227
|
this.sentGoAwayLastAccepted = lastAccepted;
|
|
1195
1228
|
this.sentGoAwayReason = reason;
|
|
1196
1229
|
await this.sendControl(InnerTypeV3.GoAway, idReason(lastAccepted, reason), signal);
|
|
@@ -1206,6 +1239,7 @@ export class SessionV3 {
|
|
|
1206
1239
|
return;
|
|
1207
1240
|
}
|
|
1208
1241
|
this.receivedGoAway = true;
|
|
1242
|
+
this.budgetChanged?.(false);
|
|
1209
1243
|
this.receivedGoAwayLastAccepted = lastAccepted;
|
|
1210
1244
|
this.receivedGoAwayReason = reason;
|
|
1211
1245
|
const excluded = [...this.streams.values()].filter((stream) => this.isLocalLogicalID(stream.id) && stream.id > lastAccepted);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floegence/flowersec-core",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.0",
|
|
4
4
|
"description": "Flowersec core TypeScript library for carrier-neutral encrypted sessions and multiplexed streams.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"vitest": "4.1.12"
|
|
100
100
|
},
|
|
101
101
|
"optionalDependencies": {
|
|
102
|
-
"@floegence/flowersec-node-native": "7.
|
|
102
|
+
"@floegence/flowersec-node-native": "7.5.0"
|
|
103
103
|
},
|
|
104
|
-
"flowersecSourceCommit": "
|
|
104
|
+
"flowersecSourceCommit": "26145cfc2efd6d4a23f46f6738a55f17aa1ec20d"
|
|
105
105
|
}
|
package/sbom/cyclonedx.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bomFormat": "CycloneDX",
|
|
3
3
|
"specVersion": "1.5",
|
|
4
|
-
"serialNumber": "urn:uuid:
|
|
4
|
+
"serialNumber": "urn:uuid:664790da-ff08-5667-8edb-9e1ffe4f070c",
|
|
5
5
|
"version": 1,
|
|
6
6
|
"metadata": {
|
|
7
7
|
"component": {
|
|
8
8
|
"type": "library",
|
|
9
9
|
"name": "@floegence/flowersec-core",
|
|
10
|
-
"version": "7.
|
|
11
|
-
"purl": "pkg:npm/%40floegence/flowersec-core@7.
|
|
12
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-core@7.
|
|
10
|
+
"version": "7.5.0",
|
|
11
|
+
"purl": "pkg:npm/%40floegence/flowersec-core@7.5.0",
|
|
12
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-core@7.5.0"
|
|
13
13
|
},
|
|
14
14
|
"properties": [
|
|
15
15
|
{
|
|
16
16
|
"name": "flowersec:source-inventory-sha256",
|
|
17
|
-
"value": "
|
|
17
|
+
"value": "080b7c525c3ed88d59b3849aa39e0e97d8207d0396ae05dd220f2f2b2c333308"
|
|
18
18
|
}
|
|
19
19
|
]
|
|
20
20
|
},
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
{
|
|
23
23
|
"type": "library",
|
|
24
24
|
"name": "@floegence/flowersec-node-native",
|
|
25
|
-
"version": "7.
|
|
26
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native@7.
|
|
27
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native@7.
|
|
25
|
+
"version": "7.5.0",
|
|
26
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native@7.5.0",
|
|
27
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native@7.5.0",
|
|
28
28
|
"licenses": [
|
|
29
29
|
{
|
|
30
30
|
"expression": "MIT"
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
{
|
|
51
51
|
"type": "library",
|
|
52
52
|
"name": "@floegence/flowersec-node-native-darwin-arm64",
|
|
53
|
-
"version": "7.
|
|
54
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@7.
|
|
55
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@7.
|
|
53
|
+
"version": "7.5.0",
|
|
54
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@7.5.0",
|
|
55
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@7.5.0",
|
|
56
56
|
"licenses": [
|
|
57
57
|
{
|
|
58
58
|
"expression": "MIT"
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
{
|
|
79
79
|
"type": "library",
|
|
80
80
|
"name": "@floegence/flowersec-node-native-darwin-x64",
|
|
81
|
-
"version": "7.
|
|
82
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@7.
|
|
83
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@7.
|
|
81
|
+
"version": "7.5.0",
|
|
82
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@7.5.0",
|
|
83
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@7.5.0",
|
|
84
84
|
"licenses": [
|
|
85
85
|
{
|
|
86
86
|
"expression": "MIT"
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
{
|
|
107
107
|
"type": "library",
|
|
108
108
|
"name": "@floegence/flowersec-node-native-linux-arm64-gnu",
|
|
109
|
-
"version": "7.
|
|
110
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@7.
|
|
111
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@7.
|
|
109
|
+
"version": "7.5.0",
|
|
110
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@7.5.0",
|
|
111
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@7.5.0",
|
|
112
112
|
"licenses": [
|
|
113
113
|
{
|
|
114
114
|
"expression": "MIT"
|
|
@@ -134,9 +134,9 @@
|
|
|
134
134
|
{
|
|
135
135
|
"type": "library",
|
|
136
136
|
"name": "@floegence/flowersec-node-native-linux-x64-gnu",
|
|
137
|
-
"version": "7.
|
|
138
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@7.
|
|
139
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@7.
|
|
137
|
+
"version": "7.5.0",
|
|
138
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@7.5.0",
|
|
139
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@7.5.0",
|
|
140
140
|
"licenses": [
|
|
141
141
|
{
|
|
142
142
|
"expression": "MIT"
|
|
@@ -386,9 +386,9 @@
|
|
|
386
386
|
],
|
|
387
387
|
"dependencies": [
|
|
388
388
|
{
|
|
389
|
-
"ref": "pkg:npm/%40floegence/flowersec-core@7.
|
|
389
|
+
"ref": "pkg:npm/%40floegence/flowersec-core@7.5.0",
|
|
390
390
|
"dependsOn": [
|
|
391
|
-
"pkg:npm/%40floegence/flowersec-node-native@7.
|
|
391
|
+
"pkg:npm/%40floegence/flowersec-node-native@7.5.0",
|
|
392
392
|
"pkg:npm/%40noble/ciphers@2.4.0",
|
|
393
393
|
"pkg:npm/%40noble/curves@2.4.0",
|
|
394
394
|
"pkg:npm/%40noble/hashes@2.4.0",
|
|
@@ -398,28 +398,28 @@
|
|
|
398
398
|
]
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native@7.
|
|
401
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native@7.5.0",
|
|
402
402
|
"dependsOn": [
|
|
403
|
-
"pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@7.
|
|
404
|
-
"pkg:npm/%40floegence/flowersec-node-native-darwin-x64@7.
|
|
405
|
-
"pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@7.
|
|
406
|
-
"pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@7.
|
|
403
|
+
"pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@7.5.0",
|
|
404
|
+
"pkg:npm/%40floegence/flowersec-node-native-darwin-x64@7.5.0",
|
|
405
|
+
"pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@7.5.0",
|
|
406
|
+
"pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@7.5.0"
|
|
407
407
|
]
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@7.
|
|
410
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@7.5.0",
|
|
411
411
|
"dependsOn": []
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@7.
|
|
414
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@7.5.0",
|
|
415
415
|
"dependsOn": []
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@7.
|
|
418
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@7.5.0",
|
|
419
419
|
"dependsOn": []
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@7.
|
|
422
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@7.5.0",
|
|
423
423
|
"dependsOn": []
|
|
424
424
|
},
|
|
425
425
|
{
|
package/sbom/spdx.json
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"dataLicense": "CC0-1.0",
|
|
4
4
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
5
|
"name": "flowersec-ts",
|
|
6
|
-
"documentNamespace": "https://github.com/floegence/flowersec/sbom/flowersec-ts/
|
|
6
|
+
"documentNamespace": "https://github.com/floegence/flowersec/sbom/flowersec-ts/080b7c525c3ed88d59b3849aa39e0e97d8207d0396ae05dd220f2f2b2c333308",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-11-
|
|
8
|
+
"created": "2026-11-30T05:31:49Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Tool: flowersec-source-inventory-1"
|
|
11
11
|
]
|
|
@@ -13,26 +13,26 @@
|
|
|
13
13
|
"packages": [
|
|
14
14
|
{
|
|
15
15
|
"name": "@floegence/flowersec-core",
|
|
16
|
-
"SPDXID": "SPDXRef-Package-
|
|
17
|
-
"versionInfo": "7.
|
|
16
|
+
"SPDXID": "SPDXRef-Package-5432a369bfda3596f74d",
|
|
17
|
+
"versionInfo": "7.5.0",
|
|
18
18
|
"downloadLocation": "NOASSERTION",
|
|
19
19
|
"filesAnalyzed": false,
|
|
20
20
|
"licenseConcluded": "NOASSERTION",
|
|
21
21
|
"licenseDeclared": "NOASSERTION",
|
|
22
22
|
"copyrightText": "NOASSERTION",
|
|
23
|
-
"comment": "Flowersec source inventory SHA-256:
|
|
23
|
+
"comment": "Flowersec source inventory SHA-256: 080b7c525c3ed88d59b3849aa39e0e97d8207d0396ae05dd220f2f2b2c333308",
|
|
24
24
|
"externalRefs": [
|
|
25
25
|
{
|
|
26
26
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
27
27
|
"referenceType": "purl",
|
|
28
|
-
"referenceLocator": "pkg:npm/%40floegence/flowersec-core@7.
|
|
28
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-core@7.5.0"
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "@floegence/flowersec-node-native",
|
|
34
|
-
"SPDXID": "SPDXRef-Package-
|
|
35
|
-
"versionInfo": "7.
|
|
34
|
+
"SPDXID": "SPDXRef-Package-1285629aa063297fc4d4",
|
|
35
|
+
"versionInfo": "7.5.0",
|
|
36
36
|
"downloadLocation": "https://github.com/floegence/flowersec.git",
|
|
37
37
|
"filesAnalyzed": false,
|
|
38
38
|
"licenseConcluded": "MIT",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
{
|
|
43
43
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
44
44
|
"referenceType": "purl",
|
|
45
|
-
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native@7.
|
|
45
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native@7.5.0"
|
|
46
46
|
}
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"name": "@floegence/flowersec-node-native-darwin-arm64",
|
|
51
|
-
"SPDXID": "SPDXRef-Package-
|
|
52
|
-
"versionInfo": "7.
|
|
51
|
+
"SPDXID": "SPDXRef-Package-57a7ceb65fcec231459f",
|
|
52
|
+
"versionInfo": "7.5.0",
|
|
53
53
|
"downloadLocation": "https://github.com/floegence/flowersec.git",
|
|
54
54
|
"filesAnalyzed": false,
|
|
55
55
|
"licenseConcluded": "MIT",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
{
|
|
60
60
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
61
61
|
"referenceType": "purl",
|
|
62
|
-
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@7.
|
|
62
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@7.5.0"
|
|
63
63
|
}
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "@floegence/flowersec-node-native-darwin-x64",
|
|
68
|
-
"SPDXID": "SPDXRef-Package-
|
|
69
|
-
"versionInfo": "7.
|
|
68
|
+
"SPDXID": "SPDXRef-Package-175336ec96592491b3a3",
|
|
69
|
+
"versionInfo": "7.5.0",
|
|
70
70
|
"downloadLocation": "https://github.com/floegence/flowersec.git",
|
|
71
71
|
"filesAnalyzed": false,
|
|
72
72
|
"licenseConcluded": "MIT",
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
{
|
|
77
77
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
78
78
|
"referenceType": "purl",
|
|
79
|
-
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@7.
|
|
79
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@7.5.0"
|
|
80
80
|
}
|
|
81
81
|
]
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"name": "@floegence/flowersec-node-native-linux-arm64-gnu",
|
|
85
|
-
"SPDXID": "SPDXRef-Package-
|
|
86
|
-
"versionInfo": "7.
|
|
85
|
+
"SPDXID": "SPDXRef-Package-11919d65197af4ba08df",
|
|
86
|
+
"versionInfo": "7.5.0",
|
|
87
87
|
"downloadLocation": "https://github.com/floegence/flowersec.git",
|
|
88
88
|
"filesAnalyzed": false,
|
|
89
89
|
"licenseConcluded": "MIT",
|
|
@@ -93,14 +93,14 @@
|
|
|
93
93
|
{
|
|
94
94
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
95
95
|
"referenceType": "purl",
|
|
96
|
-
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@7.
|
|
96
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@7.5.0"
|
|
97
97
|
}
|
|
98
98
|
]
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"name": "@floegence/flowersec-node-native-linux-x64-gnu",
|
|
102
|
-
"SPDXID": "SPDXRef-Package-
|
|
103
|
-
"versionInfo": "7.
|
|
102
|
+
"SPDXID": "SPDXRef-Package-cf8076c086bed798908f",
|
|
103
|
+
"versionInfo": "7.5.0",
|
|
104
104
|
"downloadLocation": "https://github.com/floegence/flowersec.git",
|
|
105
105
|
"filesAnalyzed": false,
|
|
106
106
|
"licenseConcluded": "MIT",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
{
|
|
111
111
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
112
112
|
"referenceType": "purl",
|
|
113
|
-
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@7.
|
|
113
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@7.5.0"
|
|
114
114
|
}
|
|
115
115
|
]
|
|
116
116
|
},
|
|
@@ -255,62 +255,62 @@
|
|
|
255
255
|
{
|
|
256
256
|
"spdxElementId": "SPDXRef-DOCUMENT",
|
|
257
257
|
"relationshipType": "DESCRIBES",
|
|
258
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
258
|
+
"relatedSpdxElement": "SPDXRef-Package-5432a369bfda3596f74d"
|
|
259
259
|
},
|
|
260
260
|
{
|
|
261
|
-
"spdxElementId": "SPDXRef-Package-
|
|
261
|
+
"spdxElementId": "SPDXRef-Package-5432a369bfda3596f74d",
|
|
262
262
|
"relationshipType": "DEPENDS_ON",
|
|
263
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
263
|
+
"relatedSpdxElement": "SPDXRef-Package-1285629aa063297fc4d4"
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
|
-
"spdxElementId": "SPDXRef-Package-
|
|
266
|
+
"spdxElementId": "SPDXRef-Package-5432a369bfda3596f74d",
|
|
267
267
|
"relationshipType": "DEPENDS_ON",
|
|
268
268
|
"relatedSpdxElement": "SPDXRef-Package-6cdb8b3664bfb0d67b6a"
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
|
-
"spdxElementId": "SPDXRef-Package-
|
|
271
|
+
"spdxElementId": "SPDXRef-Package-5432a369bfda3596f74d",
|
|
272
272
|
"relationshipType": "DEPENDS_ON",
|
|
273
273
|
"relatedSpdxElement": "SPDXRef-Package-e0e2cb449dffb239a794"
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
|
-
"spdxElementId": "SPDXRef-Package-
|
|
276
|
+
"spdxElementId": "SPDXRef-Package-5432a369bfda3596f74d",
|
|
277
277
|
"relationshipType": "DEPENDS_ON",
|
|
278
278
|
"relatedSpdxElement": "SPDXRef-Package-2e6e3840217975457b7a"
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
|
-
"spdxElementId": "SPDXRef-Package-
|
|
281
|
+
"spdxElementId": "SPDXRef-Package-5432a369bfda3596f74d",
|
|
282
282
|
"relationshipType": "DEPENDS_ON",
|
|
283
283
|
"relatedSpdxElement": "SPDXRef-Package-f155265b0db97b607227"
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
|
-
"spdxElementId": "SPDXRef-Package-
|
|
286
|
+
"spdxElementId": "SPDXRef-Package-5432a369bfda3596f74d",
|
|
287
287
|
"relationshipType": "DEPENDS_ON",
|
|
288
288
|
"relatedSpdxElement": "SPDXRef-Package-fd6dab6cd42802ee2aef"
|
|
289
289
|
},
|
|
290
290
|
{
|
|
291
|
-
"spdxElementId": "SPDXRef-Package-
|
|
291
|
+
"spdxElementId": "SPDXRef-Package-5432a369bfda3596f74d",
|
|
292
292
|
"relationshipType": "DEPENDS_ON",
|
|
293
293
|
"relatedSpdxElement": "SPDXRef-Package-c729c455e5fa67c47bfe"
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
|
-
"spdxElementId": "SPDXRef-Package-
|
|
296
|
+
"spdxElementId": "SPDXRef-Package-1285629aa063297fc4d4",
|
|
297
297
|
"relationshipType": "DEPENDS_ON",
|
|
298
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
298
|
+
"relatedSpdxElement": "SPDXRef-Package-57a7ceb65fcec231459f"
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
|
-
"spdxElementId": "SPDXRef-Package-
|
|
301
|
+
"spdxElementId": "SPDXRef-Package-1285629aa063297fc4d4",
|
|
302
302
|
"relationshipType": "DEPENDS_ON",
|
|
303
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
303
|
+
"relatedSpdxElement": "SPDXRef-Package-175336ec96592491b3a3"
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
|
-
"spdxElementId": "SPDXRef-Package-
|
|
306
|
+
"spdxElementId": "SPDXRef-Package-1285629aa063297fc4d4",
|
|
307
307
|
"relationshipType": "DEPENDS_ON",
|
|
308
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
308
|
+
"relatedSpdxElement": "SPDXRef-Package-11919d65197af4ba08df"
|
|
309
309
|
},
|
|
310
310
|
{
|
|
311
|
-
"spdxElementId": "SPDXRef-Package-
|
|
311
|
+
"spdxElementId": "SPDXRef-Package-1285629aa063297fc4d4",
|
|
312
312
|
"relationshipType": "DEPENDS_ON",
|
|
313
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
313
|
+
"relatedSpdxElement": "SPDXRef-Package-cf8076c086bed798908f"
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
"spdxElementId": "SPDXRef-Package-e0e2cb449dffb239a794",
|