@floegence/flowersec-core 5.0.2 → 5.0.4
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/node/proxyServer.js +96 -75
- package/dist/rpc/client.d.ts +4 -2
- package/dist/rpc/client.js +22 -16
- package/dist/v3/contract.d.ts +1 -1
- package/dist/v3/publicSession.js +1 -1
- package/dist/v3/session.d.ts +1 -1
- package/dist/v3/session.js +4 -4
- package/package.json +3 -3
- package/sbom/cyclonedx.json +31 -31
- package/sbom/spdx.json +36 -36
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 5.0.
|
|
7
|
-
- @floegence/flowersec-node-native-darwin-arm64 5.0.
|
|
8
|
-
- @floegence/flowersec-node-native-darwin-x64 5.0.
|
|
9
|
-
- @floegence/flowersec-node-native-linux-arm64-gnu 5.0.
|
|
10
|
-
- @floegence/flowersec-node-native-linux-x64-gnu 5.0.
|
|
6
|
+
- @floegence/flowersec-node-native 5.0.4 (Declared: MIT; selected: MIT; source: https://github.com/floegence/flowersec.git)
|
|
7
|
+
- @floegence/flowersec-node-native-darwin-arm64 5.0.4 (Declared: MIT; selected: MIT; source: https://github.com/floegence/flowersec.git)
|
|
8
|
+
- @floegence/flowersec-node-native-darwin-x64 5.0.4 (Declared: MIT; selected: MIT; source: https://github.com/floegence/flowersec.git)
|
|
9
|
+
- @floegence/flowersec-node-native-linux-arm64-gnu 5.0.4 (Declared: MIT; selected: MIT; source: https://github.com/floegence/flowersec.git)
|
|
10
|
+
- @floegence/flowersec-node-native-linux-x64-gnu 5.0.4 (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)
|
package/dist/node/proxyServer.js
CHANGED
|
@@ -149,93 +149,111 @@ export class ProxyServer {
|
|
|
149
149
|
this.#config.report?.(error);
|
|
150
150
|
}
|
|
151
151
|
catch { /* reporting is isolated */ } }
|
|
152
|
-
async #serveHTTP(stream,
|
|
153
|
-
const
|
|
154
|
-
|
|
152
|
+
async #serveHTTP(stream, parentSignal) {
|
|
153
|
+
const started = performance.now();
|
|
154
|
+
const timeoutController = new AbortController();
|
|
155
|
+
let timer = setTimeout(() => timeoutController.abort(), this.#config.maxTimeout);
|
|
156
|
+
const linked = linkSignals(parentSignal, timeoutController.signal);
|
|
157
|
+
const signal = linked.signal;
|
|
158
|
+
let reset;
|
|
159
|
+
const abort = () => { reset ??= stream.reset().catch(() => undefined); };
|
|
160
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
161
|
+
if (signal.aborted)
|
|
162
|
+
abort();
|
|
155
163
|
try {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
const timeout = normalizeTimeout(meta.timeout_ms, this.#config.defaultTimeout, this.#config.maxTimeout);
|
|
169
|
-
if (timeout === undefined) {
|
|
170
|
-
await writeHTTPError(stream, requestID, "invalid_request_meta");
|
|
171
|
-
return;
|
|
172
|
-
}
|
|
173
|
-
const body = await readBody(reader, this.#config.maxChunk, this.#config.maxBody);
|
|
174
|
-
if (body === undefined) {
|
|
175
|
-
await writeHTTPError(stream, requestID, "request_body_invalid");
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
const externalOrigin = validateOrigin(meta.external_origin, this.#config.allowedOrigins);
|
|
179
|
-
if (meta.external_origin !== undefined && externalOrigin === undefined) {
|
|
180
|
-
await writeHTTPError(stream, requestID, "invalid_request_meta");
|
|
181
|
-
return;
|
|
182
|
-
}
|
|
183
|
-
const requestHeaders = filterRequestHeaders(meta.headers, this.#config);
|
|
184
|
-
if (externalOrigin !== undefined) {
|
|
185
|
-
const explicitOrigin = requestHeaders.find((header) => header.name === "origin")?.value;
|
|
186
|
-
if (explicitOrigin !== undefined && explicitOrigin !== externalOrigin) {
|
|
164
|
+
const reader = new ProxyByteReader(stream, { signal });
|
|
165
|
+
let meta;
|
|
166
|
+
try {
|
|
167
|
+
meta = decodeHTTPMeta(await readFrame(reader, this.#config.maxJSON));
|
|
168
|
+
}
|
|
169
|
+
catch {
|
|
170
|
+
await writeHTTPError(stream, "unknown", "invalid_request_meta");
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
const requestID = meta.request_id.trim();
|
|
174
|
+
const path = normalizePath(meta.path);
|
|
175
|
+
if (meta.v !== WIRE_VERSION || requestID === "" || meta.method.trim() === "" || path === undefined) {
|
|
187
176
|
await writeHTTPError(stream, requestID, "invalid_request_meta");
|
|
188
177
|
return;
|
|
189
178
|
}
|
|
190
|
-
const
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
179
|
+
const timeout = normalizeTimeout(meta.timeout_ms, this.#config.defaultTimeout, this.#config.maxTimeout);
|
|
180
|
+
if (timeout === undefined) {
|
|
181
|
+
await writeHTTPError(stream, requestID, "invalid_request_meta");
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
clearTimeout(timer);
|
|
185
|
+
const remaining = timeout - (performance.now() - started);
|
|
186
|
+
if (remaining <= 0)
|
|
187
|
+
timeoutController.abort();
|
|
188
|
+
else
|
|
189
|
+
timer = setTimeout(() => timeoutController.abort(), remaining);
|
|
190
|
+
const body = await readBody(reader, this.#config.maxChunk, this.#config.maxBody);
|
|
191
|
+
if (body === undefined) {
|
|
192
|
+
await writeHTTPError(stream, requestID, "request_body_invalid");
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
const externalOrigin = validateOrigin(meta.external_origin, this.#config.allowedOrigins);
|
|
196
|
+
if (meta.external_origin !== undefined && externalOrigin === undefined) {
|
|
197
|
+
await writeHTTPError(stream, requestID, "invalid_request_meta");
|
|
208
198
|
return;
|
|
209
199
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
200
|
+
const requestHeaders = filterRequestHeaders(meta.headers, this.#config);
|
|
201
|
+
if (externalOrigin !== undefined) {
|
|
202
|
+
const explicitOrigin = requestHeaders.find((header) => header.name === "origin")?.value;
|
|
203
|
+
if (explicitOrigin !== undefined && explicitOrigin !== externalOrigin) {
|
|
204
|
+
await writeHTTPError(stream, requestID, "invalid_request_meta");
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
const origin = new URL(externalOrigin);
|
|
208
|
+
requestHeaders.push({ name: "x-forwarded-proto", value: origin.protocol.slice(0, -1) });
|
|
209
|
+
}
|
|
210
|
+
const headers = Object.fromEntries(requestHeaders.map((header) => [header.name, header.value]));
|
|
211
|
+
const target = new URL(path, this.#config.upstream);
|
|
212
|
+
const requestInit = {
|
|
213
|
+
method: meta.method.trim().toUpperCase(), headers, redirect: "manual", signal,
|
|
214
|
+
...(body.byteLength === 0 ? {} : { body: body.slice().buffer, duplex: "half" }),
|
|
215
|
+
};
|
|
216
|
+
try {
|
|
217
|
+
const response = await fetch(target, requestInit);
|
|
218
|
+
const contentLength = response.headers.get("content-length");
|
|
219
|
+
if (contentLength !== null && Number(contentLength) > this.#config.maxBody) {
|
|
220
|
+
await writeHTTPError(stream, requestID, "response_body_too_large");
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
await writeFrame(stream, {
|
|
224
|
+
v: WIRE_VERSION, request_id: requestID, ok: true, status: response.status,
|
|
225
|
+
headers: filterHeaders(responseHeaderList(response.headers), RESPONSE_HEADERS, this.#config.responseHeaders, this.#config.blockedResponseHeaders),
|
|
226
|
+
}, signal);
|
|
227
|
+
let total = 0;
|
|
228
|
+
const reader = response.body?.getReader();
|
|
229
|
+
if (reader !== undefined) {
|
|
230
|
+
while (true) {
|
|
231
|
+
const result = await reader.read();
|
|
232
|
+
if (result.done)
|
|
233
|
+
break;
|
|
234
|
+
total += result.value.length;
|
|
235
|
+
if (total > this.#config.maxBody)
|
|
236
|
+
throw new Error("upstream response body exceeds limit");
|
|
237
|
+
for (let offset = 0; offset < result.value.length; offset += this.#config.maxChunk) {
|
|
238
|
+
await writeChunk(stream, result.value.subarray(offset, offset + this.#config.maxChunk), signal);
|
|
239
|
+
}
|
|
226
240
|
}
|
|
227
241
|
}
|
|
242
|
+
await writeChunk(stream, new Uint8Array(), signal);
|
|
243
|
+
}
|
|
244
|
+
catch (error) {
|
|
245
|
+
if (signal.aborted)
|
|
246
|
+
throw error;
|
|
247
|
+
const code = timeoutController.signal.aborted ? "timeout" : signal.aborted ? "canceled" : "upstream_request_failed";
|
|
248
|
+
await writeHTTPError(stream, requestID, code);
|
|
249
|
+
this.#report(error);
|
|
228
250
|
}
|
|
229
|
-
await writeChunk(stream, new Uint8Array(), signal);
|
|
230
|
-
}
|
|
231
|
-
catch (error) {
|
|
232
|
-
const code = timeoutController.signal.aborted ? "timeout" : signal.aborted ? "canceled" : "upstream_request_failed";
|
|
233
|
-
await writeHTTPError(stream, requestID, code);
|
|
234
|
-
this.#report(error);
|
|
235
251
|
}
|
|
236
252
|
finally {
|
|
237
253
|
clearTimeout(timer);
|
|
238
254
|
linked.dispose();
|
|
255
|
+
signal.removeEventListener("abort", abort);
|
|
256
|
+
await reset;
|
|
239
257
|
}
|
|
240
258
|
}
|
|
241
259
|
async #serveWebSocket(stream, signal) {
|
|
@@ -457,7 +475,10 @@ function validateOrigin(value, allowed) { if (value === undefined || value === "
|
|
|
457
475
|
catch {
|
|
458
476
|
return undefined;
|
|
459
477
|
} }
|
|
460
|
-
function linkSignals(parent, timeout) { const controller = new AbortController(); const abort = (event) => controller.abort(event.target.reason); parent.addEventListener("abort", abort, { once: true }); timeout.addEventListener("abort", abort, { once: true });
|
|
478
|
+
function linkSignals(parent, timeout) { const controller = new AbortController(); const abort = (event) => controller.abort(event.target.reason); parent.addEventListener("abort", abort, { once: true }); timeout.addEventListener("abort", abort, { once: true }); if (parent.aborted)
|
|
479
|
+
controller.abort(parent.reason);
|
|
480
|
+
else if (timeout.aborted)
|
|
481
|
+
controller.abort(timeout.reason); return { signal: controller.signal, dispose: () => { parent.removeEventListener("abort", abort); timeout.removeEventListener("abort", abort); } }; }
|
|
461
482
|
function decodeHTTPMeta(value) { if (!isRecord(value) || value.v !== WIRE_VERSION || typeof value.request_id !== "string" || typeof value.method !== "string" || typeof value.path !== "string" || !Array.isArray(value.headers) || (value.external_origin !== undefined && typeof value.external_origin !== "string") || (value.timeout_ms !== undefined && typeof value.timeout_ms !== "number"))
|
|
462
483
|
throw new Error("invalid HTTP metadata"); return { v: value.v, request_id: value.request_id, method: value.method, path: value.path, headers: value.headers.filter(isHeader), ...(value.external_origin === undefined ? {} : { external_origin: value.external_origin }), ...(value.timeout_ms === undefined ? {} : { timeout_ms: value.timeout_ms }) }; }
|
|
463
484
|
function decodeWSOpen(value) { if (!isRecord(value) || value.v !== WIRE_VERSION || typeof value.conn_id !== "string" || typeof value.path !== "string" || !Array.isArray(value.headers))
|
package/dist/rpc/client.d.ts
CHANGED
|
@@ -6,8 +6,9 @@ export declare class RpcClient {
|
|
|
6
6
|
private readonly pending;
|
|
7
7
|
private readonly notifyHandlers;
|
|
8
8
|
private closed;
|
|
9
|
+
private writeTail;
|
|
9
10
|
private readonly onTerminal;
|
|
10
|
-
constructor(readExactly: (n: number) => Promise<Uint8Array>, write: (b: Uint8Array) => Promise<void>, opts?: Readonly<{
|
|
11
|
+
constructor(readExactly: (n: number) => Promise<Uint8Array>, write: (b: Uint8Array, signal?: AbortSignal) => Promise<void>, opts?: Readonly<{
|
|
11
12
|
onTerminal?: (error: Error) => void;
|
|
12
13
|
}>);
|
|
13
14
|
call(typeId: number, payload: unknown, signal?: AbortSignal): Promise<{
|
|
@@ -16,6 +17,7 @@ export declare class RpcClient {
|
|
|
16
17
|
}>;
|
|
17
18
|
close(): void;
|
|
18
19
|
onNotify(typeId: number, handler: (payload: unknown) => void): () => void;
|
|
19
|
-
notify(typeId: number, payload: unknown): Promise<void>;
|
|
20
|
+
notify(typeId: number, payload: unknown, signal?: AbortSignal): Promise<void>;
|
|
21
|
+
private writeEnvelope;
|
|
20
22
|
private readLoop;
|
|
21
23
|
}
|
package/dist/rpc/client.js
CHANGED
|
@@ -14,6 +14,7 @@ export class RpcClient {
|
|
|
14
14
|
notifyHandlers = new Map();
|
|
15
15
|
// Closed state to stop the read loop and reject calls.
|
|
16
16
|
closed = false;
|
|
17
|
+
writeTail = Promise.resolve();
|
|
17
18
|
onTerminal;
|
|
18
19
|
constructor(readExactly, write, opts = {}) {
|
|
19
20
|
this.readExactly = readExactly;
|
|
@@ -25,6 +26,8 @@ export class RpcClient {
|
|
|
25
26
|
async call(typeId, payload, signal) {
|
|
26
27
|
if (this.closed)
|
|
27
28
|
throw new Error("rpc client closed");
|
|
29
|
+
if (signal?.aborted)
|
|
30
|
+
throw signal.reason ?? new DOMException("The operation was aborted", "AbortError");
|
|
28
31
|
const validatedTypeId = assertRpcTypeId(typeId);
|
|
29
32
|
if (this.nextId > MAX_SAFE_REQUEST_ID)
|
|
30
33
|
throw new Error("request id overflow");
|
|
@@ -39,24 +42,15 @@ export class RpcClient {
|
|
|
39
42
|
const p = new Promise((resolve, reject) => {
|
|
40
43
|
this.pending.set(requestId, { resolve, reject });
|
|
41
44
|
});
|
|
42
|
-
try {
|
|
43
|
-
await writeJsonFrame(this.write, env, DEFAULT_MAX_JSON_FRAME_BYTES);
|
|
44
|
-
}
|
|
45
|
-
catch (e) {
|
|
46
|
-
this.pending.delete(requestId);
|
|
47
|
-
throw e;
|
|
48
|
-
}
|
|
49
|
-
if (signal?.aborted) {
|
|
50
|
-
this.pending.delete(requestId);
|
|
51
|
-
throw signal.reason ?? new Error("aborted");
|
|
52
|
-
}
|
|
53
45
|
let resp;
|
|
54
46
|
try {
|
|
55
|
-
|
|
47
|
+
// Own both rejections before either side can settle. Cancellation covers
|
|
48
|
+
// queued writes as well as the response wait.
|
|
49
|
+
const result = await raceAbort(Promise.all([this.writeEnvelope(env, signal), p]), signal);
|
|
50
|
+
resp = result[1];
|
|
56
51
|
}
|
|
57
|
-
|
|
52
|
+
finally {
|
|
58
53
|
this.pending.delete(requestId);
|
|
59
|
-
throw e;
|
|
60
54
|
}
|
|
61
55
|
if (resp.error == null)
|
|
62
56
|
return { payload: resp.payload };
|
|
@@ -84,7 +78,7 @@ export class RpcClient {
|
|
|
84
78
|
};
|
|
85
79
|
}
|
|
86
80
|
// notify sends a one-way notification to the peer.
|
|
87
|
-
async notify(typeId, payload) {
|
|
81
|
+
async notify(typeId, payload, signal) {
|
|
88
82
|
if (this.closed)
|
|
89
83
|
throw new Error("rpc client closed");
|
|
90
84
|
const validatedTypeId = assertRpcTypeId(typeId);
|
|
@@ -94,7 +88,18 @@ export class RpcClient {
|
|
|
94
88
|
response_to: 0,
|
|
95
89
|
payload
|
|
96
90
|
};
|
|
97
|
-
await
|
|
91
|
+
await raceAbort(this.writeEnvelope(env, signal), signal);
|
|
92
|
+
}
|
|
93
|
+
writeEnvelope(envelope, signal) {
|
|
94
|
+
const operation = this.writeTail.then(async () => {
|
|
95
|
+
if (signal?.aborted)
|
|
96
|
+
throw signal.reason ?? new DOMException("The operation was aborted", "AbortError");
|
|
97
|
+
if (this.closed)
|
|
98
|
+
throw new Error("rpc client closed");
|
|
99
|
+
await writeJsonFrame((bytes) => this.write(bytes, signal), envelope, DEFAULT_MAX_JSON_FRAME_BYTES);
|
|
100
|
+
});
|
|
101
|
+
this.writeTail = operation.catch(() => undefined);
|
|
102
|
+
return operation;
|
|
98
103
|
}
|
|
99
104
|
async readLoop() {
|
|
100
105
|
try {
|
|
@@ -144,6 +149,7 @@ export class RpcClient {
|
|
|
144
149
|
}
|
|
145
150
|
// raceAbort resolves p unless the signal aborts first.
|
|
146
151
|
async function raceAbort(p, signal) {
|
|
152
|
+
void p.catch(() => undefined);
|
|
147
153
|
if (signal == null)
|
|
148
154
|
return p;
|
|
149
155
|
if (signal.aborted)
|
package/dist/v3/contract.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export interface InternalRpcPeerV3 {
|
|
|
56
56
|
payload: unknown;
|
|
57
57
|
error?: RpcError;
|
|
58
58
|
}>;
|
|
59
|
-
notify(typeId: number, payload: unknown): Promise<void>;
|
|
59
|
+
notify(typeId: number, payload: unknown, signal?: AbortSignal): Promise<void>;
|
|
60
60
|
onNotify(typeId: number, handler: (payload: unknown) => void): () => void;
|
|
61
61
|
close(): void;
|
|
62
62
|
}
|
package/dist/v3/publicSession.js
CHANGED
|
@@ -152,7 +152,7 @@ function projectRpcPeerV3(peer, notificationOwner) {
|
|
|
152
152
|
assertJsonValue(payload);
|
|
153
153
|
if (options?.signal?.aborted)
|
|
154
154
|
throw options.signal.reason ?? new DOMException("The operation was aborted", "AbortError");
|
|
155
|
-
await raceWithSignal(peer.notify(typeId, payload), options?.signal);
|
|
155
|
+
await raceWithSignal(peer.notify(typeId, payload, options?.signal), options?.signal);
|
|
156
156
|
}
|
|
157
157
|
catch (error) {
|
|
158
158
|
throw redactSessionError(error);
|
package/dist/v3/session.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ declare class SessionRpcPeerV3 implements InternalRpcPeerV3 {
|
|
|
57
57
|
payload: unknown;
|
|
58
58
|
error?: import("../rpc/wire.js").RpcError;
|
|
59
59
|
}>;
|
|
60
|
-
notify(typeId: number, payload: unknown): Promise<void>;
|
|
60
|
+
notify(typeId: number, payload: unknown, signal?: AbortSignal): Promise<void>;
|
|
61
61
|
onNotify(typeId: number, handler: (payload: unknown) => void): () => void;
|
|
62
62
|
close(): void;
|
|
63
63
|
}
|
package/dist/v3/session.js
CHANGED
|
@@ -33,8 +33,8 @@ class SessionRpcPeerV3 {
|
|
|
33
33
|
call(typeId, payload, signal) {
|
|
34
34
|
return this.outbound.call(typeId, payload, signal);
|
|
35
35
|
}
|
|
36
|
-
notify(typeId, payload) {
|
|
37
|
-
return this.outbound.notify(typeId, payload);
|
|
36
|
+
notify(typeId, payload, signal) {
|
|
37
|
+
return this.outbound.notify(typeId, payload, signal);
|
|
38
38
|
}
|
|
39
39
|
onNotify(typeId, handler) {
|
|
40
40
|
return this.inbound.onNotify(typeId, handler);
|
|
@@ -188,10 +188,10 @@ export class SessionV3 {
|
|
|
188
188
|
const stream = await this.ensureRPCStream();
|
|
189
189
|
rpcReadState.reader ??= new ExactReader(stream);
|
|
190
190
|
return await rpcReadState.reader.readExactly(length);
|
|
191
|
-
}, async (payload) => {
|
|
191
|
+
}, async (payload, signal) => {
|
|
192
192
|
this.rpcActivation.resolve();
|
|
193
193
|
const stream = await this.ensureRPCStream();
|
|
194
|
-
await stream.write(payload);
|
|
194
|
+
await stream.write(payload, signal === undefined ? {} : { signal });
|
|
195
195
|
}, { onTerminal: (error) => this.fail(error) });
|
|
196
196
|
this.rpc = new SessionRpcPeerV3(rpcClient, this.rpcRouter);
|
|
197
197
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floegence/flowersec-core",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Flowersec core TypeScript library for carrier-neutral encrypted sessions and multiplexed streams.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"vitest": "4.1.11"
|
|
96
96
|
},
|
|
97
97
|
"optionalDependencies": {
|
|
98
|
-
"@floegence/flowersec-node-native": "5.0.
|
|
98
|
+
"@floegence/flowersec-node-native": "5.0.4"
|
|
99
99
|
},
|
|
100
|
-
"flowersecSourceCommit": "
|
|
100
|
+
"flowersecSourceCommit": "c7f7ef0ab82ca329703bd727433075f2996f1127"
|
|
101
101
|
}
|
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:6039ab01-9a2a-5a20-87ae-899bb738f3d0",
|
|
5
5
|
"version": 1,
|
|
6
6
|
"metadata": {
|
|
7
7
|
"component": {
|
|
8
8
|
"type": "library",
|
|
9
9
|
"name": "@floegence/flowersec-core",
|
|
10
|
-
"version": "5.0.
|
|
11
|
-
"purl": "pkg:npm/%40floegence/flowersec-core@5.0.
|
|
12
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-core@5.0.
|
|
10
|
+
"version": "5.0.4",
|
|
11
|
+
"purl": "pkg:npm/%40floegence/flowersec-core@5.0.4",
|
|
12
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-core@5.0.4"
|
|
13
13
|
},
|
|
14
14
|
"properties": [
|
|
15
15
|
{
|
|
16
16
|
"name": "flowersec:source-inventory-sha256",
|
|
17
|
-
"value": "
|
|
17
|
+
"value": "1d811c3e752603c670a7bd1edb9032d5ebc3bbb8e7dad0c537b40e0fd7c157d8"
|
|
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": "5.0.
|
|
26
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native@5.0.
|
|
27
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native@5.0.
|
|
25
|
+
"version": "5.0.4",
|
|
26
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native@5.0.4",
|
|
27
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native@5.0.4",
|
|
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": "5.0.
|
|
54
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@5.0.
|
|
55
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@5.0.
|
|
53
|
+
"version": "5.0.4",
|
|
54
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@5.0.4",
|
|
55
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@5.0.4",
|
|
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": "5.0.
|
|
82
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@5.0.
|
|
83
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@5.0.
|
|
81
|
+
"version": "5.0.4",
|
|
82
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@5.0.4",
|
|
83
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@5.0.4",
|
|
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": "5.0.
|
|
110
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@5.0.
|
|
111
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@5.0.
|
|
109
|
+
"version": "5.0.4",
|
|
110
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@5.0.4",
|
|
111
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@5.0.4",
|
|
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": "5.0.
|
|
138
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@5.0.
|
|
139
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@5.0.
|
|
137
|
+
"version": "5.0.4",
|
|
138
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@5.0.4",
|
|
139
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@5.0.4",
|
|
140
140
|
"licenses": [
|
|
141
141
|
{
|
|
142
142
|
"expression": "MIT"
|
|
@@ -330,9 +330,9 @@
|
|
|
330
330
|
],
|
|
331
331
|
"dependencies": [
|
|
332
332
|
{
|
|
333
|
-
"ref": "pkg:npm/%40floegence/flowersec-core@5.0.
|
|
333
|
+
"ref": "pkg:npm/%40floegence/flowersec-core@5.0.4",
|
|
334
334
|
"dependsOn": [
|
|
335
|
-
"pkg:npm/%40floegence/flowersec-node-native@5.0.
|
|
335
|
+
"pkg:npm/%40floegence/flowersec-node-native@5.0.4",
|
|
336
336
|
"pkg:npm/%40noble/ciphers@2.4.0",
|
|
337
337
|
"pkg:npm/%40noble/curves@2.4.0",
|
|
338
338
|
"pkg:npm/%40noble/hashes@2.4.0",
|
|
@@ -341,28 +341,28 @@
|
|
|
341
341
|
]
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native@5.0.
|
|
344
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native@5.0.4",
|
|
345
345
|
"dependsOn": [
|
|
346
|
-
"pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@5.0.
|
|
347
|
-
"pkg:npm/%40floegence/flowersec-node-native-darwin-x64@5.0.
|
|
348
|
-
"pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@5.0.
|
|
349
|
-
"pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@5.0.
|
|
346
|
+
"pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@5.0.4",
|
|
347
|
+
"pkg:npm/%40floegence/flowersec-node-native-darwin-x64@5.0.4",
|
|
348
|
+
"pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@5.0.4",
|
|
349
|
+
"pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@5.0.4"
|
|
350
350
|
]
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@5.0.
|
|
353
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@5.0.4",
|
|
354
354
|
"dependsOn": []
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@5.0.
|
|
357
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@5.0.4",
|
|
358
358
|
"dependsOn": []
|
|
359
359
|
},
|
|
360
360
|
{
|
|
361
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@5.0.
|
|
361
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@5.0.4",
|
|
362
362
|
"dependsOn": []
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@5.0.
|
|
365
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@5.0.4",
|
|
366
366
|
"dependsOn": []
|
|
367
367
|
},
|
|
368
368
|
{
|
package/sbom/spdx.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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/1d811c3e752603c670a7bd1edb9032d5ebc3bbb8e7dad0c537b40e0fd7c157d8",
|
|
7
7
|
"creationInfo": {
|
|
8
8
|
"created": "2026-09-04T01:34:01Z",
|
|
9
9
|
"creators": [
|
|
@@ -13,26 +13,26 @@
|
|
|
13
13
|
"packages": [
|
|
14
14
|
{
|
|
15
15
|
"name": "@floegence/flowersec-core",
|
|
16
|
-
"SPDXID": "SPDXRef-Package-
|
|
17
|
-
"versionInfo": "5.0.
|
|
16
|
+
"SPDXID": "SPDXRef-Package-76f76655df85108ee0d0",
|
|
17
|
+
"versionInfo": "5.0.4",
|
|
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: 1d811c3e752603c670a7bd1edb9032d5ebc3bbb8e7dad0c537b40e0fd7c157d8",
|
|
24
24
|
"externalRefs": [
|
|
25
25
|
{
|
|
26
26
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
27
27
|
"referenceType": "purl",
|
|
28
|
-
"referenceLocator": "pkg:npm/%40floegence/flowersec-core@5.0.
|
|
28
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-core@5.0.4"
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "@floegence/flowersec-node-native",
|
|
34
|
-
"SPDXID": "SPDXRef-Package-
|
|
35
|
-
"versionInfo": "5.0.
|
|
34
|
+
"SPDXID": "SPDXRef-Package-eaba5905b7c607ccf435",
|
|
35
|
+
"versionInfo": "5.0.4",
|
|
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@5.0.
|
|
45
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native@5.0.4"
|
|
46
46
|
}
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"name": "@floegence/flowersec-node-native-darwin-arm64",
|
|
51
|
-
"SPDXID": "SPDXRef-Package-
|
|
52
|
-
"versionInfo": "5.0.
|
|
51
|
+
"SPDXID": "SPDXRef-Package-7c37536aff97144c437d",
|
|
52
|
+
"versionInfo": "5.0.4",
|
|
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@5.0.
|
|
62
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@5.0.4"
|
|
63
63
|
}
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "@floegence/flowersec-node-native-darwin-x64",
|
|
68
|
-
"SPDXID": "SPDXRef-Package-
|
|
69
|
-
"versionInfo": "5.0.
|
|
68
|
+
"SPDXID": "SPDXRef-Package-810d8647e49cab312ddf",
|
|
69
|
+
"versionInfo": "5.0.4",
|
|
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@5.0.
|
|
79
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@5.0.4"
|
|
80
80
|
}
|
|
81
81
|
]
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"name": "@floegence/flowersec-node-native-linux-arm64-gnu",
|
|
85
|
-
"SPDXID": "SPDXRef-Package-
|
|
86
|
-
"versionInfo": "5.0.
|
|
85
|
+
"SPDXID": "SPDXRef-Package-16ea1010a290d52cbeae",
|
|
86
|
+
"versionInfo": "5.0.4",
|
|
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@5.0.
|
|
96
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@5.0.4"
|
|
97
97
|
}
|
|
98
98
|
]
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"name": "@floegence/flowersec-node-native-linux-x64-gnu",
|
|
102
|
-
"SPDXID": "SPDXRef-Package-
|
|
103
|
-
"versionInfo": "5.0.
|
|
102
|
+
"SPDXID": "SPDXRef-Package-9f150aef88bc8208a2ed",
|
|
103
|
+
"versionInfo": "5.0.4",
|
|
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@5.0.
|
|
113
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@5.0.4"
|
|
114
114
|
}
|
|
115
115
|
]
|
|
116
116
|
},
|
|
@@ -221,57 +221,57 @@
|
|
|
221
221
|
{
|
|
222
222
|
"spdxElementId": "SPDXRef-DOCUMENT",
|
|
223
223
|
"relationshipType": "DESCRIBES",
|
|
224
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
224
|
+
"relatedSpdxElement": "SPDXRef-Package-76f76655df85108ee0d0"
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
|
-
"spdxElementId": "SPDXRef-Package-
|
|
227
|
+
"spdxElementId": "SPDXRef-Package-76f76655df85108ee0d0",
|
|
228
228
|
"relationshipType": "DEPENDS_ON",
|
|
229
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
229
|
+
"relatedSpdxElement": "SPDXRef-Package-eaba5905b7c607ccf435"
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
|
-
"spdxElementId": "SPDXRef-Package-
|
|
232
|
+
"spdxElementId": "SPDXRef-Package-76f76655df85108ee0d0",
|
|
233
233
|
"relationshipType": "DEPENDS_ON",
|
|
234
234
|
"relatedSpdxElement": "SPDXRef-Package-6cdb8b3664bfb0d67b6a"
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
|
-
"spdxElementId": "SPDXRef-Package-
|
|
237
|
+
"spdxElementId": "SPDXRef-Package-76f76655df85108ee0d0",
|
|
238
238
|
"relationshipType": "DEPENDS_ON",
|
|
239
239
|
"relatedSpdxElement": "SPDXRef-Package-e0e2cb449dffb239a794"
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
|
-
"spdxElementId": "SPDXRef-Package-
|
|
242
|
+
"spdxElementId": "SPDXRef-Package-76f76655df85108ee0d0",
|
|
243
243
|
"relationshipType": "DEPENDS_ON",
|
|
244
244
|
"relatedSpdxElement": "SPDXRef-Package-2e6e3840217975457b7a"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
|
-
"spdxElementId": "SPDXRef-Package-
|
|
247
|
+
"spdxElementId": "SPDXRef-Package-76f76655df85108ee0d0",
|
|
248
248
|
"relationshipType": "DEPENDS_ON",
|
|
249
249
|
"relatedSpdxElement": "SPDXRef-Package-5b9d78698ec0a5c8f86f"
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
|
-
"spdxElementId": "SPDXRef-Package-
|
|
252
|
+
"spdxElementId": "SPDXRef-Package-76f76655df85108ee0d0",
|
|
253
253
|
"relationshipType": "DEPENDS_ON",
|
|
254
254
|
"relatedSpdxElement": "SPDXRef-Package-b779412f685822663496"
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
|
-
"spdxElementId": "SPDXRef-Package-
|
|
257
|
+
"spdxElementId": "SPDXRef-Package-eaba5905b7c607ccf435",
|
|
258
258
|
"relationshipType": "DEPENDS_ON",
|
|
259
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
259
|
+
"relatedSpdxElement": "SPDXRef-Package-7c37536aff97144c437d"
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
|
-
"spdxElementId": "SPDXRef-Package-
|
|
262
|
+
"spdxElementId": "SPDXRef-Package-eaba5905b7c607ccf435",
|
|
263
263
|
"relationshipType": "DEPENDS_ON",
|
|
264
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
264
|
+
"relatedSpdxElement": "SPDXRef-Package-810d8647e49cab312ddf"
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
|
-
"spdxElementId": "SPDXRef-Package-
|
|
267
|
+
"spdxElementId": "SPDXRef-Package-eaba5905b7c607ccf435",
|
|
268
268
|
"relationshipType": "DEPENDS_ON",
|
|
269
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
269
|
+
"relatedSpdxElement": "SPDXRef-Package-16ea1010a290d52cbeae"
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
|
-
"spdxElementId": "SPDXRef-Package-
|
|
272
|
+
"spdxElementId": "SPDXRef-Package-eaba5905b7c607ccf435",
|
|
273
273
|
"relationshipType": "DEPENDS_ON",
|
|
274
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
274
|
+
"relatedSpdxElement": "SPDXRef-Package-9f150aef88bc8208a2ed"
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
277
|
"spdxElementId": "SPDXRef-Package-e0e2cb449dffb239a794",
|