Skip to content

Commit

Permalink
Update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Raiondesu committed Dec 19, 2023
1 parent 7284fb2 commit ee2fb54
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 25 deletions.
10 changes: 5 additions & 5 deletions packages/plugins/arrays/dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ var import_plugins = require("intl-schematic/plugins");
function match(value) {
return Array.isArray(value);
}
var ArraysPlugin = (defaultDelimiter = " ") => (0, import_plugins.createPlugin)("ArraysPlugin", match, {
translate(referenceParams, delimiter = defaultDelimiter) {
var ArraysPlugin = (defaultSeparator = " ") => (0, import_plugins.createPlugin)("ArraysPlugin", match, {
translate(referenceParams, separator = defaultSeparator) {
const startsWithIndex = /^.*?:/;
const processReference = (referencedKey) => {
if (startsWithIndex.test(referencedKey)) {
Expand Down Expand Up @@ -63,10 +63,10 @@ var ArraysPlugin = (defaultDelimiter = " ") => (0, import_plugins.createPlugin)(
}
return [...arr, ...processReference(refParamK)];
}, []);
if (typeof delimiter === "string") {
return result.join(delimiter);
if (typeof separator === "string") {
return result.join(separator);
}
return delimiter(result, defaultDelimiter);
return separator(result, defaultSeparator);
function normalizeRefs(referenceMap, referenceKey) {
return Array.isArray(referenceMap[referenceKey]) ? referenceMap[referenceKey] : [referenceMap[referenceKey]];
}
Expand Down
10 changes: 5 additions & 5 deletions packages/plugins/arrays/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { createPlugin } from "intl-schematic/plugins";
function match(value) {
return Array.isArray(value);
}
var ArraysPlugin = (defaultDelimiter = " ") => createPlugin("ArraysPlugin", match, {
translate(referenceParams, delimiter = defaultDelimiter) {
var ArraysPlugin = (defaultSeparator = " ") => createPlugin("ArraysPlugin", match, {
translate(referenceParams, separator = defaultSeparator) {
const startsWithIndex = /^.*?:/;
const processReference = (referencedKey) => {
if (startsWithIndex.test(referencedKey)) {
Expand Down Expand Up @@ -39,10 +39,10 @@ var ArraysPlugin = (defaultDelimiter = " ") => createPlugin("ArraysPlugin", matc
}
return [...arr, ...processReference(refParamK)];
}, []);
if (typeof delimiter === "string") {
return result.join(delimiter);
if (typeof separator === "string") {
return result.join(separator);
}
return delimiter(result, defaultDelimiter);
return separator(result, defaultSeparator);
function normalizeRefs(referenceMap, referenceKey) {
return Array.isArray(referenceMap[referenceKey]) ? referenceMap[referenceKey] : [referenceMap[referenceKey]];
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/arrays/dist/metafile-cjs.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"inputs":{"packages/plugins/arrays/src/index.ts":{"bytes":5840,"imports":[{"path":"intl-schematic","kind":"import-statement","external":true},{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"packages/plugins/arrays/dist/index.cjs":{"imports":[{"path":"intl-schematic/plugins","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/plugins/arrays/src/index.ts","inputs":{"packages/plugins/arrays/src/index.ts":{"bytesInOutput":2283}},"bytes":3123}}}
{"inputs":{"packages/plugins/arrays/src/index.ts":{"bytes":5879,"imports":[{"path":"intl-schematic","kind":"import-statement","external":true},{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"packages/plugins/arrays/dist/index.cjs":{"imports":[{"path":"intl-schematic/plugins","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/plugins/arrays/src/index.ts","inputs":{"packages/plugins/arrays/src/index.ts":{"bytesInOutput":2283}},"bytes":3123}}}
2 changes: 1 addition & 1 deletion packages/plugins/arrays/dist/metafile-esm.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"inputs":{"packages/plugins/arrays/src/index.ts":{"bytes":5840,"imports":[{"path":"intl-schematic","kind":"import-statement","external":true},{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"packages/plugins/arrays/dist/index.js":{"imports":[{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"exports":["ArraysPlugin"],"entryPoint":"packages/plugins/arrays/src/index.ts","inputs":{"packages/plugins/arrays/src/index.ts":{"bytesInOutput":2133}},"bytes":2200}}}
{"inputs":{"packages/plugins/arrays/src/index.ts":{"bytes":5879,"imports":[{"path":"intl-schematic","kind":"import-statement","external":true},{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"packages/plugins/arrays/dist/index.js":{"imports":[{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"exports":["ArraysPlugin"],"entryPoint":"packages/plugins/arrays/src/index.ts","inputs":{"packages/plugins/arrays/src/index.ts":{"bytesInOutput":2133}},"bytes":2200}}}
2 changes: 1 addition & 1 deletion packages/plugins/arrays/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion packages/plugins/defaults/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion packages/plugins/functions/dist/metafile-cjs.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"inputs":{"packages/plugins/functions/src/index.ts":{"bytes":676,"imports":[{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"packages/plugins/functions/dist/index.cjs":{"imports":[{"path":"intl-schematic/plugins","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/plugins/functions/src/index.ts","inputs":{"packages/plugins/functions/src/index.ts":{"bytesInOutput":395}},"bytes":1238}}}
{"inputs":{"packages/plugins/functions/src/index.ts":{"bytes":682,"imports":[{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"packages/plugins/functions/dist/index.cjs":{"imports":[{"path":"intl-schematic/plugins","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/plugins/functions/src/index.ts","inputs":{"packages/plugins/functions/src/index.ts":{"bytesInOutput":395}},"bytes":1238}}}
2 changes: 1 addition & 1 deletion packages/plugins/functions/dist/metafile-esm.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"inputs":{"packages/plugins/functions/src/index.ts":{"bytes":676,"imports":[{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"packages/plugins/functions/dist/index.js":{"imports":[{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"exports":["FunctionsPlugin"],"entryPoint":"packages/plugins/functions/src/index.ts","inputs":{"packages/plugins/functions/src/index.ts":{"bytesInOutput":239}},"bytes":312}}}
{"inputs":{"packages/plugins/functions/src/index.ts":{"bytes":682,"imports":[{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"packages/plugins/functions/dist/index.js":{"imports":[{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"exports":["FunctionsPlugin"],"entryPoint":"packages/plugins/functions/src/index.ts","inputs":{"packages/plugins/functions/src/index.ts":{"bytesInOutput":239}},"bytes":312}}}
2 changes: 1 addition & 1 deletion packages/plugins/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion packages/plugins/locale/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion packages/plugins/nested/dist/metafile-cjs.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"inputs":{"packages/plugins/nested/src/index.ts":{"bytes":1681,"imports":[{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"packages/plugins/nested/dist/index.cjs":{"imports":[{"path":"intl-schematic/plugins","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/plugins/nested/src/index.ts","inputs":{"packages/plugins/nested/src/index.ts":{"bytesInOutput":731}},"bytes":1571}}}
{"inputs":{"packages/plugins/nested/src/index.ts":{"bytes":1690,"imports":[{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"packages/plugins/nested/dist/index.cjs":{"imports":[{"path":"intl-schematic/plugins","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/plugins/nested/src/index.ts","inputs":{"packages/plugins/nested/src/index.ts":{"bytesInOutput":731}},"bytes":1571}}}
2 changes: 1 addition & 1 deletion packages/plugins/nested/dist/metafile-esm.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"inputs":{"packages/plugins/nested/src/index.ts":{"bytes":1681,"imports":[{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"packages/plugins/nested/dist/index.js":{"imports":[{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"exports":["NestedKeysPlugin"],"entryPoint":"packages/plugins/nested/src/index.ts","inputs":{"packages/plugins/nested/src/index.ts":{"bytesInOutput":573}},"bytes":644}}}
{"inputs":{"packages/plugins/nested/src/index.ts":{"bytes":1690,"imports":[{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"packages/plugins/nested/dist/index.js":{"imports":[{"path":"intl-schematic/plugins","kind":"import-statement","external":true}],"exports":["NestedKeysPlugin"],"entryPoint":"packages/plugins/nested/src/index.ts","inputs":{"packages/plugins/nested/src/index.ts":{"bytesInOutput":573}},"bytes":644}}}
2 changes: 1 addition & 1 deletion packages/plugins/nested/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion packages/plugins/processors/dist/metafile-cjs.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"inputs":{"packages/plugins/processors/src/intl/_cache.ts":{"bytes":3110,"imports":[],"format":"esm"},"packages/plugins/processors/src/intl/date.ts":{"bytes":420,"imports":[{"path":"packages/plugins/processors/src/intl/_cache.ts","kind":"import-statement","original":"./_cache"}],"format":"esm"},"packages/plugins/processors/src/intl/display.ts":{"bytes":829,"imports":[{"path":"packages/plugins/processors/src/intl/_cache.ts","kind":"import-statement","original":"./_cache"}],"format":"esm"},"packages/plugins/processors/src/intl/number.ts":{"bytes":451,"imports":[{"path":"packages/plugins/processors/src/intl/_cache.ts","kind":"import-statement","original":"./_cache"}],"format":"esm"},"packages/plugins/processors/src/intl/plural.ts":{"bytes":600,"imports":[],"format":"esm"},"packages/plugins/processors/src/default.ts":{"bytes":751,"imports":[{"path":"packages/plugins/processors/src/intl/date.ts","kind":"import-statement","original":"./intl/date"},{"path":"packages/plugins/processors/src/intl/display.ts","kind":"import-statement","original":"./intl/display"},{"path":"packages/plugins/processors/src/intl/number.ts","kind":"import-statement","original":"./intl/number"},{"path":"packages/plugins/processors/src/intl/plural.ts","kind":"import-statement","original":"./intl/plural"},{"path":"packages/plugins/processors/src/intl/_cache.ts","kind":"import-statement","original":"./intl/_cache"}],"format":"esm"},"packages/plugins/processors/src/dictionary.ts":{"bytes":1612,"imports":[{"path":"./plugin-core","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/processors/src/plugin-core.ts":{"bytes":2222,"imports":[{"path":"intl-schematic","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/processors/src/index.ts":{"bytes":4889,"imports":[{"path":"intl-schematic","kind":"import-statement","external":true},{"path":"intl-schematic/plugins","kind":"import-statement","external":true},{"path":"packages/plugins/processors/src/plugin-core.ts","kind":"import-statement","original":"./plugin-core"},{"path":"packages/plugins/processors/src/plugin-core.ts","kind":"import-statement","original":"./plugin-core"}],"format":"esm"}},"outputs":{"packages/plugins/processors/dist/default.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/default.ts","inputs":{"packages/plugins/processors/src/default.ts":{"bytesInOutput":561},"packages/plugins/processors/src/intl/_cache.ts":{"bytesInOutput":1037},"packages/plugins/processors/src/intl/date.ts":{"bytesInOutput":76},"packages/plugins/processors/src/intl/display.ts":{"bytesInOutput":324},"packages/plugins/processors/src/intl/number.ts":{"bytesInOutput":58},"packages/plugins/processors/src/intl/plural.ts":{"bytesInOutput":250}},"bytes":3453},"packages/plugins/processors/dist/dictionary.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/dictionary.ts","inputs":{"packages/plugins/processors/src/dictionary.ts":{"bytesInOutput":635}},"bytes":1484},"packages/plugins/processors/dist/index.cjs":{"imports":[{"path":"intl-schematic/plugins","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/plugins/processors/src/index.ts","inputs":{"packages/plugins/processors/src/index.ts":{"bytesInOutput":2347},"packages/plugins/processors/src/plugin-core.ts":{"bytesInOutput":209}},"bytes":3496},"packages/plugins/processors/dist/plugin-core.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/plugin-core.ts","inputs":{"packages/plugins/processors/src/plugin-core.ts":{"bytesInOutput":382}},"bytes":1232},"packages/plugins/processors/dist/intl/date.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/intl/date.ts","inputs":{"packages/plugins/processors/src/intl/date.ts":{"bytesInOutput":204},"packages/plugins/processors/src/intl/_cache.ts":{"bytesInOutput":1037}},"bytes":2189},"packages/plugins/processors/dist/intl/display.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/intl/display.ts","inputs":{"packages/plugins/processors/src/intl/display.ts":{"bytesInOutput":465},"packages/plugins/processors/src/intl/_cache.ts":{"bytesInOutput":1037}},"bytes":2456},"packages/plugins/processors/dist/intl/number.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/intl/number.ts","inputs":{"packages/plugins/processors/src/intl/number.ts":{"bytesInOutput":196},"packages/plugins/processors/src/intl/_cache.ts":{"bytesInOutput":1037}},"bytes":2185},"packages/plugins/processors/dist/intl/plural.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/intl/plural.ts","inputs":{"packages/plugins/processors/src/intl/plural.ts":{"bytesInOutput":386}},"bytes":1236},"packages/plugins/processors/dist/intl/_cache.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/intl/_cache.ts","inputs":{"packages/plugins/processors/src/intl/_cache.ts":{"bytesInOutput":1168}},"bytes":2018}}}
{"inputs":{"packages/plugins/processors/src/intl/_cache.ts":{"bytes":3110,"imports":[],"format":"esm"},"packages/plugins/processors/src/intl/date.ts":{"bytes":420,"imports":[{"path":"packages/plugins/processors/src/intl/_cache.ts","kind":"import-statement","original":"./_cache"}],"format":"esm"},"packages/plugins/processors/src/intl/display.ts":{"bytes":829,"imports":[{"path":"packages/plugins/processors/src/intl/_cache.ts","kind":"import-statement","original":"./_cache"}],"format":"esm"},"packages/plugins/processors/src/intl/number.ts":{"bytes":451,"imports":[{"path":"packages/plugins/processors/src/intl/_cache.ts","kind":"import-statement","original":"./_cache"}],"format":"esm"},"packages/plugins/processors/src/intl/plural.ts":{"bytes":600,"imports":[],"format":"esm"},"packages/plugins/processors/src/default.ts":{"bytes":751,"imports":[{"path":"packages/plugins/processors/src/intl/date.ts","kind":"import-statement","original":"./intl/date"},{"path":"packages/plugins/processors/src/intl/display.ts","kind":"import-statement","original":"./intl/display"},{"path":"packages/plugins/processors/src/intl/number.ts","kind":"import-statement","original":"./intl/number"},{"path":"packages/plugins/processors/src/intl/plural.ts","kind":"import-statement","original":"./intl/plural"},{"path":"packages/plugins/processors/src/intl/_cache.ts","kind":"import-statement","original":"./intl/_cache"}],"format":"esm"},"packages/plugins/processors/src/dictionary.ts":{"bytes":1612,"imports":[{"path":"./plugin-core","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/processors/src/plugin-core.ts":{"bytes":2222,"imports":[{"path":"intl-schematic","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/processors/src/index.ts":{"bytes":4916,"imports":[{"path":"intl-schematic","kind":"import-statement","external":true},{"path":"intl-schematic/plugins","kind":"import-statement","external":true},{"path":"packages/plugins/processors/src/plugin-core.ts","kind":"import-statement","original":"./plugin-core"},{"path":"packages/plugins/processors/src/plugin-core.ts","kind":"import-statement","original":"./plugin-core"}],"format":"esm"}},"outputs":{"packages/plugins/processors/dist/default.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/default.ts","inputs":{"packages/plugins/processors/src/default.ts":{"bytesInOutput":561},"packages/plugins/processors/src/intl/_cache.ts":{"bytesInOutput":1037},"packages/plugins/processors/src/intl/date.ts":{"bytesInOutput":76},"packages/plugins/processors/src/intl/display.ts":{"bytesInOutput":324},"packages/plugins/processors/src/intl/number.ts":{"bytesInOutput":58},"packages/plugins/processors/src/intl/plural.ts":{"bytesInOutput":250}},"bytes":3453},"packages/plugins/processors/dist/dictionary.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/dictionary.ts","inputs":{"packages/plugins/processors/src/dictionary.ts":{"bytesInOutput":635}},"bytes":1484},"packages/plugins/processors/dist/index.cjs":{"imports":[{"path":"intl-schematic/plugins","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/plugins/processors/src/index.ts","inputs":{"packages/plugins/processors/src/index.ts":{"bytesInOutput":2347},"packages/plugins/processors/src/plugin-core.ts":{"bytesInOutput":209}},"bytes":3496},"packages/plugins/processors/dist/plugin-core.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/plugin-core.ts","inputs":{"packages/plugins/processors/src/plugin-core.ts":{"bytesInOutput":382}},"bytes":1232},"packages/plugins/processors/dist/intl/date.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/intl/date.ts","inputs":{"packages/plugins/processors/src/intl/date.ts":{"bytesInOutput":204},"packages/plugins/processors/src/intl/_cache.ts":{"bytesInOutput":1037}},"bytes":2189},"packages/plugins/processors/dist/intl/display.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/intl/display.ts","inputs":{"packages/plugins/processors/src/intl/display.ts":{"bytesInOutput":465},"packages/plugins/processors/src/intl/_cache.ts":{"bytesInOutput":1037}},"bytes":2456},"packages/plugins/processors/dist/intl/number.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/intl/number.ts","inputs":{"packages/plugins/processors/src/intl/number.ts":{"bytesInOutput":196},"packages/plugins/processors/src/intl/_cache.ts":{"bytesInOutput":1037}},"bytes":2185},"packages/plugins/processors/dist/intl/plural.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/intl/plural.ts","inputs":{"packages/plugins/processors/src/intl/plural.ts":{"bytesInOutput":386}},"bytes":1236},"packages/plugins/processors/dist/intl/_cache.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/processors/src/intl/_cache.ts","inputs":{"packages/plugins/processors/src/intl/_cache.ts":{"bytesInOutput":1168}},"bytes":2018}}}
Loading

0 comments on commit ee2fb54

Please sign in to comment.