@discord/intl-flat-json-parser 0.20.0 → 0.20.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.
Files changed (2) hide show
  1. package/index.d.ts +2 -2
  2. package/package.json +9 -8
package/index.d.ts CHANGED
@@ -6,9 +6,9 @@ export interface Message {
6
6
  position: Position
7
7
  }
8
8
 
9
- export declare function parseJson(text: string): Array<Message>
9
+ export declare function parseJson(text: string): Message[]
10
10
 
11
- export declare function parseJsonFile(filePath: string): Array<Message>
11
+ export declare function parseJsonFile(filePath: string): Array<object>
12
12
 
13
13
  export interface Position {
14
14
  line: number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@discord/intl-flat-json-parser",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
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.20.0",
19
- "@discord/intl-flat-json-parser-linux-arm64-gnu": "0.20.0",
20
- "@discord/intl-flat-json-parser-darwin-x64": "0.20.0",
21
- "@discord/intl-flat-json-parser-linux-x64-gnu": "0.20.0",
22
- "@discord/intl-flat-json-parser-win32-x64-msvc": "0.20.0",
23
- "@discord/intl-flat-json-parser-win32-arm64-msvc": "0.20.0"
18
+ "@discord/intl-flat-json-parser-darwin-x64": "0.20.1",
19
+ "@discord/intl-flat-json-parser-darwin-arm64": "0.20.1",
20
+ "@discord/intl-flat-json-parser-linux-arm64-gnu": "0.20.1",
21
+ "@discord/intl-flat-json-parser-win32-arm64-msvc": "0.20.1",
22
+ "@discord/intl-flat-json-parser-win32-x64-msvc": "0.20.1",
23
+ "@discord/intl-flat-json-parser-linux-x64-gnu": "0.20.1"
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
  }