oxc-parser 0.82.1 → 0.82.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/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "oxc-parser",
3
- "version": "0.82.1",
3
+ "version": "0.82.3",
4
+ "type": "commonjs",
4
5
  "main": "index.js",
5
6
  "browser": "wasm.mjs",
6
7
  "engines": {
@@ -17,7 +18,7 @@
17
18
  "bugs": "https://github.com/oxc-project/oxc/issues",
18
19
  "repository": {
19
20
  "type": "git",
20
- "url": "https://github.com/oxc-project/oxc.git",
21
+ "url": "git+https://github.com/oxc-project/oxc.git",
21
22
  "directory": "napi/parser"
22
23
  },
23
24
  "funding": {
@@ -50,7 +51,7 @@
50
51
  "access": "public"
51
52
  },
52
53
  "dependencies": {
53
- "@oxc-project/types": "^0.82.1"
54
+ "@oxc-project/types": "^0.82.3"
54
55
  },
55
56
  "devDependencies": {
56
57
  "@codspeed/vitest-plugin": "^4.0.0",
@@ -90,21 +91,21 @@
90
91
  "dtsHeaderFile": "header.js"
91
92
  },
92
93
  "optionalDependencies": {
93
- "@oxc-parser/binding-win32-x64-msvc": "0.82.1",
94
- "@oxc-parser/binding-win32-arm64-msvc": "0.82.1",
95
- "@oxc-parser/binding-linux-x64-gnu": "0.82.1",
96
- "@oxc-parser/binding-linux-x64-musl": "0.82.1",
97
- "@oxc-parser/binding-freebsd-x64": "0.82.1",
98
- "@oxc-parser/binding-linux-arm64-gnu": "0.82.1",
99
- "@oxc-parser/binding-linux-arm64-musl": "0.82.1",
100
- "@oxc-parser/binding-linux-arm-gnueabihf": "0.82.1",
101
- "@oxc-parser/binding-linux-arm-musleabihf": "0.82.1",
102
- "@oxc-parser/binding-linux-s390x-gnu": "0.82.1",
103
- "@oxc-parser/binding-linux-riscv64-gnu": "0.82.1",
104
- "@oxc-parser/binding-darwin-x64": "0.82.1",
105
- "@oxc-parser/binding-darwin-arm64": "0.82.1",
106
- "@oxc-parser/binding-android-arm64": "0.82.1",
107
- "@oxc-parser/binding-wasm32-wasi": "0.82.1"
94
+ "@oxc-parser/binding-win32-x64-msvc": "0.82.3",
95
+ "@oxc-parser/binding-win32-arm64-msvc": "0.82.3",
96
+ "@oxc-parser/binding-linux-x64-gnu": "0.82.3",
97
+ "@oxc-parser/binding-linux-x64-musl": "0.82.3",
98
+ "@oxc-parser/binding-freebsd-x64": "0.82.3",
99
+ "@oxc-parser/binding-linux-arm64-gnu": "0.82.3",
100
+ "@oxc-parser/binding-linux-arm64-musl": "0.82.3",
101
+ "@oxc-parser/binding-linux-arm-gnueabihf": "0.82.3",
102
+ "@oxc-parser/binding-linux-arm-musleabihf": "0.82.3",
103
+ "@oxc-parser/binding-linux-s390x-gnu": "0.82.3",
104
+ "@oxc-parser/binding-linux-riscv64-gnu": "0.82.3",
105
+ "@oxc-parser/binding-darwin-x64": "0.82.3",
106
+ "@oxc-parser/binding-darwin-arm64": "0.82.3",
107
+ "@oxc-parser/binding-android-arm64": "0.82.3",
108
+ "@oxc-parser/binding-wasm32-wasi": "0.82.3"
108
109
  },
109
110
  "scripts": {
110
111
  "build-dev": "napi build --platform --js bindings.js",
@@ -33,7 +33,7 @@ class NodeArray extends Array {
33
33
  * The proxy intercepts accesses to elements and lazily deserializes them,
34
34
  * and blocks mutation of elements or `length` property.
35
35
  *
36
- * @constructor
36
+ * @class
37
37
  * @param {number} pos - Buffer position of first element
38
38
  * @param {number} length - Number of elements
39
39
  * @param {number} stride - Element size in bytes
@@ -35,7 +35,7 @@ function rawTransferRuntimeSupported() {
35
35
  let global;
36
36
  try {
37
37
  global = globalThis;
38
- } catch (e) {
38
+ } catch (_err) { // oxlint-disable-line no-unused-vars
39
39
  return false;
40
40
  }
41
41
 
@@ -34,7 +34,7 @@ class Visitor {
34
34
  * });
35
35
  * ```
36
36
  *
37
- * @constructor
37
+ * @class
38
38
  * @param {Object} visitor - Object defining visit functions for AST nodes
39
39
  * @returns {Visitor}
40
40
  */
@@ -60,7 +60,7 @@ module.exports = { Visitor, getVisitorsArr };
60
60
  * where each property is either a visitor function or `null`.
61
61
  *
62
62
  * @param {Object} visitor - Visitors object from user
63
- * @returns {Array<Object|function|null>} - Array of visitors
63
+ * @returns {Array<Object|Function|null>} - Array of visitors
64
64
  */
65
65
  function createVisitorsArr(visitor) {
66
66
  if (visitor === null || typeof visitor !== 'object') {
package/wrap.cjs CHANGED
@@ -51,7 +51,7 @@ function applyFix(program, fixPath) {
51
51
  } else {
52
52
  try {
53
53
  node.value = RegExp(node.regex.pattern, node.regex.flags);
54
- } catch (_err) {
54
+ } catch (_err) { // oxlint-disable-line no-unused-vars
55
55
  // Invalid regexp, or valid regexp using syntax not supported by this version of NodeJS
56
56
  }
57
57
  }
package/wrap.mjs CHANGED
@@ -53,7 +53,7 @@ function applyFix(program, fixPath) {
53
53
  } else {
54
54
  try {
55
55
  node.value = RegExp(node.regex.pattern, node.regex.flags);
56
- } catch (_err) {
56
+ } catch (_err) { // oxlint-disable-line no-unused-vars
57
57
  // Invalid regexp, or valid regexp using syntax not supported by this version of NodeJS
58
58
  }
59
59
  }