forked from MapComplete/MapComplete
		
	Chore: update dependencies
This commit is contained in:
		
							parent
							
								
									b9360d1dff
								
							
						
					
					
						commit
						4ea64d3a42
					
				
					 3 changed files with 34 additions and 60 deletions
				
			
		
							
								
								
									
										42
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										42
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							|  | @ -108,7 +108,7 @@ | |||
|         "@types/xml2js": "^0.4.9", | ||||
|         "@typescript-eslint/eslint-plugin": "^6.1.0", | ||||
|         "@typescript-eslint/parser": "^6.1.0", | ||||
|         "@vitejs/plugin-basic-ssl": "^1.0.2", | ||||
|         "@vitejs/plugin-basic-ssl": "^1.2.0", | ||||
|         "assert": "^2.0.0", | ||||
|         "chai": "^5.1.2", | ||||
|         "dependency-cruiser": "^16.3.0", | ||||
|  | @ -129,7 +129,7 @@ | |||
|         "tslib": "^2.5.0", | ||||
|         "typescript": "^4.7.4", | ||||
|         "vite": "^4.5.9", | ||||
|         "vite-node": "^1.6.1", | ||||
|         "vite-node": "^2.1.9", | ||||
|         "vitest": "^3.0.5" | ||||
|       } | ||||
|     }, | ||||
|  | @ -11902,14 +11902,15 @@ | |||
|       "license": "ISC" | ||||
|     }, | ||||
|     "node_modules/@vitejs/plugin-basic-ssl": { | ||||
|       "version": "1.0.2", | ||||
|       "version": "1.2.0", | ||||
|       "resolved": "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-1.2.0.tgz", | ||||
|       "integrity": "sha512-mkQnxTkcldAzIsomk1UuLfAu9n+kpQ3JbHcpCp7d2Oo6ITtji8pHS3QToOWjhPFvNQSnhlkAjmGbhv2QvwO/7Q==", | ||||
|       "dev": true, | ||||
|       "license": "MIT", | ||||
|       "engines": { | ||||
|         "node": ">=14.6.0" | ||||
|         "node": ">=14.21.3" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "vite": "^3.0.0 || ^4.0.0 || ^5.0.0" | ||||
|         "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@vitest/expect": { | ||||
|  | @ -28444,16 +28445,15 @@ | |||
|       } | ||||
|     }, | ||||
|     "node_modules/vite-node": { | ||||
|       "version": "1.6.1", | ||||
|       "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.6.1.tgz", | ||||
|       "integrity": "sha512-YAXkfvGtuTzwWbDSACdJSg4A4DZiAqckWe90Zapc/sEX3XvHcw1NdurM/6od8J207tSDqNbSsgdCacBgvJKFuA==", | ||||
|       "version": "2.1.9", | ||||
|       "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.9.tgz", | ||||
|       "integrity": "sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==", | ||||
|       "dev": true, | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
|         "cac": "^6.7.14", | ||||
|         "debug": "^4.3.4", | ||||
|         "pathe": "^1.1.1", | ||||
|         "picocolors": "^1.0.0", | ||||
|         "debug": "^4.3.7", | ||||
|         "es-module-lexer": "^1.5.4", | ||||
|         "pathe": "^1.1.2", | ||||
|         "vite": "^5.0.0" | ||||
|       }, | ||||
|       "bin": { | ||||
|  | @ -39245,7 +39245,9 @@ | |||
|       "version": "1.1.2" | ||||
|     }, | ||||
|     "@vitejs/plugin-basic-ssl": { | ||||
|       "version": "1.0.2", | ||||
|       "version": "1.2.0", | ||||
|       "resolved": "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-1.2.0.tgz", | ||||
|       "integrity": "sha512-mkQnxTkcldAzIsomk1UuLfAu9n+kpQ3JbHcpCp7d2Oo6ITtji8pHS3QToOWjhPFvNQSnhlkAjmGbhv2QvwO/7Q==", | ||||
|       "dev": true, | ||||
|       "requires": {} | ||||
|     }, | ||||
|  | @ -50586,15 +50588,15 @@ | |||
|       } | ||||
|     }, | ||||
|     "vite-node": { | ||||
|       "version": "1.6.1", | ||||
|       "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.6.1.tgz", | ||||
|       "integrity": "sha512-YAXkfvGtuTzwWbDSACdJSg4A4DZiAqckWe90Zapc/sEX3XvHcw1NdurM/6od8J207tSDqNbSsgdCacBgvJKFuA==", | ||||
|       "version": "2.1.9", | ||||
|       "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.9.tgz", | ||||
|       "integrity": "sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "cac": "^6.7.14", | ||||
|         "debug": "^4.3.4", | ||||
|         "pathe": "^1.1.1", | ||||
|         "picocolors": "^1.0.0", | ||||
|         "debug": "^4.3.7", | ||||
|         "es-module-lexer": "^1.5.4", | ||||
|         "pathe": "^1.1.2", | ||||
|         "vite": "^5.0.0" | ||||
|       }, | ||||
|       "dependencies": { | ||||
|  |  | |||
|  | @ -269,7 +269,7 @@ | |||
|     "@types/xml2js": "^0.4.9", | ||||
|     "@typescript-eslint/eslint-plugin": "^6.1.0", | ||||
|     "@typescript-eslint/parser": "^6.1.0", | ||||
|     "@vitejs/plugin-basic-ssl": "^1.0.2", | ||||
|     "@vitejs/plugin-basic-ssl": "^1.2.0", | ||||
|     "assert": "^2.0.0", | ||||
|     "chai": "^5.1.2", | ||||
|     "dependency-cruiser": "^16.3.0", | ||||
|  | @ -290,7 +290,7 @@ | |||
|     "tslib": "^2.5.0", | ||||
|     "typescript": "^4.7.4", | ||||
|     "vite": "^4.5.9", | ||||
|     "vite-node": "^1.6.1", | ||||
|     "vite-node": "^2.1.9", | ||||
|     "vitest": "^3.0.5" | ||||
|   } | ||||
| } | ||||
|  |  | |||
|  | @ -1,42 +1,14 @@ | |||
| import { Utils } from "../../Utils" | ||||
| /** This code is autogenerated - do not edit. Edit ./assets/layers/usersettings/usersettings.json instead */ | ||||
| export class ThemeMetaTagging { | ||||
|     public static readonly themeName = "usersettings" | ||||
|    public static readonly themeName = "usersettings" | ||||
| 
 | ||||
|     public metaTaggging_for_usersettings(feat: { properties: Record<string, string> }) { | ||||
|         Utils.AddLazyProperty(feat.properties, "_mastodon_candidate_md", () => | ||||
|             feat.properties._description | ||||
|                 .match(/\[[^\]]*\]\((.*(mastodon|en.osm.town).*)\).*/) | ||||
|                 ?.at(1) | ||||
|         ) | ||||
|         Utils.AddLazyProperty( | ||||
|             feat.properties, | ||||
|             "_d", | ||||
|             () => feat.properties._description?.replace(/</g, "<")?.replace(/>/g, ">") ?? "" | ||||
|         ) | ||||
|         Utils.AddLazyProperty(feat.properties, "_mastodon_candidate_a", () => | ||||
|             ((feat) => { | ||||
|                 const e = document.createElement("div") | ||||
|                 e.innerHTML = feat.properties._d | ||||
|                 return Array.from(e.getElementsByTagName("a")).filter( | ||||
|                     (a) => a.href.match(/mastodon|en.osm.town/) !== null | ||||
|                 )[0]?.href | ||||
|             })(feat) | ||||
|         ) | ||||
|         Utils.AddLazyProperty(feat.properties, "_mastodon_link", () => | ||||
|             ((feat) => { | ||||
|                 const e = document.createElement("div") | ||||
|                 e.innerHTML = feat.properties._d | ||||
|                 return Array.from(e.getElementsByTagName("a")).filter( | ||||
|                     (a) => a.getAttribute("rel")?.indexOf("me") >= 0 | ||||
|                 )[0]?.href | ||||
|             })(feat) | ||||
|         ) | ||||
|         Utils.AddLazyProperty( | ||||
|             feat.properties, | ||||
|             "_mastodon_candidate", | ||||
|             () => feat.properties._mastodon_candidate_md ?? feat.properties._mastodon_candidate_a | ||||
|         ) | ||||
|         feat.properties["__current_backgroun"] = "initial_value" | ||||
|     } | ||||
| } | ||||
|    public metaTaggging_for_usersettings(feat: {properties: Record<string, string>}) { | ||||
|       Utils.AddLazyProperty(feat.properties, '_mastodon_candidate_md', () => feat.properties._description.match(/\[[^\]]*\]\((.*(mastodon|en.osm.town).*)\).*/)?.at(1) )  | ||||
|       Utils.AddLazyProperty(feat.properties, '_d', () => feat.properties._description?.replace(/</g,'<')?.replace(/>/g,'>') ?? '' )  | ||||
|       Utils.AddLazyProperty(feat.properties, '_mastodon_candidate_a', () => (feat => {const e = document.createElement('div');e.innerHTML = feat.properties._d;return Array.from(e.getElementsByTagName("a")).filter(a => a.href.match(/mastodon|en.osm.town/) !== null)[0]?.href   }) (feat)  )  | ||||
|       Utils.AddLazyProperty(feat.properties, '_mastodon_link', () => (feat => {const e = document.createElement('div');e.innerHTML = feat.properties._d;return Array.from(e.getElementsByTagName("a")).filter(a => a.getAttribute("rel")?.indexOf('me') >= 0)[0]?.href})(feat)  )  | ||||
|       Utils.AddLazyProperty(feat.properties, '_mastodon_candidate', () => feat.properties._mastodon_candidate_md ?? feat.properties._mastodon_candidate_a )  | ||||
|       feat.properties['__current_backgroun'] = 'initial_value' | ||||
|    } | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue