@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.
@@ -103,7 +103,7 @@ declare class ConfigurationHandler {
103
103
  } | null;
104
104
  };
105
105
  };
106
- errors: Value.ValueErrorIterator;
106
+ errors: Value.ValueErrorIterator | null;
107
107
  rawData: string;
108
108
  } | {
109
109
  config: null;
@@ -103,7 +103,7 @@ declare class ConfigurationHandler {
103
103
  } | null;
104
104
  };
105
105
  };
106
- errors: Value.ValueErrorIterator;
106
+ errors: Value.ValueErrorIterator | null;
107
107
  rawData: string;
108
108
  } | {
109
109
  config: null;
@@ -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 };
@@ -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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubiquity-os/plugin-sdk",
3
- "version": "3.5.2",
3
+ "version": "3.5.3",
4
4
  "description": "SDK for plugin support.",
5
5
  "author": "Ubiquity DAO",
6
6
  "license": "MIT",