ember-source 6.6.0-alpha.6 → 6.6.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/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +2 -2
- package/dist/ember-template-compiler.js.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember.debug.js +10 -53
- package/dist/ember.debug.js.map +1 -1
- package/dist/ember.prod.js +10 -53
- package/dist/ember.prod.js.map +1 -1
- package/dist/packages/@ember/-internals/glimmer/index.js +2 -2
- package/dist/packages/@ember/application/index.js +2 -2
- package/dist/packages/@ember/application/instance.js +1 -1
- package/dist/packages/@ember/component/helper.js +1 -1
- package/dist/packages/@ember/component/index.js +1 -1
- package/dist/packages/@ember/engine/index.js +2 -2
- package/dist/packages/@ember/helper/index.js +1 -1
- package/dist/packages/@ember/modifier/index.js +1 -1
- package/dist/packages/@ember/renderer/index.js +1 -1
- package/dist/packages/@ember/routing/index.js +1 -1
- package/dist/packages/@ember/template/index.js +1 -1
- package/dist/packages/@ember/template-compiler/lib/template.js +3 -5
- package/dist/packages/ember/barrel.js +2 -4
- package/dist/packages/ember/version.js +1 -1
- package/dist/packages/ember-testing/lib/initializers.js +1 -1
- package/dist/packages/shared-chunks/{index-YU6dOE3v.js → index-BCp6wOJU.js} +8 -48
- package/dist/packages/shared-chunks/{setup-registry-CD3BNZix.js → setup-registry-D07VAwbJ.js} +1 -1
- package/docs/data.json +5 -5
- package/package.json +3 -6
- package/types/stable/@ember/-internals/glimmer/index.d.ts +1 -1
- package/types/stable/@ember/-internals/glimmer/lib/utils/string.d.ts +1 -2
- package/types/stable/ember/barrel.d.ts +2 -4
- package/types/stable/ember/index.d.ts +2 -4
package/dist/ember.prod.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
|
6
6
|
* @license Licensed under MIT license
|
|
7
7
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
|
8
|
-
* @version 6.6.0
|
|
8
|
+
* @version 6.6.0
|
|
9
9
|
*/
|
|
10
10
|
/* eslint-disable no-var */
|
|
11
11
|
/* globals global globalThis self */
|
|
@@ -2130,7 +2130,7 @@ var define, require;
|
|
|
2130
2130
|
}, Symbol.toStringTag, { value: 'Module' });
|
|
2131
2131
|
|
|
2132
2132
|
// this file gets replaced with the real value during the build
|
|
2133
|
-
const Version = '6.6.0
|
|
2133
|
+
const Version = '6.6.0';
|
|
2134
2134
|
|
|
2135
2135
|
const emberVersion = /*#__PURE__*/Object.defineProperty({
|
|
2136
2136
|
__proto__: null,
|
|
@@ -24500,52 +24500,6 @@ var define, require;
|
|
|
24500
24500
|
return this.toString();
|
|
24501
24501
|
}
|
|
24502
24502
|
}
|
|
24503
|
-
const escape = {
|
|
24504
|
-
'&': '&',
|
|
24505
|
-
'<': '<',
|
|
24506
|
-
'>': '>',
|
|
24507
|
-
'"': '"',
|
|
24508
|
-
"'": ''',
|
|
24509
|
-
'`': '`',
|
|
24510
|
-
'=': '='
|
|
24511
|
-
};
|
|
24512
|
-
const possible = /[&<>"'`=]/;
|
|
24513
|
-
const badChars = /[&<>"'`=]/g;
|
|
24514
|
-
function escapeChar(chr) {
|
|
24515
|
-
return escape[chr];
|
|
24516
|
-
}
|
|
24517
|
-
function escapeExpression(string) {
|
|
24518
|
-
let s;
|
|
24519
|
-
if (typeof string !== 'string') {
|
|
24520
|
-
// don't escape SafeStrings, since they're already safe
|
|
24521
|
-
if (isHTMLSafe(string)) {
|
|
24522
|
-
return string.toHTML();
|
|
24523
|
-
} else if (string === null || string === undefined) {
|
|
24524
|
-
return '';
|
|
24525
|
-
} else if (!string) {
|
|
24526
|
-
return String(string);
|
|
24527
|
-
}
|
|
24528
|
-
|
|
24529
|
-
// Force a string conversion as this will be done by the append regardless and
|
|
24530
|
-
// the regex test will do this transparently behind the scenes, causing issues if
|
|
24531
|
-
// an object's to string has escaped characters in it.
|
|
24532
|
-
s = String(string);
|
|
24533
|
-
} else {
|
|
24534
|
-
s = string;
|
|
24535
|
-
}
|
|
24536
|
-
if (!possible.test(s)) {
|
|
24537
|
-
return s;
|
|
24538
|
-
}
|
|
24539
|
-
|
|
24540
|
-
// SAFETY: this is technically a lie, but it's a true lie as long as the
|
|
24541
|
-
// invariant it depends on is upheld: `escapeChar` will always return a string
|
|
24542
|
-
// as long as its input is one of the characters in `escape`, and it will only
|
|
24543
|
-
// be called if it matches one of the characters in the `badChar` regex, which
|
|
24544
|
-
// is hand-maintained to match the set escaped. (It would be nice if TS could
|
|
24545
|
-
// "see" into the regex to see how this works, but that'd be quite a lot of
|
|
24546
|
-
// extra fanciness.)
|
|
24547
|
-
return s.replace(badChars, escapeChar);
|
|
24548
|
-
}
|
|
24549
24503
|
|
|
24550
24504
|
/**
|
|
24551
24505
|
Use this method to indicate that a string should be rendered as HTML
|
|
@@ -24605,7 +24559,13 @@ var define, require;
|
|
|
24605
24559
|
@public
|
|
24606
24560
|
*/
|
|
24607
24561
|
function isHTMLSafe(str) {
|
|
24608
|
-
return
|
|
24562
|
+
return (
|
|
24563
|
+
// SAFETY: cast `as SafeString` only present to make this check "legal"; we
|
|
24564
|
+
// can further improve this by changing the behavior to do an `in` check
|
|
24565
|
+
// instead, but that's worth landing as a separate change for bisecting if
|
|
24566
|
+
// it happens to have an impact on e.g. perf.
|
|
24567
|
+
str !== null && typeof str === 'object' && typeof str.toHTML === 'function'
|
|
24568
|
+
);
|
|
24609
24569
|
}
|
|
24610
24570
|
|
|
24611
24571
|
/**
|
|
@@ -37631,7 +37591,6 @@ var define, require;
|
|
|
37631
37591
|
Textarea,
|
|
37632
37592
|
_resetRenderers,
|
|
37633
37593
|
componentCapabilities,
|
|
37634
|
-
escapeExpression,
|
|
37635
37594
|
getTemplate,
|
|
37636
37595
|
getTemplates,
|
|
37637
37596
|
hasTemplate,
|
|
@@ -44302,9 +44261,7 @@ var define, require;
|
|
|
44302
44261
|
runLoadHooks('Ember.Application', Application);
|
|
44303
44262
|
let EmberHandlebars = {
|
|
44304
44263
|
template: templateFactory,
|
|
44305
|
-
Utils: {
|
|
44306
|
-
escapeExpression
|
|
44307
|
-
}
|
|
44264
|
+
Utils: {}
|
|
44308
44265
|
};
|
|
44309
44266
|
let EmberHTMLBars = {
|
|
44310
44267
|
template: templateFactory
|