@allurereport/web-commons 3.0.0-beta.7 → 3.0.0-beta.8

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/dist/data.js CHANGED
@@ -12,11 +12,11 @@ export const createReportDataScript = (reportFiles = []) => {
12
12
  <script async>
13
13
  window.allureReportDataReady = false;
14
14
  window.allureReportData = window.allureReportData || {};
15
-
15
+
16
16
  function d(name, value){
17
17
  return new Promise(function (resolve) {
18
18
  window.allureReportData[name] = value;
19
-
19
+
20
20
  return resolve(true);
21
21
  });
22
22
  }
package/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from "./data.js";
2
2
  export * from "./static.js";
3
- export * from "./sanitizeHtml.js";
package/dist/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from "./data.js";
2
2
  export * from "./static.js";
3
- export * from "./sanitizeHtml.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allurereport/web-commons",
3
- "version": "3.0.0-beta.7",
3
+ "version": "3.0.0-beta.8",
4
4
  "description": "Collection of utilities used across the web Allure reports",
5
5
  "keywords": [
6
6
  "allure",
@@ -23,8 +23,7 @@
23
23
  "clean": "rimraf ./dist"
24
24
  },
25
25
  "dependencies": {
26
- "@allurereport/core-api": "3.0.0-beta.7",
27
- "xss": "^1.0.15"
26
+ "@allurereport/core-api": "3.0.0-beta.8"
28
27
  },
29
28
  "devDependencies": {
30
29
  "@stylistic/eslint-plugin": "^2.6.1",
@@ -32,8 +31,8 @@
32
31
  "@typescript-eslint/eslint-plugin": "^8.0.0",
33
32
  "@typescript-eslint/parser": "^8.0.0",
34
33
  "@vitest/runner": "^2.1.8",
35
- "allure-js-commons": "^3.0.7",
36
- "allure-vitest": "^3.0.7",
34
+ "allure-js-commons": "^3.0.9",
35
+ "allure-vitest": "^3.0.9",
37
36
  "eslint": "^8.57.0",
38
37
  "eslint-config-prettier": "^9.1.0",
39
38
  "eslint-plugin-import": "^2.29.1",
@@ -1 +0,0 @@
1
- export declare const sanitizeHtml: (html: string) => string;
@@ -1,11 +0,0 @@
1
- import xss from "xss";
2
- export const sanitizeHtml = (html) => {
3
- return xss(html, {
4
- stripIgnoreTagBody: ["script"],
5
- whiteList: {
6
- div: ["style"],
7
- span: ["style"],
8
- },
9
- css: true,
10
- });
11
- };