ember-source 4.4.0-alpha.1 → 4.4.0-alpha.2

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.
Files changed (81) hide show
  1. package/blueprints/acceptance-test/mocha-files/tests/acceptance/__name__-test.js +4 -4
  2. package/blueprints/acceptance-test/mocha-rfc-232-files/tests/acceptance/__name__-test.js +2 -2
  3. package/blueprints/acceptance-test/qunit-files/tests/acceptance/__name__-test.js +2 -2
  4. package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.js +2 -2
  5. package/blueprints/component/index.js +2 -2
  6. package/blueprints/component-class/index.js +2 -2
  7. package/blueprints/component-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js +4 -4
  8. package/blueprints/component-test/mocha-files/__root__/__testType__/__path__/__test__.js +7 -5
  9. package/blueprints/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +4 -4
  10. package/blueprints/component-test/qunit-files/__root__/__testType__/__path__/__test__.js +4 -4
  11. package/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +4 -4
  12. package/blueprints/controller/files/__root__/__path__/__name__.js +1 -2
  13. package/blueprints/controller-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js +2 -2
  14. package/blueprints/controller-test/mocha-files/__root__/__testType__/__path__/__test__.js +5 -3
  15. package/blueprints/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
  16. package/blueprints/controller-test/qunit-files/__root__/__testType__/__path__/__test__.js +1 -1
  17. package/blueprints/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
  18. package/blueprints/helper/files/__root__/__collection__/__name__.js +1 -1
  19. package/blueprints/helper/mu-files/__root__/__collection__/__name__.js +1 -1
  20. package/blueprints/helper-test/mocha-0.12-files/__root__/__testType__/__collection__/__name__-test.js +3 -3
  21. package/blueprints/helper-test/mocha-files/__root__/__testType__/__collection__/__name__-test.js +6 -4
  22. package/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +2 -2
  23. package/blueprints/helper-test/qunit-files/__root__/__testType__/__collection__/__name__-test.js +2 -2
  24. package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +2 -2
  25. package/blueprints/initializer/files/__root__/initializers/__name__.js +2 -3
  26. package/blueprints/initializer-test/mocha-files/__root__/__testType__/__path__/__name__-test.js +6 -7
  27. package/blueprints/initializer-test/mocha-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +5 -5
  28. package/blueprints/initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js +3 -4
  29. package/blueprints/instance-initializer/files/__root__/instance-initializers/__name__.js +2 -3
  30. package/blueprints/instance-initializer-test/mocha-files/__root__/__testType__/__path__/__name__-test.js +5 -5
  31. package/blueprints/instance-initializer-test/mocha-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +5 -5
  32. package/blueprints/instance-initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js +2 -2
  33. package/blueprints/mixin/files/__root__/mixins/__name__.js +1 -2
  34. package/blueprints/mixin-test/mocha-files/__root__/__testType__/__name__-test.js +2 -2
  35. package/blueprints/mixin-test/mocha-rfc-232-files/__root__/__testType__/__name__-test.js +2 -2
  36. package/blueprints/mixin-test/qunit-files/__root__/__testType__/__name__-test.js +1 -1
  37. package/blueprints/mixin-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +1 -1
  38. package/blueprints/route/files/__root__/__path__/__name__.js +2 -2
  39. package/blueprints/route-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js +2 -2
  40. package/blueprints/route-test/mocha-files/__root__/__testType__/__path__/__test__.js +5 -3
  41. package/blueprints/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
  42. package/blueprints/route-test/qunit-files/__root__/__testType__/__path__/__test__.js +1 -1
  43. package/blueprints/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
  44. package/blueprints/service/files/__root__/__path__/__name__.js +1 -2
  45. package/blueprints/service-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js +2 -2
  46. package/blueprints/service-test/mocha-files/__root__/__testType__/__path__/__test__.js +5 -3
  47. package/blueprints/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
  48. package/blueprints/service-test/qunit-files/__root__/__testType__/__path__/__test__.js +1 -1
  49. package/blueprints/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
  50. package/blueprints/util-test/mocha-files/__root__/__testType__/__name__-test.js +2 -2
  51. package/blueprints/util-test/mocha-rfc-232-files/__root__/__testType__/__name__-test.js +2 -2
  52. package/blueprints/util-test/qunit-files/__root__/__testType__/__name__-test.js +1 -1
  53. package/blueprints/util-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +2 -3
  54. package/build-metadata.json +3 -3
  55. package/dist/dependencies/router_js.js +1 -1
  56. package/dist/ember-template-compiler.js +10 -140
  57. package/dist/ember-template-compiler.map +1 -1
  58. package/dist/ember-testing.js +3 -1
  59. package/dist/ember-testing.map +1 -1
  60. package/dist/ember.debug.js +152 -189
  61. package/dist/ember.debug.map +1 -1
  62. package/dist/header/license.js +1 -1
  63. package/dist/packages/@ember/-internals/container/index.js +3 -3
  64. package/dist/packages/@ember/-internals/glimmer/index.js +18 -25
  65. package/dist/packages/@ember/-internals/metal/index.js +14 -16
  66. package/dist/packages/@ember/-internals/routing/lib/services/router.js +2 -0
  67. package/dist/packages/@ember/-internals/routing/lib/services/routing.js +2 -0
  68. package/dist/packages/@ember/-internals/routing/lib/system/generate_controller.js +3 -1
  69. package/dist/packages/@ember/-internals/routing/lib/system/route.js +14 -6
  70. package/dist/packages/@ember/-internals/routing/lib/system/router.js +5 -13
  71. package/dist/packages/@ember/-internals/routing/lib/utils.js +2 -1
  72. package/dist/packages/@ember/-internals/runtime/lib/mixins/container_proxy.js +29 -29
  73. package/dist/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +51 -50
  74. package/dist/packages/@ember/-internals/utils/index.js +1 -1
  75. package/dist/packages/@ember/application/instance.js +3 -3
  76. package/dist/packages/@ember/canary-features/index.js +0 -10
  77. package/dist/packages/@ember/debug/lib/capture-render-tree.js +2 -0
  78. package/dist/packages/ember/index.js +3 -14
  79. package/dist/packages/ember/version.js +1 -1
  80. package/docs/data.json +173 -189
  81. package/package.json +3 -3
