@angular/core 14.2.0-rc.0 → 14.2.0
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/esm2020/src/sanitization/url_sanitizer.mjs +3 -7
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/fesm2015/core.mjs +4 -8
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +4 -8
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +4 -8
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +4 -8
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/testing/index.d.ts +1 -1
package/fesm2015/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.2.0
|
|
2
|
+
* @license Angular v14.2.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -6091,14 +6091,10 @@ function isDOMParserAvailable() {
|
|
|
6091
6091
|
*
|
|
6092
6092
|
* This regular expression was taken from the Closure sanitization library.
|
|
6093
6093
|
*/
|
|
6094
|
-
const SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;
|
|
6095
|
-
/* A pattern that matches safe srcset values */
|
|
6096
|
-
const SAFE_SRCSET_PATTERN = /^(?:(?:https?|file):|[^&:/?#]*(?:[/?#]|$))/gi;
|
|
6097
|
-
/** A pattern that matches safe data URLs. Only matches image, video and audio types. */
|
|
6098
|
-
const DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;
|
|
6094
|
+
const SAFE_URL_PATTERN = /^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;
|
|
6099
6095
|
function _sanitizeUrl(url) {
|
|
6100
6096
|
url = String(url);
|
|
6101
|
-
if (url.match(SAFE_URL_PATTERN)
|
|
6097
|
+
if (url.match(SAFE_URL_PATTERN))
|
|
6102
6098
|
return url;
|
|
6103
6099
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
6104
6100
|
console.warn(`WARNING: sanitizing unsafe URL value ${url} (see https://g.co/ng/security#xss)`);
|
|
@@ -7647,7 +7643,7 @@ class Version {
|
|
|
7647
7643
|
/**
|
|
7648
7644
|
* @publicApi
|
|
7649
7645
|
*/
|
|
7650
|
-
const VERSION = new Version('14.2.0
|
|
7646
|
+
const VERSION = new Version('14.2.0');
|
|
7651
7647
|
|
|
7652
7648
|
/**
|
|
7653
7649
|
* @license
|