prpm 2.1.23 → 2.1.24
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.js +8 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -9044,8 +9044,14 @@ function validateFormat(format, data, subtype) {
|
|
|
9044
9044
|
const warnings = [];
|
|
9045
9045
|
if (!valid && validate.errors) {
|
|
9046
9046
|
for (const error of validate.errors) {
|
|
9047
|
-
const
|
|
9048
|
-
const
|
|
9047
|
+
const params = error.params;
|
|
9048
|
+
const path12 = error.instancePath || "/" + (params.missingProperty || "");
|
|
9049
|
+
let message = error.message || "Validation error";
|
|
9050
|
+
if (error.keyword === "additionalProperties" && params.additionalProperty) {
|
|
9051
|
+
message = `${message}: '${params.additionalProperty}'`;
|
|
9052
|
+
} else if (error.keyword === "enum" && params.allowedValues) {
|
|
9053
|
+
message = `${message}. Allowed values: ${params.allowedValues.join(", ")}`;
|
|
9054
|
+
}
|
|
9049
9055
|
const validationError = {
|
|
9050
9056
|
path: path12,
|
|
9051
9057
|
message: `${path12}: ${message}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prpm",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.24",
|
|
4
4
|
"description": "Prompt Package Manager CLI - Install and manage prompt-based files",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"license": "MIT",
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@octokit/rest": "^22.0.0",
|
|
48
|
-
"@pr-pm/converters": "^2.1.
|
|
49
|
-
"@pr-pm/registry-client": "^2.3.
|
|
50
|
-
"@pr-pm/types": "^2.1.
|
|
48
|
+
"@pr-pm/converters": "^2.1.25",
|
|
49
|
+
"@pr-pm/registry-client": "^2.3.24",
|
|
50
|
+
"@pr-pm/types": "^2.1.25",
|
|
51
51
|
"ajv": "^8.17.1",
|
|
52
52
|
"ajv-formats": "^3.0.1",
|
|
53
53
|
"chalk": "^5.6.2",
|