@@ -2,7 +2,7 @@ import EmberObject from '@ember/object';
2
2
  import <%= classifiedModuleName %>Mixin from '<%= projectName %>/mixins/<%= dasherizedModuleName %>';
3
3
  import { module, test } from 'qunit';
4
4
 
5
- module('<%= friendlyTestName %>', function() {
5
+ module('<%= friendlyTestName %>', function () {
6
6
  // TODO: Replace this with your real tests.
7
7
  test('it works', function (assert) {
8
8
  let <%= classifiedModuleName %>Object = EmberObject.extend(<%= classifiedModuleName %>Mixin);
@@ -7,5 +7,5 @@ export default class <%= classifiedModuleName %>Route extends Route {<% if (hasD
7
7
  * based on that dynamic segment here in the model hook.
8
8
  */
9
9
  return params;
10
- }<%}%>
11
- }
10
+ }
11
+ <%}%>}
@@ -2,13 +2,13 @@ import { expect } from 'chai';
2
2
  import { describe, it } from 'mocha';
3
3
  import { setupTest } from 'ember-mocha';
4
4
 
5
- describe('<%= friendlyTestDescription %>', function() {
5
+ describe('<%= friendlyTestDescription %>', function () {
6
6
  setupTest('route:<%= moduleName %>', {
7
7
  // Specify the other units that are required for this test.
8
8
  // needs: ['controller:foo']
9
9
  });
10
10
 
11
- it('exists', function() {
11
+ it('exists', function () {
12
12
  let route = this.subject();
13
13
  expect(route).to.be.ok;
14
14
  });
@@ -1,13 +1,15 @@
1
1
  import { expect } from 'chai';
2
2
  import { describeModule, it } from 'ember-mocha';
3
3
 
4
- describeModule('route:<%= moduleName %>', '<%= friendlyTestDescription %>',
4
+ describeModule(
5
+ 'route:<%= moduleName %>',
6
+ '<%= friendlyTestDescription %>',
5
7
  {
6
8
  // Specify the other units that are required for this test.
7
9
  // needs: ['controller:foo']
8
10
  },
9
- function() {
10
- it('exists', function() {
11
+ function () {
12
+ it('exists', function () {
11
13
  let route = this.subject();
12
14
  expect(route).to.be.ok;
13
15
  });
@@ -2,10 +2,10 @@ import { expect } from 'chai';
2
2
  import { describe, it } from 'mocha';
3
3
  import { setupTest } from 'ember-mocha';
4
4
 
5
- describe('<%= friendlyTestDescription %>', function() {
5
+ describe('<%= friendlyTestDescription %>', function () {
6
6
  setupTest();
7
7
 
8
- it('exists', function() {
8
+ it('exists', function () {
9
9
  let route = this.owner.lookup('route:<%= dasherizedModuleName %>');
10
10
  expect(route).to.be.ok;
11
11
  });
@@ -5,7 +5,7 @@ moduleFor('route:<%= moduleName %>', '<%= friendlyTestDescription %>', {
5
5
  // needs: ['controller:foo']
6
6
  });
7
7
 
8
- test('it exists', function(assert) {
8
+ test('it exists', function (assert) {
9
9
  let route = this.subject();
10
10
  assert.ok(route);
11
11
  });
@@ -1,10 +1,10 @@
1
1
  import { module, test } from 'qunit';
2
2
  import { setupTest } from 'ember-qunit';
3
3
 
4
- module('<%= friendlyTestDescription %>', function(hooks) {
4
+ module('<%= friendlyTestDescription %>', function (hooks) {
5
5
  setupTest(hooks);
6
6
 
7
- test('it exists', function(assert) {
7
+ test('it exists', function (assert) {
8
8
  let route = this.owner.lookup('route:<%= moduleName %>');
9
9
  assert.ok(route);
10
10
  });
@@ -1,4 +1,3 @@
1
1
  import Service from '@ember/service';
2
2
 
3
- export default class <%= classifiedModuleName %>Service extends Service {
4
- }
3
+ export default class <%= classifiedModuleName %>Service extends Service {}
@@ -2,14 +2,14 @@ import { expect } from 'chai';
2
2
  import { describe, it } from 'mocha';
3
3
  import { setupTest } from 'ember-mocha';
4
4
 
5
- describe('<%= friendlyTestDescription %>', function() {
5
+ describe('<%= friendlyTestDescription %>', function () {
6
6
  setupTest('service:<%= dasherizedModuleName %>', {
7
7
  // Specify the other units that are required for this test.
8
8
  // needs: ['service:foo']
9
9
  });
10
10
 
11
11
  // TODO: Replace this with your real tests.
12
- it('exists', function() {
12
+ it('exists', function () {
13
13
  let service = this.subject();
14
14
  expect(service).to.be.ok;
15
15
  });
@@ -1,14 +1,16 @@
1
1
  import { expect } from 'chai';
2
2
  import { describeModule, it } from 'ember-mocha';
3
3
 
4
- describeModule('service:<%= dasherizedModuleName %>', '<%= friendlyTestDescription %>',
4
+ describeModule(
5
+ 'service:<%= dasherizedModuleName %>',
6
+ '<%= friendlyTestDescription %>',
5
7
  {
6
8
  // Specify the other units that are required for this test.
7
9
  // needs: ['service:foo']
8
10
  },
9
- function() {
11
+ function () {
10
12
  // TODO: Replace this with your real tests.
11
- it('exists', function() {
13
+ it('exists', function () {
12
14
  let service = this.subject();
13
15
  expect(service).to.be.ok;
14
16
  });
@@ -2,11 +2,11 @@ import { expect } from 'chai';
2
2
  import { describe, it } from 'mocha';
3
3
  import { setupTest } from 'ember-mocha';
4
4
 
5
- describe('<%= friendlyTestDescription %>', function() {
5
+ describe('<%= friendlyTestDescription %>', function () {
6
6
  setupTest();
7
7
 
8
8
  // TODO: Replace this with your real tests.
9
- it('exists', function() {
9
+ it('exists', function () {
10
10
  let service = this.owner.lookup('service:<%= dasherizedModuleName %>');
11
11
  expect(service).to.be.ok;
12
12
  });
@@ -6,7 +6,7 @@ moduleFor('service:<%= dasherizedModuleName %>', '<%= friendlyTestDescription %>
6
6
  });
7
7
 
8
8
  // TODO: Replace this with your real tests.
9
- test('it exists', function(assert) {
9
+ test('it exists', function (assert) {
10
10
  let service = this.subject();
11
11
  assert.ok(service);
12
12
  });
@@ -1,11 +1,11 @@
1
1
  import { module, test } from 'qunit';
2
2
  import { setupTest } from 'ember-qunit';
3
3
 
4
- module('<%= friendlyTestDescription %>', function(hooks) {
4
+ module('<%= friendlyTestDescription %>', function (hooks) {
5
5
  setupTest(hooks);
6
6
 
7
7
  // TODO: Replace this with your real tests.
8
- test('it exists', function(assert) {
8
+ test('it exists', function (assert) {
9
9
  let service = this.owner.lookup('service:<%= dasherizedModuleName %>');
10
10
  assert.ok(service);
11
11
  });
@@ -2,9 +2,9 @@ import { expect } from 'chai';
2
2
  import { describe, it } from 'mocha';
3
3
  import <%= camelizedModuleName %> from '<%= dasherizedPackageName %>/utils/<%= dasherizedModuleName %>';
4
4
 
5
- describe('<%= friendlyTestName %>', function() {
5
+ describe('<%= friendlyTestName %>', function () {
6
6
  // TODO: Replace this with your real tests.
7
- it('works', function() {
7
+ it('works', function () {
8
8
  let result = <%= camelizedModuleName %>();
9
9
  expect(result).to.be.ok;
10
10
  });
@@ -2,9 +2,9 @@ import { expect } from 'chai';
2
2
  import { describe, it } from 'mocha';
3
3
  import <%= camelizedModuleName %> from '<%= dasherizedPackageName %>/utils/<%= dasherizedModuleName %>';
4
4
 
5
- describe('<%= friendlyTestName %>', function() {
5
+ describe('<%= friendlyTestName %>', function () {
6
6
  // TODO: Replace this with your real tests.
7
- it('works', function() {
7
+ it('works', function () {
8
8
  let result = <%= camelizedModuleName %>();
9
9
  expect(result).to.be.ok;
10
10
  });
@@ -4,7 +4,7 @@ import { module, test } from 'qunit';
4
4
  module('<%= friendlyTestName %>');
5
5
 
6
6
  // TODO: Replace this with your real tests.
7
- test('it works', function(assert) {
7
+ test('it works', function (assert) {
8
8
  let result = <%= camelizedModuleName %>();
9
9
  assert.ok(result);
10
10
  });
@@ -1,10 +1,9 @@
1
1
  import <%= camelizedModuleName %> from '<%= dasherizedModulePrefix %>/utils/<%= dasherizedModuleName %>';
2
2
  import { module, test } from 'qunit';
3
3
 
4
- module('<%= friendlyTestName %>', function() {
5
-
4
+ module('<%= friendlyTestName %>', function () {
6
5
  // TODO: Replace this with your real tests.
7
- test('it works', function(assert) {
6
+ test('it works', function (assert) {
8
7
  let result = <%= camelizedModuleName %>();
9
8
  assert.ok(result);
10
9
  });
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "4.4.0-alpha.1",
2
+ "version": "4.4.0-alpha.2",
3
3
  "buildType": "tag",
4
- "SHA": "7b362c5b1ce50f1b0d7ce12ed8cf35b40c3edda2",
5
- "assetPath": "/tag/shas/7b362c5b1ce50f1b0d7ce12ed8cf35b40c3edda2.tgz"
4
+ "SHA": "d5707234f7ecf6d68c416f057bd13676698ce3dc",
5
+ "assetPath": "/tag/shas/d5707234f7ecf6d68c416f057bd13676698ce3dc.tgz"
6
6
  }
@@ -1386,7 +1386,7 @@ class Router {
1386
1386
  doTransition(name, modelsArray = [], isIntermediate = false) {
1387
1387
  let lastArg = modelsArray[modelsArray.length - 1];
1388
1388
  let queryParams = {};
1389
- if (lastArg !== undefined && lastArg.hasOwnProperty('queryParams')) {
1389
+ if (lastArg && Object.prototype.hasOwnProperty.call(lastArg, 'queryParams')) {
1390
1390
  // We just checked this.
1391
1391
  // TODO: Use an assertion?
1392
1392
  queryParams = modelsArray.pop().queryParams;
@@ -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 4.4.0-alpha.1
9
+ * @version 4.4.0-alpha.2
10
10
  */
11
11
 
12
12
  /* eslint-disable no-var */
@@ -1019,7 +1019,7 @@ define("@ember/-internals/utils/index", ["exports", "@glimmer/util", "@ember/deb
1019
1019
 
1020
1020
 
1021
1021
  function canInvoke(obj, methodName) {
1022
- return obj !== null && obj !== undefined && typeof obj[methodName] === 'function';
1022
+ return obj != null && typeof obj[methodName] === 'function';
1023
1023
  }
1024
1024
  /**
1025
1025
  @module @ember/utils
@@ -1292,7 +1292,7 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
1292
1292
  Object.defineProperty(_exports, "__esModule", {
1293
1293
  value: true
1294
1294
  });
1295
- _exports.FEATURES = _exports.EMBER_STRICT_MODE = _exports.EMBER_ROUTING_ROUTER_SERVICE_REFRESH = _exports.EMBER_NAMED_BLOCKS = _exports.EMBER_LIBRARIES_ISREGISTERED = _exports.EMBER_IMPROVED_INSTRUMENTATION = _exports.EMBER_GLIMMER_INVOKE_HELPER = _exports.EMBER_GLIMMER_HELPER_MANAGER = _exports.EMBER_DYNAMIC_HELPERS_AND_MODIFIERS = _exports.EMBER_CACHED = _exports.DEFAULT_FEATURES = void 0;
1295
+ _exports.FEATURES = _exports.EMBER_ROUTING_ROUTER_SERVICE_REFRESH = _exports.EMBER_LIBRARIES_ISREGISTERED = _exports.EMBER_IMPROVED_INSTRUMENTATION = _exports.EMBER_CACHED = _exports.DEFAULT_FEATURES = void 0;
1296
1296
  _exports.isEnabled = isEnabled;
1297
1297
 
1298
1298
  /**
@@ -1308,11 +1308,6 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
1308
1308
  var DEFAULT_FEATURES = {
1309
1309
  EMBER_LIBRARIES_ISREGISTERED: null,
1310
1310
  EMBER_IMPROVED_INSTRUMENTATION: null,
1311
- EMBER_NAMED_BLOCKS: true,
1312
- EMBER_GLIMMER_HELPER_MANAGER: true,
1313
- EMBER_GLIMMER_INVOKE_HELPER: true,
1314
- EMBER_STRICT_MODE: true,
1315
- EMBER_DYNAMIC_HELPERS_AND_MODIFIERS: true,
1316
1311
  EMBER_ROUTING_ROUTER_SERVICE_REFRESH: true,
1317
1312
  EMBER_CACHED: true
1318
1313
  };
@@ -1370,16 +1365,6 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
1370
1365
  _exports.EMBER_LIBRARIES_ISREGISTERED = EMBER_LIBRARIES_ISREGISTERED;
1371
1366
  var EMBER_IMPROVED_INSTRUMENTATION = featureValue(FEATURES.EMBER_IMPROVED_INSTRUMENTATION);
1372
1367
  _exports.EMBER_IMPROVED_INSTRUMENTATION = EMBER_IMPROVED_INSTRUMENTATION;
1373
- var EMBER_NAMED_BLOCKS = featureValue(FEATURES.EMBER_NAMED_BLOCKS);
1374
- _exports.EMBER_NAMED_BLOCKS = EMBER_NAMED_BLOCKS;
1375
- var EMBER_GLIMMER_HELPER_MANAGER = featureValue(FEATURES.EMBER_GLIMMER_HELPER_MANAGER);
1376
- _exports.EMBER_GLIMMER_HELPER_MANAGER = EMBER_GLIMMER_HELPER_MANAGER;
1377
- var EMBER_GLIMMER_INVOKE_HELPER = featureValue(FEATURES.EMBER_GLIMMER_INVOKE_HELPER);
1378
- _exports.EMBER_GLIMMER_INVOKE_HELPER = EMBER_GLIMMER_INVOKE_HELPER;
1379
- var EMBER_STRICT_MODE = featureValue(FEATURES.EMBER_STRICT_MODE);
1380
- _exports.EMBER_STRICT_MODE = EMBER_STRICT_MODE;
1381
- var EMBER_DYNAMIC_HELPERS_AND_MODIFIERS = featureValue(FEATURES.EMBER_DYNAMIC_HELPERS_AND_MODIFIERS);
1382
- _exports.EMBER_DYNAMIC_HELPERS_AND_MODIFIERS = EMBER_DYNAMIC_HELPERS_AND_MODIFIERS;
1383
1368
  var EMBER_ROUTING_ROUTER_SERVICE_REFRESH = featureValue(FEATURES.EMBER_ROUTING_ROUTER_SERVICE_REFRESH);
1384
1369
  _exports.EMBER_ROUTING_ROUTER_SERVICE_REFRESH = EMBER_ROUTING_ROUTER_SERVICE_REFRESH;
1385
1370
  var EMBER_CACHED = featureValue(FEATURES.EMBER_CACHED);
@@ -1779,6 +1764,8 @@ define("@ember/debug/lib/capture-render-tree", ["exports", "@glimmer/util"], fun
1779
1764
  @since 3.14.0
1780
1765
  */
1781
1766
  function captureRenderTree(app) {
1767
+ // SAFETY: Ideally we'd assert here but that causes awkward circular requires since this is also in @ember/debug.
1768
+ // This is only for debug stuff so not very risky.
1782
1769
  var renderer = (0, _util.expect)(app.lookup('renderer:-dom'), "BUG: owner is missing renderer");
1783
1770
  return renderer.debugRenderTree.capture();
1784
1771
  }
@@ -17668,106 +17655,6 @@ define("ember-template-compiler/lib/plugins/assert-against-attrs", ["exports", "
17668
17655
  return false;
17669
17656
  }
17670
17657
  });
17671
- define("ember-template-compiler/lib/plugins/assert-against-dynamic-helpers-modifiers", ["exports", "@ember/debug", "ember-template-compiler/lib/system/calculate-location-display", "ember-template-compiler/lib/plugins/utils"], function (_exports, _debug, _calculateLocationDisplay, _utils) {
17672
- "use strict";
17673
-
17674
- Object.defineProperty(_exports, "__esModule", {
17675
- value: true
17676
- });
17677
- _exports.default = assertAgainstDynamicHelpersModifiers;
17678
-
17679
- function assertAgainstDynamicHelpersModifiers(env) {
17680
- var _a;
17681
-
17682
- var moduleName = (_a = env.meta) === null || _a === void 0 ? void 0 : _a.moduleName;
17683
- var {
17684
- hasLocal,
17685
- node
17686
- } = (0, _utils.trackLocals)();
17687
- return {
17688
- name: 'assert-against-dynamic-helpers-modifiers',
17689
- visitor: {
17690
- Program: node,
17691
- ElementNode: {
17692
- keys: {
17693
- children: node
17694
- }
17695
- },
17696
-
17697
- MustacheStatement(node) {
17698
- if ((0, _utils.isPath)(node.path)) {
17699
- var name = node.path.parts[0];
17700
- (true && !(name !== 'helper' && name !== 'modifier' || isLocalVariable(node.path, hasLocal)) && (0, _debug.assert)(messageFor(name) + " " + (0, _calculateLocationDisplay.default)(moduleName, node.loc), name !== 'helper' && name !== 'modifier' || isLocalVariable(node.path, hasLocal)));
17701
- }
17702
- },
17703
-
17704
- SubExpression(node) {
17705
- if ((0, _utils.isPath)(node.path)) {
17706
- var name = node.path.parts[0];
17707
- (true && !(name !== 'helper' && name !== 'modifier' || isLocalVariable(node.path, hasLocal)) && (0, _debug.assert)(messageFor(name) + " " + (0, _calculateLocationDisplay.default)(moduleName, node.loc), name !== 'helper' && name !== 'modifier' || isLocalVariable(node.path, hasLocal)));
17708
- }
17709
- }
17710
-
17711
- }
17712
- };
17713
- }
17714
-
17715
- function isLocalVariable(node, hasLocal) {
17716
- return !node.this && node.parts.length === 1 && hasLocal(node.parts[0]);
17717
- }
17718
-
17719
- function messageFor(name) {
17720
- return "Cannot use the (" + name + ") keyword yet, as it has not been implemented.";
17721
- }
17722
- });
17723
- define("ember-template-compiler/lib/plugins/assert-against-named-blocks", ["exports", "@ember/debug", "ember-template-compiler/lib/system/calculate-location-display"], function (_exports, _debug, _calculateLocationDisplay) {
17724
- "use strict";
17725
-
17726
- Object.defineProperty(_exports, "__esModule", {
17727
- value: true
17728
- });
17729
- _exports.default = assertAgainstNamedBlocks;
17730
-
17731
- /**
17732
- @module ember
17733
- */
17734
-
17735
- /**
17736
- Prevents usage of named blocks
17737
-
17738
- @private
17739
- @class AssertAgainstNamedBlocks
17740
- */
17741
- function assertAgainstNamedBlocks(env) {
17742
- var _a;
17743
-
17744
- var moduleName = (_a = env.meta) === null || _a === void 0 ? void 0 : _a.moduleName;
17745
- return {
17746
- name: 'assert-against-named-blocks',
17747
- visitor: {
17748
- ElementNode(node) {
17749
- if (node.tag[0] === ':') {
17750
- var sourceInformation = (0, _calculateLocationDisplay.default)(moduleName, node.loc);
17751
- (true && !(false) && (0, _debug.assert)("Named blocks are not currently available, attempted to use the <" + node.tag + "> named block. " + sourceInformation));
17752
- }
17753
- },
17754
-
17755
- MustacheStatement(node) {
17756
- if (node.path.type === 'PathExpression' && node.path.original === 'yield') {
17757
- var to = node.hash.pairs.filter(pair => pair.key === 'to')[0]; // Glimmer template compiler ensures yield must receive a string literal,
17758
- // so we only need to check if it is not "default" or "inverse"
17759
-
17760
- if (to && to.value.type === 'StringLiteral' && to.value.original !== 'default' && to.value.original !== 'inverse') {
17761
- var sourceInformation = (0, _calculateLocationDisplay.default)(moduleName, node.loc);
17762
- (true && !(false) && (0, _debug.assert)("Named blocks are not currently available, attempted to yield to a named block other than \"default\" or \"inverse\": {{yield to=\"" + to.value.original + "\"}}. " + sourceInformation));
17763
- }
17764
- }
17765
- }
17766
-
17767
- }
17768
- };
17769
- }
17770
- });
17771
17658
  define("ember-template-compiler/lib/plugins/assert-against-named-outlets", ["exports", "@ember/debug", "ember-template-compiler/lib/system/calculate-location-display"], function (_exports, _debug, _calculateLocationDisplay) {
17772
17659
  "use strict";
17773
17660
 
@@ -17934,7 +17821,7 @@ define("ember-template-compiler/lib/plugins/assert-splattribute-expression", ["e
17934
17821
  return '`...attributes` can only be used in the element position e.g. `<div ...attributes />`. It cannot be used as a path.';
17935
17822
  }
17936
17823
  });
17937
- define("ember-template-compiler/lib/plugins/index", ["exports", "ember-template-compiler/lib/plugins/assert-against-attrs", "ember-template-compiler/lib/plugins/assert-against-dynamic-helpers-modifiers", "ember-template-compiler/lib/plugins/assert-against-named-blocks", "ember-template-compiler/lib/plugins/assert-against-named-outlets", "ember-template-compiler/lib/plugins/assert-input-helper-without-block", "ember-template-compiler/lib/plugins/assert-reserved-named-arguments", "ember-template-compiler/lib/plugins/assert-splattribute-expression", "ember-template-compiler/lib/plugins/transform-action-syntax", "ember-template-compiler/lib/plugins/transform-each-in-into-each", "ember-template-compiler/lib/plugins/transform-each-track-array", "ember-template-compiler/lib/plugins/transform-in-element", "ember-template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings", "ember-template-compiler/lib/plugins/transform-resolutions", "ember-template-compiler/lib/plugins/transform-wrap-mount-and-outlet"], function (_exports, _assertAgainstAttrs, _assertAgainstDynamicHelpersModifiers, _assertAgainstNamedBlocks, _assertAgainstNamedOutlets, _assertInputHelperWithoutBlock, _assertReservedNamedArguments, _assertSplattributeExpression, _transformActionSyntax, _transformEachInIntoEach, _transformEachTrackArray, _transformInElement, _transformQuotedBindingsIntoJustBindings, _transformResolutions, _transformWrapMountAndOutlet) {
17824
+ define("ember-template-compiler/lib/plugins/index", ["exports", "ember-template-compiler/lib/plugins/assert-against-attrs", "ember-template-compiler/lib/plugins/assert-against-named-outlets", "ember-template-compiler/lib/plugins/assert-input-helper-without-block", "ember-template-compiler/lib/plugins/assert-reserved-named-arguments", "ember-template-compiler/lib/plugins/assert-splattribute-expression", "ember-template-compiler/lib/plugins/transform-action-syntax", "ember-template-compiler/lib/plugins/transform-each-in-into-each", "ember-template-compiler/lib/plugins/transform-each-track-array", "ember-template-compiler/lib/plugins/transform-in-element", "ember-template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings", "ember-template-compiler/lib/plugins/transform-resolutions", "ember-template-compiler/lib/plugins/transform-wrap-mount-and-outlet"], function (_exports, _assertAgainstAttrs, _assertAgainstNamedOutlets, _assertInputHelperWithoutBlock, _assertReservedNamedArguments, _assertSplattributeExpression, _transformActionSyntax, _transformEachInIntoEach, _transformEachTrackArray, _transformInElement, _transformQuotedBindingsIntoJustBindings, _transformResolutions, _transformWrapMountAndOutlet) {
17938
17825
  "use strict";
17939
17826
 
17940
17827
  Object.defineProperty(_exports, "__esModule", {
@@ -17942,17 +17829,9 @@ define("ember-template-compiler/lib/plugins/index", ["exports", "ember-template-
17942
17829
  });
17943
17830
  _exports.STRICT_MODE_TRANSFORMS = _exports.RESOLUTION_MODE_TRANSFORMS = void 0;
17944
17831
  // order of plugins is important
17945
- var RESOLUTION_MODE_TRANSFORMS = Object.freeze([_transformQuotedBindingsIntoJustBindings.default, _assertReservedNamedArguments.default, _transformActionSyntax.default, _assertAgainstAttrs.default, _transformEachInIntoEach.default, _assertInputHelperWithoutBlock.default, _transformInElement.default, _assertSplattributeExpression.default, _transformEachTrackArray.default, _assertAgainstNamedOutlets.default, _transformWrapMountAndOutlet.default, !true
17946
- /* EMBER_NAMED_BLOCKS */
17947
- ? _assertAgainstNamedBlocks.default : null, true
17948
- /* EMBER_DYNAMIC_HELPERS_AND_MODIFIERS */
17949
- ? _transformResolutions.default : _assertAgainstDynamicHelpersModifiers.default].filter(notNull));
17832
+ var RESOLUTION_MODE_TRANSFORMS = Object.freeze([_transformQuotedBindingsIntoJustBindings.default, _assertReservedNamedArguments.default, _transformActionSyntax.default, _assertAgainstAttrs.default, _transformEachInIntoEach.default, _assertInputHelperWithoutBlock.default, _transformInElement.default, _assertSplattributeExpression.default, _transformEachTrackArray.default, _assertAgainstNamedOutlets.default, _transformWrapMountAndOutlet.default, _transformResolutions.default].filter(notNull));
17950
17833
  _exports.RESOLUTION_MODE_TRANSFORMS = RESOLUTION_MODE_TRANSFORMS;
17951
- var STRICT_MODE_TRANSFORMS = Object.freeze([_transformQuotedBindingsIntoJustBindings.default, _assertReservedNamedArguments.default, _transformActionSyntax.default, _transformEachInIntoEach.default, _transformInElement.default, _assertSplattributeExpression.default, _transformEachTrackArray.default, _assertAgainstNamedOutlets.default, _transformWrapMountAndOutlet.default, !true
17952
- /* EMBER_NAMED_BLOCKS */
17953
- ? _assertAgainstNamedBlocks.default : null, !true
17954
- /* EMBER_DYNAMIC_HELPERS_AND_MODIFIERS */
17955
- ? _assertAgainstDynamicHelpersModifiers.default : null].filter(notNull));
17834
+ var STRICT_MODE_TRANSFORMS = Object.freeze([_transformQuotedBindingsIntoJustBindings.default, _assertReservedNamedArguments.default, _transformActionSyntax.default, _transformEachInIntoEach.default, _transformInElement.default, _assertSplattributeExpression.default, _transformEachTrackArray.default, _assertAgainstNamedOutlets.default, _transformWrapMountAndOutlet.default].filter(notNull));
17956
17835
  _exports.STRICT_MODE_TRANSFORMS = STRICT_MODE_TRANSFORMS;
17957
17836
 
17958
17837
  function notNull(value) {
@@ -18660,13 +18539,6 @@ define("ember-template-compiler/lib/system/compile-options", ["exports", "@ember
18660
18539
 
18661
18540
  });
18662
18541
 
18663
- if (!true
18664
- /* EMBER_STRICT_MODE */
18665
- ) {
18666
- options.strictMode = false;
18667
- options.locals = undefined;
18668
- }
18669
-
18670
18542
  if ('locals' in options && !options.locals) {
18671
18543
  // Glimmer's precompile options declare `locals` like:
18672
18544
  // locals?: string[]
@@ -18688,9 +18560,7 @@ define("ember-template-compiler/lib/system/compile-options", ["exports", "@ember
18688
18560
  }
18689
18561
 
18690
18562
  function transformsFor(options) {
18691
- return true
18692
- /* EMBER_STRICT_MODE */
18693
- && options.strictMode ? _index.STRICT_MODE_TRANSFORMS : _index.RESOLUTION_MODE_TRANSFORMS;
18563
+ return options.strictMode ? _index.STRICT_MODE_TRANSFORMS : _index.RESOLUTION_MODE_TRANSFORMS;
18694
18564
  }
18695
18565
 
18696
18566
  function compileOptions(_options) {
@@ -18857,7 +18727,7 @@ define("ember/version", ["exports"], function (_exports) {
18857
18727
  value: true
18858
18728
  });
18859
18729
  _exports.default = void 0;
18860
- var _default = "4.4.0-alpha.1";
18730
+ var _default = "4.4.0-alpha.2";
18861
18731
  _exports.default = _default;
18862
18732
  });
18863
18733
  define("simple-html-tokenizer", ["exports"], function (_exports) {