@komaci/static-analyzer 240.1.5 → 242.1.1

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 (30) hide show
  1. package/README.md +9 -0
  2. package/RULES.md +1253 -0
  3. package/build/helpers.d.ts +10 -0
  4. package/build/helpers.js +87 -0
  5. package/build/index.d.ts +2 -2
  6. package/build/index.js +6 -4
  7. package/build/invariantFunctions/assignmentExpressionInvariantFunctions.js +2 -2
  8. package/build/invariantFunctions/callExpressionInvariantFunctions.d.ts +2 -2
  9. package/build/invariantFunctions/callExpressionInvariantFunctions.js +9 -9
  10. package/build/invariantFunctions/functionExpressionInvariantFunctions.js +4 -4
  11. package/build/invariantFunctions/identifierInvariantFunctions.d.ts +2 -2
  12. package/build/invariantFunctions/identifierInvariantFunctions.js +5 -3
  13. package/build/invariantFunctions/memberExpressionInvariantFunctions.d.ts +5 -5
  14. package/build/invariantFunctions/memberExpressionInvariantFunctions.js +21 -38
  15. package/build/invariantFunctions/taggedTemplateExpressionInvariantFunctions.d.ts +2 -2
  16. package/build/invariantFunctions/taggedTemplateExpressionInvariantFunctions.js +5 -5
  17. package/build/rules.js +8 -44
  18. package/build/shared.d.ts +21 -17
  19. package/build/shared.js +92 -81
  20. package/build/staticAnalyzer.d.ts +10 -22
  21. package/build/staticAnalyzer.js +91 -131
  22. package/build/types.d.ts +17 -0
  23. package/build/validateGetter.d.ts +4 -4
  24. package/build/validateGetter.js +65 -61
  25. package/package.json +7 -7
  26. package/build/adaptersMapping.d.ts +0 -3
  27. package/build/adaptersMapping.js +0 -25
  28. package/build/allowlistAdapters.d.ts +0 -6
  29. package/build/allowlistAdapters.js +0 -10
  30. package/build/komaci-mapping.json +0 -288
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # Static Analyzer
2
+
3
+ This library is used to analyze LWC modules for compatibility with Komaci. This is used internally by `@komaci/esm-generator` to determine if code is valid to encapsulate within a Resolvable Module, and externally by ESLint to aid LWC developers in ensuring their components are written in a way that ensures that Komaci is able to prefetch data for offline-ability and performance.
4
+
5
+ ## Rules
6
+
7
+ There are a number of diagnostic rules that are produced when analyzing an LWC bundle with `@komaci/static-analyzer`. Diagnostics will be produced for each violation detected within a module bundle.
8
+
9
+ A detailed breakdown for the rules and how each can be addressed can be found in [RULES.md](./RULES.md).