@rws-framework/client 2.10.1 → 2.10.3

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": "@rws-framework/client",
3
3
  "private": false,
4
- "version": "2.10.1",
4
+ "version": "2.10.3",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
7
7
  "docs": "typedoc --tsconfig ./tsconfig.json"
@@ -92,10 +92,7 @@ class ConfigService extends TheService {
92
92
 
93
93
  return new Promise((resolve) => {
94
94
  const tick = () => {
95
- if(ConfigService.isLoaded){
96
-
97
-
98
- // console.log('resolved', tagName);
95
+ if(ConfigService.isLoaded){
99
96
  clearTimeout(t);
100
97
  resolve(true);
101
98
  return;
@@ -5,7 +5,7 @@ import htmlSanitizer, { Transformer, IOptions } from 'sanitize-html';
5
5
  type TagsProcessorType = { [tagName: string]: string | Transformer };
6
6
  type DOMOutputType<T extends Element> = NodeListOf<T> | T | null;
7
7
 
8
- //@ts-expect-error tsconfig.json problem
8
+ //@ts-ignore
9
9
  declare let trustedTypes: TrustedTypePolicyFactory;
10
10
 
11
11
 
@@ -46,7 +46,7 @@ class DOMService extends RWSService {
46
46
  }
47
47
  });
48
48
 
49
- DOM.setHTMLPolicy(myPolicy);
49
+ DOM.setHTMLPolicy(myPolicy as any);
50
50
  }
51
51
 
52
52
  private enforceAllowedTags(htmlText: string, allowedHTMLTags: string[]): string
@@ -114,8 +114,6 @@ function extractScssUses(fileContent) {
114
114
  }
115
115
  }
116
116
 
117
- // console.log(uses);
118
-
119
117
  return [uses];
120
118
  }
121
119