oxc-parser 0.82.2 → 0.84.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/package.json +17 -17
- package/raw-transfer/node-array.js +1 -1
- package/raw-transfer/supported.js +1 -1
- package/raw-transfer/visitor.js +2 -2
- package/wrap.cjs +1 -1
- package/wrap.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxc-parser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"browser": "wasm.mjs",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@oxc-project/types": "^0.
|
|
54
|
+
"@oxc-project/types": "^0.84.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@codspeed/vitest-plugin": "^4.0.0",
|
|
@@ -91,21 +91,21 @@
|
|
|
91
91
|
"dtsHeaderFile": "header.js"
|
|
92
92
|
},
|
|
93
93
|
"optionalDependencies": {
|
|
94
|
-
"@oxc-parser/binding-win32-x64-msvc": "0.
|
|
95
|
-
"@oxc-parser/binding-win32-arm64-msvc": "0.
|
|
96
|
-
"@oxc-parser/binding-linux-x64-gnu": "0.
|
|
97
|
-
"@oxc-parser/binding-linux-x64-musl": "0.
|
|
98
|
-
"@oxc-parser/binding-freebsd-x64": "0.
|
|
99
|
-
"@oxc-parser/binding-linux-arm64-gnu": "0.
|
|
100
|
-
"@oxc-parser/binding-linux-arm64-musl": "0.
|
|
101
|
-
"@oxc-parser/binding-linux-arm-gnueabihf": "0.
|
|
102
|
-
"@oxc-parser/binding-linux-arm-musleabihf": "0.
|
|
103
|
-
"@oxc-parser/binding-linux-s390x-gnu": "0.
|
|
104
|
-
"@oxc-parser/binding-linux-riscv64-gnu": "0.
|
|
105
|
-
"@oxc-parser/binding-darwin-x64": "0.
|
|
106
|
-
"@oxc-parser/binding-darwin-arm64": "0.
|
|
107
|
-
"@oxc-parser/binding-android-arm64": "0.
|
|
108
|
-
"@oxc-parser/binding-wasm32-wasi": "0.
|
|
94
|
+
"@oxc-parser/binding-win32-x64-msvc": "0.84.0",
|
|
95
|
+
"@oxc-parser/binding-win32-arm64-msvc": "0.84.0",
|
|
96
|
+
"@oxc-parser/binding-linux-x64-gnu": "0.84.0",
|
|
97
|
+
"@oxc-parser/binding-linux-x64-musl": "0.84.0",
|
|
98
|
+
"@oxc-parser/binding-freebsd-x64": "0.84.0",
|
|
99
|
+
"@oxc-parser/binding-linux-arm64-gnu": "0.84.0",
|
|
100
|
+
"@oxc-parser/binding-linux-arm64-musl": "0.84.0",
|
|
101
|
+
"@oxc-parser/binding-linux-arm-gnueabihf": "0.84.0",
|
|
102
|
+
"@oxc-parser/binding-linux-arm-musleabihf": "0.84.0",
|
|
103
|
+
"@oxc-parser/binding-linux-s390x-gnu": "0.84.0",
|
|
104
|
+
"@oxc-parser/binding-linux-riscv64-gnu": "0.84.0",
|
|
105
|
+
"@oxc-parser/binding-darwin-x64": "0.84.0",
|
|
106
|
+
"@oxc-parser/binding-darwin-arm64": "0.84.0",
|
|
107
|
+
"@oxc-parser/binding-android-arm64": "0.84.0",
|
|
108
|
+
"@oxc-parser/binding-wasm32-wasi": "0.84.0"
|
|
109
109
|
},
|
|
110
110
|
"scripts": {
|
|
111
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
|
-
* @
|
|
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
|
package/raw-transfer/visitor.js
CHANGED
|
@@ -34,7 +34,7 @@ class Visitor {
|
|
|
34
34
|
* });
|
|
35
35
|
* ```
|
|
36
36
|
*
|
|
37
|
-
* @
|
|
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|
|
|
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
|
}
|