@xberg-io/tree-sitter-language-pack 1.15.7 → 1.15.8

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <!-- This file is auto-generated by alef — DO NOT EDIT. -->
2
- <!-- alef:hash:bf28c5e6b12322464ec328f30dd1b6fb67bc0739d83fdfc2d451339934443028 -->
2
+ <!-- alef:hash:ff506cf4dbdbddde18672b129772c89f0325a209924295226b1cdf5993d58bde -->
3
3
  <!-- To regenerate: alef readme -->
4
4
  <!-- To verify freshness: alef verify -->
5
5
 
@@ -122,7 +122,12 @@ npm install @xberg-io/tree-sitter-language-pack
122
122
  import { process } from "@xberg-io/tree-sitter-language-pack";
123
123
  function main() {
124
124
  const result = process("# A comment\ndef greet(name):\n \"\"\"Say hello.\"\"\"\n return f'Hi {name}'\n\nimport os\n", { language: "python" });
125
- console.log(result);
125
+ console.log(result.language);
126
+ console.log(result.structure);
127
+ console.log(result.structure[0].kind);
128
+ console.log(result.imports);
129
+ console.log(result.metrics.totalLines);
130
+ console.log(result.metrics.errorCount);
126
131
  }
127
132
 
128
133
  void main();
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by alef — DO NOT EDIT.
2
- // alef:hash:af19e53619993c70375251f0e7b888e7eb1c7d2eda4f85efb6399f6dca682a08
2
+ // alef:hash:7fbd5c415e8c992c667ae962684b697caad6ac017fb54e17fdb3d8766483a1c4
3
3
  // To regenerate: alef generate
4
4
  // To verify freshness: alef verify
5
5
  /* eslint-disable */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xberg-io/tree-sitter-language-pack",
3
- "version": "1.15.7",
3
+ "version": "1.15.8",
4
4
  "description": "Pre-compiled tree-sitter grammars for 371 programming languages",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -18,14 +18,14 @@
18
18
  },
19
19
  "files": ["index.js", "index.d.ts", "*.node"],
20
20
  "optionalDependencies": {
21
- "@xberg-io/tree-sitter-language-pack-linux-x64-gnu": "1.15.7",
22
- "@xberg-io/tree-sitter-language-pack-linux-arm64-gnu": "1.15.7",
23
- "@xberg-io/tree-sitter-language-pack-linux-x64-musl": "1.15.7",
24
- "@xberg-io/tree-sitter-language-pack-linux-arm64-musl": "1.15.7",
25
- "@xberg-io/tree-sitter-language-pack-darwin-x64": "1.15.7",
26
- "@xberg-io/tree-sitter-language-pack-darwin-arm64": "1.15.7",
27
- "@xberg-io/tree-sitter-language-pack-win32-x64-msvc": "1.15.7",
28
- "@xberg-io/tree-sitter-language-pack-win32-arm64-msvc": "1.15.7"
21
+ "@xberg-io/tree-sitter-language-pack-linux-x64-gnu": "1.15.8",
22
+ "@xberg-io/tree-sitter-language-pack-linux-arm64-gnu": "1.15.8",
23
+ "@xberg-io/tree-sitter-language-pack-linux-x64-musl": "1.15.8",
24
+ "@xberg-io/tree-sitter-language-pack-linux-arm64-musl": "1.15.8",
25
+ "@xberg-io/tree-sitter-language-pack-darwin-x64": "1.15.8",
26
+ "@xberg-io/tree-sitter-language-pack-darwin-arm64": "1.15.8",
27
+ "@xberg-io/tree-sitter-language-pack-win32-x64-msvc": "1.15.8",
28
+ "@xberg-io/tree-sitter-language-pack-win32-arm64-msvc": "1.15.8"
29
29
  },
30
30
  "napi": {
31
31
  "packageName": "@xberg-io/tree-sitter-language-pack",
Binary file
Binary file