ember-source 2.17.0.beta.6 → 2.17.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@
6
6
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
7
7
  * @license Licensed under MIT license
8
8
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
9
- * @version 2.17.0-beta.6
9
+ * @version 2.17.0
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -9995,13 +9995,10 @@ enifed('backburner', ['exports'], function (exports) {
9995
9995
  }
9996
9996
  }
9997
9997
  }
9998
- var onError = getOnError(this.options);
9999
- if (onError) {
10000
- try {
10001
- return method.apply(target, args);
10002
- } catch (error) {
10003
- onError(error);
10004
- }
9998
+ if (length === 1) {
9999
+ return method();
10000
+ } else if (length === 2) {
10001
+ return method.call(target);
10005
10002
  } else {
10006
10003
  return method.apply(target, args);
10007
10004
  }
@@ -25565,22 +25562,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
25565
25562
  */
25566
25563
 
25567
25564
 
25568
- // To maintain stacktrace consistency across browsers
25569
- var getStack = function (error) {
25570
- var stack = error.stack;
25571
- var message = error.message;
25572
-
25573
- if (stack && stack.indexOf(message) === -1) {
25574
- stack = message + '\n' + stack;
25575
- }
25576
-
25577
- return stack;
25578
- };
25579
-
25580
25565
  var onerror = void 0;
25581
25566
  var onErrorTarget = {
25582
25567
  get onerror() {
25583
- return dispatchOverride || onerror;
25568
+ return onerror;
25584
25569
  }
25585
25570
  };
25586
25571
 
@@ -25590,23 +25575,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
25590
25575
 
25591
25576
 
25592
25577
  var dispatchOverride = void 0;
25593
- // dispatch error
25594
-
25595
25578
 
25596
25579
  // allows testing adapter to override dispatch
25597
25580
 
25598
25581
 
25599
- function defaultDispatch(error) {
25600
- if (emberDebug.isTesting()) {
25601
- throw error;
25602
- }
25603
- if (onerror) {
25604
- onerror(error);
25605
- } else {
25606
- Logger.error(getStack(error));
25607
- }
25608
- }
25609
-
25610
25582
  /**
25611
25583
  @module @ember/utils
25612
25584
  */
@@ -28766,13 +28738,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
28766
28738
  exports.setOnerror = function (handler) {
28767
28739
  onerror = handler;
28768
28740
  };
28769
- exports.dispatchError = function (error) {
28770
- if (dispatchOverride) {
28771
- dispatchOverride(error);
28772
- } else {
28773
- defaultDispatch(error);
28774
- }
28775
- };
28776
28741
  exports.setDispatchOverride = function (handler) {
28777
28742
  dispatchOverride = handler;
28778
28743
  };
@@ -34729,7 +34694,7 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
34729
34694
  function (dependentKey) {
34730
34695
  return reduceMacro(dependentKey, function (sum, item) {
34731
34696
  return sum + item;
34732
- }, 0);
34697
+ }, 0, 'sum');
34733
34698
  }
34734
34699
 
34735
34700
  /**
@@ -34778,7 +34743,7 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
34778
34743
  exports.max = function (dependentKey) {
34779
34744
  return reduceMacro(dependentKey, function (max, item) {
34780
34745
  return Math.max(max, item);
34781
- }, -Infinity);
34746
+ }, -Infinity, 'max');
34782
34747
  }
34783
34748
 
34784
34749
  /**
@@ -34827,7 +34792,7 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
34827
34792
  exports.min = function (dependentKey) {
34828
34793
  return reduceMacro(dependentKey, function (min, item) {
34829
34794
  return Math.min(min, item);
34830
- }, Infinity);
34795
+ }, Infinity, 'min');
34831
34796
  }
34832
34797
 
34833
34798
  /**
@@ -34901,7 +34866,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
34901
34866
  @public
34902
34867
  */
