ember-source 3.28.9 → 3.28.10

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.
@@ -5,5 +5,5 @@
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 3.28.9
8
+ * @version 3.28.10
9
9
  */
@@ -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
- obj = _getProp(obj, parts[i]);
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.9";
1
+ export default "3.28.10";
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.9"
6
+ "version": "3.28.10"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
@@ -8559,7 +8559,7 @@
8559
8559
  },
8560
8560
  {
8561
8561
  "file": "packages/@ember/-internals/metal/lib/property_get.ts",
8562
- "line": 161,
8562
+ "line": 169,
8563
8563
  "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
8564
  "itemtype": "method",
8565
8565
  "name": "getWithDefault",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "3.28.9",
3
+ "version": "3.28.10",
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.9",
158
+ "_originalVersion": "3.28.10",
159
159
  "_versionPreviouslyCalculated": true,
160
160
  "publishConfig": {
161
161
  "tag": "old"