gtx-cli 2.3.0 → 2.3.2
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# gtx-cli
|
|
2
2
|
|
|
3
|
+
## 2.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#660](https://github.com/generaltranslation/gt/pull/660) [`2ddff43`](https://github.com/generaltranslation/gt/commit/2ddff430817ad61e996b516c539b6b7b944e618e) Thanks [@brian-lou](https://github.com/brian-lou)! - Update API utility functions
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`2ddff43`](https://github.com/generaltranslation/gt/commit/2ddff430817ad61e996b516c539b6b7b944e618e)]:
|
|
10
|
+
- generaltranslation@7.6.2
|
|
11
|
+
|
|
12
|
+
## 2.3.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#655](https://github.com/generaltranslation/gt/pull/655) [`26a296c`](https://github.com/generaltranslation/gt/commit/26a296c113666dde77165c260dfb692bb8611ade) Thanks [@fernando-aviles](https://github.com/fernando-aviles)! - Addng literal braces ('{' and '}') to list of characters to escape during AST stringify
|
|
17
|
+
|
|
3
18
|
## 2.3.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SUPPORTED_FILE_EXTENSIONS: readonly ["json", "mdx", "md", "ts", "js", "yaml"];
|
|
1
|
+
export declare const SUPPORTED_FILE_EXTENSIONS: readonly ["json", "mdx", "md", "ts", "js", "yaml", "html"];
|
|
2
2
|
export declare const FILE_EXT_TO_EXT_LABEL: {
|
|
3
3
|
json: string;
|
|
4
4
|
mdx: string;
|
|
@@ -6,4 +6,5 @@ export declare const FILE_EXT_TO_EXT_LABEL: {
|
|
|
6
6
|
ts: string;
|
|
7
7
|
js: string;
|
|
8
8
|
yaml: string;
|
|
9
|
+
html: string;
|
|
9
10
|
};
|
|
@@ -5,6 +5,7 @@ export const SUPPORTED_FILE_EXTENSIONS = [
|
|
|
5
5
|
'ts',
|
|
6
6
|
'js',
|
|
7
7
|
'yaml',
|
|
8
|
+
'html',
|
|
8
9
|
];
|
|
9
10
|
export const FILE_EXT_TO_EXT_LABEL = {
|
|
10
11
|
json: 'JSON',
|
|
@@ -13,4 +14,5 @@ export const FILE_EXT_TO_EXT_LABEL = {
|
|
|
13
14
|
ts: 'TypeScript',
|
|
14
15
|
js: 'JavaScript',
|
|
15
16
|
yaml: 'YAML',
|
|
17
|
+
html: 'HTML',
|
|
16
18
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Plugin } from 'unified';
|
|
2
2
|
import type { Root } from 'mdast';
|
|
3
3
|
/**
|
|
4
|
-
* Escape HTML-sensitive characters (`&`, `<`, `>`, `"`, `'`) in text nodes,
|
|
4
|
+
* Escape HTML-sensitive characters ('{', '}', `&`, `<`, `>`, `"`, `'`) in text nodes,
|
|
5
5
|
* leaving code, math, MDX expressions, and front-matter untouched.
|
|
6
6
|
* Ensures literals render safely without altering already-escaped entities.
|
|
7
7
|
*/
|
package/dist/utils/escapeHtml.js
CHANGED
|
@@ -14,7 +14,7 @@ const IGNORE_PARENTS = [
|
|
|
14
14
|
// & that is NOT already an entity: &word; { ᨫ
|
|
15
15
|
const AMP_NOT_ENTITY = /&(?![a-zA-Z][a-zA-Z0-9]*;|#\d+;|#x[0-9A-Fa-f]+;)/g;
|
|
16
16
|
/**
|
|
17
|
-
* Escape HTML-sensitive characters (`&`, `<`, `>`, `"`, `'`) in text nodes,
|
|
17
|
+
* Escape HTML-sensitive characters ('{', '}', `&`, `<`, `>`, `"`, `'`) in text nodes,
|
|
18
18
|
* leaving code, math, MDX expressions, and front-matter untouched.
|
|
19
19
|
* Ensures literals render safely without altering already-escaped entities.
|
|
20
20
|
*/
|
|
@@ -23,6 +23,8 @@ export const escapeHtmlInTextNodes = function () {
|
|
|
23
23
|
findAndReplace(tree, [
|
|
24
24
|
// Order matters: & first (idempotency), then the rest
|
|
25
25
|
[AMP_NOT_ENTITY, '&'],
|
|
26
|
+
[/\{/g, '{'],
|
|
27
|
+
[/\}/g, '}'],
|
|
26
28
|
[/</g, '<'],
|
|
27
29
|
[/>/g, '>'],
|
|
28
30
|
[/"/g, '"'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gtx-cli",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"bin": "dist/main.js",
|
|
6
6
|
"files": [
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"esbuild": "^0.25.4",
|
|
88
88
|
"fast-glob": "^3.3.3",
|
|
89
89
|
"form-data": "^4.0.4",
|
|
90
|
-
"generaltranslation": "^7.6.
|
|
90
|
+
"generaltranslation": "^7.6.2",
|
|
91
91
|
"json-pointer": "^0.6.2",
|
|
92
92
|
"jsonpath-plus": "^10.3.0",
|
|
93
93
|
"jsonpointer": "^5.0.1",
|