@xyo-network/xl1-providers 4.0.2 → 4.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/dist/browser/index.mjs +6 -8
- package/dist/browser/index.mjs.map +3 -3
- package/dist/browser/locators/baseConfigFactoryLocator.d.ts +7 -7
- package/dist/browser/locators/locatorFromAdaptedConfig.d.ts +3 -2
- package/dist/browser/locators/locatorFromAdaptedConfig.d.ts.map +1 -1
- package/dist/browser/locators/remoteLocatorFromConfig.d.ts.map +1 -1
- package/dist/neutral/index.mjs +6 -8
- package/dist/neutral/index.mjs.map +3 -3
- package/dist/neutral/locators/baseConfigFactoryLocator.d.ts +7 -7
- package/dist/neutral/locators/locatorFromAdaptedConfig.d.ts +3 -2
- package/dist/neutral/locators/locatorFromAdaptedConfig.d.ts.map +1 -1
- package/dist/neutral/locators/remoteLocatorFromConfig.d.ts.map +1 -1
- package/dist/node/index.mjs +6 -8
- package/dist/node/index.mjs.map +3 -3
- package/dist/node/locators/baseConfigFactoryLocator.d.ts +7 -7
- package/dist/node/locators/locatorFromAdaptedConfig.d.ts +3 -2
- package/dist/node/locators/locatorFromAdaptedConfig.d.ts.map +1 -1
- package/dist/node/locators/remoteLocatorFromConfig.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/browser/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: {},
|
|
@@ -142,9 +142,8 @@ SimpleXyoConnectionViewer = __decorateClass([
|
|
|
142
142
|
|
|
143
143
|
// src/locators/remoteLocatorFromConfig.ts
|
|
144
144
|
import {
|
|
145
|
-
ConfigZod as ConfigZod2,
|
|
146
145
|
needsFromConnectionTypes,
|
|
147
|
-
|
|
146
|
+
parseLocatorConfigFields as parseLocatorConfigFields2,
|
|
148
147
|
SimpleBlockValidationViewer as SimpleBlockValidationViewer2,
|
|
149
148
|
SimpleStakeEventsViewer as SimpleStakeEventsViewer2,
|
|
150
149
|
SimpleTransactionValidationViewer as SimpleTransactionValidationViewer2,
|
|
@@ -153,10 +152,9 @@ import {
|
|
|
153
152
|
|
|
154
153
|
// src/locators/locatorFromAdaptedConfig.ts
|
|
155
154
|
import {
|
|
156
|
-
ConfigZod,
|
|
157
155
|
locatorFromConfig,
|
|
158
156
|
needsFromProviderBindings,
|
|
159
|
-
|
|
157
|
+
parseLocatorConfigFields,
|
|
160
158
|
ProviderFactoryLocator as ProviderFactoryLocator3,
|
|
161
159
|
registerFactoriesFromPlan,
|
|
162
160
|
resolveProvidersFromConfig
|
|
@@ -1528,7 +1526,7 @@ function allProviderCandidates() {
|
|
|
1528
1526
|
|
|
1529
1527
|
// src/locators/locatorFromAdaptedConfig.ts
|
|
1530
1528
|
function locatorFromAdaptedConfig(options) {
|
|
1531
|
-
const adapted =
|
|
1529
|
+
const adapted = parseLocatorConfigFields(options.config);
|
|
1532
1530
|
const needs = options.needs ?? needsFromProviderBindings(adapted);
|
|
1533
1531
|
const candidates = options.candidates ?? allProviderCandidates();
|
|
1534
1532
|
if (options.validateDepsOnRegister === true) {
|
|
@@ -1552,7 +1550,7 @@ function locatorFromAdaptedConfig(options) {
|
|
|
1552
1550
|
|
|
1553
1551
|
// src/locators/remoteLocatorFromConfig.ts
|
|
1554
1552
|
function remoteLocatorFromConfig(context, validateDepsOnRegister = false, validators) {
|
|
1555
|
-
const config =
|
|
1553
|
+
const config = parseLocatorConfigFields2(context.config);
|
|
1556
1554
|
const locator = locatorFromAdaptedConfig({
|
|
1557
1555
|
config,
|
|
1558
1556
|
context: {
|