@ubiquity-os/plugin-sdk 3.12.1 → 3.12.2
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.js +4 -4
- package/dist/configuration.mjs +4 -4
- package/package.json +1 -1
package/dist/configuration.js
CHANGED
|
@@ -465,7 +465,7 @@ var ConfigurationHandler = class {
|
|
|
465
465
|
return { config: targetRepoConfiguration, imports, errors, rawData };
|
|
466
466
|
}
|
|
467
467
|
_decodeConfiguration(location, config) {
|
|
468
|
-
this._logger.
|
|
468
|
+
this._logger.debug("Decoding configuration", { owner: location.owner, repository: location.repo });
|
|
469
469
|
try {
|
|
470
470
|
const configSchemaWithDefaults = import_value.Value.Default(configSchema, config);
|
|
471
471
|
const errors = import_value.Value.Errors(configSchema, configSchemaWithDefaults);
|
|
@@ -560,7 +560,7 @@ var ConfigurationHandler = class {
|
|
|
560
560
|
...ref ? { ref } : {},
|
|
561
561
|
mediaType: { format: "raw" }
|
|
562
562
|
});
|
|
563
|
-
|
|
563
|
+
this._logger.debug("Configuration file found", { owner, repository, filePath, rateLimitRemaining: headers?.["x-ratelimit-remaining"] });
|
|
564
564
|
return data;
|
|
565
565
|
} catch (err) {
|
|
566
566
|
this._handleDownloadError(err, { owner, repository, filePath });
|
|
@@ -584,11 +584,11 @@ var ConfigurationHandler = class {
|
|
|
584
584
|
* Parse the raw YAML content and returns the loaded YAML, or errors if any.
|
|
585
585
|
*/
|
|
586
586
|
parseYaml(data) {
|
|
587
|
-
this._logger.
|
|
587
|
+
this._logger.debug("Will attempt to parse YAML data");
|
|
588
588
|
try {
|
|
589
589
|
if (data) {
|
|
590
590
|
const parsedData = import_js_yaml.default.load(data);
|
|
591
|
-
|
|
591
|
+
this._logger.debug("Parsed yaml data successfully");
|
|
592
592
|
return { yaml: parsedData ?? null, errors: null };
|
|
593
593
|
}
|
|
594
594
|
} catch (error) {
|
package/dist/configuration.mjs
CHANGED
|
@@ -426,7 +426,7 @@ var ConfigurationHandler = class {
|
|
|
426
426
|
return { config: targetRepoConfiguration, imports, errors, rawData };
|
|
427
427
|
}
|
|
428
428
|
_decodeConfiguration(location, config) {
|
|
429
|
-
this._logger.
|
|
429
|
+
this._logger.debug("Decoding configuration", { owner: location.owner, repository: location.repo });
|
|
430
430
|
try {
|
|
431
431
|
const configSchemaWithDefaults = Value.Default(configSchema, config);
|
|
432
432
|
const errors = Value.Errors(configSchema, configSchemaWithDefaults);
|
|
@@ -521,7 +521,7 @@ var ConfigurationHandler = class {
|
|
|
521
521
|
...ref ? { ref } : {},
|
|
522
522
|
mediaType: { format: "raw" }
|
|
523
523
|
});
|
|
524
|
-
|
|
524
|
+
this._logger.debug("Configuration file found", { owner, repository, filePath, rateLimitRemaining: headers?.["x-ratelimit-remaining"] });
|
|
525
525
|
return data;
|
|
526
526
|
} catch (err) {
|
|
527
527
|
this._handleDownloadError(err, { owner, repository, filePath });
|
|
@@ -545,11 +545,11 @@ var ConfigurationHandler = class {
|
|
|
545
545
|
* Parse the raw YAML content and returns the loaded YAML, or errors if any.
|
|
546
546
|
*/
|
|
547
547
|
parseYaml(data) {
|
|
548
|
-
this._logger.
|
|
548
|
+
this._logger.debug("Will attempt to parse YAML data");
|
|
549
549
|
try {
|
|
550
550
|
if (data) {
|
|
551
551
|
const parsedData = YAML.load(data);
|
|
552
|
-
|
|
552
|
+
this._logger.debug("Parsed yaml data successfully");
|
|
553
553
|
return { yaml: parsedData ?? null, errors: null };
|
|
554
554
|
}
|
|
555
555
|
} catch (error) {
|