@cerbos/http
Advanced tools
Comparing version 0.5.1 to 0.6.0
@@ -85,2 +85,3 @@ import { Effect } from "../../../cerbos/effect/v1/effect"; | ||
filterDebug: string; | ||
validationErrors: ValidationError[]; | ||
} | ||
@@ -87,0 +88,0 @@ export interface CheckInput { |
@@ -503,2 +503,3 @@ "use strict"; | ||
filterDebug: "", | ||
validationErrors: [], | ||
}; | ||
@@ -520,2 +521,5 @@ } | ||
filterDebug: isSet(object.filterDebug) ? String(object.filterDebug) : "", | ||
validationErrors: Array.isArray(object?.validationErrors) | ||
? object.validationErrors.map((e) => schema_1.ValidationError.fromJSON(e)) | ||
: [], | ||
}; | ||
@@ -537,2 +541,8 @@ }, | ||
(obj.filterDebug = message.filterDebug); | ||
if (message.validationErrors) { | ||
obj.validationErrors = message.validationErrors.map((e) => e ? schema_1.ValidationError.toJSON(e) : undefined); | ||
} | ||
else { | ||
obj.validationErrors = []; | ||
} | ||
return obj; | ||
@@ -539,0 +549,0 @@ }, |
@@ -15,2 +15,3 @@ import { Effect } from "../../../cerbos/effect/v1/effect"; | ||
meta: PlanResourcesResponse_Meta | undefined; | ||
validationErrors: ValidationError[]; | ||
} | ||
@@ -17,0 +18,0 @@ export interface PlanResourcesResponse_Meta { |
@@ -20,2 +20,3 @@ "use strict"; | ||
meta: undefined, | ||
validationErrors: [], | ||
}; | ||
@@ -40,2 +41,5 @@ } | ||
: undefined, | ||
validationErrors: Array.isArray(object?.validationErrors) | ||
? object.validationErrors.map((e) => schema_1.ValidationError.fromJSON(e)) | ||
: [], | ||
}; | ||
@@ -59,2 +63,8 @@ }, | ||
: undefined); | ||
if (message.validationErrors) { | ||
obj.validationErrors = message.validationErrors.map((e) => e ? schema_1.ValidationError.toJSON(e) : undefined); | ||
} | ||
else { | ||
obj.validationErrors = []; | ||
} | ||
return obj; | ||
@@ -61,0 +71,0 @@ }, |
{ | ||
"name": "@cerbos/http", | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"description": "Client library for interacting with the Cerbos policy decision point over HTTP from browser-based applications", | ||
@@ -29,4 +29,4 @@ "repository": { | ||
"dependencies": { | ||
"@cerbos/core": "^0.5.1" | ||
"@cerbos/core": "^0.6.0" | ||
} | ||
} |
@@ -182,2 +182,3 @@ /* eslint-disable */ | ||
filterDebug: string; | ||
validationErrors: ValidationError[]; | ||
} | ||
@@ -736,2 +737,3 @@ | ||
filterDebug: "", | ||
validationErrors: [], | ||
}; | ||
@@ -754,2 +756,5 @@ } | ||
filterDebug: isSet(object.filterDebug) ? String(object.filterDebug) : "", | ||
validationErrors: Array.isArray(object?.validationErrors) | ||
? object.validationErrors.map((e: any) => ValidationError.fromJSON(e)) | ||
: [], | ||
}; | ||
@@ -772,2 +777,9 @@ }, | ||
(obj.filterDebug = message.filterDebug); | ||
if (message.validationErrors) { | ||
obj.validationErrors = message.validationErrors.map((e) => | ||
e ? ValidationError.toJSON(e) : undefined | ||
); | ||
} else { | ||
obj.validationErrors = []; | ||
} | ||
return obj; | ||
@@ -774,0 +786,0 @@ }, |
@@ -25,2 +25,3 @@ /* eslint-disable */ | ||
meta: PlanResourcesResponse_Meta | undefined; | ||
validationErrors: ValidationError[]; | ||
} | ||
@@ -246,2 +247,3 @@ | ||
meta: undefined, | ||
validationErrors: [], | ||
}; | ||
@@ -267,2 +269,5 @@ } | ||
: undefined, | ||
validationErrors: Array.isArray(object?.validationErrors) | ||
? object.validationErrors.map((e: any) => ValidationError.fromJSON(e)) | ||
: [], | ||
}; | ||
@@ -287,2 +292,9 @@ }, | ||
: undefined); | ||
if (message.validationErrors) { | ||
obj.validationErrors = message.validationErrors.map((e) => | ||
e ? ValidationError.toJSON(e) : undefined | ||
); | ||
} else { | ||
obj.validationErrors = []; | ||
} | ||
return obj; | ||
@@ -289,0 +301,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1692290
33829
+ Added@cerbos/core@0.6.0(transitive)
- Removed@cerbos/core@0.5.1(transitive)
Updated@cerbos/core@^0.6.0