ember-source 3.28.9 → 3.28.11
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/CHANGELOG.md +9 -1
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +2 -2
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +12 -6
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/glimmer/index.js +1 -1
- package/dist/packages/@ember/-internals/metal/index.js +9 -3
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +20 -2
- package/package.json +2 -2
package/dist/header/license.js
CHANGED
|
@@ -1281,7 +1281,7 @@ function _getProp(obj, keyName) {
|
|
|
1281
1281
|
|
|
1282
1282
|
return value;
|
|
1283
1283
|
}
|
|
1284
|
-
function _getPath(root, path) {
|
|
1284
|
+
function _getPath(root, path, forSet) {
|
|
1285
1285
|
let obj = root;
|
|
1286
1286
|
let parts = typeof path === 'string' ? path.split('.') : path;
|
|
1287
1287
|
|
|
@@ -1290,7 +1290,13 @@ function _getPath(root, path) {
|
|
|
1290
1290
|
return undefined;
|
|
1291
1291
|
}
|
|
1292
1292
|
|
|
1293
|
-
|
|
1293
|
+
let part = parts[i];
|
|
1294
|
+
|
|
1295
|
+
if (forSet && (part === '__proto__' || part === 'constructor')) {
|
|
1296
|
+
return;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
obj = _getProp(obj, part);
|
|
1294
1300
|
}
|
|
1295
1301
|
|
|
1296
1302
|
return obj;
|
|
@@ -1443,7 +1449,7 @@ function _setPath(root, path, value, tolerant) {
|
|
|
1443
1449
|
let parts = path.split('.');
|
|
1444
1450
|
let keyName = parts.pop();
|
|
1445
1451
|
assert('Property set failed: You passed an empty path', keyName.trim().length > 0);
|
|
1446
|
-
let newRoot = _getPath(root, parts);
|
|
1452
|
+
let newRoot = _getPath(root, parts, true);
|
|
1447
1453
|
|
|
1448
1454
|
if (newRoot !== null && newRoot !== undefined) {
|
|
1449
1455
|
return set(newRoot, keyName, value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "3.28.
|
|
1
|
+
export default "3.28.11";
|
package/docs/data.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "The Ember API",
|
|
4
4
|
"description": "The Ember API: a framework for building ambitious web applications",
|
|
5
5
|
"url": "https://emberjs.com/",
|
|
6
|
-
"version": "3.28.
|
|
6
|
+
"version": "3.28.11"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -581,6 +581,13 @@
|
|
|
581
581
|
},
|
|
582
582
|
"namespaces": {}
|
|
583
583
|
},
|
|
584
|
+
"packages/@ember/-internals/glimmer/tests/integration/custom-helper-test.js": {
|
|
585
|
+
"name": "packages/@ember/-internals/glimmer/tests/integration/custom-helper-test.js",
|
|
586
|
+
"modules": {},
|
|
587
|
+
"classes": {},
|
|
588
|
+
"fors": {},
|
|
589
|
+
"namespaces": {}
|
|
590
|
+
},
|
|
584
591
|
"packages/@ember/-internals/glimmer/index.ts": {
|
|
585
592
|
"name": "packages/@ember/-internals/glimmer/index.ts",
|
|
586
593
|
"modules": {
|
|
@@ -7475,6 +7482,13 @@
|
|
|
7475
7482
|
"class": "@ember/component/helper",
|
|
7476
7483
|
"module": "@ember/component"
|
|
7477
7484
|
},
|
|
7485
|
+
{
|
|
7486
|
+
"file": "packages/@ember/-internals/glimmer/tests/integration/custom-helper-test.js",
|
|
7487
|
+
"line": 12,
|
|
7488
|
+
"description": "The template-compiler does not support strict mode at this time.\nprecompile from ember-template-compiler returns a string and\nnot a template-factory, so it doesn't help with strict-mode testing.\n\nWe also can't import from `@ember/template-compiler` because it\ndoesn't exist to this kind of test, otherwise we'd be able to use\nprecompileTemplate, which would be perfect :D\n\nCopied(ish) from https://github.com/NullVoxPopuli/ember-repl/blob/main/addon/hbs.ts#L51",
|
|
7489
|
+
"class": "Ember.Templates.helpers",
|
|
7490
|
+
"module": "@ember/component"
|
|
7491
|
+
},
|
|
7478
7492
|
{
|
|
7479
7493
|
"file": "packages/@ember/-internals/glimmer/index.ts",
|
|
7480
7494
|
"line": 91,
|
|
@@ -8559,7 +8573,7 @@
|
|
|
8559
8573
|
},
|
|
8560
8574
|
{
|
|
8561
8575
|
"file": "packages/@ember/-internals/metal/lib/property_get.ts",
|
|
8562
|
-
"line":
|
|
8576
|
+
"line": 169,
|
|
8563
8577
|
"description": "Retrieves the value of a property from an Object, or a default value in the\ncase that the property returns `undefined`.\n\n```javascript\nimport { getWithDefault } from '@ember/object';\ngetWithDefault(person, 'lastName', 'Doe');\n```",
|
|
8564
8578
|
"itemtype": "method",
|
|
8565
8579
|
"name": "getWithDefault",
|
|
@@ -20229,6 +20243,10 @@
|
|
|
20229
20243
|
"message": "Missing item type",
|
|
20230
20244
|
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:110"
|
|
20231
20245
|
},
|
|
20246
|
+
{
|
|
20247
|
+
"message": "Missing item type\nThe template-compiler does not support strict mode at this time.\nprecompile from ember-template-compiler returns a string and\nnot a template-factory, so it doesn't help with strict-mode testing.\n\nWe also can't import from `@ember/template-compiler` because it\ndoesn't exist to this kind of test, otherwise we'd be able to use\nprecompileTemplate, which would be perfect :D\n\nCopied(ish) from https://github.com/NullVoxPopuli/ember-repl/blob/main/addon/hbs.ts#L51",
|
|
20248
|
+
"line": " packages/@ember/-internals/glimmer/tests/integration/custom-helper-test.js:12"
|
|
20249
|
+
},
|
|
20232
20250
|
{
|
|
20233
20251
|
"message": "Missing item type\nFlattening is based on a global revision counter. If the revision has\nbumped it means that somewhere in a class inheritance chain something has\nchanged, so we need to reflatten everything. This can only happen if:\n\n1. A meta has been flattened (listener has been called)\n2. The meta is a prototype meta with children who have inherited its\n listeners\n3. A new listener is subsequently added to the meta (e.g. via `.reopen()`)\n\nThis is a very rare occurrence, so while the counter is global it shouldn't\nbe updated very often in practice.",
|
|
20234
20252
|
"line": " packages/@ember/-internals/meta/lib/meta.ts:501"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "3.28.
|
|
3
|
+
"version": "3.28.11",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"ember-addon": {
|
|
156
156
|
"after": "ember-cli-legacy-blueprints"
|
|
157
157
|
},
|
|
158
|
-
"_originalVersion": "3.28.
|
|
158
|
+
"_originalVersion": "3.28.11",
|
|
159
159
|
"_versionPreviouslyCalculated": true,
|
|
160
160
|
"publishConfig": {
|
|
161
161
|
"tag": "old"
|