@floegence/flowersec-core 3.1.0 → 3.2.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/README.md +10 -0
- package/THIRD_PARTY_NOTICES.md +5 -5
- package/dist/browser/connectSessionV3.d.ts +14 -1
- package/dist/browser/connectSessionV3.js +154 -11
- package/dist/browser/index.d.ts +4 -1
- package/dist/browser/index.js +2 -1
- package/dist/browser/privateLoopbackV1.d.ts +30 -0
- package/dist/browser/privateLoopbackV1.js +141 -0
- package/package.json +3 -3
- package/sbom/cyclonedx.json +31 -31
- package/sbom/spdx.json +36 -36
package/README.md
CHANGED
|
@@ -18,6 +18,16 @@ npm install @floegence/flowersec-core
|
|
|
18
18
|
- `@floegence/flowersec-core/node` adds the V3 `connect(...)`, `createConnectionController(...)`, direct-only `createAcceptor(...)`, opaque `createTunnelRuntime(...)`, `AcceptedSession`, `SessionHandlers`, and `RPCHandlers` APIs. Legacy V2 server, control-plane, and `ProxyServer` APIs are available only under the explicit `node.v2` namespace; the Go control-plane remains the only v3 invitation issuer.
|
|
19
19
|
- `@floegence/flowersec-core/proxy` adds the `Session`-based HTTP/WebSocket runtime, Service Worker and controller/app-window bridges, strict `proxy.runtime@2` validation, and `connectProxyBrowser(...)` composition.
|
|
20
20
|
|
|
21
|
+
The browser entrypoint also exposes the isolated
|
|
22
|
+
`flowersec-private-loopback/1` parser, lease, one-shot connector, and
|
|
23
|
+
connection controller. Only these dedicated APIs accept the profile, and they
|
|
24
|
+
require the exact numeric-loopback HTTP origin. Ordinary `connect(...)`
|
|
25
|
+
continues to accept only standard `flowersec/3` artifacts and WSS/WebTransport
|
|
26
|
+
security capabilities.
|
|
27
|
+
|
|
28
|
+
The complete boundary is documented in the
|
|
29
|
+
[private loopback profile](../docs/PRIVATE_LOOPBACK_V1.md).
|
|
30
|
+
|
|
21
31
|
The root type exports are:
|
|
22
32
|
|
|
23
33
|
- Artifact lifecycle: `Artifact`, closed `ArtifactError` parse failures, and `ArtifactLease`.
|
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 3.
|
|
7
|
-
- @floegence/flowersec-node-native-darwin-arm64 3.
|
|
8
|
-
- @floegence/flowersec-node-native-darwin-x64 3.
|
|
9
|
-
- @floegence/flowersec-node-native-linux-arm64-gnu 3.
|
|
10
|
-
- @floegence/flowersec-node-native-linux-x64-gnu 3.
|
|
6
|
+
- @floegence/flowersec-node-native 3.2.0 (Declared: MIT; selected: MIT; source: https://github.com/floegence/flowersec.git)
|
|
7
|
+
- @floegence/flowersec-node-native-darwin-arm64 3.2.0 (Declared: MIT; selected: MIT; source: https://github.com/floegence/flowersec.git)
|
|
8
|
+
- @floegence/flowersec-node-native-darwin-x64 3.2.0 (Declared: MIT; selected: MIT; source: https://github.com/floegence/flowersec.git)
|
|
9
|
+
- @floegence/flowersec-node-native-linux-arm64-gnu 3.2.0 (Declared: MIT; selected: MIT; source: https://github.com/floegence/flowersec.git)
|
|
10
|
+
- @floegence/flowersec-node-native-linux-x64-gnu 3.2.0 (Declared: MIT; selected: MIT; source: https://github.com/floegence/flowersec.git)
|
|
11
11
|
- @noble/ciphers 2.3.0 (Declared: MIT; selected: MIT; source: https://registry.npmjs.org/@noble/ciphers/-/ciphers-2.3.0.tgz)
|
|
12
12
|
- @noble/curves 2.3.0 (Declared: MIT; selected: MIT; source: https://registry.npmjs.org/@noble/curves/-/curves-2.3.0.tgz)
|
|
13
13
|
- @noble/hashes 2.3.0 (Declared: MIT; selected: MIT; source: https://registry.npmjs.org/@noble/hashes/-/hashes-2.3.0.tgz)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Session } from "../public/contract.js";
|
|
2
|
-
import type
|
|
2
|
+
import { type ArtifactLeaseV3 } from "../v3/artifactLease.js";
|
|
3
3
|
import { type ArtifactSourceV3, type ConnectionControllerV3 } from "../v3/connectionController.js";
|
|
4
|
+
import { type PrivateLoopbackArtifactLeaseV1, type PrivateLoopbackArtifactSourceV1 } from "./privateLoopbackV1.js";
|
|
4
5
|
export type SessionOptionsV3 = Readonly<{
|
|
5
6
|
signal?: AbortSignal;
|
|
6
7
|
connectTimeoutMs?: number;
|
|
@@ -9,5 +10,17 @@ export type ConnectionControllerOptionsV3 = Readonly<{
|
|
|
9
10
|
maximumAttempts?: number;
|
|
10
11
|
connectTimeoutMs?: number;
|
|
11
12
|
}>;
|
|
13
|
+
export type PrivateLoopbackSessionOptionsV1 = Readonly<{
|
|
14
|
+
origin: string;
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
connectTimeoutMs?: number;
|
|
17
|
+
}>;
|
|
18
|
+
export type PrivateLoopbackConnectionControllerOptionsV1 = Readonly<{
|
|
19
|
+
origin: string;
|
|
20
|
+
maximumAttempts?: number;
|
|
21
|
+
connectTimeoutMs?: number;
|
|
22
|
+
}>;
|
|
12
23
|
export declare function connectV3(lease: ArtifactLeaseV3, options?: SessionOptionsV3): Promise<Session>;
|
|
13
24
|
export declare function createConnectionControllerV3(source: ArtifactSourceV3, options?: ConnectionControllerOptionsV3): Promise<ConnectionControllerV3<Session>>;
|
|
25
|
+
export declare function connectPrivateLoopbackV1(lease: PrivateLoopbackArtifactLeaseV1, options: PrivateLoopbackSessionOptionsV1): Promise<Session>;
|
|
26
|
+
export declare function createPrivateLoopbackConnectionControllerV1(source: PrivateLoopbackArtifactSourceV1, options: PrivateLoopbackConnectionControllerOptionsV1): Promise<ConnectionControllerV3<Session>>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { SDK_DEFAULTS } from "../defaults.js";
|
|
2
|
+
import { claimArtifactLeaseV3, retireArtifactLeaseV3, } from "../v3/artifactLease.js";
|
|
2
3
|
import { createConnectionControllerV3 as createCoreControllerV3, } from "../v3/connectionController.js";
|
|
3
4
|
import { BrowserRuntimeCapabilityRegistryV3, createBrowserWebTransportCarrierV3, } from "../v3/browserRuntime.js";
|
|
4
5
|
import { attemptClaimedArtifactLeaseV3, connectArtifactLeaseV3 } from "../v3/sessionConnector.js";
|
|
5
6
|
import { readyNativeAdmissionV3, readyWebSocketAdmissionV3 } from "../v3/runtimeAdapters.js";
|
|
6
7
|
import { TransportFailureV3, ConnectErrorV3 } from "../v3/security.js";
|
|
7
8
|
import { browserSessionRuntimeV3 } from "../v3/browserSessionRuntime.js";
|
|
9
|
+
import { unwrapPrivateLoopbackArtifactLeaseV1, validatePrivateLoopbackOriginV1, } from "./privateLoopbackV1.js";
|
|
8
10
|
export async function connectV3(lease, options = {}) {
|
|
9
11
|
const registry = await BrowserRuntimeCapabilityRegistryV3.create();
|
|
10
12
|
return await connectArtifactLeaseV3(lease, browserRuntime(registry, options.connectTimeoutMs), options.signal);
|
|
@@ -19,6 +21,110 @@ export async function createConnectionControllerV3(source, options = {}) {
|
|
|
19
21
|
};
|
|
20
22
|
return createCoreControllerV3(source, async (context) => await attemptClaimedArtifactLeaseV3(context, runtime), coreOptions);
|
|
21
23
|
}
|
|
24
|
+
export async function connectPrivateLoopbackV1(lease, options) {
|
|
25
|
+
const privateOrigin = requirePrivateLoopbackOrigin(options.origin);
|
|
26
|
+
const unwrapped = unwrapPrivateLoopbackLease(lease);
|
|
27
|
+
if (new URL(unwrapped.endpoint).origin.replace(/^ws:/, "http:") !== privateOrigin) {
|
|
28
|
+
await retireInnerLease(unwrapped.innerLease);
|
|
29
|
+
throw new ConnectErrorV3("artifact_invalid", { kind: "terminal" });
|
|
30
|
+
}
|
|
31
|
+
const registry = await BrowserRuntimeCapabilityRegistryV3.create();
|
|
32
|
+
return await connectArtifactLeaseV3(unwrapped.innerLease, privateLoopbackBrowserRuntime(registry, options.connectTimeoutMs, privateOrigin), options.signal);
|
|
33
|
+
}
|
|
34
|
+
export async function createPrivateLoopbackConnectionControllerV1(source, options) {
|
|
35
|
+
const privateOrigin = requirePrivateLoopbackOrigin(options.origin);
|
|
36
|
+
const registry = await BrowserRuntimeCapabilityRegistryV3.create();
|
|
37
|
+
const runtime = privateLoopbackBrowserRuntime(registry, options.connectTimeoutMs, privateOrigin);
|
|
38
|
+
const mappedSource = {
|
|
39
|
+
acquire: async ({ signal }) => {
|
|
40
|
+
const result = await source.acquire({ signal });
|
|
41
|
+
return await mapPrivateLoopbackSourceResult(result, privateOrigin);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
return createCoreControllerV3(mappedSource, async (context) => await attemptClaimedArtifactLeaseV3(context, runtime), {
|
|
45
|
+
capabilitySnapshot: runtime.capabilitySnapshot,
|
|
46
|
+
projectSessionFailure,
|
|
47
|
+
...(options.maximumAttempts === undefined ? {} : { maximumAttempts: options.maximumAttempts }),
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function requirePrivateLoopbackOrigin(raw) {
|
|
51
|
+
try {
|
|
52
|
+
return validatePrivateLoopbackOriginV1(raw);
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
throw new ConnectErrorV3("artifact_invalid", { kind: "terminal" });
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const invalidPrivateSourceResult = () => ({
|
|
59
|
+
kind: "failure",
|
|
60
|
+
code: "artifact_invalid",
|
|
61
|
+
disposition: { kind: "terminal" },
|
|
62
|
+
});
|
|
63
|
+
async function mapPrivateLoopbackSourceResult(result, privateOrigin) {
|
|
64
|
+
let descriptors;
|
|
65
|
+
let keys;
|
|
66
|
+
try {
|
|
67
|
+
if (typeof result !== "object" || result === null || Array.isArray(result)) {
|
|
68
|
+
return invalidPrivateSourceResult();
|
|
69
|
+
}
|
|
70
|
+
descriptors = Object.getOwnPropertyDescriptors(result);
|
|
71
|
+
keys = Reflect.ownKeys(result).sort((left, right) => String(left).localeCompare(String(right)));
|
|
72
|
+
}
|
|
73
|
+
catch {
|
|
74
|
+
return invalidPrivateSourceResult();
|
|
75
|
+
}
|
|
76
|
+
const values = keys.every((key) => typeof key === "string" && descriptors[key]?.enumerable === true &&
|
|
77
|
+
Object.hasOwn(descriptors[key], "value"));
|
|
78
|
+
const exactKeys = (expected) => values && keys.length === expected.length &&
|
|
79
|
+
keys.every((key, index) => key === expected[index]);
|
|
80
|
+
const kind = descriptors.kind?.value;
|
|
81
|
+
if (kind === "lease" && exactKeys(["kind", "lease"])) {
|
|
82
|
+
let unwrapped;
|
|
83
|
+
try {
|
|
84
|
+
unwrapped = unwrapPrivateLoopbackArtifactLeaseV1(descriptors.lease.value);
|
|
85
|
+
}
|
|
86
|
+
catch {
|
|
87
|
+
return invalidPrivateSourceResult();
|
|
88
|
+
}
|
|
89
|
+
if (new URL(unwrapped.endpoint).origin.replace(/^ws:/, "http:") !== privateOrigin) {
|
|
90
|
+
await retireInnerLease(unwrapped.innerLease);
|
|
91
|
+
return invalidPrivateSourceResult();
|
|
92
|
+
}
|
|
93
|
+
return { kind: "lease", lease: unwrapped.innerLease };
|
|
94
|
+
}
|
|
95
|
+
if (kind === "failure" && exactKeys(["code", "disposition", "kind"])) {
|
|
96
|
+
return {
|
|
97
|
+
kind: "failure",
|
|
98
|
+
code: descriptors.code.value,
|
|
99
|
+
disposition: descriptors.disposition.value,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
const deliveredLease = descriptors.lease?.value;
|
|
103
|
+
try {
|
|
104
|
+
const unwrapped = unwrapPrivateLoopbackArtifactLeaseV1(deliveredLease);
|
|
105
|
+
await retireInnerLease(unwrapped.innerLease);
|
|
106
|
+
}
|
|
107
|
+
catch {
|
|
108
|
+
// Malformed results without an authentic private lease own no cleanup.
|
|
109
|
+
}
|
|
110
|
+
return invalidPrivateSourceResult();
|
|
111
|
+
}
|
|
112
|
+
async function retireInnerLease(lease) {
|
|
113
|
+
try {
|
|
114
|
+
await retireArtifactLeaseV3(claimArtifactLeaseV3(lease));
|
|
115
|
+
}
|
|
116
|
+
catch {
|
|
117
|
+
// Retirement is best-effort only when the lease is already terminal.
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function unwrapPrivateLoopbackLease(lease) {
|
|
121
|
+
try {
|
|
122
|
+
return unwrapPrivateLoopbackArtifactLeaseV1(lease);
|
|
123
|
+
}
|
|
124
|
+
catch {
|
|
125
|
+
throw new ConnectErrorV3("artifact_invalid", { kind: "terminal" });
|
|
126
|
+
}
|
|
127
|
+
}
|
|
22
128
|
function browserRuntime(registry, connectTimeoutMs) {
|
|
23
129
|
const connectTimeoutMilliseconds = connectTimeoutMs ?? SDK_DEFAULTS.transport.connectTimeoutMs;
|
|
24
130
|
if (!Number.isSafeInteger(connectTimeoutMilliseconds) || connectTimeoutMilliseconds < 1) {
|
|
@@ -37,21 +143,58 @@ function browserRuntime(registry, connectTimeoutMs) {
|
|
|
37
143
|
throw new TransportFailureV3("tls_unsupported");
|
|
38
144
|
}
|
|
39
145
|
validateBrowserWebSocketURL(candidate.normalized_url, artifact.path.kind);
|
|
40
|
-
|
|
41
|
-
|
|
146
|
+
return await dialBrowserWebSocket(candidate, artifact, candidate.normalized_url, signal);
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
function privateLoopbackBrowserRuntime(registry, connectTimeoutMs, privateOrigin) {
|
|
151
|
+
const connectTimeoutMilliseconds = connectTimeoutMs ?? SDK_DEFAULTS.transport.connectTimeoutMs;
|
|
152
|
+
if (!Number.isSafeInteger(connectTimeoutMilliseconds) || connectTimeoutMilliseconds < 1) {
|
|
153
|
+
throw new ConnectErrorV3("artifact_invalid", { kind: "terminal" });
|
|
154
|
+
}
|
|
155
|
+
return {
|
|
156
|
+
capabilitySnapshot: () => registry.snapshot(),
|
|
157
|
+
connectTimeoutMilliseconds,
|
|
158
|
+
protocolRuntime: browserSessionRuntimeV3,
|
|
159
|
+
dial: async (candidate, artifact, _attemptNow, _capability, signal) => {
|
|
160
|
+
const targetURL = artifact.path.kind === "direct" && candidate.carrier === "websocket" &&
|
|
161
|
+
candidate.tls.mode === "ca"
|
|
162
|
+
? privateWebSocketURL(candidate.normalized_url, privateOrigin)
|
|
163
|
+
: undefined;
|
|
164
|
+
if (targetURL === undefined)
|
|
42
165
|
throw new TransportFailureV3("tls_unsupported");
|
|
43
|
-
|
|
44
|
-
let socket;
|
|
45
|
-
try {
|
|
46
|
-
socket = new Constructor(candidate.normalized_url, protocol);
|
|
47
|
-
}
|
|
48
|
-
catch (error) {
|
|
49
|
-
throw new TransportFailureV3("connection_failed", undefined, error);
|
|
50
|
-
}
|
|
51
|
-
return await readyWebSocketAdmissionV3(candidate, artifact, socket, signal);
|
|
166
|
+
return await dialBrowserWebSocket(candidate, artifact, targetURL, signal);
|
|
52
167
|
},
|
|
53
168
|
};
|
|
54
169
|
}
|
|
170
|
+
async function dialBrowserWebSocket(candidate, artifact, targetURL, signal) {
|
|
171
|
+
const Constructor = globalThis.WebSocket;
|
|
172
|
+
if (Constructor === undefined)
|
|
173
|
+
throw new TransportFailureV3("tls_unsupported");
|
|
174
|
+
const protocol = artifact.path.kind === "direct" ? "flowersec.direct.v3" : "flowersec.tunnel.v3";
|
|
175
|
+
let socket;
|
|
176
|
+
try {
|
|
177
|
+
socket = new Constructor(targetURL, protocol);
|
|
178
|
+
}
|
|
179
|
+
catch (error) {
|
|
180
|
+
throw new TransportFailureV3("connection_failed", undefined, error);
|
|
181
|
+
}
|
|
182
|
+
return await readyWebSocketAdmissionV3(candidate, artifact, socket, signal);
|
|
183
|
+
}
|
|
184
|
+
function privateWebSocketURL(candidateURL, privateOrigin) {
|
|
185
|
+
try {
|
|
186
|
+
const candidate = new URL(candidateURL);
|
|
187
|
+
const origin = new URL(privateOrigin);
|
|
188
|
+
if (candidate.protocol !== "wss:" || candidate.host !== origin.host ||
|
|
189
|
+
candidate.pathname !== "/flowersec/v3/direct" || candidate.search !== "" || candidate.hash !== "")
|
|
190
|
+
return undefined;
|
|
191
|
+
candidate.protocol = "ws:";
|
|
192
|
+
return candidate.href;
|
|
193
|
+
}
|
|
194
|
+
catch {
|
|
195
|
+
return undefined;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
55
198
|
function validateBrowserWebSocketURL(raw, path) {
|
|
56
199
|
let parsed;
|
|
57
200
|
try {
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from "../facade.js";
|
|
2
2
|
export * as v2 from "./v2.js";
|
|
3
|
-
export { connectV3 as connect, createConnectionControllerV3 as createConnectionController, } from "./connectSessionV3.js";
|
|
3
|
+
export { connectV3 as connect, createConnectionControllerV3 as createConnectionController, connectPrivateLoopbackV1, createPrivateLoopbackConnectionControllerV1, } from "./connectSessionV3.js";
|
|
4
|
+
export { PRIVATE_LOOPBACK_PROFILE_V1, PrivateLoopbackArtifactErrorV1, createPrivateLoopbackArtifactLeaseV1, parsePrivateLoopbackArtifactV1, } from "./privateLoopbackV1.js";
|
|
4
5
|
/** @deprecated Use connect and createConnectionController. */
|
|
5
6
|
export { connectV3, createConnectionControllerV3 } from "./connectSessionV3.js";
|
|
6
7
|
export type { ConnectionControllerOptionsV3 as ConnectionControllerOptions, SessionOptionsV3 as SessionOptions, } from "./connectSessionV3.js";
|
|
8
|
+
export type { PrivateLoopbackConnectionControllerOptionsV1, PrivateLoopbackSessionOptionsV1, } from "./connectSessionV3.js";
|
|
9
|
+
export type { PrivateLoopbackArtifactLeaseV1, PrivateLoopbackArtifactSourceResultV1, PrivateLoopbackArtifactSourceV1, PrivateLoopbackArtifactV1, } from "./privateLoopbackV1.js";
|
|
7
10
|
/** @deprecated Use ConnectionControllerOptions and SessionOptions. */
|
|
8
11
|
export type { ConnectionControllerOptionsV3, SessionOptionsV3 } from "./connectSessionV3.js";
|
package/dist/browser/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "../facade.js";
|
|
2
2
|
export * as v2 from "./v2.js";
|
|
3
|
-
export { connectV3 as connect, createConnectionControllerV3 as createConnectionController, } from "./connectSessionV3.js";
|
|
3
|
+
export { connectV3 as connect, createConnectionControllerV3 as createConnectionController, connectPrivateLoopbackV1, createPrivateLoopbackConnectionControllerV1, } from "./connectSessionV3.js";
|
|
4
|
+
export { PRIVATE_LOOPBACK_PROFILE_V1, PrivateLoopbackArtifactErrorV1, createPrivateLoopbackArtifactLeaseV1, parsePrivateLoopbackArtifactV1, } from "./privateLoopbackV1.js";
|
|
4
5
|
/** @deprecated Use connect and createConnectionController. */
|
|
5
6
|
export { connectV3, createConnectionControllerV3 } from "./connectSessionV3.js";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { RetryDispositionV3 } from "../v3/security.js";
|
|
2
|
+
export declare const PRIVATE_LOOPBACK_PROFILE_V1 = "flowersec-private-loopback/1";
|
|
3
|
+
export declare class PrivateLoopbackArtifactV1 {
|
|
4
|
+
private readonly privateLoopbackArtifactBrand;
|
|
5
|
+
private constructor();
|
|
6
|
+
}
|
|
7
|
+
export declare class PrivateLoopbackArtifactLeaseV1 {
|
|
8
|
+
private readonly privateLoopbackLeaseBrand;
|
|
9
|
+
private constructor();
|
|
10
|
+
}
|
|
11
|
+
export declare class PrivateLoopbackArtifactErrorV1 extends Error {
|
|
12
|
+
readonly code = "invalid_artifact";
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
15
|
+
export type PrivateLoopbackArtifactSourceResultV1 = Readonly<{
|
|
16
|
+
kind: "lease";
|
|
17
|
+
lease: PrivateLoopbackArtifactLeaseV1;
|
|
18
|
+
}> | Readonly<{
|
|
19
|
+
kind: "failure";
|
|
20
|
+
code: string;
|
|
21
|
+
disposition: RetryDispositionV3;
|
|
22
|
+
}>;
|
|
23
|
+
export type PrivateLoopbackArtifactSourceV1 = Readonly<{
|
|
24
|
+
acquire(options: Readonly<{
|
|
25
|
+
signal: AbortSignal;
|
|
26
|
+
}>): Promise<PrivateLoopbackArtifactSourceResultV1>;
|
|
27
|
+
}>;
|
|
28
|
+
export declare function parsePrivateLoopbackArtifactV1(input: string | Uint8Array): PrivateLoopbackArtifactV1;
|
|
29
|
+
export declare function createPrivateLoopbackArtifactLeaseV1(artifact: PrivateLoopbackArtifactV1, commitSpend: (signal?: AbortSignal) => Promise<void>, retireCleanup?: () => Promise<void>): PrivateLoopbackArtifactLeaseV1;
|
|
30
|
+
export declare function validatePrivateLoopbackOriginV1(raw: string): string;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { base64urlDecode, base64urlEncode } from "../utils/base64url.js";
|
|
2
|
+
import { canonicalizeJCSV3 } from "../v3/jcs.js";
|
|
3
|
+
import { preflightJSONV3 } from "../v3/jsonPreflight.js";
|
|
4
|
+
import { decodeArtifactV3JSON } from "../v3/artifact.js";
|
|
5
|
+
import { createArtifactLeaseV3Internal } from "../v3/artifactLease.js";
|
|
6
|
+
export const PRIVATE_LOOPBACK_PROFILE_V1 = "flowersec-private-loopback/1";
|
|
7
|
+
const DIRECT_PATH = "/flowersec/v3/direct";
|
|
8
|
+
const MIN_PRIVATE_LOOPBACK_PORT = 1024;
|
|
9
|
+
const decoder = new TextDecoder("utf-8", { fatal: true });
|
|
10
|
+
const encoder = new TextEncoder();
|
|
11
|
+
export class PrivateLoopbackArtifactV1 {
|
|
12
|
+
constructor() { }
|
|
13
|
+
}
|
|
14
|
+
export class PrivateLoopbackArtifactLeaseV1 {
|
|
15
|
+
constructor() { }
|
|
16
|
+
}
|
|
17
|
+
export class PrivateLoopbackArtifactErrorV1 extends Error {
|
|
18
|
+
code = "invalid_artifact";
|
|
19
|
+
constructor() {
|
|
20
|
+
super("Flowersec private loopback artifact is invalid");
|
|
21
|
+
this.name = "PrivateLoopbackArtifactError";
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const artifacts = new WeakMap();
|
|
25
|
+
const leases = new WeakMap();
|
|
26
|
+
export function parsePrivateLoopbackArtifactV1(input) {
|
|
27
|
+
try {
|
|
28
|
+
const text = decodeBounded(input);
|
|
29
|
+
preflightJSONV3(text);
|
|
30
|
+
const value = JSON.parse(text);
|
|
31
|
+
if (!isRecord(value) || !hasExactKeys(value, ["artifact_b64u", "endpoint", "profile", "v"]) ||
|
|
32
|
+
value.v !== 1 || value.profile !== PRIVATE_LOOPBACK_PROFILE_V1 ||
|
|
33
|
+
typeof value.artifact_b64u !== "string" || typeof value.endpoint !== "string" ||
|
|
34
|
+
canonicalizeJCSV3(value) !== text) {
|
|
35
|
+
throw new Error("invalid private loopback envelope");
|
|
36
|
+
}
|
|
37
|
+
const innerBytes = base64urlDecode(value.artifact_b64u);
|
|
38
|
+
if (innerBytes.length === 0 || innerBytes.length > 65_536 || base64urlEncode(innerBytes) !== value.artifact_b64u) {
|
|
39
|
+
throw new Error("invalid nested artifact encoding");
|
|
40
|
+
}
|
|
41
|
+
const endpoint = validatePrivateLoopbackEndpointV1(value.endpoint);
|
|
42
|
+
const innerArtifact = decodeArtifactV3JSON(innerBytes);
|
|
43
|
+
validateNestedArtifact(innerArtifact, endpoint);
|
|
44
|
+
const handle = new PrivateLoopbackArtifactV1();
|
|
45
|
+
artifacts.set(handle, Object.freeze({ endpoint, innerArtifact }));
|
|
46
|
+
return Object.freeze(handle);
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
throw new PrivateLoopbackArtifactErrorV1();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export function createPrivateLoopbackArtifactLeaseV1(artifact, commitSpend, retireCleanup) {
|
|
53
|
+
const state = artifacts.get(artifact);
|
|
54
|
+
if (state === undefined)
|
|
55
|
+
throw new PrivateLoopbackArtifactErrorV1();
|
|
56
|
+
const lease = new PrivateLoopbackArtifactLeaseV1();
|
|
57
|
+
leases.set(lease, {
|
|
58
|
+
...state,
|
|
59
|
+
innerLease: createArtifactLeaseV3Internal(state.innerArtifact, commitSpend, retireCleanup),
|
|
60
|
+
});
|
|
61
|
+
return Object.freeze(lease);
|
|
62
|
+
}
|
|
63
|
+
/** @internal Dedicated private-loopback connector boundary. */
|
|
64
|
+
export function unwrapPrivateLoopbackArtifactLeaseV1(lease) {
|
|
65
|
+
const state = leases.get(lease);
|
|
66
|
+
if (state === undefined)
|
|
67
|
+
throw new PrivateLoopbackArtifactErrorV1();
|
|
68
|
+
return state;
|
|
69
|
+
}
|
|
70
|
+
export function validatePrivateLoopbackOriginV1(raw) {
|
|
71
|
+
let parsed;
|
|
72
|
+
try {
|
|
73
|
+
parsed = new URL(raw);
|
|
74
|
+
}
|
|
75
|
+
catch {
|
|
76
|
+
throw new PrivateLoopbackArtifactErrorV1();
|
|
77
|
+
}
|
|
78
|
+
if (raw !== parsed.origin || parsed.protocol !== "http:" || parsed.username !== "" || parsed.password !== "" ||
|
|
79
|
+
!privateLoopbackPort(parsed.port) || !numericLoopbackHostname(parsed.hostname)) {
|
|
80
|
+
throw new PrivateLoopbackArtifactErrorV1();
|
|
81
|
+
}
|
|
82
|
+
return parsed.origin;
|
|
83
|
+
}
|
|
84
|
+
function validatePrivateLoopbackEndpointV1(raw) {
|
|
85
|
+
let parsed;
|
|
86
|
+
try {
|
|
87
|
+
parsed = new URL(raw);
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
throw new PrivateLoopbackArtifactErrorV1();
|
|
91
|
+
}
|
|
92
|
+
if (parsed.href !== raw || parsed.protocol !== "ws:" || parsed.username !== "" || parsed.password !== "" ||
|
|
93
|
+
!privateLoopbackPort(parsed.port) || parsed.pathname !== DIRECT_PATH || parsed.search !== "" || parsed.hash !== "" ||
|
|
94
|
+
!numericLoopbackHostname(parsed.hostname)) {
|
|
95
|
+
throw new PrivateLoopbackArtifactErrorV1();
|
|
96
|
+
}
|
|
97
|
+
return raw;
|
|
98
|
+
}
|
|
99
|
+
function privateLoopbackPort(raw) {
|
|
100
|
+
if (!/^(0|[1-9][0-9]*)$/.test(raw))
|
|
101
|
+
return false;
|
|
102
|
+
const port = Number(raw);
|
|
103
|
+
return Number.isSafeInteger(port) && port >= MIN_PRIVATE_LOOPBACK_PORT && port <= 65_535;
|
|
104
|
+
}
|
|
105
|
+
function validateNestedArtifact(artifact, endpoint) {
|
|
106
|
+
if (artifact.path.kind !== "direct" || artifact.path.candidates.length !== 1) {
|
|
107
|
+
throw new PrivateLoopbackArtifactErrorV1();
|
|
108
|
+
}
|
|
109
|
+
const candidate = artifact.path.candidates[0];
|
|
110
|
+
const privateURL = new URL(endpoint);
|
|
111
|
+
privateURL.protocol = "wss:";
|
|
112
|
+
if (candidate.id !== "private-loopback" || candidate.carrier !== "websocket" || candidate.tls.mode !== "ca" ||
|
|
113
|
+
candidate.wire_profile !== "flowersec-direct/3" || candidate.normalized_url !== privateURL.href ||
|
|
114
|
+
candidate.url !== privateURL.href) {
|
|
115
|
+
throw new PrivateLoopbackArtifactErrorV1();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function numericLoopbackHostname(hostname) {
|
|
119
|
+
if (hostname === "[::1]")
|
|
120
|
+
return true;
|
|
121
|
+
if (!/^\d{1,3}(?:\.\d{1,3}){3}$/.test(hostname))
|
|
122
|
+
return false;
|
|
123
|
+
const octets = hostname.split(".").map(Number);
|
|
124
|
+
return octets.every((value) => value >= 0 && value <= 255) && octets[0] === 127;
|
|
125
|
+
}
|
|
126
|
+
function decodeBounded(input) {
|
|
127
|
+
const bytes = typeof input === "string" ? encoder.encode(input) : input;
|
|
128
|
+
if (bytes.length === 0 || bytes.length > 100_000)
|
|
129
|
+
throw new PrivateLoopbackArtifactErrorV1();
|
|
130
|
+
const text = decoder.decode(bytes);
|
|
131
|
+
if (encoder.encode(text).length !== bytes.length)
|
|
132
|
+
throw new PrivateLoopbackArtifactErrorV1();
|
|
133
|
+
return text;
|
|
134
|
+
}
|
|
135
|
+
function isRecord(value) {
|
|
136
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
137
|
+
}
|
|
138
|
+
function hasExactKeys(value, expected) {
|
|
139
|
+
const keys = Object.keys(value).sort();
|
|
140
|
+
return keys.length === expected.length && keys.every((key, index) => key === expected[index]);
|
|
141
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floegence/flowersec-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Flowersec core TypeScript library for carrier-neutral encrypted sessions and multiplexed streams.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"vitest": "4.1.10"
|
|
94
94
|
},
|
|
95
95
|
"optionalDependencies": {
|
|
96
|
-
"@floegence/flowersec-node-native": "3.
|
|
96
|
+
"@floegence/flowersec-node-native": "3.2.0"
|
|
97
97
|
},
|
|
98
|
-
"flowersecSourceCommit": "
|
|
98
|
+
"flowersecSourceCommit": "ee03e2424a8069e4327597e732710f4ea0b5447f"
|
|
99
99
|
}
|
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:b179f2ab-6177-5e8b-8e87-0907981b88da",
|
|
5
5
|
"version": 1,
|
|
6
6
|
"metadata": {
|
|
7
7
|
"component": {
|
|
8
8
|
"type": "library",
|
|
9
9
|
"name": "@floegence/flowersec-core",
|
|
10
|
-
"version": "3.
|
|
11
|
-
"purl": "pkg:npm/%40floegence/flowersec-core@3.
|
|
12
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-core@3.
|
|
10
|
+
"version": "3.2.0",
|
|
11
|
+
"purl": "pkg:npm/%40floegence/flowersec-core@3.2.0",
|
|
12
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-core@3.2.0"
|
|
13
13
|
},
|
|
14
14
|
"properties": [
|
|
15
15
|
{
|
|
16
16
|
"name": "flowersec:source-inventory-sha256",
|
|
17
|
-
"value": "
|
|
17
|
+
"value": "9d19fe4ff25f8c891b27e02476657c2674f7ae772dc1a10cfc4fbaa094f2d69d"
|
|
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": "3.
|
|
26
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native@3.
|
|
27
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native@3.
|
|
25
|
+
"version": "3.2.0",
|
|
26
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native@3.2.0",
|
|
27
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native@3.2.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": "3.
|
|
54
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@3.
|
|
55
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@3.
|
|
53
|
+
"version": "3.2.0",
|
|
54
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@3.2.0",
|
|
55
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@3.2.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": "3.
|
|
82
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@3.
|
|
83
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@3.
|
|
81
|
+
"version": "3.2.0",
|
|
82
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@3.2.0",
|
|
83
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@3.2.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": "3.
|
|
110
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@3.
|
|
111
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@3.
|
|
109
|
+
"version": "3.2.0",
|
|
110
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@3.2.0",
|
|
111
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@3.2.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": "3.
|
|
138
|
-
"purl": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@3.
|
|
139
|
-
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@3.
|
|
137
|
+
"version": "3.2.0",
|
|
138
|
+
"purl": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@3.2.0",
|
|
139
|
+
"bom-ref": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@3.2.0",
|
|
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@3.
|
|
333
|
+
"ref": "pkg:npm/%40floegence/flowersec-core@3.2.0",
|
|
334
334
|
"dependsOn": [
|
|
335
|
-
"pkg:npm/%40floegence/flowersec-node-native@3.
|
|
335
|
+
"pkg:npm/%40floegence/flowersec-node-native@3.2.0",
|
|
336
336
|
"pkg:npm/%40noble/ciphers@2.3.0",
|
|
337
337
|
"pkg:npm/%40noble/curves@2.3.0",
|
|
338
338
|
"pkg:npm/%40noble/hashes@2.3.0",
|
|
@@ -341,28 +341,28 @@
|
|
|
341
341
|
]
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native@3.
|
|
344
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native@3.2.0",
|
|
345
345
|
"dependsOn": [
|
|
346
|
-
"pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@3.
|
|
347
|
-
"pkg:npm/%40floegence/flowersec-node-native-darwin-x64@3.
|
|
348
|
-
"pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@3.
|
|
349
|
-
"pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@3.
|
|
346
|
+
"pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@3.2.0",
|
|
347
|
+
"pkg:npm/%40floegence/flowersec-node-native-darwin-x64@3.2.0",
|
|
348
|
+
"pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@3.2.0",
|
|
349
|
+
"pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@3.2.0"
|
|
350
350
|
]
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@3.
|
|
353
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@3.2.0",
|
|
354
354
|
"dependsOn": []
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@3.
|
|
357
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@3.2.0",
|
|
358
358
|
"dependsOn": []
|
|
359
359
|
},
|
|
360
360
|
{
|
|
361
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@3.
|
|
361
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@3.2.0",
|
|
362
362
|
"dependsOn": []
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
|
-
"ref": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@3.
|
|
365
|
+
"ref": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@3.2.0",
|
|
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/9d19fe4ff25f8c891b27e02476657c2674f7ae772dc1a10cfc4fbaa094f2d69d",
|
|
7
7
|
"creationInfo": {
|
|
8
8
|
"created": "1970-01-01T00:00:00Z",
|
|
9
9
|
"creators": [
|
|
@@ -13,26 +13,26 @@
|
|
|
13
13
|
"packages": [
|
|
14
14
|
{
|
|
15
15
|
"name": "@floegence/flowersec-core",
|
|
16
|
-
"SPDXID": "SPDXRef-Package-
|
|
17
|
-
"versionInfo": "3.
|
|
16
|
+
"SPDXID": "SPDXRef-Package-6e9d04974b38b4b1d01d",
|
|
17
|
+
"versionInfo": "3.2.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: 9d19fe4ff25f8c891b27e02476657c2674f7ae772dc1a10cfc4fbaa094f2d69d",
|
|
24
24
|
"externalRefs": [
|
|
25
25
|
{
|
|
26
26
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
27
27
|
"referenceType": "purl",
|
|
28
|
-
"referenceLocator": "pkg:npm/%40floegence/flowersec-core@3.
|
|
28
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-core@3.2.0"
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "@floegence/flowersec-node-native",
|
|
34
|
-
"SPDXID": "SPDXRef-Package-
|
|
35
|
-
"versionInfo": "3.
|
|
34
|
+
"SPDXID": "SPDXRef-Package-2734898f9252221184a8",
|
|
35
|
+
"versionInfo": "3.2.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@3.
|
|
45
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native@3.2.0"
|
|
46
46
|
}
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"name": "@floegence/flowersec-node-native-darwin-arm64",
|
|
51
|
-
"SPDXID": "SPDXRef-Package-
|
|
52
|
-
"versionInfo": "3.
|
|
51
|
+
"SPDXID": "SPDXRef-Package-b4db4f0ebb5d24013241",
|
|
52
|
+
"versionInfo": "3.2.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@3.
|
|
62
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-darwin-arm64@3.2.0"
|
|
63
63
|
}
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "@floegence/flowersec-node-native-darwin-x64",
|
|
68
|
-
"SPDXID": "SPDXRef-Package-
|
|
69
|
-
"versionInfo": "3.
|
|
68
|
+
"SPDXID": "SPDXRef-Package-c7c6a584b06a11abe1d5",
|
|
69
|
+
"versionInfo": "3.2.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@3.
|
|
79
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-darwin-x64@3.2.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": "3.
|
|
85
|
+
"SPDXID": "SPDXRef-Package-3e2771fdb680ee2c9ad4",
|
|
86
|
+
"versionInfo": "3.2.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@3.
|
|
96
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-linux-arm64-gnu@3.2.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": "3.
|
|
102
|
+
"SPDXID": "SPDXRef-Package-dd726d568c7ccf9508bf",
|
|
103
|
+
"versionInfo": "3.2.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@3.
|
|
113
|
+
"referenceLocator": "pkg:npm/%40floegence/flowersec-node-native-linux-x64-gnu@3.2.0"
|
|
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-6e9d04974b38b4b1d01d"
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
|
-
"spdxElementId": "SPDXRef-Package-
|
|
227
|
+
"spdxElementId": "SPDXRef-Package-6e9d04974b38b4b1d01d",
|
|
228
228
|
"relationshipType": "DEPENDS_ON",
|
|
229
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
229
|
+
"relatedSpdxElement": "SPDXRef-Package-2734898f9252221184a8"
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
|
-
"spdxElementId": "SPDXRef-Package-
|
|
232
|
+
"spdxElementId": "SPDXRef-Package-6e9d04974b38b4b1d01d",
|
|
233
233
|
"relationshipType": "DEPENDS_ON",
|
|
234
234
|
"relatedSpdxElement": "SPDXRef-Package-5ce913a03239b02770fb"
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
|
-
"spdxElementId": "SPDXRef-Package-
|
|
237
|
+
"spdxElementId": "SPDXRef-Package-6e9d04974b38b4b1d01d",
|
|
238
238
|
"relationshipType": "DEPENDS_ON",
|
|
239
239
|
"relatedSpdxElement": "SPDXRef-Package-01009adf60db02c13634"
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
|
-
"spdxElementId": "SPDXRef-Package-
|
|
242
|
+
"spdxElementId": "SPDXRef-Package-6e9d04974b38b4b1d01d",
|
|
243
243
|
"relationshipType": "DEPENDS_ON",
|
|
244
244
|
"relatedSpdxElement": "SPDXRef-Package-8815b117c8a1d5f7eeb0"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
|
-
"spdxElementId": "SPDXRef-Package-
|
|
247
|
+
"spdxElementId": "SPDXRef-Package-6e9d04974b38b4b1d01d",
|
|
248
248
|
"relationshipType": "DEPENDS_ON",
|
|
249
249
|
"relatedSpdxElement": "SPDXRef-Package-f8b45a289df643042b94"
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
|
-
"spdxElementId": "SPDXRef-Package-
|
|
252
|
+
"spdxElementId": "SPDXRef-Package-6e9d04974b38b4b1d01d",
|
|
253
253
|
"relationshipType": "DEPENDS_ON",
|
|
254
254
|
"relatedSpdxElement": "SPDXRef-Package-b779412f685822663496"
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
|
-
"spdxElementId": "SPDXRef-Package-
|
|
257
|
+
"spdxElementId": "SPDXRef-Package-2734898f9252221184a8",
|
|
258
258
|
"relationshipType": "DEPENDS_ON",
|
|
259
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
259
|
+
"relatedSpdxElement": "SPDXRef-Package-b4db4f0ebb5d24013241"
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
|
-
"spdxElementId": "SPDXRef-Package-
|
|
262
|
+
"spdxElementId": "SPDXRef-Package-2734898f9252221184a8",
|
|
263
263
|
"relationshipType": "DEPENDS_ON",
|
|
264
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
264
|
+
"relatedSpdxElement": "SPDXRef-Package-c7c6a584b06a11abe1d5"
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
|
-
"spdxElementId": "SPDXRef-Package-
|
|
267
|
+
"spdxElementId": "SPDXRef-Package-2734898f9252221184a8",
|
|
268
268
|
"relationshipType": "DEPENDS_ON",
|
|
269
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
269
|
+
"relatedSpdxElement": "SPDXRef-Package-3e2771fdb680ee2c9ad4"
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
|
-
"spdxElementId": "SPDXRef-Package-
|
|
272
|
+
"spdxElementId": "SPDXRef-Package-2734898f9252221184a8",
|
|
273
273
|
"relationshipType": "DEPENDS_ON",
|
|
274
|
-
"relatedSpdxElement": "SPDXRef-Package-
|
|
274
|
+
"relatedSpdxElement": "SPDXRef-Package-dd726d568c7ccf9508bf"
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
277
|
"spdxElementId": "SPDXRef-Package-01009adf60db02c13634",
|