@let-value/translate-extract 1.0.11 → 1.0.13
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/dist/bin/cli.cjs +8 -7
- package/dist/bin/cli.d.cts +1 -2
- package/dist/bin/cli.d.ts +1 -2
- package/dist/bin/cli.js +8 -7
- package/dist/bin/cli.js.map +1 -1
- package/dist/{run-XkKxn8kJ.cjs → run-BFehT9l8.cjs} +43 -18
- package/dist/{run-Dl-tr2kf.js → run-CQoAsNNE.js} +45 -20
- package/dist/run-CQoAsNNE.js.map +1 -0
- package/dist/src/index.cjs +114 -71
- package/dist/src/index.d.cts.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +114 -71
- package/dist/src/index.js.map +1 -1
- package/package.json +6 -6
- package/dist/run-Dl-tr2kf.js.map +0 -1
package/dist/src/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_run = require('../run-
|
|
1
|
+
const require_run = require('../run-BFehT9l8.cjs');
|
|
2
2
|
let node_path = require("node:path");
|
|
3
3
|
node_path = require_run.__toESM(node_path);
|
|
4
4
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -19,6 +19,7 @@ let plural_forms = require("plural-forms");
|
|
|
19
19
|
plural_forms = require_run.__toESM(plural_forms);
|
|
20
20
|
|
|
21
21
|
//#region src/plugins/cleanup/cleanup.ts
|
|
22
|
+
const namespace$2 = "cleanup";
|
|
22
23
|
function cleanup() {
|
|
23
24
|
return {
|
|
24
25
|
name: "cleanup",
|
|
@@ -27,14 +28,14 @@ function cleanup() {
|
|
|
27
28
|
const processedDirs = /* @__PURE__ */ new Set();
|
|
28
29
|
const generated = /* @__PURE__ */ new Set();
|
|
29
30
|
build.onResolve({
|
|
30
|
-
namespace:
|
|
31
|
+
namespace: namespace$2,
|
|
31
32
|
filter: /.*/
|
|
32
33
|
}, (args) => {
|
|
33
34
|
generated.add(args.path);
|
|
34
35
|
return args;
|
|
35
36
|
});
|
|
36
37
|
build.onProcess({
|
|
37
|
-
namespace:
|
|
38
|
+
namespace: namespace$2,
|
|
38
39
|
filter: /.*/
|
|
39
40
|
}, async ({ path: path$1 }) => {
|
|
40
41
|
await build.defer("translate");
|
|
@@ -48,14 +49,12 @@ function cleanup() {
|
|
|
48
49
|
const contents = await node_fs_promises.default.readFile(full).catch(() => void 0);
|
|
49
50
|
if (!contents) continue;
|
|
50
51
|
const parsed = gettext_parser.po.parse(contents);
|
|
51
|
-
|
|
52
|
-
if (hasTranslations) build.context.logger?.warn({ path: full }, "stray translation file");
|
|
52
|
+
if (Object.entries(parsed.translations || {}).some(([ctx, msgs]) => Object.keys(msgs).some((id) => !(ctx === "" && id === "")))) build.context.logger?.warn({ path: full }, "stray translation file");
|
|
53
53
|
else {
|
|
54
54
|
await node_fs_promises.default.unlink(full);
|
|
55
55
|
build.context.logger?.info({ path: full }, "removed empty translation file");
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
return void 0;
|
|
59
58
|
});
|
|
60
59
|
}
|
|
61
60
|
};
|
|
@@ -65,8 +64,7 @@ function cleanup() {
|
|
|
65
64
|
//#region src/plugins/core/queries/comment.ts
|
|
66
65
|
function getReference(node, { path: path$1 }) {
|
|
67
66
|
const line = node.startPosition.row + 1;
|
|
68
|
-
|
|
69
|
-
return `${rel}:${line}`;
|
|
67
|
+
return `${(0, node_path.relative)(process.cwd(), path$1).replace(/\\+/g, "/")}:${line}`;
|
|
70
68
|
}
|
|
71
69
|
function getComment(node) {
|
|
72
70
|
const text = node.text;
|
|
@@ -118,8 +116,7 @@ const importQuery = {
|
|
|
118
116
|
]
|
|
119
117
|
`,
|
|
120
118
|
extract(match) {
|
|
121
|
-
|
|
122
|
-
return node?.text;
|
|
119
|
+
return (match.captures.find((c) => c.name === "import")?.node)?.text;
|
|
123
120
|
}
|
|
124
121
|
};
|
|
125
122
|
|
|
@@ -161,7 +158,7 @@ const notInPlural = (query) => ({
|
|
|
161
158
|
"ngettext",
|
|
162
159
|
"pgettext",
|
|
163
160
|
"npgettext"
|
|
164
|
-
].includes(fn.childForFieldName("property")?.text ?? "")) return
|
|
161
|
+
].includes(fn.childForFieldName("property")?.text ?? "")) return;
|
|
165
162
|
}
|
|
166
163
|
}
|
|
167
164
|
return result;
|
|
@@ -189,7 +186,7 @@ const messageArg = `[
|
|
|
189
186
|
const messageArgs = `[ (arguments ${messageArg}) (template_string) @tpl ]`;
|
|
190
187
|
const extractMessage = (name) => (match) => {
|
|
191
188
|
const node = match.captures.find((c) => c.name === "call")?.node;
|
|
192
|
-
if (!node) return
|
|
189
|
+
if (!node) return;
|
|
193
190
|
const msgid = match.captures.find((c) => c.name === "msgid")?.node.text;
|
|
194
191
|
if (msgid) return {
|
|
195
192
|
node,
|
|
@@ -220,13 +217,12 @@ const extractMessage = (name) => (match) => {
|
|
|
220
217
|
const id = match.captures.find((c) => c.name === "id")?.node.text;
|
|
221
218
|
const message = match.captures.find((c) => c.name === "message")?.node.text;
|
|
222
219
|
const msgId = id ?? message;
|
|
223
|
-
if (!msgId) return
|
|
224
|
-
const msgstr = message ?? id ?? "";
|
|
220
|
+
if (!msgId) return;
|
|
225
221
|
return {
|
|
226
222
|
node,
|
|
227
223
|
translation: {
|
|
228
224
|
id: msgId,
|
|
229
|
-
message: [
|
|
225
|
+
message: [message ?? id ?? ""]
|
|
230
226
|
}
|
|
231
227
|
};
|
|
232
228
|
};
|
|
@@ -244,8 +240,8 @@ const messageInvalidQuery = notInPlural({
|
|
|
244
240
|
extract(match) {
|
|
245
241
|
const call = match.captures.find((c) => c.name === "call")?.node;
|
|
246
242
|
const node = match.captures.find((c) => c.name === "arg")?.node;
|
|
247
|
-
if (!call || !node) return
|
|
248
|
-
if (allowed$1.has(node.type)) return
|
|
243
|
+
if (!call || !node) return;
|
|
244
|
+
if (allowed$1.has(node.type)) return;
|
|
249
245
|
return {
|
|
250
246
|
node,
|
|
251
247
|
error: "message() argument must be a string literal, object literal, or template literal"
|
|
@@ -258,7 +254,7 @@ const messageInvalidQuery = notInPlural({
|
|
|
258
254
|
const extractPluralForms = (name) => (match) => {
|
|
259
255
|
const call = match.captures.find((c) => c.name === "call")?.node;
|
|
260
256
|
const n = match.captures.find((c) => c.name === "n")?.node;
|
|
261
|
-
if (!call || !n || n.nextNamedSibling) return
|
|
257
|
+
if (!call || !n || n.nextNamedSibling) return;
|
|
262
258
|
const msgctxt = match.captures.find((c) => c.name === "msgctxt")?.node?.text;
|
|
263
259
|
const msgNodes = match.captures.filter((c) => c.name === "msg").map((c) => c.node);
|
|
264
260
|
const ids = [];
|
|
@@ -288,7 +284,7 @@ const extractPluralForms = (name) => (match) => {
|
|
|
288
284
|
strs.push(result.translation.message[0] ?? "");
|
|
289
285
|
}
|
|
290
286
|
}
|
|
291
|
-
if (ids.length === 0) return
|
|
287
|
+
if (ids.length === 0) return;
|
|
292
288
|
const translation = {
|
|
293
289
|
id: ids[0],
|
|
294
290
|
plural: ids[1],
|
|
@@ -349,12 +345,12 @@ const contextInvalidQuery = withComment({
|
|
|
349
345
|
pattern: ctxCall,
|
|
350
346
|
extract(match) {
|
|
351
347
|
const call = match.captures.find((c) => c.name === "ctx")?.node;
|
|
352
|
-
if (!call) return
|
|
348
|
+
if (!call) return;
|
|
353
349
|
const parent = call.parent;
|
|
354
350
|
if (parent && parent.type === "member_expression" && parent.childForFieldName("object")?.id === call.id) {
|
|
355
351
|
const property = parent.childForFieldName("property")?.text;
|
|
356
352
|
const grandparent = parent.parent;
|
|
357
|
-
if (grandparent && grandparent.type === "call_expression" && grandparent.childForFieldName("function")?.id === parent.id && (property === "message" || property === "plural")) return
|
|
353
|
+
if (grandparent && grandparent.type === "call_expression" && grandparent.childForFieldName("function")?.id === parent.id && (property === "message" || property === "plural")) return;
|
|
358
354
|
}
|
|
359
355
|
return {
|
|
360
356
|
node: call,
|
|
@@ -381,8 +377,8 @@ const gettextInvalidQuery = {
|
|
|
381
377
|
extract(match) {
|
|
382
378
|
const call = match.captures.find((c) => c.name === "call")?.node;
|
|
383
379
|
const node = match.captures.find((c) => c.name === "arg")?.node;
|
|
384
|
-
if (!call || !node) return
|
|
385
|
-
if (allowed.has(node.type)) return
|
|
380
|
+
if (!call || !node) return;
|
|
381
|
+
if (allowed.has(node.type)) return;
|
|
386
382
|
return {
|
|
387
383
|
node,
|
|
388
384
|
error: "gettext() argument must be a string literal, object literal, or template literal"
|
|
@@ -550,7 +546,7 @@ function findTsconfig(dir) {
|
|
|
550
546
|
const config = node_path.default.join(current, "tsconfig.json");
|
|
551
547
|
if (node_fs.default.existsSync(config)) return config;
|
|
552
548
|
const parent = node_path.default.dirname(current);
|
|
553
|
-
if (parent === current) return
|
|
549
|
+
if (parent === current) return;
|
|
554
550
|
current = parent;
|
|
555
551
|
}
|
|
556
552
|
}
|
|
@@ -643,7 +639,6 @@ function core() {
|
|
|
643
639
|
namespace: "translate",
|
|
644
640
|
data: translations
|
|
645
641
|
});
|
|
646
|
-
return void 0;
|
|
647
642
|
});
|
|
648
643
|
}
|
|
649
644
|
};
|
|
@@ -789,7 +784,7 @@ function po() {
|
|
|
789
784
|
filter: /.*/,
|
|
790
785
|
namespace
|
|
791
786
|
}, async ({ entrypoint, path: path$1, data }) => {
|
|
792
|
-
if (!data || !Array.isArray(data)) return
|
|
787
|
+
if (!data || !Array.isArray(data)) return;
|
|
793
788
|
for (const locale of build.context.config.locales) {
|
|
794
789
|
const destination = build.context.config.destination({
|
|
795
790
|
entrypoint,
|
|
@@ -811,7 +806,6 @@ function po() {
|
|
|
811
806
|
namespace
|
|
812
807
|
});
|
|
813
808
|
});
|
|
814
|
-
return void 0;
|
|
815
809
|
});
|
|
816
810
|
build.onLoad({
|
|
817
811
|
filter: /.*\.po$/,
|
|
@@ -832,7 +826,7 @@ function po() {
|
|
|
832
826
|
const collected = collections.get(path$1);
|
|
833
827
|
if (!collected) {
|
|
834
828
|
build.context.logger?.warn({ path: path$1 }, "no translations collected for this path");
|
|
835
|
-
return
|
|
829
|
+
return;
|
|
836
830
|
}
|
|
837
831
|
const { locale, translations } = collected;
|
|
838
832
|
const record = collect(translations, locale);
|
|
@@ -889,8 +883,7 @@ function resolvePlugins(user) {
|
|
|
889
883
|
function defineConfig(config) {
|
|
890
884
|
const defaultLocale = config.defaultLocale ?? "en";
|
|
891
885
|
const plugins = resolvePlugins(config.plugins);
|
|
892
|
-
const
|
|
893
|
-
const entrypoints = raw.map(resolveEntrypoint);
|
|
886
|
+
const entrypoints = (Array.isArray(config.entrypoints) ? config.entrypoints : [config.entrypoints]).map(resolveEntrypoint);
|
|
894
887
|
return {
|
|
895
888
|
plugins,
|
|
896
889
|
entrypoints,
|
|
@@ -907,43 +900,96 @@ function defineConfig(config) {
|
|
|
907
900
|
//#endregion
|
|
908
901
|
//#region src/plugins/react/queries/utils.ts
|
|
909
902
|
function buildTemplate(node) {
|
|
903
|
+
const source = node.tree.rootNode.text;
|
|
904
|
+
const open = node.childForFieldName("open_tag");
|
|
905
|
+
const close = node.childForFieldName("close_tag");
|
|
906
|
+
const contentStart = open?.endIndex ?? node.startIndex;
|
|
907
|
+
const contentEnd = close?.startIndex ?? node.endIndex;
|
|
908
|
+
const parts = [];
|
|
909
|
+
let segmentStart = contentStart;
|
|
910
|
+
const pushRawText = (endIndex) => {
|
|
911
|
+
if (endIndex <= segmentStart) {
|
|
912
|
+
segmentStart = Math.max(segmentStart, endIndex);
|
|
913
|
+
return;
|
|
914
|
+
}
|
|
915
|
+
const text$1 = source.slice(segmentStart, endIndex);
|
|
916
|
+
if (text$1) parts.push({
|
|
917
|
+
kind: "text",
|
|
918
|
+
text: text$1,
|
|
919
|
+
raw: true
|
|
920
|
+
});
|
|
921
|
+
segmentStart = endIndex;
|
|
922
|
+
};
|
|
910
923
|
const children = node.namedChildren.slice(1, -1);
|
|
911
|
-
const
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
} else if (expr.type === "string") strings[strings.length - 1] += expr.text.slice(1, -1);
|
|
930
|
-
else if (expr.type === "template_string") {
|
|
931
|
-
const hasSubstitutions = expr.children.some((c) => c.type === "template_substitution");
|
|
932
|
-
if (hasSubstitutions) return {
|
|
933
|
-
text: "",
|
|
934
|
-
error: "JSX expressions with template substitutions are not supported"
|
|
935
|
-
};
|
|
936
|
-
const content = expr.text.slice(1, -1);
|
|
937
|
-
strings[strings.length - 1] += content;
|
|
938
|
-
} else return {
|
|
924
|
+
for (const child of children) if (child.type === "jsx_expression") {
|
|
925
|
+
pushRawText(child.startIndex);
|
|
926
|
+
const expr = child.namedChildren[0];
|
|
927
|
+
if (!expr) return {
|
|
928
|
+
text: "",
|
|
929
|
+
error: "Empty JSX expression"
|
|
930
|
+
};
|
|
931
|
+
if (expr.type === "identifier") parts.push({
|
|
932
|
+
kind: "expr",
|
|
933
|
+
value: expr.text
|
|
934
|
+
});
|
|
935
|
+
else if (expr.type === "string") parts.push({
|
|
936
|
+
kind: "text",
|
|
937
|
+
text: expr.text.slice(1, -1),
|
|
938
|
+
raw: false
|
|
939
|
+
});
|
|
940
|
+
else if (expr.type === "template_string") {
|
|
941
|
+
if (expr.children.some((c) => c.type === "template_substitution")) return {
|
|
939
942
|
text: "",
|
|
940
|
-
error: "JSX expressions
|
|
943
|
+
error: "JSX expressions with template substitutions are not supported"
|
|
941
944
|
};
|
|
942
|
-
|
|
943
|
-
|
|
945
|
+
parts.push({
|
|
946
|
+
kind: "text",
|
|
947
|
+
text: expr.text.slice(1, -1),
|
|
948
|
+
raw: false
|
|
949
|
+
});
|
|
950
|
+
} else return {
|
|
944
951
|
text: "",
|
|
945
|
-
error: "
|
|
952
|
+
error: "JSX expressions must be simple identifiers, strings, or template literals"
|
|
946
953
|
};
|
|
954
|
+
segmentStart = child.endIndex;
|
|
955
|
+
} else if (child.type === "string") {
|
|
956
|
+
pushRawText(child.startIndex);
|
|
957
|
+
parts.push({
|
|
958
|
+
kind: "text",
|
|
959
|
+
text: child.text.slice(1, -1),
|
|
960
|
+
raw: false
|
|
961
|
+
});
|
|
962
|
+
segmentStart = child.endIndex;
|
|
963
|
+
} else if (child.type === "jsx_text" || child.type === "html_character_reference" || child.isError) continue;
|
|
964
|
+
else return {
|
|
965
|
+
text: "",
|
|
966
|
+
error: "Unsupported JSX child"
|
|
967
|
+
};
|
|
968
|
+
pushRawText(contentEnd);
|
|
969
|
+
const firstRawIndex = parts.findIndex((part) => part.kind === "text" && part.raw);
|
|
970
|
+
if (firstRawIndex === 0) {
|
|
971
|
+
const part = parts[firstRawIndex];
|
|
972
|
+
part.text = part.text.replace(/^\s+/, "");
|
|
973
|
+
}
|
|
974
|
+
let lastRawIndex = -1;
|
|
975
|
+
for (let i = parts.length - 1; i >= 0; i--) {
|
|
976
|
+
const part = parts[i];
|
|
977
|
+
if (part.kind === "text" && part.raw) {
|
|
978
|
+
lastRawIndex = i;
|
|
979
|
+
break;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
if (lastRawIndex !== -1 && lastRawIndex === parts.length - 1) {
|
|
983
|
+
const part = parts[lastRawIndex];
|
|
984
|
+
part.text = part.text.replace(/\s+$/, "");
|
|
985
|
+
}
|
|
986
|
+
const strings = [""];
|
|
987
|
+
const values = [];
|
|
988
|
+
for (const part of parts) if (part.kind === "text") {
|
|
989
|
+
if (part.text) strings[strings.length - 1] += part.text;
|
|
990
|
+
} else {
|
|
991
|
+
values.push(part.value);
|
|
992
|
+
strings.push("");
|
|
947
993
|
}
|
|
948
994
|
let text = "";
|
|
949
995
|
for (let i = 0; i < strings.length; i++) {
|
|
@@ -963,13 +1009,11 @@ function buildAttrValue(node) {
|
|
|
963
1009
|
if (expr.type === "identifier") return { text: `\${${expr.text}}` };
|
|
964
1010
|
else if (expr.type === "string") return { text: expr.text.slice(1, -1) };
|
|
965
1011
|
else if (expr.type === "template_string") {
|
|
966
|
-
|
|
967
|
-
if (hasSubstitutions) return {
|
|
1012
|
+
if (expr.children.some((c) => c.type === "template_substitution")) return {
|
|
968
1013
|
text: "",
|
|
969
1014
|
error: "JSX expressions with template substitutions are not supported"
|
|
970
1015
|
};
|
|
971
|
-
|
|
972
|
-
return { text: content };
|
|
1016
|
+
return { text: expr.text.slice(1, -1) };
|
|
973
1017
|
} else return {
|
|
974
1018
|
text: "",
|
|
975
1019
|
error: "JSX expressions must be simple identifiers, strings, or template literals"
|
|
@@ -1159,22 +1203,22 @@ function react() {
|
|
|
1159
1203
|
build.onResolve({
|
|
1160
1204
|
filter: /.*/,
|
|
1161
1205
|
namespace: "source"
|
|
1162
|
-
}, ({ entrypoint, path: path$1, namespace: namespace$
|
|
1206
|
+
}, ({ entrypoint, path: path$1, namespace: namespace$3 }) => {
|
|
1163
1207
|
return {
|
|
1164
1208
|
entrypoint,
|
|
1165
|
-
namespace: namespace$
|
|
1209
|
+
namespace: namespace$3,
|
|
1166
1210
|
path: (0, node_path.resolve)(path$1)
|
|
1167
1211
|
};
|
|
1168
1212
|
});
|
|
1169
1213
|
build.onLoad({
|
|
1170
1214
|
filter,
|
|
1171
1215
|
namespace: "source"
|
|
1172
|
-
}, async ({ entrypoint, path: path$1, namespace: namespace$
|
|
1216
|
+
}, async ({ entrypoint, path: path$1, namespace: namespace$3 }) => {
|
|
1173
1217
|
const data = await (0, node_fs_promises.readFile)(path$1, "utf8");
|
|
1174
1218
|
return {
|
|
1175
1219
|
entrypoint,
|
|
1176
1220
|
path: path$1,
|
|
1177
|
-
namespace: namespace$
|
|
1221
|
+
namespace: namespace$3,
|
|
1178
1222
|
data
|
|
1179
1223
|
};
|
|
1180
1224
|
});
|
|
@@ -1190,7 +1234,6 @@ function react() {
|
|
|
1190
1234
|
namespace: "translate",
|
|
1191
1235
|
data: translations
|
|
1192
1236
|
});
|
|
1193
|
-
return void 0;
|
|
1194
1237
|
});
|
|
1195
1238
|
}
|
|
1196
1239
|
};
|
package/dist/src/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/plugin.ts","../../src/plugins/cleanup/cleanup.ts","../../src/plugins/core/queries/types.ts","../../src/plugins/core/core.ts","../../src/plugins/po/po.ts","../../src/configuration.ts","../../src/plugins/react/react.ts","../../src/run.ts"],"sourcesContent":[],"mappings":";;;;;KAGK,kBAAkB,IAAI,QAAQ;UAElB,OAAA;UACL;EAHP,WAAA,EAIY,IAJA;EAAA,MAAA,CAAA,EAKJ,MALI;;AAAkB,UAQlB,WARkB,CAAA,SAAA,OAAA,CAAA,CAAA;YAAR,EAAA,MAAA;EAAO,IAAA,EAAA,MAAA;EAEjB,SAAA,EAAO,MAAA;EAAA,IAAA,CAAA,EAUb,MAVa;;AAEP,UAWA,aAXA,CAAA,SAAA,OAAA,CAAA,CAAA;YACJ,EAAA,MAAA;EAAM,IAAA,EAAA,MAAA;EAGF,SAAA,EAAA,MAAW;EAOX,IAAA,CAAA,EAIN,MAJM;AAOjB;AAOiB,UAPA,QAOU,CAAA,SAIX,OAAA,CAAA,CAAA;EAGC,UAAA,EAAA,MAAW;EAOX,IAAA,EAAA,MAAA;EAOL,SAAM,EAAA,MAAA;EACN,IAAA,CAAA,EAzBD,MAyBC;;AACU,UAvBL,UAuBK,CAAA,SAAA,OAAA,CAAA,CAAA;YAAZ,EAAA,MAAA;MACsB,EAAA,MAAA;WAAd,EAAA,MAAA;MAAb,EApBK,MAoBL;;AACO,UAlBK,WAkBG,CAAA,SAAA,OAAA,CAAA,CAAA;EAAA,UAAA,EAAA,MAAA;MAAqC,EAAA,MAAA;WAAT,EAAA,MAAA;MAA6C,EAdnF,MAcmF;;AAAxB,UAXpD,aAWoD,CAAA,UAAA,OAAA,CAAA,CAAA;EAAY,UAAA,EAAA,MAAA;EACrE,IAAA,EAAA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DxBM;UACT,ECwBA,gBDxBA;MAEG,EAAA,OAAA;EAAI,QAAA,ECwBP,eDxBO;EAsGL,OAAE,EC7EL,OD6ES,EAAA;;;;AC5KtB;AACA;AACY,iBAoII,YAAA,CApIG,MAAA,EAoIkB,UApIlB,CAAA,EAoI+B,cApI/B;;;iBCFH,KAAA,CAAA,GAAS,eAAe;;;KCO5B,IAAA;;EPbP,IAAA,EOgBW,WPhBC;CAAA,GAAA;MAAM,EAAA,MAAA;MAAY,EOoBnB,QPpBmB;;EAAD,IAAA,EAAA,SAAA;EAEjB,IAAA,EOsBD,WPtBQ;CAAA;AACZ,iBOwBU,GAAA,CPxBV,UAAA,EOyBI,kBPzBJ,EAAA;EAAA,MAAA;EAAA;CAAA,EAAA;QACK,EOyBiB,cPzBjB;QACJ,CAAA,EOwB8C,MPxB9C;CAAM,CAAA,EOwBgD,OPxBhD,CAAA,IAAA,CAAA"}
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/plugin.ts","../../src/plugins/cleanup/cleanup.ts","../../src/plugins/core/queries/types.ts","../../src/plugins/core/core.ts","../../src/plugins/po/po.ts","../../src/configuration.ts","../../src/plugins/react/react.ts","../../src/run.ts"],"sourcesContent":[],"mappings":";;;;;;KAGK,kBAAkB,IAAI,QAAQ;UAElB,OAAA;UACL;eACK;EAJZ,MAAA,CAAA,EAKQ,MALI;;AAAM,UAQN,WARM,CAAA,SAAA,OAAA,CAAA,CAAA;YAAY,EAAA,MAAA;MAAR,EAAA,MAAA;EAAO,SAAA,EAAA,MAAA;EAEjB,IAAA,CAAA,EAUN,MAVa;;AACZ,UAYK,aAZL,CAAA,SAAA,OAAA,CAAA,CAAA;YACK,EAAA,MAAA;MACJ,EAAA,MAAA;EAAM,SAAA,EAAA,MAAA;EAGF,IAAA,CAAA,EAWN,MAXM;AAOjB;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