@discord/intl-flat-json-parser 0.20.0 → 0.21.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/index.d.ts +5 -9
- package/package.json +9 -8
package/index.d.ts
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export
|
|
3
|
+
export declare class Message {
|
|
4
4
|
key: string
|
|
5
5
|
value: string
|
|
6
|
-
position: Position
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export declare function parseJson(text: string): Array<Message>
|
|
10
|
-
|
|
11
|
-
export declare function parseJsonFile(filePath: string): Array<Message>
|
|
12
|
-
|
|
13
|
-
export interface Position {
|
|
14
6
|
line: number
|
|
15
7
|
col: number
|
|
16
8
|
}
|
|
17
9
|
|
|
10
|
+
export declare function parseJson(text: string): Message[]
|
|
11
|
+
|
|
12
|
+
export declare function parseJsonFile(filePath: string): Message[]
|
|
13
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@discord/intl-flat-json-parser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Rust-based JSON parser with location information for flat objects.",
|
|
6
6
|
"author": "Jon Egeland",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"url": "https://github.com/discord/discord-intl"
|
|
16
16
|
},
|
|
17
17
|
"optionalDependencies": {
|
|
18
|
-
"@discord/intl-flat-json-parser-darwin-arm64": "0.
|
|
19
|
-
"@discord/intl-flat-json-parser-
|
|
20
|
-
"@discord/intl-flat-json-parser-
|
|
21
|
-
"@discord/intl-flat-json-parser-linux-
|
|
22
|
-
"@discord/intl-flat-json-parser-win32-x64-msvc": "0.
|
|
23
|
-
"@discord/intl-flat-json-parser-win32-arm64-msvc": "0.
|
|
18
|
+
"@discord/intl-flat-json-parser-darwin-arm64": "0.21.0",
|
|
19
|
+
"@discord/intl-flat-json-parser-darwin-x64": "0.21.0",
|
|
20
|
+
"@discord/intl-flat-json-parser-linux-x64-gnu": "0.21.0",
|
|
21
|
+
"@discord/intl-flat-json-parser-linux-arm64-gnu": "0.21.0",
|
|
22
|
+
"@discord/intl-flat-json-parser-win32-x64-msvc": "0.21.0",
|
|
23
|
+
"@discord/intl-flat-json-parser-win32-arm64-msvc": "0.21.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@napi-rs/cli": "^2.18.4"
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
|
-
"build:debug": "cargo build"
|
|
46
|
+
"build:debug": "cargo build",
|
|
47
|
+
"bench": "node ./bench/index.js"
|
|
47
48
|
}
|
|
48
49
|
}
|