@boundaries/elements 1.1.0 → 1.1.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.
package/dist/index.mjs CHANGED
@@ -169,7 +169,7 @@ function isExternalLibrariesSelector(value) {
169
169
  }
170
170
 
171
171
  // src/Matcher/BaseElementsMatcher.ts
172
- var HANDLEBARS_TEMPLATE_REGEX = /{{\s*[^}]+\s*}}/;
172
+ var HANDLEBARS_TEMPLATE_REGEX = /{{\s*[^}\s]+(?:\s+[^}\s]+)*\s*}}/;
173
173
  var LEGACY_TEMPLATE_REGEX = /\$\{([^}]+)\}/g;
174
174
  function normalizeSelector(selector) {
175
175
  if (isSimpleElementSelectorByType(selector)) {
@@ -978,11 +978,14 @@ function isCoreDependencyElement(value) {
978
978
  // src/Descriptor/DependenciesDescriptor.types.ts
979
979
  var DEPENDENCY_KIND_TYPE = "type";
980
980
  var DEPENDENCY_KIND_VALUE = "value";
981
+ var DEPENDENCY_KIND_TYPEOF = "typeof";
981
982
  var DEPENDENCY_KINDS_MAP = {
982
983
  /** Type import, e.g., `import type { X } from 'module'` */
983
984
  TYPE: DEPENDENCY_KIND_TYPE,
984
985
  /** Value import, e.g., `import { X } from 'module'` */
985
- VALUE: DEPENDENCY_KIND_VALUE
986
+ VALUE: DEPENDENCY_KIND_VALUE,
987
+ /** typeof import, e.g. `type ModuleType = typeof import("./my_module");` */
988
+ TYPE_OF: DEPENDENCY_KIND_TYPEOF
986
989
  };
987
990
  var DEPENDENCY_RELATIONSHIPS_MAP = {
988
991
  /** The dependency is internal to the element */
@@ -2339,6 +2342,7 @@ export {
2339
2342
  CacheManager,
2340
2343
  DEPENDENCY_KINDS_MAP,
2341
2344
  DEPENDENCY_KIND_TYPE,
2345
+ DEPENDENCY_KIND_TYPEOF,
2342
2346
  DEPENDENCY_KIND_VALUE,
2343
2347
  DEPENDENCY_RELATIONSHIPS_INVERTED_MAP,
2344
2348
  DEPENDENCY_RELATIONSHIPS_MAP,