ember-source 4.4.3 → 4.4.4

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 4.4.3
8
+ * @version 4.4.4
9
9
  */
@@ -1815,7 +1815,7 @@ function _getProp(obj, keyName) {
1815
1815
 
1816
1816
  return value;
1817
1817
  }
1818
- function _getPath(obj, path) {
1818
+ function _getPath(obj, path, forSet) {
1819
1819
  let parts = typeof path === 'string' ? path.split('.') : path;
1820
1820
 
1821
1821
  for (let part of parts) {
@@ -1823,6 +1823,10 @@ function _getPath(obj, path) {
1823
1823
  return undefined;
1824
1824
  }
1825
1825
 
1826
+ if (forSet && (part === '__proto__' || part === 'constructor')) {
1827
+ return;
1828
+ }
1829
+
1826
1830
  obj = _getProp(obj, part);
1827
1831
  }
1828
1832
 
@@ -1938,7 +1942,7 @@ function _setPath(root, path, value, tolerant) {
1938
1942
  let parts = path.split('.');
1939
1943
  let keyName = parts.pop();
1940
1944
  assert('Property set failed: You passed an empty path', keyName.trim().length > 0);
1941
- let newRoot = _getPath(root, parts);
1945
+ let newRoot = _getPath(root, parts, true);
1942
1946
 
1943
1947
  if (newRoot !== null && newRoot !== undefined) {
1944
1948
  return set(newRoot, keyName, value);
@@ -1 +1 @@
1
- export default "4.4.3";
1
+ export default "4.4.4";
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": "4.4.3"
6
+ "version": "4.4.4"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "4.4.3",
3
+ "version": "4.4.4",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -160,7 +160,7 @@
160
160
  "ember-addon": {
161
161
  "after": "ember-cli-legacy-blueprints"
162
162
  },
163
- "_originalVersion": "4.4.3",
163
+ "_originalVersion": "4.4.4",
164
164
  "_versionPreviouslyCalculated": true,
165
165
  "publishConfig": {
166
166
  "tag": "old"