oxc-parser 0.103.0 → 0.105.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.
package/src-js/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
 
4
4
  import type { Program } from "@oxc-project/types";
5
- import type { VisitorObject } from "../generated/visit/visitor.d.ts";
5
+ import type { VisitorObject } from "./generated/visit/visitor.d.ts";
6
6
 
7
7
  export * from "@oxc-project/types";
8
8
 
package/src-js/index.js CHANGED
@@ -2,7 +2,7 @@ import { createRequire } from "node:module";
2
2
  import { parse as parseBinding, parseSync as parseSyncBinding } from "./bindings.js";
3
3
  import { wrap } from "./wrap.js";
4
4
 
5
- export { default as visitorKeys } from "../generated/visit/keys.js";
5
+ export { default as visitorKeys } from "./generated/visit/keys.js";
6
6
  export { Visitor } from "./visit/index.js";
7
7
 
8
8
  export {
@@ -1,5 +1,5 @@
1
1
  import os from "node:os";
2
- import { BUFFER_ALIGN, BUFFER_SIZE, IS_TS_FLAG_POS } from "../../generated/constants.js";
2
+ import { BUFFER_ALIGN, BUFFER_SIZE, IS_TS_FLAG_POS } from "../generated/constants.js";
3
3
  import {
4
4
  getBufferOffset,
5
5
  parseRaw as parseRawBinding,
@@ -71,7 +71,7 @@ function deserialize(buffer, sourceText, sourceByteLen, options) {
71
71
  let deserializeThis = deserializers[deserializerIndex];
72
72
  if (deserializeThis === null) {
73
73
  deserializeThis = deserializers[deserializerIndex] = require(
74
- `../../generated/deserialize/${deserializerNames[deserializerIndex]}.js`,
74
+ `../generated/deserialize/${deserializerNames[deserializerIndex]}.js`,
75
75
  ).deserialize;
76
76
  }
77
77
 
@@ -1,6 +1,6 @@
1
- import { DATA_POINTER_POS_32, PROGRAM_OFFSET } from "../../generated/constants.js";
2
- import { RawTransferData } from "../../generated/lazy/constructors.js";
3
- import { walkProgram } from "../../generated/lazy/walk.js";
1
+ import { DATA_POINTER_POS_32, PROGRAM_OFFSET } from "../generated/constants.js";
2
+ import { RawTransferData } from "../generated/lazy/constructors.js";
3
+ import { walkProgram } from "../generated/lazy/walk.js";
4
4
  import { parseAsyncRawImpl, parseSyncRawImpl, returnBufferToCache } from "./common.js";
5
5
  import { TOKEN } from "./lazy-common.js";
6
6
  import { getVisitorsArr } from "./visitor.js";
@@ -2,7 +2,7 @@ import {
2
2
  LEAF_NODE_TYPES_COUNT,
3
3
  NODE_TYPE_IDS_MAP,
4
4
  NODE_TYPES_COUNT,
5
- } from "../../generated/lazy/type_ids.js";
5
+ } from "../generated/lazy/type_ids.js";
6
6
 
7
7
  // Getter for private `#visitorsArr` property of `Visitor` class. Initialized in class body below.
8
8
  let getVisitorsArrTemp;
@@ -15,7 +15,7 @@ export class Visitor {
15
15
  constructor(visitor) {
16
16
  if (walkProgram === null) {
17
17
  const require = createRequire(import.meta.url);
18
- ({ walkProgram } = require("../../generated/visit/walk.js"));
18
+ ({ walkProgram } = require("../generated/visit/walk.js"));
19
19
  ({
20
20
  addVisitorToCompiled,
21
21
  createCompiledVisitor,
@@ -76,7 +76,7 @@ import {
76
76
  LEAF_NODE_TYPES_COUNT,
77
77
  NODE_TYPE_IDS_MAP,
78
78
  NODE_TYPES_COUNT,
79
- } from "../../generated/visit/type_ids.js";
79
+ } from "../generated/visit/type_ids.js";
80
80
 
81
81
  const { isArray } = Array;
82
82
 
File without changes
File without changes
File without changes