34903
34868
  function (dependentKey, propertyKey) {
34904
- false && !(typeof propertyKey === 'string') && (0, _emberDebug.assert)('Ember.computed.mapBy expects a property string for its second argument, ' + 'perhaps you meant to use "map"', typeof propertyKey === 'string');
34869
+ false && !(typeof propertyKey === 'string') && (0, _emberDebug.assert)('\`Ember.computed.mapBy\` expects a property string for its second argument, ' + 'perhaps you meant to use "map"', typeof propertyKey === 'string');
34870
+ false && !!/[\[\]\{\}]/g.test(dependentKey) && (0, _emberDebug.assert)('Dependent key passed to `Ember.computed.mapBy` shouldn\'t contain brace expanding pattern.', !/[\[\]\{\}]/g.test(dependentKey));
34905
34871
 
34906
34872
  return map(dependentKey + '.@each.' + propertyKey, function (item) {
34907
34873
  return (0, _emberMetal.get)(item, propertyKey);
@@ -35001,8 +34967,9 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
35001
34967
  @public
35002
34968
  */
35003
34969
  function (dependentKey, propertyKey, value) {
35004
- var callback = void 0;
34970
+ false && !!/[\[\]\{\}]/g.test(dependentKey) && (0, _emberDebug.assert)('Dependent key passed to `Ember.computed.filterBy` shouldn\'t contain brace expanding pattern.', !/[\[\]\{\}]/g.test(dependentKey));
35005
34971
 
34972
+ var callback = void 0;
35006
34973
  if (arguments.length === 2) {
35007
34974
  callback = function (item) {
35008
34975
  return (0, _emberMetal.get)(item, propertyKey);
@@ -35082,6 +35049,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
35082
35049
  @public
35083
35050
  */
35084
35051
  function (dependentKey, propertyKey) {
35052
+ false && !!/[\[\]\{\}]/g.test(dependentKey) && (0, _emberDebug.assert)('Dependent key passed to `Ember.computed.uniqBy` shouldn\'t contain brace expanding pattern.', !/[\[\]\{\}]/g.test(dependentKey));
35053
+
35085
35054
  var cp = new _emberMetal.ComputedProperty(function () {
35086
35055
  var uniq = (0, _native_array.A)();
35087
35056
  var seen = Object.create(null);
@@ -35201,7 +35170,7 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
35201
35170
  }
35202
35171
 
35203
35172
  return true;
35204
- });
35173
+ }, 'intersect');
35205
35174
 
35206
35175
  return (0, _native_array.A)(results);
35207
35176
  });
@@ -35242,7 +35211,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
35242
35211
  */
35243
35212
  ;
35244
35213
  exports.setDiff = function (setAProperty, setBProperty) {
35245
- false && !(arguments.length === 2) && (0, _emberDebug.assert)('Ember.computed.setDiff requires exactly two dependent arrays.', arguments.length === 2);
35214
+ false && !(arguments.length === 2) && (0, _emberDebug.assert)('\`Ember.computed.setDiff\` requires exactly two dependent arrays.', arguments.length === 2);
35215
+ false && !(!/[\[\]\{\}]/g.test(setAProperty) && !/[\[\]\{\}]/g.test(setBProperty)) && (0, _emberDebug.assert)('Dependent keys passed to `Ember.computed.setDiff` shouldn\'t contain brace expanding pattern.', !/[\[\]\{\}]/g.test(setAProperty) && !/[\[\]\{\}]/g.test(setBProperty));
35246
35216
 
35247
35217
  var cp = new _emberMetal.ComputedProperty(function () {
35248
35218
  var setA = this.get(setAProperty);
@@ -35314,7 +35284,7 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
35314
35284
  }
35315
35285
  }
35316
35286
  return res;
35317
- });
35287
+ }, 'collect');
35318
35288
  }
35319
35289
 
35320
35290
  /**
@@ -35385,7 +35355,7 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
35385
35355
  */
35386
35356
  ;
