@ohos-rs/oxk 0.4.0 → 0.4.1
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/bin/format.js +1 -1
- package/index.d.ts +1 -0
- package/package.json +17 -17
package/bin/format.js
CHANGED
|
@@ -2,7 +2,7 @@ const { existsSync, readFileSync, writeFileSync } = require('node:fs')
|
|
|
2
2
|
const path = require('node:path')
|
|
3
3
|
const { glob } = require('glob')
|
|
4
4
|
|
|
5
|
-
const { format } = require('../
|
|
5
|
+
const { format } = require('../format.js')
|
|
6
6
|
|
|
7
7
|
const CONFIG_FILES = ['.oxfmtrc.json', '.oxfmtrc.jsonc']
|
|
8
8
|
const RECOVERABLE_ERROR_PATTERNS = [
|
package/index.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ export declare const enum ExportLocalNameKind {
|
|
|
78
78
|
* This function supports multiple file types:
|
|
79
79
|
* - JavaScript/TypeScript files (via oxc_formatter)
|
|
80
80
|
* - TOML files (via oxc_toml)
|
|
81
|
+
* - JSON/JSON5/JSONC files (via native Rust formatters)
|
|
81
82
|
* - Other files (via external formatter callbacks when napi feature is enabled)
|
|
82
83
|
*/
|
|
83
84
|
export declare function format(filename: string, sourceText: string, options?: any | undefined | null, initExternalFormatterCb?: (numThreads: number) => Promise<string[]>, formatEmbeddedCb?: (options: Record<string, any>, tagName: string, code: string) => Promise<string>, formatFileCb?: (options: Record<string, any>, parserName: string, fileName: string, code: string) => Promise<string>): Promise<FormatResult>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-rs/oxk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "An ArkTS/ArkUI tool based on oxc",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"version": "napi version"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"glob": "^11.
|
|
89
|
-
"prettier": "^3.
|
|
88
|
+
"glob": "^11.1.0",
|
|
89
|
+
"prettier": "^3.8.3"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@emnapi/core": "^1.5.0",
|
|
@@ -123,19 +123,19 @@
|
|
|
123
123
|
]
|
|
124
124
|
},
|
|
125
125
|
"optionalDependencies": {
|
|
126
|
-
"@ohos-rs/oxk-darwin-x64": "0.4.
|
|
127
|
-
"@ohos-rs/oxk-darwin-arm64": "0.4.
|
|
128
|
-
"@ohos-rs/oxk-linux-x64-gnu": "0.4.
|
|
129
|
-
"@ohos-rs/oxk-win32-x64-msvc": "0.4.
|
|
130
|
-
"@ohos-rs/oxk-linux-x64-musl": "0.4.
|
|
131
|
-
"@ohos-rs/oxk-linux-arm64-gnu": "0.4.
|
|
132
|
-
"@ohos-rs/oxk-win32-ia32-msvc": "0.4.
|
|
133
|
-
"@ohos-rs/oxk-linux-arm-gnueabihf": "0.4.
|
|
134
|
-
"@ohos-rs/oxk-android-arm64": "0.4.
|
|
135
|
-
"@ohos-rs/oxk-freebsd-x64": "0.4.
|
|
136
|
-
"@ohos-rs/oxk-linux-arm64-musl": "0.4.
|
|
137
|
-
"@ohos-rs/oxk-win32-arm64-msvc": "0.4.
|
|
138
|
-
"@ohos-rs/oxk-android-arm-eabi": "0.4.
|
|
139
|
-
"@ohos-rs/oxk-wasm32-wasi": "0.4.
|
|
126
|
+
"@ohos-rs/oxk-darwin-x64": "0.4.1",
|
|
127
|
+
"@ohos-rs/oxk-darwin-arm64": "0.4.1",
|
|
128
|
+
"@ohos-rs/oxk-linux-x64-gnu": "0.4.1",
|
|
129
|
+
"@ohos-rs/oxk-win32-x64-msvc": "0.4.1",
|
|
130
|
+
"@ohos-rs/oxk-linux-x64-musl": "0.4.1",
|
|
131
|
+
"@ohos-rs/oxk-linux-arm64-gnu": "0.4.1",
|
|
132
|
+
"@ohos-rs/oxk-win32-ia32-msvc": "0.4.1",
|
|
133
|
+
"@ohos-rs/oxk-linux-arm-gnueabihf": "0.4.1",
|
|
134
|
+
"@ohos-rs/oxk-android-arm64": "0.4.1",
|
|
135
|
+
"@ohos-rs/oxk-freebsd-x64": "0.4.1",
|
|
136
|
+
"@ohos-rs/oxk-linux-arm64-musl": "0.4.1",
|
|
137
|
+
"@ohos-rs/oxk-win32-arm64-msvc": "0.4.1",
|
|
138
|
+
"@ohos-rs/oxk-android-arm-eabi": "0.4.1",
|
|
139
|
+
"@ohos-rs/oxk-wasm32-wasi": "0.4.1"
|
|
140
140
|
}
|
|
141
141
|
}
|