@mochabug/adaptkit 0.12.8 → 0.12.10

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.
Files changed (2) hide show
  1. package/bin/index.js +2 -2
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -828,7 +828,7 @@ class Oauth2Service$Type extends MessageType {
828
828
  { no: 9, name: "token_endpoint", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "11", maxLen: "4096", pattern: "^https://[a-zA-Z0-9.-]+(?:\\.[a-zA-Z]{2,})(?:/.*)?$" } } } },
829
829
  { no: 10, name: "code", kind: "message", T: () => Oauth2Code },
830
830
  { no: 11, name: "optional", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
831
- ], { "buf.validate.message": { cel: [{ id: "oauth2.auth_method", message: "The auth_method property must be set in case of grant_type OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE or OAUTH2_GRANT_TYPE_CLIENT_CREDENTIALS", expression: "has(this.auth_method) == (this.grant_type == 1 || this.grant_type == 2)" }, { id: "oauth2.alg", message: "The alg property must be set in case of grant_type OAUTH2_GRANT_TYPE_JWT_BEARER, OAUTH2_GRANT_TYPE_SAML2_BEARER or auth_method OAUTH2_AUTH_TYPE_PRIVATE_KEY_JWT, OAUTH2_AUTH_TYPE_SAML2_BEARER", expression: "has(this.alg) == (this.grant_type == 3 || this.grant_type == 4 || this.auth_method == 3 || this.auth_method == 5)" }, { id: "oauth2.code", message: "The code property must be set in case of grant_type OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE", expression: "has(this.code) == (this.grant_type == 1)" }, { id: "oauth2.optional", message: "The optional property cannot be set to true in case of grant_type OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE", expression: "has(this.optional) && this.optional == (this.grant_type != 1)" }] } });
831
+ ], { "buf.validate.message": { cel: [{ id: "oauth2.auth_method", message: "The auth_method property must be set in case of grant_type OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE or OAUTH2_GRANT_TYPE_CLIENT_CREDENTIALS", expression: "has(this.auth_method) == (this.grant_type == 1 || this.grant_type == 2)" }, { id: "oauth2.alg", message: "The alg property must be set in case of grant_type OAUTH2_GRANT_TYPE_JWT_BEARER, OAUTH2_GRANT_TYPE_SAML2_BEARER or auth_method OAUTH2_AUTH_TYPE_PRIVATE_KEY_JWT, OAUTH2_AUTH_TYPE_SAML2_BEARER", expression: "has(this.alg) == (this.grant_type == 3 || this.grant_type == 4 || this.auth_method == 3 || this.auth_method == 5)" }, { id: "oauth2.code", message: "The code property must be set in case of grant_type OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE", expression: "has(this.code) == (this.grant_type == 1)" }, { id: "oauth2.optional", message: "The optional property cannot be set to true in case of grant_type OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE", expression: "!has(this.optional) || (this.optional && this.grant_type != 1)" }] } });
832
832
  }
833
833
  create(value) {
834
834
  const message = globalThis.Object.create((this.messagePrototype));
@@ -2074,7 +2074,7 @@ function handleVersion(bump, cmd) {
2074
2074
  }
2075
2075
  async function main() {
2076
2076
  const notifier = updateNotifier({
2077
- pkg: JSON.parse('{"name":"@mochabug/adaptkit","version":"0.12.8"}')
2077
+ pkg: JSON.parse('{"name":"@mochabug/adaptkit","version":"0.12.10"}')
2078
2078
  });
2079
2079
  notifier.notify({ isGlobal: true, defer: false });
2080
2080
  program
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mochabug/adaptkit",
3
- "version": "0.12.8",
3
+ "version": "0.12.10",
4
4
  "description": "A cmd to create, emulate and publish Mochabug Adapt plugins",
5
5
  "main": "bin/index.js",
6
6
  "type": "module",