@bamboocss/node 1.45.1 → 1.45.3

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.cjs CHANGED
@@ -1895,7 +1895,7 @@ var BambooContext = class extends _bamboocss_generator.Generator {
1895
1895
  let result;
1896
1896
  try {
1897
1897
  const encoder = styleEncoder || this.parserOptions.encoder;
1898
- result = this.project.parseSourceFile(file, encoder);
1898
+ result = encoder.withOwner("extract", file, () => this.project.parseSourceFile(file, encoder));
1899
1899
  this.parseFailures.delete(file);
1900
1900
  } catch (error) {
1901
1901
  _bamboocss_logger.logger.caughtError("file:extract", `Failed to parse ${file}`, error);
@@ -2602,12 +2602,6 @@ function usesTokenMember(sourceFile, namespace) {
2602
2602
  });
2603
2603
  }
2604
2604
  /**
2605
- * An identifier's name as the compiler resolves it, not as it is spelled.
2606
- *
2607
- * `token` is the identifier `token`; reading `getText()` returns the escape and compares
2608
- * unequal, which let an import of the artifact's export past the checks that key on the name.
2609
- */
2610
- /**
2611
2605
  * Every `Identifier` in the file whose name passes `wanted`, in document order.
2612
2606
  *
2613
2607
  * Not `getDescendantsOfKind(SyntaxKind.Identifier)`. `Identifier` is kind 80 and sorts *below*
@@ -2639,6 +2633,12 @@ function* identifiersNamed(sourceFile, wanted) {
2639
2633
  const wrap = sourceFile;
2640
2634
  for (const node of found) yield wrap._getNodeFromCompilerNode(node);
2641
2635
  }
2636
+ /**
2637
+ * An identifier's name as the compiler resolves it, not as it is spelled.
2638
+ *
2639
+ * `token` is the identifier `token`; reading `getText()` returns the escape and compares
2640
+ * unequal, which let an import of the artifact's export past the checks that key on the name.
2641
+ */
2642
2642
  const nameOf = (node) => ts_morph.Node.isIdentifier(node) ? String(node.compilerNode.escapedText) : node.getText();
2643
2643
  /** Every name a binding name binds, following object and array destructuring. */
2644
2644
  function boundNames(name, bound) {
package/dist/index.mjs CHANGED
@@ -1881,7 +1881,7 @@ var BambooContext = class extends Generator {
1881
1881
  let result;
1882
1882
  try {
1883
1883
  const encoder = styleEncoder || this.parserOptions.encoder;
1884
- result = this.project.parseSourceFile(file, encoder);
1884
+ result = encoder.withOwner("extract", file, () => this.project.parseSourceFile(file, encoder));
1885
1885
  this.parseFailures.delete(file);
1886
1886
  } catch (error) {
1887
1887
  logger.caughtError("file:extract", `Failed to parse ${file}`, error);
@@ -2588,12 +2588,6 @@ function usesTokenMember(sourceFile, namespace) {
2588
2588
  });
2589
2589
  }
2590
2590
  /**
2591
- * An identifier's name as the compiler resolves it, not as it is spelled.
2592
- *
2593
- * `token` is the identifier `token`; reading `getText()` returns the escape and compares
2594
- * unequal, which let an import of the artifact's export past the checks that key on the name.
2595
- */
2596
- /**
2597
2591
  * Every `Identifier` in the file whose name passes `wanted`, in document order.
2598
2592
  *
2599
2593
  * Not `getDescendantsOfKind(SyntaxKind.Identifier)`. `Identifier` is kind 80 and sorts *below*
@@ -2625,6 +2619,12 @@ function* identifiersNamed(sourceFile, wanted) {
2625
2619
  const wrap = sourceFile;
2626
2620
  for (const node of found) yield wrap._getNodeFromCompilerNode(node);
2627
2621
  }
2622
+ /**
2623
+ * An identifier's name as the compiler resolves it, not as it is spelled.
2624
+ *
2625
+ * `token` is the identifier `token`; reading `getText()` returns the escape and compares
2626
+ * unequal, which let an import of the artifact's export past the checks that key on the name.
2627
+ */
2628
2628
  const nameOf = (node) => Node.isIdentifier(node) ? String(node.compilerNode.escapedText) : node.getText();
2629
2629
  /** Every name a binding name binds, following object and array destructuring. */
2630
2630
  function boundNames(name, bound) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamboocss/node",
3
- "version": "1.45.1",
3
+ "version": "1.45.3",
4
4
  "description": "The core css bamboo library",
5
5
  "homepage": "https://bamboocss.com",
6
6
  "license": "MIT",
@@ -52,17 +52,17 @@
52
52
  "postcss": "8.5.26",
53
53
  "ts-morph": "28.0.0",
54
54
  "ts-pattern": "5.9.0",
55
- "@bamboocss/config": "1.45.1",
56
- "@bamboocss/core": "1.45.1",
57
- "@bamboocss/generator": "1.45.1",
58
- "@bamboocss/logger": "1.45.1",
59
- "@bamboocss/parser": "1.45.1",
60
- "@bamboocss/plugin-svelte": "1.45.1",
61
- "@bamboocss/plugin-vue": "1.45.1",
62
- "@bamboocss/reporter": "1.45.1",
63
- "@bamboocss/shared": "1.45.1",
64
- "@bamboocss/token-dictionary": "1.45.1",
65
- "@bamboocss/types": "1.45.1"
55
+ "@bamboocss/config": "1.45.3",
56
+ "@bamboocss/core": "1.45.3",
57
+ "@bamboocss/generator": "1.45.3",
58
+ "@bamboocss/logger": "1.45.3",
59
+ "@bamboocss/parser": "1.45.3",
60
+ "@bamboocss/plugin-svelte": "1.45.3",
61
+ "@bamboocss/plugin-vue": "1.45.3",
62
+ "@bamboocss/reporter": "1.45.3",
63
+ "@bamboocss/shared": "1.45.3",
64
+ "@bamboocss/token-dictionary": "1.45.3",
65
+ "@bamboocss/types": "1.45.3"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/fs-extra": "11.0.4",