@sdlcworks/components 0.0.20 → 0.0.22

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 CHANGED
@@ -192,9 +192,9 @@ export type ConnectionHandlerCtx<S, ConnectorData, ConnectionType extends string
192
192
  };
193
193
  /**
194
194
  * Result returned by connection handlers.
195
- * Maps component names to their URIs, or void if no URIs need to be returned.
195
+ * Must return a record mapping component names to their URIs.
196
196
  */
197
- export type ConnectionHandlerResult = Record<string, PulumiOutput<string>> | void;
197
+ export type ConnectionHandlerResult = Record<string, PulumiOutput<string>>;
198
198
  /**
199
199
  * A connection handler entry mapping a ConnectionInterface to its handler function.
200
200
  */
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 parseResult = schema.safeParse(entry.data);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdlcworks/components",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "module": "dist/index.js",
5
5
  "files": [
6
6
  "dist"