@xyo-network/xl1-providers 4.0.2 → 4.0.3
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.mjs +2 -2
- package/dist/browser/index.mjs.map +2 -2
- package/dist/browser/locators/baseConfigFactoryLocator.d.ts +7 -7
- package/dist/neutral/index.mjs +2 -2
- package/dist/neutral/index.mjs.map +2 -2
- package/dist/neutral/locators/baseConfigFactoryLocator.d.ts +7 -7
- package/dist/node/index.mjs +2 -2
- package/dist/node/index.mjs.map +2 -2
- package/dist/node/locators/baseConfigFactoryLocator.d.ts +7 -7
- package/package.json +5 -5
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ProviderFactoryLocator } from '@xyo-network/xl1-protocol-sdk';
|
|
2
2
|
/**
|
|
3
3
|
* Builds an empty {@link ProviderFactoryLocator} whose context carries a default
|
|
4
|
-
* {@link
|
|
4
|
+
* {@link LocatorConfig} — i.e. `LocatorConfigFieldsZod.parse({})`.
|
|
5
5
|
*
|
|
6
|
-
* The resulting config is the schema's defaults only: `chain`, `
|
|
7
|
-
* `
|
|
8
|
-
* from `*ConfigZod.parse({})`. There is no
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* The resulting config is the schema's defaults only: `chain`, `connections`,
|
|
7
|
+
* `log`, `providerBindings`, `providers`, `telemetry`, and `validation` all
|
|
8
|
+
* populated from `*ConfigZod.parse({})`. There is no actor identity (no `name`,
|
|
9
|
+
* `accountPath`, or `healthCheckPort`) — that lives on `ActorConfig`, not
|
|
10
|
+
* locator process fields. Use this when you need a locator rooted in protocol
|
|
11
|
+
* defaults rather than an actor's configuration.
|
|
12
12
|
*
|
|
13
13
|
* No providers are registered on the returned locator and it is not frozen;
|
|
14
14
|
* the caller is expected to register what they need and (optionally) freeze it.
|
package/dist/node/index.mjs
CHANGED
|
@@ -27,11 +27,11 @@ import { RestDataLakeRunner as RestDataLakeRunner3, RestDataLakeViewer as RestDa
|
|
|
27
27
|
|
|
28
28
|
// src/locators/baseConfigFactoryLocator.ts
|
|
29
29
|
import {
|
|
30
|
-
|
|
30
|
+
LocatorConfigFieldsZod,
|
|
31
31
|
ProviderFactoryLocator as ProviderFactoryLocator2
|
|
32
32
|
} from "@xyo-network/xl1-protocol-sdk";
|
|
33
33
|
async function baseConfigFactoryLocator() {
|
|
34
|
-
const config =
|
|
34
|
+
const config = LocatorConfigFieldsZod.parse({});
|
|
35
35
|
return new ProviderFactoryLocator2({
|
|
36
36
|
config,
|
|
37
37
|
singletons: {},
|