@intlayer/core 8.11.3 → 8.12.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.
|
@@ -16,7 +16,7 @@ const parserFor = (rules) => {
|
|
|
16
16
|
const start = performance.now();
|
|
17
17
|
const ruleList = Object.keys(rules);
|
|
18
18
|
if (process.env.NODE_ENV !== "production") ruleList.forEach((type) => {
|
|
19
|
-
const order = rules[type]
|
|
19
|
+
const order = rules[type]?._order;
|
|
20
20
|
if (typeof order !== "number" || !Number.isFinite(order)) console.warn(`intlayer: Invalid order for rule \`${type}\`: ${order}`);
|
|
21
21
|
});
|
|
22
22
|
ruleList.sort((a, b) => {
|
|
@@ -31,20 +31,24 @@ const parserFor = (rules) => {
|
|
|
31
31
|
while (i < ruleList.length) {
|
|
32
32
|
const ruleType = ruleList[i];
|
|
33
33
|
const rule = rules[ruleType];
|
|
34
|
-
if (rule
|
|
34
|
+
if (rule?._qualify && !require_markdown_utils.qualifies(source, state, rule._qualify)) {
|
|
35
35
|
i++;
|
|
36
36
|
continue;
|
|
37
37
|
}
|
|
38
38
|
const matchStart = performance.now();
|
|
39
|
-
const capture = rule
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
const capture = rule?._match(source, state);
|
|
40
|
+
if (process.env.NODE_ENV !== "production") {
|
|
41
|
+
const matchDuration = performance.now() - matchStart;
|
|
42
|
+
if (matchDuration > 1) console.log(`${ruleType}._match: ${matchDuration.toFixed(3)}ms, source length: ${source.length}`);
|
|
43
|
+
}
|
|
42
44
|
if (capture?.[0]) {
|
|
43
45
|
source = source.substring(capture[0].length);
|
|
44
46
|
const ruleParseStart = performance.now();
|
|
45
|
-
const parsedAny = rule
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
const parsedAny = rule?._parse(capture, nestedParse, state);
|
|
48
|
+
if (process.env.NODE_ENV !== "production") {
|
|
49
|
+
const ruleParseDuration = performance.now() - ruleParseStart;
|
|
50
|
+
if (ruleParseDuration > 1) console.log(`${ruleType}._parse: ${ruleParseDuration.toFixed(3)}ms, capture length: ${capture[0].length}`);
|
|
51
|
+
}
|
|
48
52
|
state.prevCapture = (state.prevCapture || "") + capture[0];
|
|
49
53
|
if (!parsedAny.type) parsedAny.type = ruleType;
|
|
50
54
|
result.push(parsedAny);
|
|
@@ -53,12 +57,16 @@ const parserFor = (rules) => {
|
|
|
53
57
|
i++;
|
|
54
58
|
}
|
|
55
59
|
}
|
|
56
|
-
|
|
57
|
-
|
|
60
|
+
if (process.env.NODE_ENV === "development") {
|
|
61
|
+
const parseDuration = performance.now() - parseStart;
|
|
62
|
+
if (parseDuration > 1) console.log(`nestedParse: ${parseDuration.toFixed(3)}ms, source length: ${source.length}, result count: ${result.length}`);
|
|
63
|
+
}
|
|
58
64
|
return result;
|
|
59
65
|
};
|
|
60
|
-
|
|
61
|
-
|
|
66
|
+
if (process.env.NODE_ENV === "development") {
|
|
67
|
+
const duration = performance.now() - start;
|
|
68
|
+
if (duration > 20) console.log(`parserFor: ${duration.toFixed(3)}ms, rules count: ${ruleList.length}`);
|
|
69
|
+
}
|
|
62
70
|
return (source, state) => nestedParse(require_markdown_utils.normalizeWhitespace(source), state);
|
|
63
71
|
};
|
|
64
72
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.cjs","names":["qualifies","normalizeWhitespace"],"sources":["../../../src/markdown/parser.ts"],"sourcesContent":["import { DURATION_DELAY_TRIGGER } from './constants';\nimport type { NestedParser, ParserResult, ParseState, Rules } from './types';\nimport { normalizeWhitespace, qualifies } from './utils';\n\n/**\n * Creates a parser for a given set of rules, with the precedence\n * specified as a list of rules.\n *\n * @param rules - An object containing rule type -> {match, order, parse} objects\n * (lower order is higher precedence)\n *\n * @returns The resulting parse function\n */\nexport const parserFor = (\n rules: Rules\n): ((source: string, state: ParseState) => ParserResult[]) => {\n const start = performance.now();\n const ruleList = Object.keys(rules);\n\n if (process.env.NODE_ENV !== 'production') {\n ruleList.forEach((type) => {\n const order = rules[type]
|
|
1
|
+
{"version":3,"file":"parser.cjs","names":["qualifies","normalizeWhitespace"],"sources":["../../../src/markdown/parser.ts"],"sourcesContent":["import { DURATION_DELAY_TRIGGER } from './constants';\nimport type { NestedParser, ParserResult, ParseState, Rules } from './types';\nimport { normalizeWhitespace, qualifies } from './utils';\n\n/**\n * Creates a parser for a given set of rules, with the precedence\n * specified as a list of rules.\n *\n * @param rules - An object containing rule type -> {match, order, parse} objects\n * (lower order is higher precedence)\n *\n * @returns The resulting parse function\n */\nexport const parserFor = (\n rules: Rules\n): ((source: string, state: ParseState) => ParserResult[]) => {\n const start = performance.now();\n const ruleList = Object.keys(rules);\n\n if (process.env.NODE_ENV !== 'production') {\n ruleList.forEach((type) => {\n const order = rules[type]?._order;\n if (typeof order !== 'number' || !Number.isFinite(order)) {\n console.warn(`intlayer: Invalid order for rule \\`${type}\\`: ${order}`);\n }\n });\n }\n\n // Sorts rules in order of increasing order, then\n // ascending rule name (numeric) in case of ties.\n // RuleType keys are string numbers — use numeric comparison to preserve\n // intended ordering (e.g. codeFenced '4' must precede headingSetext '10').\n ruleList.sort((a, b) => {\n return rules[a]!._order - rules[b]!._order || +a - +b;\n });\n\n const nestedParse: NestedParser = (\n source: string,\n state: ParseState = {}\n ): ParserResult[] => {\n const parseStart = performance.now();\n const result: ParserResult[] = [];\n state.prevCapture = state.prevCapture || '';\n\n if (source.trim()) {\n while (source) {\n let i = 0;\n while (i < ruleList.length) {\n const ruleType = ruleList[i];\n const rule = rules[ruleType as keyof typeof rules];\n\n if (rule?._qualify && !qualifies(source, state, rule._qualify)) {\n i++;\n continue;\n }\n\n const matchStart = performance.now();\n const capture = rule?._match(source, state);\n\n if (process.env.NODE_ENV !== 'production') {\n const matchDuration = performance.now() - matchStart;\n if (matchDuration > 1) {\n console.log(\n `${ruleType}._match: ${matchDuration.toFixed(3)}ms, source length: ${source.length}`\n );\n }\n }\n\n if (capture?.[0]) {\n source = source.substring(capture[0].length);\n\n const ruleParseStart = performance.now();\n const parsedAny: any = rule?._parse(capture, nestedParse, state);\n\n if (process.env.NODE_ENV !== 'production') {\n const ruleParseDuration = performance.now() - ruleParseStart;\n if (ruleParseDuration > 1) {\n console.log(\n `${ruleType}._parse: ${ruleParseDuration.toFixed(3)}ms, capture length: ${capture[0].length}`\n );\n }\n }\n\n state.prevCapture = (state.prevCapture || '') + capture[0];\n\n if (!parsedAny.type) {\n parsedAny.type = ruleType;\n }\n result.push(parsedAny as ParserResult);\n break;\n }\n i++;\n }\n }\n }\n\n // Tree shakeable log for prod\n if (process.env.NODE_ENV === 'development') {\n const parseDuration = performance.now() - parseStart;\n if (parseDuration > 1) {\n console.log(\n `nestedParse: ${parseDuration.toFixed(3)}ms, source length: ${source.length}, result count: ${result.length}`\n );\n }\n }\n\n return result;\n };\n\n // Tree shakeable log for prod\n if (process.env.NODE_ENV === 'development') {\n const duration = performance.now() - start;\n\n if (duration > DURATION_DELAY_TRIGGER) {\n console.log(\n `parserFor: ${duration.toFixed(3)}ms, rules count: ${ruleList.length}`\n );\n }\n }\n\n return (source: string, state: ParseState) =>\n nestedParse(normalizeWhitespace(source), state);\n};\n"],"mappings":";;;;;;;;;;;;;;AAaA,MAAa,aACX,UAC4D;CAC5D,MAAM,QAAQ,YAAY,IAAI;CAC9B,MAAM,WAAW,OAAO,KAAK,KAAK;CAElC,IAAI,QAAQ,IAAI,aAAa,cAC3B,SAAS,SAAS,SAAS;EACzB,MAAM,QAAQ,MAAM,OAAO;EAC3B,IAAI,OAAO,UAAU,YAAY,CAAC,OAAO,SAAS,KAAK,GACrD,QAAQ,KAAK,sCAAsC,KAAK,MAAM,OAAO;CAEzE,CAAC;CAOH,SAAS,MAAM,GAAG,MAAM;EACtB,OAAO,MAAM,GAAI,SAAS,MAAM,GAAI,UAAU,CAAC,IAAI,CAAC;CACtD,CAAC;CAED,MAAM,eACJ,QACA,QAAoB,CAAC,MACF;EACnB,MAAM,aAAa,YAAY,IAAI;EACnC,MAAM,SAAyB,CAAC;E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AAQ,IAAI,aAAa,eAAe;EAC1C,MAAM,WAAW,YAAY,IAAI,IAAI;EAErC,IAAI,eACF,QAAQ,IACN,cAAc,SAAS,QAAQ,CAAC,EAAE,mBAAmB,SAAS,QAChE;CAEJ;CAEA,QAAQ,QAAgB,UACtB,YAAYC,2CAAoB,MAAM,GAAG,KAAK;AAClD"}
|
|
@@ -15,7 +15,7 @@ const parserFor = (rules) => {
|
|
|
15
15
|
const start = performance.now();
|
|
16
16
|
const ruleList = Object.keys(rules);
|
|
17
17
|
ruleList.forEach((type) => {
|
|
18
|
-
const order = rules[type]
|
|
18
|
+
const order = rules[type]?._order;
|
|
19
19
|
if (typeof order !== "number" || !Number.isFinite(order)) console.warn(`intlayer: Invalid order for rule \`${type}\`: ${order}`);
|
|
20
20
|
});
|
|
21
21
|
ruleList.sort((a, b) => {
|
|
@@ -30,20 +30,24 @@ const parserFor = (rules) => {
|
|
|
30
30
|
while (i < ruleList.length) {
|
|
31
31
|
const ruleType = ruleList[i];
|
|
32
32
|
const rule = rules[ruleType];
|
|
33
|
-
if (rule
|
|
33
|
+
if (rule?._qualify && !qualifies(source, state, rule._qualify)) {
|
|
34
34
|
i++;
|
|
35
35
|
continue;
|
|
36
36
|
}
|
|
37
37
|
const matchStart = performance.now();
|
|
38
|
-
const capture = rule
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
const capture = rule?._match(source, state);
|
|
39
|
+
{
|
|
40
|
+
const matchDuration = performance.now() - matchStart;
|
|
41
|
+
if (matchDuration > 1) console.log(`${ruleType}._match: ${matchDuration.toFixed(3)}ms, source length: ${source.length}`);
|
|
42
|
+
}
|
|
41
43
|
if (capture?.[0]) {
|
|
42
44
|
source = source.substring(capture[0].length);
|
|
43
45
|
const ruleParseStart = performance.now();
|
|
44
|
-
const parsedAny = rule
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
const parsedAny = rule?._parse(capture, nestedParse, state);
|
|
47
|
+
{
|
|
48
|
+
const ruleParseDuration = performance.now() - ruleParseStart;
|
|
49
|
+
if (ruleParseDuration > 1) console.log(`${ruleType}._parse: ${ruleParseDuration.toFixed(3)}ms, capture length: ${capture[0].length}`);
|
|
50
|
+
}
|
|
47
51
|
state.prevCapture = (state.prevCapture || "") + capture[0];
|
|
48
52
|
if (!parsedAny.type) parsedAny.type = ruleType;
|
|
49
53
|
result.push(parsedAny);
|
|
@@ -52,12 +56,16 @@ const parserFor = (rules) => {
|
|
|
52
56
|
i++;
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
|
-
|
|
56
|
-
|
|
59
|
+
{
|
|
60
|
+
const parseDuration = performance.now() - parseStart;
|
|
61
|
+
if (parseDuration > 1) console.log(`nestedParse: ${parseDuration.toFixed(3)}ms, source length: ${source.length}, result count: ${result.length}`);
|
|
62
|
+
}
|
|
57
63
|
return result;
|
|
58
64
|
};
|
|
59
|
-
|
|
60
|
-
|
|
65
|
+
{
|
|
66
|
+
const duration = performance.now() - start;
|
|
67
|
+
if (duration > 20) console.log(`parserFor: ${duration.toFixed(3)}ms, rules count: ${ruleList.length}`);
|
|
68
|
+
}
|
|
61
69
|
return (source, state) => nestedParse(normalizeWhitespace(source), state);
|
|
62
70
|
};
|
|
63
71
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.mjs","names":[],"sources":["../../../src/markdown/parser.ts"],"sourcesContent":["import { DURATION_DELAY_TRIGGER } from './constants';\nimport type { NestedParser, ParserResult, ParseState, Rules } from './types';\nimport { normalizeWhitespace, qualifies } from './utils';\n\n/**\n * Creates a parser for a given set of rules, with the precedence\n * specified as a list of rules.\n *\n * @param rules - An object containing rule type -> {match, order, parse} objects\n * (lower order is higher precedence)\n *\n * @returns The resulting parse function\n */\nexport const parserFor = (\n rules: Rules\n): ((source: string, state: ParseState) => ParserResult[]) => {\n const start = performance.now();\n const ruleList = Object.keys(rules);\n\n if (process.env.NODE_ENV !== 'production') {\n ruleList.forEach((type) => {\n const order = rules[type]
|
|
1
|
+
{"version":3,"file":"parser.mjs","names":[],"sources":["../../../src/markdown/parser.ts"],"sourcesContent":["import { DURATION_DELAY_TRIGGER } from './constants';\nimport type { NestedParser, ParserResult, ParseState, Rules } from './types';\nimport { normalizeWhitespace, qualifies } from './utils';\n\n/**\n * Creates a parser for a given set of rules, with the precedence\n * specified as a list of rules.\n *\n * @param rules - An object containing rule type -> {match, order, parse} objects\n * (lower order is higher precedence)\n *\n * @returns The resulting parse function\n */\nexport const parserFor = (\n rules: Rules\n): ((source: string, state: ParseState) => ParserResult[]) => {\n const start = performance.now();\n const ruleList = Object.keys(rules);\n\n if (process.env.NODE_ENV !== 'production') {\n ruleList.forEach((type) => {\n const order = rules[type]?._order;\n if (typeof order !== 'number' || !Number.isFinite(order)) {\n console.warn(`intlayer: Invalid order for rule \\`${type}\\`: ${order}`);\n }\n });\n }\n\n // Sorts rules in order of increasing order, then\n // ascending rule name (numeric) in case of ties.\n // RuleType keys are string numbers — use numeric comparison to preserve\n // intended ordering (e.g. codeFenced '4' must precede headingSetext '10').\n ruleList.sort((a, b) => {\n return rules[a]!._order - rules[b]!._order || +a - +b;\n });\n\n const nestedParse: NestedParser = (\n source: string,\n state: ParseState = {}\n ): ParserResult[] => {\n const parseStart = performance.now();\n const result: ParserResult[] = [];\n state.prevCapture = state.prevCapture || '';\n\n if (source.trim()) {\n while (source) {\n let i = 0;\n while (i < ruleList.length) {\n const ruleType = ruleList[i];\n const rule = rules[ruleType as keyof typeof rules];\n\n if (rule?._qualify && !qualifies(source, state, rule._qualify)) {\n i++;\n continue;\n }\n\n const matchStart = performance.now();\n const capture = rule?._match(source, state);\n\n if (process.env.NODE_ENV !== 'production') {\n const matchDuration = performance.now() - matchStart;\n if (matchDuration > 1) {\n console.log(\n `${ruleType}._match: ${matchDuration.toFixed(3)}ms, source length: ${source.length}`\n );\n }\n }\n\n if (capture?.[0]) {\n source = source.substring(capture[0].length);\n\n const ruleParseStart = performance.now();\n const parsedAny: any = rule?._parse(capture, nestedParse, state);\n\n if (process.env.NODE_ENV !== 'production') {\n const ruleParseDuration = performance.now() - ruleParseStart;\n if (ruleParseDuration > 1) {\n console.log(\n `${ruleType}._parse: ${ruleParseDuration.toFixed(3)}ms, capture length: ${capture[0].length}`\n );\n }\n }\n\n state.prevCapture = (state.prevCapture || '') + capture[0];\n\n if (!parsedAny.type) {\n parsedAny.type = ruleType;\n }\n result.push(parsedAny as ParserResult);\n break;\n }\n i++;\n }\n }\n }\n\n // Tree shakeable log for prod\n if (process.env.NODE_ENV === 'development') {\n const parseDuration = performance.now() - parseStart;\n if (parseDuration > 1) {\n console.log(\n `nestedParse: ${parseDuration.toFixed(3)}ms, source length: ${source.length}, result count: ${result.length}`\n );\n }\n }\n\n return result;\n };\n\n // Tree shakeable log for prod\n if (process.env.NODE_ENV === 'development') {\n const duration = performance.now() - start;\n\n if (duration > DURATION_DELAY_TRIGGER) {\n console.log(\n `parserFor: ${duration.toFixed(3)}ms, rules count: ${ruleList.length}`\n );\n }\n }\n\n return (source: string, state: ParseState) =>\n nestedParse(normalizeWhitespace(source), state);\n};\n"],"mappings":";;;;;;;;;;;;;AAaA,MAAa,aACX,UAC4D;CAC5D,MAAM,QAAQ,YAAY,IAAI;CAC9B,MAAM,WAAW,OAAO,KAAK,KAAK;CAGhC,SAAS,SAAS,SAAS;EACzB,MAAM,QAAQ,MAAM,OAAO;EAC3B,IAAI,OAAO,UAAU,YAAY,CAAC,OAAO,SAAS,KAAK,GACrD,QAAQ,KAAK,sCAAsC,KAAK,MAAM,OAAO;CAEzE,CAAC;CAOH,SAAS,MAAM,GAAG,MAAM;EACtB,OAAO,MAAM,GAAI,SAAS,MAAM,GAAI,UAAU,CAAC,IAAI,CAAC;CACtD,CAAC;CAED,MAAM,eACJ,QACA,QAAoB,CAAC,MACF;EACnB,MAAM,aAAa,YAAY,IAAI;EACnC,MAAM,SAAyB,CAAC;EAChC,MAAM,cAAc,MAAM,eAAe;EAEzC,IAAI,OAAO,KAAK,GACd,OAAO,QAAQ;GACb,IAAI,IA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ClD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/core",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.12.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.",
|
|
6
6
|
"keywords": [
|
|
@@ -91,6 +91,10 @@
|
|
|
91
91
|
"browser": {
|
|
92
92
|
"require": "./dist/cjs/transpiler/file/fileBrowser.cjs",
|
|
93
93
|
"import": "./dist/esm/transpiler/file/fileBrowser.mjs"
|
|
94
|
+
},
|
|
95
|
+
"default": {
|
|
96
|
+
"require": "./dist/cjs/transpiler/file/file.cjs",
|
|
97
|
+
"import": "./dist/esm/transpiler/file/file.mjs"
|
|
94
98
|
}
|
|
95
99
|
},
|
|
96
100
|
"./file/browser": {
|
|
@@ -168,11 +172,11 @@
|
|
|
168
172
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
169
173
|
},
|
|
170
174
|
"dependencies": {
|
|
171
|
-
"@intlayer/api": "8.
|
|
172
|
-
"@intlayer/config": "8.
|
|
173
|
-
"@intlayer/dictionaries-entry": "8.
|
|
174
|
-
"@intlayer/types": "8.
|
|
175
|
-
"@intlayer/unmerged-dictionaries-entry": "8.
|
|
175
|
+
"@intlayer/api": "8.12.0",
|
|
176
|
+
"@intlayer/config": "8.12.0",
|
|
177
|
+
"@intlayer/dictionaries-entry": "8.12.0",
|
|
178
|
+
"@intlayer/types": "8.12.0",
|
|
179
|
+
"@intlayer/unmerged-dictionaries-entry": "8.12.0",
|
|
176
180
|
"defu": "6.1.7"
|
|
177
181
|
},
|
|
178
182
|
"devDependencies": {
|
|
@@ -183,7 +187,7 @@
|
|
|
183
187
|
"rimraf": "6.1.3",
|
|
184
188
|
"tsdown": "0.22.1",
|
|
185
189
|
"typescript": "6.0.3",
|
|
186
|
-
"vitest": "4.1.
|
|
190
|
+
"vitest": "4.1.8"
|
|
187
191
|
},
|
|
188
192
|
"engines": {
|
|
189
193
|
"node": ">=14.18"
|