@ekzo-dev/bootstrap-addons 5.2.6 → 5.2.7

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ekzo-dev/bootstrap-addons",
3
3
  "description": "Aurelia Bootstrap additional component",
4
- "version": "5.2.6",
4
+ "version": "5.2.7",
5
5
  "homepage": "https://github.com/ekzo-dev/aurelia-components/tree/main/packages/bootstrap-addons",
6
6
  "repository": {
7
7
  "type": "git",
@@ -141,17 +141,17 @@ export class BsJsonInput {
141
141
  }
142
142
 
143
143
  get validator(): Validator | undefined {
144
- const { schemaVersion, disabled, ajvOptions } = this;
144
+ const { schemaVersion, disabled, ajvOptions, jsonSchema } = this;
145
145
  // use raw object because proxies don't work with private properties
146
146
  const rawThis = this['__raw__'] as BsJsonInput;
147
147
  // use jsonSchema from raw object to pass original (non-proxied) object to AJV
148
- const { jsonSchema } = rawThis;
148
+ const { jsonSchema: rawJsonSchema } = rawThis;
149
149
 
150
150
  if (jsonSchema && typeof jsonSchema === 'object' && !disabled) {
151
151
  const ajv = rawThis.#initAjv(jsonSchema.$schema as string, ajvOptions);
152
152
 
153
153
  addFormats(ajv);
154
- const validate = ajv.compile(jsonSchema);
154
+ const validate = ajv.compile(rawJsonSchema);
155
155
 
156
156
  if (validate.errors) {
157
157
  throw validate.errors[0];