@angular/platform-browser 11.0.2 → 11.0.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/animations/animations.d.ts +1 -1
- package/animations.d.ts +1 -1
- package/bundles/platform-browser-animations.umd.js +1 -1
- package/bundles/platform-browser-animations.umd.min.js +1 -1
- package/bundles/platform-browser-animations.umd.min.js.map +1 -1
- package/bundles/platform-browser-testing.umd.js +1 -1
- package/bundles/platform-browser-testing.umd.min.js +1 -1
- package/bundles/platform-browser-testing.umd.min.js.map +1 -1
- package/bundles/platform-browser.umd.js +27 -16
- package/bundles/platform-browser.umd.js.map +1 -1
- package/bundles/platform-browser.umd.min.js +11 -12
- package/bundles/platform-browser.umd.min.js.map +1 -1
- package/esm2015/src/browser/browser_adapter.js +2 -2
- package/esm2015/src/browser/meta.js +12 -3
- package/esm2015/src/browser.js +2 -2
- package/esm2015/src/dom/events/hammer_gestures.js +6 -6
- package/esm2015/src/dom/events/key_events.js +3 -3
- package/esm2015/src/security/dom_sanitization_service.js +4 -4
- package/esm2015/src/version.js +1 -1
- package/fesm2015/animations.js +1 -1
- package/fesm2015/platform-browser.js +25 -16
- package/fesm2015/platform-browser.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/package.json +4 -4
- package/platform-browser.d.ts +10 -9
- package/platform-browser.metadata.json +1 -1
- package/testing/testing.d.ts +1 -1
- package/testing.d.ts +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v11.0.
|
2
|
+
* @license Angular v11.0.3
|
3
3
|
* (c) 2010-2020 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -436,7 +436,7 @@
|
|
436
436
|
};
|
437
437
|
BrowserDomAdapter.prototype.performanceNow = function () {
|
438
438
|
// performance.now() is not available in all browsers, see
|
439
|
-
//
|
439
|
+
// https://caniuse.com/high-resolution-time
|
440
440
|
return window.performance && window.performance.now ? window.performance.now() :
|
441
441
|
new Date().getTime();
|
442
442
|
};
|
@@ -1196,7 +1196,7 @@
|
|
1196
1196
|
'tap': true,
|
1197
1197
|
};
|
1198
1198
|
/**
|
1199
|
-
* DI token for providing [HammerJS](
|
1199
|
+
* DI token for providing [HammerJS](https://hammerjs.github.io/) support to Angular.
|
1200
1200
|
* @see `HammerGestureConfig`
|
1201
1201
|
*
|
1202
1202
|
* @ngModule HammerModule
|
@@ -1210,7 +1210,7 @@
|
|
1210
1210
|
*/
|
1211
1211
|
var HAMMER_LOADER = new i0.InjectionToken('HammerLoader');
|
1212
1212
|
/**
|
1213
|
-
* An injectable [HammerJS Manager](
|
1213
|
+
* An injectable [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)
|
1214
1214
|
* for gesture recognition. Configures specific event recognition.
|
1215
1215
|
* @publicApi
|
1216
1216
|
*/
|
@@ -1219,7 +1219,7 @@
|
|
1219
1219
|
/**
|
1220
1220
|
* A set of supported event names for gestures to be used in Angular.
|
1221
1221
|
* Angular supports all built-in recognizers, as listed in
|
1222
|
-
* [HammerJS documentation](
|
1222
|
+
* [HammerJS documentation](https://hammerjs.github.io/).
|
1223
1223
|
*/
|
1224
1224
|
this.events = [];
|
1225
1225
|
/**
|
@@ -1235,13 +1235,13 @@
|
|
1235
1235
|
* Properties that are not present take the HammerJS default values.
|
1236
1236
|
* For information about which properties are supported for which events,
|
1237
1237
|
* and their allowed and default values, see
|
1238
|
-
* [HammerJS documentation](
|
1238
|
+
* [HammerJS documentation](https://hammerjs.github.io/).
|
1239
1239
|
*
|
1240
1240
|
*/
|
1241
1241
|
this.overrides = {};
|
1242
1242
|
}
|
1243
1243
|
/**
|
1244
|
-
* Creates a [HammerJS Manager](
|
1244
|
+
* Creates a [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)
|
1245
1245
|
* and attaches it to a given HTML element.
|
1246
1246
|
* @param element The element that will recognize gestures.
|
1247
1247
|
* @returns A HammerJS event-manager object.
|
@@ -1404,7 +1404,7 @@
|
|
1404
1404
|
// Map to convert some key or keyIdentifier values to what will be returned by getEventKey
|
1405
1405
|
var _keyMap = {
|
1406
1406
|
// The following values are here for cross-browser compatibility and to match the W3C standard
|
1407
|
-
// cf
|
1407
|
+
// cf https://www.w3.org/TR/DOM-Level-3-Events-key/
|
1408
1408
|
'\b': 'Backspace',
|
1409
1409
|
'\t': 'Tab',
|
1410
1410
|
'\x7F': 'Delete',
|
@@ -1573,7 +1573,7 @@
|
|
1573
1573
|
key = event.keyIdentifier;
|
1574
1574
|
// keyIdentifier is defined in the old draft of DOM Level 3 Events implemented by Chrome and
|
1575
1575
|
// Safari cf
|
1576
|
-
//
|
1576
|
+
// https://www.w3.org/TR/2007/WD-DOM-Level-3-Events-20071221/events.html#Events-KeyboardEvents-Interfaces
|
1577
1577
|
if (key == null) {
|
1578
1578
|
return 'Unidentified';
|
1579
1579
|
}
|
@@ -1617,7 +1617,7 @@
|
|
1617
1617
|
* @security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in
|
1618
1618
|
* sanitization for the value passed in. Carefully check and audit all values and code paths going
|
1619
1619
|
* into this call. Make sure any user data is appropriately escaped for this security context.
|
1620
|
-
* For more detail, see the [Security Guide](
|
1620
|
+
* For more detail, see the [Security Guide](https://g.co/ng/security).
|
1621
1621
|
*
|
1622
1622
|
* @publicApi
|
1623
1623
|
*/
|
@@ -1671,9 +1671,9 @@
|
|
1671
1671
|
if (i0.ɵallowSanitizationBypassAndThrow(value, "ResourceURL" /* ResourceUrl */)) {
|
1672
1672
|
return i0.ɵunwrapSafeValue(value);
|
1673
1673
|
}
|
1674
|
-
throw new Error('unsafe value used in a resource URL context (see
|
1674
|
+
throw new Error('unsafe value used in a resource URL context (see https://g.co/ng/security#xss)');
|
1675
1675
|
default:
|
1676
|
-
throw new Error("Unexpected SecurityContext " + ctx + " (see
|
1676
|
+
throw new Error("Unexpected SecurityContext " + ctx + " (see https://g.co/ng/security#xss)");
|
1677
1677
|
}
|
1678
1678
|
};
|
1679
1679
|
DomSanitizerImpl.prototype.bypassSecurityTrustHtml = function (value) {
|
@@ -1734,7 +1734,7 @@
|
|
1734
1734
|
/**
|
1735
1735
|
* @security Replacing built-in sanitization providers exposes the application to XSS risks.
|
1736
1736
|
* Attacker-controlled data introduced by an unsanitized provider could expose your
|
1737
|
-
* application to XSS risks. For more detail, see the [Security Guide](
|
1737
|
+
* application to XSS risks. For more detail, see the [Security Guide](https://g.co/ng/security).
|
1738
1738
|
* @publicApi
|
1739
1739
|
*/
|
1740
1740
|
var BROWSER_SANITIZATION_PROVIDERS = BROWSER_SANITIZATION_PROVIDERS__PRE_R3__;
|
@@ -1964,7 +1964,8 @@
|
|
1964
1964
|
return element;
|
1965
1965
|
};
|
1966
1966
|
Meta.prototype._setMetaElementAttributes = function (tag, el) {
|
1967
|
-
|
1967
|
+
var _this = this;
|
1968
|
+
Object.keys(tag).forEach(function (prop) { return el.setAttribute(_this._getMetaKeyMap(prop), tag[prop]); });
|
1968
1969
|
return el;
|
1969
1970
|
};
|
1970
1971
|
Meta.prototype._parseSelector = function (tag) {
|
@@ -1972,7 +1973,11 @@
|
|
1972
1973
|
return attr + "=\"" + tag[attr] + "\"";
|
1973
1974
|
};
|
1974
1975
|
Meta.prototype._containsAttributes = function (tag, elem) {
|
1975
|
-
|
1976
|
+
var _this = this;
|
1977
|
+
return Object.keys(tag).every(function (key) { return elem.getAttribute(_this._getMetaKeyMap(key)) === tag[key]; });
|
1978
|
+
};
|
1979
|
+
Meta.prototype._getMetaKeyMap = function (prop) {
|
1980
|
+
return META_KEYS_MAP[prop] || prop;
|
1976
1981
|
};
|
1977
1982
|
return Meta;
|
1978
1983
|
}());
|
@@ -1983,6 +1988,12 @@
|
|
1983
1988
|
Meta.ctorParameters = function () { return [
|
1984
1989
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [common.DOCUMENT,] }] }
|
1985
1990
|
]; };
|
1991
|
+
/**
|
1992
|
+
* Mapping for MetaDefinition properties with their correct meta attribute names
|
1993
|
+
*/
|
1994
|
+
var META_KEYS_MAP = {
|
1995
|
+
httpEquiv: 'http-equiv'
|
1996
|
+
};
|
1986
1997
|
|
1987
1998
|
/**
|
1988
1999
|
* @license
|
@@ -2375,7 +2386,7 @@
|
|
2375
2386
|
/**
|
2376
2387
|
* @publicApi
|
2377
2388
|
*/
|
2378
|
-
var VERSION = new i0.Version('11.0.
|
2389
|
+
var VERSION = new i0.Version('11.0.3');
|
2379
2390
|
|
2380
2391
|
/**
|
2381
2392
|
* @license
|