@ape.swap/bonds-sdk 4.5.8-test.0 → 4.5.8-test.1

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/dist/main.js +2 -2
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -67858,8 +67858,8 @@ const Recommendations = ({ billAddress }) => {
67858
67858
  // Custom HTML sanitizer
67859
67859
  function sanitizeHTML(html) {
67860
67860
  var _a;
67861
- const tagWhitelist = ['a', 'br', 'span']; // Allowed tags
67862
- const attrWhitelist = ['target', 'rel', 'style', 'href']; // Allowed attributes
67861
+ const tagWhitelist = ['a', 'br', 'span', 'img']; // Allowed tags
67862
+ const attrWhitelist = ['target', 'rel', 'style', 'href', 'src', 'alt']; // Allowed attributes
67863
67863
  const doc = new DOMParser().parseFromString(html, 'text/html');
67864
67864
  const elements = doc.body.querySelectorAll('*');
67865
67865
  for (const el of elements) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "4.5.8-test.0",
6
+ "version": "4.5.8-test.1",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",