mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	fix(deps): update dependency html-entities to v2 (#805)
* fix(deps): update dependency html-entities to v2 * Changes Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Nathan Bierema <nbierema@gmail.com>
This commit is contained in:
		
							parent
							
								
									246af5ad62
								
							
						
					
					
						commit
						f7c45f94b0
					
				| 
						 | 
				
			
			@ -31,7 +31,7 @@
 | 
			
		|||
    "@babel/code-frame": "^7.14.5",
 | 
			
		||||
    "@types/chrome": "^0.0.154",
 | 
			
		||||
    "anser": "^1.4.10",
 | 
			
		||||
    "html-entities": "^1.4.0",
 | 
			
		||||
    "html-entities": "^2.3.2",
 | 
			
		||||
    "redux-devtools-themes": "^1.0.0",
 | 
			
		||||
    "settle-promise": "^1.0.0"
 | 
			
		||||
  },
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,9 +7,7 @@
 | 
			
		|||
 | 
			
		||||
import Anser from 'anser';
 | 
			
		||||
import { nicinabox as theme } from 'redux-devtools-themes';
 | 
			
		||||
import { AllHtmlEntities as Entities } from 'html-entities';
 | 
			
		||||
 | 
			
		||||
const entities = new Entities();
 | 
			
		||||
import { encode } from 'html-entities';
 | 
			
		||||
 | 
			
		||||
const anserMap = {
 | 
			
		||||
  'ansi-bright-black': theme.base03,
 | 
			
		||||
| 
						 | 
				
			
			@ -27,7 +25,7 @@ const anserMap = {
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
function generateAnsiHTML(txt: string): string {
 | 
			
		||||
  const arr = new Anser().ansiToJson(entities.encode(txt), {
 | 
			
		||||
  const arr = new Anser().ansiToJson(encode(txt), {
 | 
			
		||||
    use_classes: true,
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5067,7 +5067,7 @@ __metadata:
 | 
			
		|||
    enzyme: ^3.11.0
 | 
			
		||||
    enzyme-adapter-react-16: ^1.15.6
 | 
			
		||||
    enzyme-to-json: ^3.6.2
 | 
			
		||||
    html-entities: ^1.4.0
 | 
			
		||||
    html-entities: ^2.3.2
 | 
			
		||||
    react: ^16.14.0
 | 
			
		||||
    react-dom: ^16.14.0
 | 
			
		||||
    react-test-renderer: ^16.14.0
 | 
			
		||||
| 
						 | 
				
			
			@ -16810,7 +16810,7 @@ fsevents@^1.2.7:
 | 
			
		|||
  languageName: node
 | 
			
		||||
  linkType: hard
 | 
			
		||||
 | 
			
		||||
"html-entities@npm:^1.2.0, html-entities@npm:^1.2.1, html-entities@npm:^1.4.0":
 | 
			
		||||
"html-entities@npm:^1.2.0, html-entities@npm:^1.2.1":
 | 
			
		||||
  version: 1.4.0
 | 
			
		||||
  resolution: "html-entities@npm:1.4.0"
 | 
			
		||||
  checksum: 4b73ffb9eead200f99146e4fbe70acb0af2fea136901a131fc3a782e9ef876a7cbb07dec303ca1f8804232b812249dbf3643a270c9c524852065d9224a8dcdd0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user