ember-source 5.4.0-alpha.2 → 5.4.0-alpha.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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "5.4.0-alpha.2",
2
+ "version": "5.4.0-alpha.4",
3
3
  "buildType": "tag",
4
- "SHA": "a172464ec6eb3354479e61536e6795deaaf0abf5",
5
- "assetPath": "/tag/shas/a172464ec6eb3354479e61536e6795deaaf0abf5.tgz"
4
+ "SHA": "efb22715be9ef94303724bec18c6500197c60587",
5
+ "assetPath": "/tag/shas/efb22715be9ef94303724bec18c6500197c60587.tgz"
6
6
  }
@@ -6941,9 +6941,10 @@ class OnModifierState {
6941
6941
  this.shouldUpdate = true;
6942
6942
  }
6943
6943
 
6944
- let options;
6944
+ let options; // we want to handle both `true` and `false` because both have a meaning:
6945
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=770208
6945
6946
 
6946
- if (once || passive || capture) {
6947
+ if (once !== undefined || passive !== undefined || capture !== undefined) {
6947
6948
  options = this.options = {
6948
6949
  once,
6949
6950
  passive,
@@ -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 5.4.0-alpha.2
9
+ * @version 5.4.0-alpha.4
10
10
  */
11
11
 
12
12
  /* eslint-disable no-var */
@@ -8601,6 +8601,18 @@ define("@glimmer/syntax", ["exports", "@glimmer/util", "@handlebars/parser", "si
8601
8601
  voidMap[tagName] = true;
8602
8602
  });
8603
8603
  var NON_WHITESPACE = /\S/;
8604
+ /**
8605
+ * Examples when true:
8606
+ * - link
8607
+ * - liNK
8608
+ *
8609
+ * Examples when false:
8610
+ * - Link (component)
8611
+ */
8612
+
8613
+ function isVoidTag(tag) {
8614
+ return voidMap[tag.toLowerCase()] && tag[0].toLowerCase() === tag[0];
8615
+ }
8604
8616
  class Printer {
8605
8617
  constructor(options) {
8606
8618
  this.buffer = '';
@@ -8793,7 +8805,7 @@ define("@glimmer/syntax", ["exports", "@glimmer/util", "@handlebars/parser", "si
8793
8805
  this.buffer += '>';
8794
8806
  }
8795
8807
  CloseElementNode(el) {
8796
- if (el.selfClosing || voidMap[el.tag.toLowerCase()]) {
8808
+ if (el.selfClosing || isVoidTag(el.tag)) {
8797
8809
  return;
8798
8810
  }
8799
8811
  this.buffer += "</" + el.tag + ">";
@@ -11965,13 +11977,16 @@ define("@glimmer/syntax", ["exports", "@glimmer/util", "@handlebars/parser", "si
11965
11977
  var maybeTokens = tokensFromType(node, scopedTokens, options);
11966
11978
  (Array.isArray(maybeTokens) ? maybeTokens : [maybeTokens]).forEach(maybeToken => {
11967
11979
  if (maybeToken !== undefined && maybeToken[0] !== '@') {
11968
- tokensSet.add(maybeToken.split('.')[0]);
11980
+ var maybeTokenFirstSegment = maybeToken.split('.')[0];
11981
+ if (!scopedTokens.includes(maybeTokenFirstSegment)) {
11982
+ tokensSet.add(maybeToken.split('.')[0]);
11983
+ }
11969
11984
  }
11970
11985
  });
11971
11986
  }
11972
11987
  /**
11973
11988
  * Parses and traverses a given handlebars html template to extract all template locals
11974
- * referenced that could possible come from the praent scope. Can exclude known keywords
11989
+ * referenced that could possible come from the parent scope. Can exclude known keywords
11975
11990
  * optionally.
11976
11991
  */
11977
11992
 
@@ -15259,6 +15274,11 @@ define("ember-template-compiler/index", ["exports", "@ember/-internals/environme
15259
15274
  VERSION: _version.default
15260
15275
  };
15261
15276
  }
15277
+
15278
+ // used to bootstrap templates
15279
+
15280
+ // add domTemplates initializer (only does something if `ember-template-compiler`
15281
+ // is loaded already)
15262
15282
  });
15263
15283
  define("ember-template-compiler/lib/plugins/assert-against-attrs", ["exports", "@ember/debug", "ember-template-compiler/lib/system/calculate-location-display"], function (_exports, _debug, _calculateLocationDisplay) {
15264
15284
  "use strict";
@@ -16288,7 +16308,7 @@ define("ember/version", ["exports"], function (_exports) {
16288
16308
  value: true
16289
16309
  });
16290
16310
  _exports.default = void 0;
16291
- var _default = "5.4.0-alpha.2";
16311
+ var _default = "5.4.0-alpha.4";
16292
16312
  _exports.default = _default;
16293
16313
  });
16294
16314
  define("simple-html-tokenizer", ["exports"], function (_exports) {