@ubiquity-os/plugin-sdk 3.5.2 → 3.5.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/configuration.d.mts
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
|
@@ -225,7 +225,7 @@ var ConfigurationHandler = class {
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
const decodedConfig = import_value.Value.Decode(configSchema, configSchemaWithDefaults);
|
|
228
|
-
return { config: decodedConfig, errors: errors2, rawData };
|
|
228
|
+
return { config: decodedConfig, errors: errors2.First() ? errors2 : null, rawData };
|
|
229
229
|
} catch (error) {
|
|
230
230
|
this._logger.error("Error decoding configuration; Will ignore.", { err: error, owner, repository });
|
|
231
231
|
return { config: null, errors: [error instanceof import_value.TransformDecodeCheckError ? error.error : error], rawData };
|
package/dist/configuration.mjs
CHANGED
|
@@ -188,7 +188,7 @@ var ConfigurationHandler = class {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
const decodedConfig = Value.Decode(configSchema, configSchemaWithDefaults);
|
|
191
|
-
return { config: decodedConfig, errors: errors2, rawData };
|
|
191
|
+
return { config: decodedConfig, errors: errors2.First() ? errors2 : null, rawData };
|
|
192
192
|
} catch (error) {
|
|
193
193
|
this._logger.error("Error decoding configuration; Will ignore.", { err: error, owner, repository });
|
|
194
194
|
return { config: null, errors: [error instanceof TransformDecodeCheckError ? error.error : error], rawData };
|