svelte-ast 0.0.0 → 0.12.0

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 (52) hide show
  1. package/LICENSE +47 -1
  2. package/README.md +560 -2
  3. package/a11y.d.ts +1636 -0
  4. package/a11y.js +36 -0
  5. package/core.d.ts +1779 -0
  6. package/core.js +1 -0
  7. package/entities.d.ts +10 -0
  8. package/entities.js +1 -0
  9. package/index.d.ts +2844 -0
  10. package/index.js +1 -0
  11. package/is-valid-type.js +1 -0
  12. package/lexer.d.ts +224 -0
  13. package/lexer.js +3 -0
  14. package/module.d.ts +1243 -0
  15. package/module.js +1 -0
  16. package/package.json +72 -3
  17. package/parse-imports-exports.js +1 -0
  18. package/parse-module.js +1 -0
  19. package/parse-sections.js +1 -0
  20. package/parse.js +1 -0
  21. package/runes.js +1 -0
  22. package/scope.d.ts +1831 -0
  23. package/scope.js +1 -0
  24. package/shared-2yyqqbp5.js +2 -0
  25. package/shared-3654hw2t.js +2 -0
  26. package/shared-45k6qp45.js +2 -0
  27. package/shared-5tpb3h6x.js +2 -0
  28. package/shared-8598bnrd.js +2 -0
  29. package/shared-8gdz1w3m.js +2 -0
  30. package/shared-97v1a9gx.js +2 -0
  31. package/shared-a23q4q40.js +3 -0
  32. package/shared-bzqbnvee.js +2 -0
  33. package/shared-csw62q5w.js +2 -0
  34. package/shared-dgdrqgdn.js +2 -0
  35. package/shared-drb44hb9.js +2 -0
  36. package/shared-e4gbs4rb.js +3 -0
  37. package/shared-hdyvph21.js +2 -0
  38. package/shared-j53a13yb.js +3 -0
  39. package/shared-jre53ftf.js +2 -0
  40. package/shared-m0dcdh24.js +5 -0
  41. package/shared-m3dr31c3.js +2 -0
  42. package/shared-np2e2ssk.js +2 -0
  43. package/shared-s46wfvhw.js +10 -0
  44. package/shared-tqkk8zh6.js +2 -0
  45. package/shared-w9n1rzqm.js +10 -0
  46. package/typescript.d.ts +10 -0
  47. package/typescript.js +1 -0
  48. package/walk.d.ts +2210 -0
  49. package/walk.js +1 -0
  50. package/warnings.d.ts +1680 -0
  51. package/warnings.js +6 -0
  52. package/index.ts +0 -1
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Eric Liu
3
+ Copyright (c) 2026-present Eric Liu
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -19,3 +19,49 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
+
23
+ ---
24
+
25
+ The parser is adapted from Svelte's (https://github.com/sveltejs/svelte),
26
+ and its type declarations include Svelte's AST types. The published bundle
27
+ includes acorn (https://github.com/acornjs/acorn), and the type
28
+ declarations include @types/estree
29
+ (https://github.com/DefinitelyTyped/DefinitelyTyped). All are MIT licensed:
30
+
31
+ Svelte
32
+
33
+ Copyright (c) 2016-2025 Svelte Contributors
34
+ (https://github.com/sveltejs/svelte/graphs/contributors)
35
+
36
+ acorn
37
+
38
+ Copyright (C) 2012-2022 by various contributors (see AUTHORS)
39
+
40
+ @types/estree
41
+
42
+ Copyright (c) Microsoft Corporation.
43
+
44
+ Permission is hereby granted, free of charge, to any person obtaining a copy
45
+ of this software and associated documentation files (the "Software"), to deal
46
+ in the Software without restriction, including without limitation the rights
47
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
48
+ copies of the Software, and to permit persons to whom the Software is
49
+ furnished to do so, subject to the following conditions:
50
+
51
+ The above copyright notice and this permission notice shall be included in all
52
+ copies or substantial portions of the Software.
53
+
54
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
55
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
56
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
57
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
58
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
59
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
60
+ SOFTWARE.
61
+
62
+ ---
63
+
64
+ The named character reference table in the bundle is generated from the
65
+ HTML Living Standard's entities.json (https://html.spec.whatwg.org/),
66
+ Copyright WHATWG (Apple, Google, Mozilla, Microsoft), licensed under
67
+ CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).