@speclynx/apidom-parser-adapter-json 2.10.0 → 2.10.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speclynx/apidom-parser-adapter-json",
3
- "version": "2.10.0",
3
+ "version": "2.10.2",
4
4
  "description": "Parser adapter for parsing JSON documents into base namespace.",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -42,9 +42,9 @@
42
42
  "license": "Apache-2.0",
43
43
  "dependencies": {
44
44
  "@babel/runtime-corejs3": "^7.28.4",
45
- "@speclynx/apidom-core": "^2.10.0",
46
- "@speclynx/apidom-datamodel": "^2.10.0",
47
- "@speclynx/apidom-error": "^2.10.0",
45
+ "@speclynx/apidom-core": "^2.10.2",
46
+ "@speclynx/apidom-datamodel": "^2.10.2",
47
+ "@speclynx/apidom-error": "^2.10.2",
48
48
  "web-tree-sitter": "=0.26.5"
49
49
  },
50
50
  "devDependencies": {
@@ -61,5 +61,5 @@
61
61
  "README.md",
62
62
  "CHANGELOG.md"
63
63
  ],
64
- "gitHead": "c2de0d651a39aff9118bb852e88a884d2d0aeb1b"
64
+ "gitHead": "13e4768403e45eb996509a423b0e0b3833c31fc1"
65
65
  }
@@ -21,7 +21,8 @@ const analyze = async source => {
21
21
  if (parser === null && parserInitLock === null) {
22
22
  // acquire lock
23
23
  parserInitLock = _webTreeSitter.Parser.init({
24
- wasmBinary: treeSitter
24
+ wasmBinary: treeSitter,
25
+ locateFile: scriptName => scriptName
25
26
  }).then(() => _webTreeSitter.Language.load(treeSitterJson)).then(jsonLanguage => {
26
27
  const parserInstance = new _webTreeSitter.Parser();
27
28
  parserInstance.setLanguage(jsonLanguage);
@@ -17,7 +17,8 @@ const analyze = async source => {
17
17
  if (parser === null && parserInitLock === null) {
18
18
  // acquire lock
19
19
  parserInitLock = Parser.init({
20
- wasmBinary: treeSitter
20
+ wasmBinary: treeSitter,
21
+ locateFile: scriptName => scriptName
21
22
  }).then(() => Language.load(treeSitterJson)).then(jsonLanguage => {
22
23
  const parserInstance = new Parser();
23
24
  parserInstance.setLanguage(jsonLanguage);