ast-search-python 1.0.2 → 1.0.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ast-search-python
2
2
 
3
- Python language plugin for [ast-search](../../README.md). Adds `.py` / `.pyw` file support using [tree-sitter](https://tree-sitter.github.io/tree-sitter/) S-expression queries.
3
+ Python language plugin for [ast-search-js](../ast-search-js/README.md). Adds `.py` / `.pyw` file support using [tree-sitter](https://tree-sitter.github.io/tree-sitter/) S-expression queries.
4
4
 
5
5
  ## Table of Contents
6
6
 
@@ -15,7 +15,7 @@ Python language plugin for [ast-search](../../README.md). Adds `.py` / `.pyw` fi
15
15
  ## Installation
16
16
 
17
17
  ```bash
18
- npm install -g ast-search
18
+ npm install -g ast-search-js
19
19
  npm install -g ast-search-python
20
20
  ```
21
21
 
@@ -108,10 +108,10 @@ Raw S-expression queries must include at least one `@capture_name` — tree-sitt
108
108
 
109
109
  ## Plugin API
110
110
 
111
- This package implements the `LanguageBackend` interface from `ast-search/plugin`. It registers the `python` language backend automatically when loaded via `--plugin ast-search-python`, or programmatically:
111
+ This package implements the `LanguageBackend` interface from `ast-search-js/plugin`. It registers the `python` language backend automatically when loaded via `--plugin ast-search-python`, or programmatically:
112
112
 
113
113
  ```typescript
114
- import { defaultRegistry } from 'ast-search/plugin';
114
+ import { defaultRegistry } from 'ast-search-js/plugin';
115
115
  const { register } = await import('ast-search-python');
116
116
  register(defaultRegistry);
117
117
  ```
package/build/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { LanguageBackend, LanguageRegistry, Match } from "ast-search/plugin";
1
+ import type { LanguageBackend, LanguageRegistry, Match } from "ast-search-js/plugin";
2
2
  export declare class PythonLanguageBackend implements LanguageBackend {
3
3
  readonly langId = "python";
4
4
  readonly name = "Python";
package/build/query.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Match } from "ast-search/plugin";
1
+ import type { Match } from "ast-search-js/plugin";
2
2
  interface TSNode {
3
3
  startPosition: {
4
4
  row: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ast-search-python",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Python language plugin for ast-search",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",
@@ -39,12 +39,12 @@
39
39
  "@jest/globals": "^29.7.0",
40
40
  "@types/jest": "^29.5.12",
41
41
  "@types/node": "^20.12.7",
42
- "ast-search": "workspace:*",
42
+ "ast-search-js": "1.0.0",
43
43
  "jest": "^29.7.0",
44
44
  "ts-jest": "^29.1.2",
45
45
  "typescript": "^5.4.5"
46
46
  },
47
47
  "peerDependencies": {
48
- "ast-search": ">=0.3.0"
48
+ "ast-search-js": "1.0.0"
49
49
  }
50
50
  }