@discord/intl-message-database 0.0.1-rc.2 → 0.0.2-rc.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/index.d.ts +4 -4
- package/index.js +9 -4
- package/package.json +10 -10
package/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare class IntlMessagesDatabase {
|
|
|
17
17
|
validateMessages(): Array<IntlDiagnostic>
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export declare
|
|
20
|
+
export declare function hashMessageKey(key: string): string
|
|
21
21
|
|
|
22
22
|
export declare const enum IntlCompiledMessageFormat {
|
|
23
23
|
Json = 0,
|
|
@@ -44,9 +44,9 @@ export interface IntlSourceFile {
|
|
|
44
44
|
locale?: number
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export declare
|
|
47
|
+
export declare function isMessageDefinitionsFile(key: string): boolean
|
|
48
48
|
|
|
49
|
-
export declare
|
|
49
|
+
export declare function isMessageTranslationsFile(key: string): boolean
|
|
50
50
|
|
|
51
|
-
export declare
|
|
51
|
+
export declare function resolveSymbol(symbol: number): string | null
|
|
52
52
|
|
package/index.js
CHANGED
|
@@ -16,7 +16,12 @@ function isMusl() {
|
|
|
16
16
|
return true;
|
|
17
17
|
}
|
|
18
18
|
} else {
|
|
19
|
-
|
|
19
|
+
/** @type {any} */
|
|
20
|
+
let report = process.report.getReport();
|
|
21
|
+
if (typeof report === 'string') {
|
|
22
|
+
report = JSON.parse(report);
|
|
23
|
+
}
|
|
24
|
+
const { glibcVersionRuntime } = report.header;
|
|
20
25
|
return !glibcVersionRuntime;
|
|
21
26
|
}
|
|
22
27
|
}
|
|
@@ -30,20 +35,20 @@ const PACKAGE_NAMES = {
|
|
|
30
35
|
'linux-gnu': {
|
|
31
36
|
arm: 'linux-arm-gnueabihf',
|
|
32
37
|
arm64: 'linux-arm64-gnu',
|
|
33
|
-
x64: 'linux-
|
|
38
|
+
x64: 'linux-x64-gnu',
|
|
34
39
|
riscv64: 'linux-riscv64-gnu',
|
|
35
40
|
s390x: 'linux-s390x-gnu',
|
|
36
41
|
},
|
|
37
42
|
'linux-musl': {
|
|
38
43
|
arm: 'linux-arm-musleabihf',
|
|
39
44
|
arm64: 'linux-arm64-musl',
|
|
40
|
-
x64: 'linux-
|
|
45
|
+
x64: 'linux-x64-musl',
|
|
41
46
|
riscv64: 'linux-riscv64-musl',
|
|
42
47
|
},
|
|
43
48
|
};
|
|
44
49
|
|
|
45
50
|
const platform =
|
|
46
|
-
process.platform !== 'linux' ? process.platform : 'linux-' + isMusl() ? 'musl' : 'gnu';
|
|
51
|
+
process.platform !== 'linux' ? process.platform : 'linux-' + (isMusl() ? 'musl' : 'gnu');
|
|
47
52
|
const arch = process.arch;
|
|
48
53
|
|
|
49
54
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@discord/intl-message-database",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Rust-based Node extension module for parsing, extracting, and managing messages and translations across a project.",
|
|
6
6
|
"author": "Jon Egeland",
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
"url": "https://github.com/discord/discord-intl"
|
|
16
16
|
},
|
|
17
17
|
"optionalDependencies": {
|
|
18
|
-
"@discord/intl-message-database-darwin-
|
|
19
|
-
"@discord/intl-message-database-
|
|
20
|
-
"@discord/intl-message-database-
|
|
21
|
-
"@discord/intl-message-database-linux-
|
|
22
|
-
"@discord/intl-message-database-linux-
|
|
23
|
-
"@discord/intl-message-database-
|
|
24
|
-
"@discord/intl-message-database-
|
|
25
|
-
"@discord/intl-message-database-win32-
|
|
26
|
-
"@discord/intl-message-database-win32-
|
|
18
|
+
"@discord/intl-message-database-darwin-x64": "0.0.2-rc.1",
|
|
19
|
+
"@discord/intl-message-database-linux-arm64-gnu": "0.0.2-rc.1",
|
|
20
|
+
"@discord/intl-message-database-darwin-arm64": "0.0.2-rc.1",
|
|
21
|
+
"@discord/intl-message-database-linux-x64-gnu": "0.0.2-rc.1",
|
|
22
|
+
"@discord/intl-message-database-linux-arm64-musl": "0.0.2-rc.1",
|
|
23
|
+
"@discord/intl-message-database-win32-ia32-msvc": "0.0.2-rc.1",
|
|
24
|
+
"@discord/intl-message-database-linux-x64-musl": "0.0.2-rc.1",
|
|
25
|
+
"@discord/intl-message-database-win32-x64-msvc": "0.0.2-rc.1",
|
|
26
|
+
"@discord/intl-message-database-win32-arm64-msvc": "0.0.2-rc.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@napi-rs/cli": "^2.18.3"
|