@naylence/agent-sdk 0.3.4-test.722 → 0.3.4-test.723
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/dist/browser/index.js
CHANGED
|
@@ -15671,12 +15671,12 @@
|
|
|
15671
15671
|
// --- END ENV SHIM ---
|
|
15672
15672
|
|
|
15673
15673
|
// This file is auto-generated during build - do not edit manually
|
|
15674
|
-
// Generated from package.json version: 0.3.5-test.
|
|
15674
|
+
// Generated from package.json version: 0.3.5-test.925
|
|
15675
15675
|
/**
|
|
15676
15676
|
* The package version, injected at build time.
|
|
15677
15677
|
* @internal
|
|
15678
15678
|
*/
|
|
15679
|
-
const VERSION$1 = '0.3.5-test.
|
|
15679
|
+
const VERSION$1 = '0.3.5-test.925';
|
|
15680
15680
|
|
|
15681
15681
|
/**
|
|
15682
15682
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -48842,7 +48842,7 @@
|
|
|
48842
48842
|
}
|
|
48843
48843
|
if (!certificateManager) {
|
|
48844
48844
|
certificateManager =
|
|
48845
|
-
await DefaultSecurityManagerFactory.createCertificateManagerFromConfig(config, policy);
|
|
48845
|
+
await DefaultSecurityManagerFactory.createCertificateManagerFromConfig(config, policy, trustStoreProvider);
|
|
48846
48846
|
}
|
|
48847
48847
|
return new DefaultSecurityManager(policy, envelopeSigner, envelopeVerifier, encryptionManager, keyManager, authorizer, certificateManager, secureChannelManager, keyValidator ?? null);
|
|
48848
48848
|
}
|
|
@@ -49098,7 +49098,7 @@
|
|
|
49098
49098
|
throw error instanceof Error ? error : new Error(String(error));
|
|
49099
49099
|
}
|
|
49100
49100
|
}
|
|
49101
|
-
static async createCertificateManagerFromConfig(config, policy) {
|
|
49101
|
+
static async createCertificateManagerFromConfig(config, policy, trustStoreProvider) {
|
|
49102
49102
|
const certificateConfig = config.certificate_manager ?? null;
|
|
49103
49103
|
if (certificateConfig &&
|
|
49104
49104
|
DefaultSecurityManagerFactory.isConfigLike(certificateConfig)) {
|
|
@@ -49111,8 +49111,12 @@
|
|
|
49111
49111
|
return null;
|
|
49112
49112
|
}
|
|
49113
49113
|
const signing = policy.signing ?? null;
|
|
49114
|
+
const trustStorePem = trustStoreProvider
|
|
49115
|
+
? async () => await trustStoreProvider.getTrustStorePem()
|
|
49116
|
+
: null;
|
|
49114
49117
|
return await CertificateManagerFactory.createCertificateManager(null, {
|
|
49115
49118
|
signing: signing ?? null,
|
|
49119
|
+
factoryArgs: trustStorePem ? [trustStorePem] : [],
|
|
49116
49120
|
});
|
|
49117
49121
|
}
|
|
49118
49122
|
catch (error) {
|