avo 2.46.0 → 2.47.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1732dea0a1d6b5884e2119151890af9c9231130feb1ae8fcfda51ce5f6380fa2
4
- data.tar.gz: 2ad0edd469aa3452c563ab37d65380f9ac04aac8845da08c1a8830bb3b36cf7f
3
+ metadata.gz: 38ab852dd9e98b8a3096344f2fd4e3145e937a2cbbef3524adea0fb7339c6949
4
+ data.tar.gz: 5140ed4d3a7075d2ed3c539ea87134026b43eba770d0615ad3ffb1694ed9dc77
5
5
  SHA512:
6
- metadata.gz: bc5bd679ff67400b1b68ad0c09b16b1f991b0c7e2e1db02cc2e15aa8fc25873f0fdfb2304b5482531e71bf49a62d7f24be2baff6ff5247321ecc70980c763ce4
7
- data.tar.gz: ae13f86f47ed15d14f0eb128072d4ea5c4dfc5299f9dfd2729c7eb48d561ac6c1bd24af6bc92732a0eac3c798c38dbe3e2d7e37896415dba79f74beeaf18b7c6
6
+ metadata.gz: 149111feccf530c8da825b8367632a04bb35960e6d9ec3f95c5b2379abcff11a6e1e6e75661c506c9211af56ac4416fe54fb08f0ca9dd849ae934d3e54fa7628
7
+ data.tar.gz: 5016d7212fa9dac1aa76868e1fa0bd84930e27c4f5e800892c14bc96c1bf5876aca88357bfd77c1a7995300b3aba75dabce0d6d97eafb09090af49e1676e9862
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.46.0)
4
+ avo (2.47.0)
5
5
  actionview (>= 6.0)
6
6
  active_link_to
7
7
  activerecord (>= 6.0)
@@ -269,10 +269,10 @@ GEM
269
269
  net-smtp (0.3.3)
270
270
  net-protocol
271
271
  nio4r (2.5.9)
272
- nokogiri (1.15.4)
272
+ nokogiri (1.16.0)
273
273
  mini_portile2 (~> 2.8.2)
274
274
  racc (~> 1.4)
275
- nokogiri (1.15.4-x86_64-linux)
275
+ nokogiri (1.16.0-x86_64-linux)
276
276
  racc (~> 1.4)
277
277
  orm_adapter (0.5.0)
278
278
  pagy (6.0.4)
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable max-len */
2
+ import * as DOMPurify from 'dompurify'
2
3
  import { Controller } from '@hotwired/stimulus'
3
4
  import { castBoolean } from '../../helpers/cast_boolean'
4
5
 
@@ -80,7 +81,7 @@ export default class extends Controller {
80
81
  let index = 0
81
82
  this.fieldValue.forEach((row) => {
82
83
  const [key, value] = row
83
- result += this.interpolatedRow(key, value, index)
84
+ result += this.interpolatedRow(DOMPurify.sanitize(key), DOMPurify.sanitize(value), index)
84
85
  index++
85
86
  })
86
87
  this.rowsTarget.innerHTML = result
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.46.0" unless const_defined?(:VERSION)
2
+ VERSION = "2.47.0" unless const_defined?(:VERSION)
3
3
  end