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-testing.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 */
|
package/dist/ember.debug.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 */
|
|
@@ -2860,7 +2860,7 @@ var define, require;
|
|
|
2860
2860
|
}, Symbol.toStringTag, { value: 'Module' });
|
|
2861
2861
|
|
|
2862
2862
|
// this file gets replaced with the real value during the build
|
|
2863
|
-
const Version = '6.6.0
|
|
2863
|
+
const Version = '6.6.0';
|
|
2864
2864
|
|
|
2865
2865
|
const emberVersion = /*#__PURE__*/Object.defineProperty({
|
|
2866
2866
|
__proto__: null,
|
|
@@ -26439,52 +26439,6 @@ var define, require;
|
|
|
26439
26439
|
return this.toString();
|
|
26440
26440
|
}
|
|
26441
26441
|
}
|
|
26442
|
-
const escape = {
|
|
26443
|
-
'&': '&',
|
|
26444
|
-
'<': '<',
|
|
26445
|
-
'>': '>',
|
|
26446
|
-
'"': '"',
|
|
26447
|
-
"'": ''',
|
|
26448
|
-
'`': '`',
|
|
26449
|
-
'=': '='
|
|
26450
|
-
};
|
|
26451
|
-
const possible = /[&<>"'`=]/;
|
|
26452
|
-
const badChars = /[&<>"'`=]/g;
|
|
26453
|
-
function escapeChar(chr) {
|
|
26454
|
-
return escape[chr];
|
|
26455
|
-
}
|
|
26456
|
-
function escapeExpression(string) {
|
|
26457
|
-
let s;
|
|
26458
|
-
if (typeof string !== 'string') {
|
|
26459
|
-
// don't escape SafeStrings, since they're already safe
|
|
26460
|
-
if (isHTMLSafe(string)) {
|
|
26461
|
-
return string.toHTML();
|
|
26462
|
-
} else if (string === null || string === undefined) {
|
|
26463
|
-
return '';
|
|
26464
|
-
} else if (!string) {
|
|
26465
|
-
return String(string);
|
|
26466
|
-
}
|
|
26467
|
-
|
|
26468
|
-
// Force a string conversion as this will be done by the append regardless and
|
|
26469
|
-
// the regex test will do this transparently behind the scenes, causing issues if
|
|
26470
|
-
// an object's to string has escaped characters in it.
|
|
26471
|
-
s = String(string);
|
|
26472
|
-
} else {
|
|
26473
|
-
s = string;
|
|
26474
|
-
}
|
|
26475
|
-
if (!possible.test(s)) {
|
|
26476
|
-
return s;
|
|
26477
|
-
}
|
|
26478
|
-
|
|
26479
|
-
// SAFETY: this is technically a lie, but it's a true lie as long as the
|
|
26480
|
-
// invariant it depends on is upheld: `escapeChar` will always return a string
|
|
26481
|
-
// as long as its input is one of the characters in `escape`, and it will only
|
|
26482
|
-
// be called if it matches one of the characters in the `badChar` regex, which
|
|
26483
|
-
// is hand-maintained to match the set escaped. (It would be nice if TS could
|
|
26484
|
-
// "see" into the regex to see how this works, but that'd be quite a lot of
|
|
26485
|
-
// extra fanciness.)
|
|
26486
|
-
return s.replace(badChars, escapeChar);
|
|
26487
|
-
}
|
|
26488
26442
|
|
|
26489
26443
|
/**
|
|
26490
26444
|
Use this method to indicate that a string should be rendered as HTML
|
|
@@ -26544,7 +26498,13 @@ var define, require;
|
|
|
26544
26498
|
@public
|
|
26545
26499
|
*/
|
|
26546
26500
|
function isHTMLSafe(str) {
|
|
26547
|
-
return
|
|
26501
|
+
return (
|
|
26502
|
+
// SAFETY: cast `as SafeString` only present to make this check "legal"; we
|
|
26503
|
+
// can further improve this by changing the behavior to do an `in` check
|
|
26504
|
+
// instead, but that's worth landing as a separate change for bisecting if
|
|
26505
|
+
// it happens to have an impact on e.g. perf.
|
|
26506
|
+
str !== null && typeof str === 'object' && typeof str.toHTML === 'function'
|
|
26507
|
+
);
|
|
26548
26508
|
}
|
|
26549
26509
|
|
|
26550
26510
|
/**
|
|
@@ -40074,7 +40034,6 @@ var define, require;
|
|
|
40074
40034
|
Textarea,
|
|
40075
40035
|
_resetRenderers,
|
|
40076
40036
|
componentCapabilities,
|
|
40077
|
-
escapeExpression,
|
|
40078
40037
|
getTemplate,
|
|
40079
40038
|
getTemplates,
|
|
40080
40039
|
hasTemplate,
|
|
@@ -46991,9 +46950,7 @@ var define, require;
|
|
|
46991
46950
|
runLoadHooks('Ember.Application', Application);
|
|
46992
46951
|
let EmberHandlebars = {
|
|
46993
46952
|
template: templateFactory,
|
|
46994
|
-
Utils: {
|
|
46995
|
-
escapeExpression
|
|
46996
|
-
}
|
|
46953
|
+
Utils: {}
|
|
46997
46954
|
};
|
|
46998
46955
|
let EmberHTMLBars = {
|
|
46999
46956
|
template: templateFactory
|