@sdlcworks/components 0.0.20 → 0.0.21
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/index.d.ts +5 -2
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -192,9 +192,12 @@ export type ConnectionHandlerCtx<S, ConnectorData, ConnectionType extends string
|
|
|
192
192
|
};
|
|
193
193
|
/**
|
|
194
194
|
* Result returned by connection handlers.
|
|
195
|
-
*
|
|
195
|
+
* Can return:
|
|
196
|
+
* - A record mapping component names to their URIs
|
|
197
|
+
* - A single URI string
|
|
198
|
+
* - void if no URIs need to be returned
|
|
196
199
|
*/
|
|
197
|
-
export type ConnectionHandlerResult = Record<string, PulumiOutput<string>> | void;
|
|
200
|
+
export type ConnectionHandlerResult = Record<string, PulumiOutput<string>> | PulumiOutput<string> | void;
|
|
198
201
|
/**
|
|
199
202
|
* A connection handler entry mapping a ConnectionInterface to its handler function.
|
|
200
203
|
*/
|
package/dist/index.js
CHANGED
|
@@ -112,7 +112,8 @@ class InfraComponent {
|
|
|
112
112
|
for (const entry of entries) {
|
|
113
113
|
const instance = new entry.interface;
|
|
114
114
|
const schema = instance.schema;
|
|
115
|
-
const
|
|
115
|
+
const transformedSchema = transformSchemaToAcceptOutputs(schema);
|
|
116
|
+
const parseResult = transformedSchema.safeParse(entry.data);
|
|
116
117
|
if (!parseResult.success) {
|
|
117
118
|
throw new Error(`Invalid data for connection interface ${entry.interface.name}: ${parseResult.error.message}`);
|
|
118
119
|
}
|