@intlify/message-compiler 11.1.1 → 12.0.0-alpha.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/LICENSE +1 -1
- package/dist/message-compiler.d.ts +6 -2
- package/dist/message-compiler.esm-browser.js +549 -547
- package/dist/message-compiler.esm-browser.prod.js +3 -3
- package/dist/message-compiler.esm-bundler.js +1 -1
- package/dist/message-compiler.global.js +551 -547
- package/dist/message-compiler.global.prod.js +3 -3
- package/dist/{message-compiler.mjs → message-compiler.js} +397 -395
- package/dist/{message-compiler.node.mjs → message-compiler.node.js} +1186 -1184
- package/package.json +7 -15
- package/dist/message-compiler.cjs +0 -1587
- package/dist/message-compiler.cjs.js +0 -1
- package/dist/message-compiler.cjs.prod.js +0 -1
- package/dist/message-compiler.prod.cjs +0 -1570
- package/index.js +0 -7
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2020 kazuya kawaguchi
|
|
3
|
+
Copyright (c) 2020-present kazuya kawaguchi and contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
|
@@ -21,7 +21,7 @@ declare interface CodeGenResult {
|
|
|
21
21
|
map?: RawSourceMap;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export declare const COMPILE_ERROR_CODES_EXTEND_POINT
|
|
24
|
+
export declare const COMPILE_ERROR_CODES_EXTEND_POINT: number;
|
|
25
25
|
|
|
26
26
|
export declare type CompileDomain = 'tokenizer' | 'parser' | 'generator' | 'transformer' | 'optimizer' | 'minifier';
|
|
27
27
|
|
|
@@ -63,7 +63,7 @@ export declare interface CompileErrorOptions {
|
|
|
63
63
|
|
|
64
64
|
export declare type CompileOptions = {
|
|
65
65
|
optimize?: boolean;
|
|
66
|
-
|
|
66
|
+
mangle?: boolean;
|
|
67
67
|
jit?: boolean;
|
|
68
68
|
} & TransformOptions & CodeGenOptions & ParserOptions & TokenizeOptions;
|
|
69
69
|
|
|
@@ -133,6 +133,8 @@ export declare interface LiteralNode extends Node_2 {
|
|
|
133
133
|
|
|
134
134
|
export declare const LOCATION_STUB: SourceLocation;
|
|
135
135
|
|
|
136
|
+
export declare function mangle(node: Node_2): void;
|
|
137
|
+
|
|
136
138
|
declare type MessageElementNode = TextNode | NamedNode | ListNode | LiteralNode | LinkedNode;
|
|
137
139
|
|
|
138
140
|
export declare interface MessageNode extends Node_2 {
|
|
@@ -172,6 +174,8 @@ export declare const enum NodeTypes {
|
|
|
172
174
|
Literal = 9
|
|
173
175
|
}
|
|
174
176
|
|
|
177
|
+
export declare function optimize(ast: ResourceNode): ResourceNode;
|
|
178
|
+
|
|
175
179
|
export declare interface Parser {
|
|
176
180
|
parse(source: string): ResourceNode;
|
|
177
181
|
}
|