35387
35357
  exports.sort = function (itemsKey, sortDefinition) {
35388
- false && !(arguments.length === 2) && (0, _emberDebug.assert)('Ember.computed.sort requires two arguments: an array key to sort and ' + 'either a sort properties key or sort function', arguments.length === 2);
35358
+ false && !(arguments.length === 2) && (0, _emberDebug.assert)('\`Ember.computed.sort\` requires two arguments: an array key to sort and ' + 'either a sort properties key or sort function', arguments.length === 2);
35389
35359
 
35390
35360
  if (typeof sortDefinition === 'function') {
35391
35361
  return customSort(itemsKey, sortDefinition);
@@ -35397,7 +35367,9 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
35397
35367
  @module @ember/object
35398
35368
  */
35399
35369
 
35400
- function reduceMacro(dependentKey, callback, initialValue) {
35370
+ function reduceMacro(dependentKey, callback, initialValue, name) {
35371
+ false && !!/[\[\]\{\}]/g.test(dependentKey) && (0, _emberDebug.assert)('Dependent key passed to `Ember.computed.' + name + '` shouldn\'t contain brace expanding pattern.', !/[\[\]\{\}]/g.test(dependentKey));
35372
+
35401
35373
  var cp = new _emberMetal.ComputedProperty(function () {
35402
35374
  var arr = (0, _emberMetal.get)(this, dependentKey);
35403
35375
  if (arr === null || typeof arr !== 'object') {
@@ -35426,12 +35398,20 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
35426
35398
  } else {
35427
35399
  return (0, _native_array.A)();
35428
35400
  }
35429
- }, { dependentKeys: [dependentKey], readOnly: true });
35401
+ }, { readOnly: true });
35402
+
35403
+ cp.property(dependentKey); // this forces to expand properties GH #15855
35430
35404
 
35431
35405
  return cp;
35432
35406
  }
35433
35407
 
35434
- function multiArrayMacro(_dependentKeys, callback) {
35408
+ function multiArrayMacro(_dependentKeys, callback, name) {
35409
+ false && !_dependentKeys.every(function (dependentKey) {
35410
+ return !/[\[\]\{\}]/g.test(dependentKey);
35411
+ }) && (0, _emberDebug.assert)('Dependent keys passed to `Ember.computed.' + name + '` shouldn\'t contain brace expanding pattern.', _dependentKeys.every(function (dependentKey) {
35412
+ return !/[\[\]\{\}]/g.test(dependentKey);
35413
+ }));
35414
+
35435
35415
  var dependentKeys = _dependentKeys.map(function (key) {
35436
35416
  return key + '.[]';
35437
35417
  });
@@ -35473,7 +35453,7 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
35473
35453
  });
35474
35454
 
35475
35455
  return uniq;
35476
- });
35456
+ }, 'uniq');
35477
35457
  }exports.union = uniq;
35478
35458
 
35479
35459
 
@@ -35899,9 +35879,16 @@ enifed('ember-runtime/ext/rsvp', ['exports', 'rsvp', 'ember-metal', 'ember-debug
35899
35879
  _rsvp.on('error', onerrorDefault);
35900
35880
 
35901
35881
  function onerrorDefault(reason) {
35902
- var error = errorFor(reason);
35882
+ var error = errorFor(reason),
35883
+ overrideDispatch;
35903
35884
  if (error) {
35904
- (0, _emberMetal.dispatchError)(error);
35885
+ overrideDispatch = (0, _emberMetal.getDispatchOverride)();
35886
+
35887
+ if (overrideDispatch) {
35888
+ overrideDispatch(error);
35889
+ } else {
35890
+ throw error;
35891
+ }
35905
35892
  }
35906
35893
  }
35907
35894
 
@@ -44508,7 +44495,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
44508
44495
  enifed("ember/version", ["exports"], function (exports) {
44509
44496
  "use strict";
44510
44497
 
44511
- exports.default = "2.17.0-beta.6";
44498
+ exports.default = "2.17.0";
44512
44499
  });
44513
44500
  enifed('node-module', ['exports'], function(_exports) {
44514
44501
  var IS_NODE = typeof module === 'object' && typeof module.require === 'function';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "2.17.0-beta.6",
3
+ "version": "2.17.0",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -50,7 +50,7 @@
50
50
  "ember-cli-string-utils": "^1.1.0",
51
51
  "ember-cli-test-info": "^1.0.0",
52
52
  "ember-cli-valid-component-name": "^1.0.0",
53
- "ember-cli-version-checker": "^1.3.1",
53
+ "ember-cli-version-checker": "^2.1.0",
54
54
  "ember-router-generator": "^1.2.3",
55
55
  "fs-extra": "^4.0.1",
56
56
  "inflection": "^1.12.0",
@@ -80,7 +80,7 @@
80
80
  "babel-plugin-transform-es2015-template-literals": "^6.22.0",
81
81
  "babel-plugin-transform-proto-to-assign": "^6.23.0",
82
82
  "babel-template": "^6.24.1",
83
- "backburner.js": "^1.2.2",
83
+ "backburner.js": "1.2.3",
84
84
  "broccoli-babel-transpiler": "^6.1.1",
85
85
  "broccoli-concat": "^3.2.2",
86
86
  "broccoli-file-creator": "^1.1.1",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.17.0.beta.6
4
+ version: 2.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-14 00:00:00.000000000 Z
11
+ date: 2017-11-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ember.js source code wrapper for use with Ruby libs.
14
14
  email:
@@ -43,12 +43,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
43
43
  version: '0'
44
44
  required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ">"
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: 1.3.1
48
+ version: '0'
49
49
  requirements: []
50
50
  rubyforge_project:
51
- rubygems_version: 2.7.2
51
+ rubygems_version: 2.7.3
52
52
  signing_key:
53
53
  specification_version: 4
54
54
  summary: Ember.js source code wrapper.