@genation/bridge-peer 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genation/bridge-peer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Node.js, Electron, and React Native peer SDK for Genation Bridge",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@genation/bridge-contracts": "0.1.
|
|
49
|
+
"@genation/bridge-contracts": "0.1.1",
|
|
50
50
|
"jose": "^6.2.10",
|
|
51
51
|
"zod": "^4.3.6"
|
|
52
52
|
},
|
|
@@ -10,18 +10,15 @@
|
|
|
10
10
|
<key>HeadersPath</key>
|
|
11
11
|
<string>Headers</string>
|
|
12
12
|
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-
|
|
13
|
+
<string>ios-arm64</string>
|
|
14
14
|
<key>LibraryPath</key>
|
|
15
15
|
<string>libgenation_bridge_crypto_uniffi.a</string>
|
|
16
16
|
<key>SupportedArchitectures</key>
|
|
17
17
|
<array>
|
|
18
18
|
<string>arm64</string>
|
|
19
|
-
<string>x86_64</string>
|
|
20
19
|
</array>
|
|
21
20
|
<key>SupportedPlatform</key>
|
|
22
21
|
<string>ios</string>
|
|
23
|
-
<key>SupportedPlatformVariant</key>
|
|
24
|
-
<string>simulator</string>
|
|
25
22
|
</dict>
|
|
26
23
|
<dict>
|
|
27
24
|
<key>BinaryPath</key>
|
|
@@ -29,15 +26,18 @@
|
|
|
29
26
|
<key>HeadersPath</key>
|
|
30
27
|
<string>Headers</string>
|
|
31
28
|
<key>LibraryIdentifier</key>
|
|
32
|
-
<string>ios-
|
|
29
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
33
30
|
<key>LibraryPath</key>
|
|
34
31
|
<string>libgenation_bridge_crypto_uniffi.a</string>
|
|
35
32
|
<key>SupportedArchitectures</key>
|
|
36
33
|
<array>
|
|
37
34
|
<string>arm64</string>
|
|
35
|
+
<string>x86_64</string>
|
|
38
36
|
</array>
|
|
39
37
|
<key>SupportedPlatform</key>
|
|
40
38
|
<string>ios</string>
|
|
39
|
+
<key>SupportedPlatformVariant</key>
|
|
40
|
+
<string>simulator</string>
|
|
41
41
|
</dict>
|
|
42
42
|
</array>
|
|
43
43
|
<key>CFBundlePackageType</key>
|
package/src/node/mod.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type BridgePeer, type BridgePeerCoreOptions, type BridgePeerKeyStore } from "../core/mod.js";
|
|
2
2
|
import { type NodeFileKeyStoreOptions } from "./file-key-store.js";
|
|
3
3
|
import { type NodeRelayRuntimeOptions } from "./relay-runtime.js";
|
|
4
|
-
/** Default managed relay endpoint used by the Node.js happy path. */ export declare const defaultBridgeRelayUrl: "wss://relay.genation.
|
|
4
|
+
/** Default managed relay endpoint used by the Node.js happy path. */ export declare const defaultBridgeRelayUrl: "wss://relay.genation.ai/v1/relay";
|
|
5
5
|
/** Node.js and Electron peer options layered on the shared public facade. */ export type BridgePeerOptions = BridgePeerCoreOptions & Readonly<{
|
|
6
6
|
relayUrl?: string;
|
|
7
7
|
keyStore?: BridgePeerKeyStore;
|
package/src/node/mod.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createBridgePeerCore } from "../core/mod.js";
|
|
2
2
|
import { createNodeFileKeyStore } from "./file-key-store.js";
|
|
3
3
|
import { createNodeRelayRuntime } from "./relay-runtime.js";
|
|
4
|
-
/** Default managed relay endpoint used by the Node.js happy path. */ export const defaultBridgeRelayUrl = "wss://relay.genation.
|
|
4
|
+
/** Default managed relay endpoint used by the Node.js happy path. */ export const defaultBridgeRelayUrl = "wss://relay.genation.ai/v1/relay";
|
|
5
5
|
/** Creates one Node.js or Electron-main peer with SDK-managed platform defaults. */ export const createBridgePeer = (options)=>{
|
|
6
6
|
const keyStore = options.keyStore ?? createNodeFileKeyStore(options.fileKeyStore);
|
|
7
7
|
const runtime = createNodeRelayRuntime({
|
|
@@ -3,7 +3,7 @@ import type { BridgeRelayIdentityProvider } from "../relay/identity.js";
|
|
|
3
3
|
import type { BridgeWebSocketFactory } from "../relay/frame-channel.js";
|
|
4
4
|
import { type ReactNativeAppState } from "./lifecycle.js";
|
|
5
5
|
import { type GenationBridgeNativeModule } from "./native-module.js";
|
|
6
|
-
/** Default managed relay endpoint used by the React Native happy path. */ export declare const defaultBridgeRelayUrl: "wss://relay.genation.
|
|
6
|
+
/** Default managed relay endpoint used by the React Native happy path. */ export declare const defaultBridgeRelayUrl: "wss://relay.genation.ai/v1/relay";
|
|
7
7
|
/** React Native options layered on the shared public peer facade. */ export type BridgePeerOptions = BridgePeerCoreOptions & Readonly<{
|
|
8
8
|
relayUrl?: string;
|
|
9
9
|
nativeModule?: GenationBridgeNativeModule;
|
package/src/react-native/mod.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createRelayRuntime } from "../relay/runtime.js";
|
|
|
3
3
|
import { createReactNativeIdentityProvider } from "./identity-provider.js";
|
|
4
4
|
import { createReactNativeLifecycle } from "./lifecycle.js";
|
|
5
5
|
import { loadReactNative, resolveGenationBridgeNativeModule } from "./native-module.js";
|
|
6
|
-
/** Default managed relay endpoint used by the React Native happy path. */ export const defaultBridgeRelayUrl = "wss://relay.genation.
|
|
6
|
+
/** Default managed relay endpoint used by the React Native happy path. */ export const defaultBridgeRelayUrl = "wss://relay.genation.ai/v1/relay";
|
|
7
7
|
const validateRelayUrl = (value)=>{
|
|
8
8
|
try {
|
|
9
9
|
const url = new URL(value);
|