Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43179,7 +43179,7 @@ async function setupExperimentScripts(discovered, options) {
});
}

;// CONCATENATED MODULE: ./node_modules/.pnpm/valibot@1.4.1_typescript@6.0.3/node_modules/valibot/dist/index.mjs
;// CONCATENATED MODULE: ./node_modules/.pnpm/valibot@1.4.2_typescript@6.0.3/node_modules/valibot/dist/index.mjs
//#region src/storages/globalConfig/globalConfig.ts
let store$4;
const DEFAULT_CONFIG = {
Expand Down Expand Up @@ -43594,8 +43594,13 @@ let store;
/* @__NO_SIDE_EFFECTS__ */
function _getWordCount(locales, input) {
if (!store) store = /* @__PURE__ */ new Map();
if (!store.get(locales)) store.set(locales, new Intl.Segmenter(locales, { granularity: "word" }));
const segments = store.get(locales).segment(input);
const key = String(locales);
let segmenter$1 = store.get(key);
if (!segmenter$1) {
segmenter$1 = new Intl.Segmenter(locales, { granularity: "word" });
store.set(key, segmenter$1);
}
const segments = segmenter$1.segment(input);
let count = 0;
for (const segment of segments) if (segment.isWordLike) count++;
return count;
Expand Down Expand Up @@ -47121,7 +47126,7 @@ function flatten(issues) {
const dotPath = /* @__PURE__ */ getDotPath(issue);
if (dotPath) {
if (!flatErrors.nested) flatErrors.nested = {};
if (flatErrors.nested[dotPath]) flatErrors.nested[dotPath].push(issue.message);
if (Object.prototype.hasOwnProperty.call(flatErrors.nested, dotPath)) flatErrors.nested[dotPath].push(issue.message);
else flatErrors.nested[dotPath] = [issue.message];
} else if (flatErrors.other) flatErrors.other.push(issue.message);
else flatErrors.other = [issue.message];
Expand Down Expand Up @@ -47844,7 +47849,7 @@ function _merge(value1, value2) {
if (value1 === value2 || value1 instanceof Date && value2 instanceof Date && +value1 === +value2) return { value: value1 };
if (value1 && value2 && value1.constructor === Object && value2.constructor === Object) {
const nextValue = { ...value1 };
for (const key in value2) if (key in value1) {
for (const key in value2) if (Object.prototype.hasOwnProperty.call(value1, key)) {
const dataset = /* @__PURE__ */ _merge(value1[key], value2[key]);
if (dataset.issue) return dataset;
nextValue[key] = dataset.value;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,26 @@
"@actions/io": "^3.0.2",
"@octokit/plugin-retry": "^8.1.0",
"@octokit/plugin-throttling": "^11.0.3",
"valibot": "^1.4.1"
"valibot": "^1.4.2"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@langfuse/client": "5.7.0",
"@langfuse/client": "5.9.0",
"@types/node": "^26.0.1",
"@typescript-eslint/eslint-plugin": "^8.62.0",
"@typescript-eslint/parser": "^8.62.0",
"@valibot/to-json-schema": "1.7.1",
"@vercel/ncc": "^0.44.0",
"ajv": "^8.20.0",
"ajv-formats": "^3.0.1",
"eslint": "^10.5.0",
"eslint": "^10.6.0",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.5",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-prettier": "^5.5.6",
"eslint-plugin-sonarjs": "^4.1.0",
"husky": "^9.1.7",
"prettier": "^3.8.4",
"prettier": "^3.9.1",
"tsx": "^4.22.4",
"typescript": "^6.0.3",
"vite": "^8.1.0",
Expand Down
Loading
Loading