ember-source 3.24.6 → 3.24.7
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 +4 -0
- 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 +11 -5
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.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 +2 -2
- package/package.json +2 -2
package/dist/header/license.js
CHANGED
|
@@ -1261,7 +1261,7 @@ function _getProp(obj, keyName) {
|
|
|
1261
1261
|
|
|
1262
1262
|
return value;
|
|
1263
1263
|
}
|
|
1264
|
-
function _getPath(root, path) {
|
|
1264
|
+
function _getPath(root, path, forSet) {
|
|
1265
1265
|
let obj = root;
|
|
1266
1266
|
let parts = typeof path === 'string' ? path.split('.') : path;
|
|
1267
1267
|
|
|
@@ -1270,7 +1270,13 @@ function _getPath(root, path) {
|
|
|
1270
1270
|
return undefined;
|
|
1271
1271
|
}
|
|
1272
1272
|
|
|
1273
|
-
|
|
1273
|
+
let part = parts[i];
|
|
1274
|
+
|
|
1275
|
+
if (forSet && (part === '__proto__' || part === 'constructor')) {
|
|
1276
|
+
return;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
obj = _getProp(obj, part);
|
|
1274
1280
|
}
|
|
1275
1281
|
|
|
1276
1282
|
return obj;
|
|
@@ -1424,7 +1430,7 @@ function setPath(root, path, value, tolerant) {
|
|
|
1424
1430
|
let parts = path.split('.');
|
|
1425
1431
|
let keyName = parts.pop();
|
|
1426
1432
|
assert('Property set failed: You passed an empty path', keyName.trim().length > 0);
|
|
1427
|
-
let newRoot = _getPath(root, parts);
|
|
1433
|
+
let newRoot = _getPath(root, parts, true);
|
|
1428
1434
|
|
|
1429
1435
|
if (newRoot !== null && newRoot !== undefined) {
|
|
1430
1436
|
return set(newRoot, keyName, value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "3.24.
|
|
1
|
+
export default "3.24.7";
|
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.24.
|
|
6
|
+
"version": "3.24.7"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -8591,7 +8591,7 @@
|
|
|
8591
8591
|
},
|
|
8592
8592
|
{
|
|
8593
8593
|
"file": "packages/@ember/-internals/metal/lib/property_get.ts",
|
|
8594
|
-
"line":
|
|
8594
|
+
"line": 169,
|
|
8595
8595
|
"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```",
|
|
8596
8596
|
"itemtype": "method",
|
|
8597
8597
|
"name": "getWithDefault",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "3.24.
|
|
3
|
+
"version": "3.24.7",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"ember-addon": {
|
|
152
152
|
"after": "ember-cli-legacy-blueprints"
|
|
153
153
|
},
|
|
154
|
-
"_originalVersion": "3.24.
|
|
154
|
+
"_originalVersion": "3.24.7",
|
|
155
155
|
"_versionPreviouslyCalculated": true,
|
|
156
156
|
"publishConfig": {
|
|
157
157
|
"tag": "old"
|