diff --git a/dist/index.js b/dist/index.js index b5d3e9c..4a618a1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -29397,7 +29397,7 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getRef = void 0; -const v = __importStar(__nccwpck_require__(8883)); +const v = __importStar(__nccwpck_require__(5238)); const schema_1 = __nccwpck_require__(3731); const utils_1 = __nccwpck_require__(1356); const getRef = ({ eventName, payload }) => { @@ -29460,7 +29460,7 @@ exports.getRef = getRef; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.NullableStringSchema = exports.OptionalStringSchema = exports.StringSchema = void 0; -const valibot_1 = __nccwpck_require__(8883); +const valibot_1 = __nccwpck_require__(5238); exports.StringSchema = (0, valibot_1.string)(); exports.OptionalStringSchema = (0, valibot_1.optional)((0, valibot_1.string)()); exports.NullableStringSchema = (0, valibot_1.nullable)((0, valibot_1.string)()); @@ -31317,7 +31317,7 @@ module.exports = parseParams /***/ }), -/***/ 8883: +/***/ 5238: /***/ ((module) => { "use strict"; @@ -31347,6 +31347,7 @@ __export(src_exports, { BIC_REGEX: () => BIC_REGEX, CUID2_REGEX: () => CUID2_REGEX, DECIMAL_REGEX: () => DECIMAL_REGEX, + DIGITS_REGEX: () => DIGITS_REGEX, EMAIL_REGEX: () => EMAIL_REGEX, EMOJI_REGEX: () => EMOJI_REGEX, HEXADECIMAL_REGEX: () => HEXADECIMAL_REGEX, @@ -31400,6 +31401,7 @@ __export(src_exports, { deleteSchemaMessage: () => deleteSchemaMessage, deleteSpecificMessage: () => deleteSpecificMessage, description: () => description, + digits: () => digits, email: () => email, emoji: () => emoji, empty: () => empty, @@ -31472,6 +31474,7 @@ __export(src_exports, { maxLength: () => maxLength, maxSize: () => maxSize, maxValue: () => maxValue, + metadata: () => metadata, mimeType: () => mimeType, minBytes: () => minBytes, minLength: () => minLength, @@ -31553,6 +31556,7 @@ __export(src_exports, { strictTupleAsync: () => strictTupleAsync, string: () => string, symbol: () => symbol, + title: () => title, toLowerCase: () => toLowerCase, toMaxValue: () => toMaxValue, toMinValue: () => toMinValue, @@ -31603,7 +31607,8 @@ function awaitAsync() { var BASE64_REGEX = /^(?:[\da-z+/]{4})*(?:[\da-z+/]{2}==|[\da-z+/]{3}=)?$/iu; var BIC_REGEX = /^[A-Z]{6}(?!00)[\dA-Z]{2}(?:[\dA-Z]{3})?$/u; var CUID2_REGEX = /^[a-z][\da-z]*$/u; -var DECIMAL_REGEX = /^\d+$/u; +var DECIMAL_REGEX = /^[+-]?\d+(?:\.\d+)?$/u; +var DIGITS_REGEX = /^\d+$/u; var EMAIL_REGEX = /^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu; var EMOJI_REGEX = ( // eslint-disable-next-line redos-detector/no-unsafe-regex, regexp/no-dupe-disjunctions -- false positives @@ -32071,6 +32076,25 @@ function description(description_) { }; } +// src/actions/digits/digits.ts +function digits(message) { + return { + kind: "validation", + type: "digits", + reference: digits, + async: false, + expects: null, + requirement: DIGITS_REGEX, + message, + _run(dataset, config2) { + if (dataset.typed && !this.requirement.test(dataset.value)) { + _addIssue(this, "digits", dataset, config2); + } + return dataset; + } + }; +} + // src/actions/email/email.ts function email(message) { return { @@ -32727,6 +32751,16 @@ function maxValue(requirement, message) { }; } +// src/actions/metadata/metadata.ts +function metadata(metadata_) { + return { + kind: "metadata", + type: "metadata", + reference: metadata, + metadata: metadata_ + }; +} + // src/actions/mimeType/mimeType.ts function mimeType(requirement, message) { return { @@ -33308,6 +33342,16 @@ function startsWith(requirement, message) { }; } +// src/actions/title/title.ts +function title(title_) { + return { + kind: "metadata", + type: "title", + reference: title, + title: title_ + }; +} + // src/actions/toLowerCase/toLowerCase.ts function toLowerCase() { return { diff --git a/package.json b/package.json index 2b8b21b..ce6667a 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "dependencies": { "@actions/core": "1.10.1", "@actions/github": "6.0.0", - "valibot": "0.41.0" + "valibot": "0.42.0" }, "devDependencies": { "@eslint/js": "9.10.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 77ac64b..8300184 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: 6.0.0 version: 6.0.0 valibot: - specifier: 0.41.0 - version: 0.41.0(typescript@5.6.2) + specifier: 0.42.0 + version: 0.42.0(typescript@5.6.2) devDependencies: '@eslint/js': specifier: 9.10.0 @@ -1909,8 +1909,8 @@ packages: resolution: {integrity: sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==} engines: {node: '>=10.12.0'} - valibot@0.41.0: - resolution: {integrity: sha512-igDBb8CTYr8YTQlOKgaN9nSS0Be7z+WRuaeYqGf3Cjz3aKmSnqEmYnkfVjzIuumGqfHpa3fLIvMEAfhrpqN8ng==} + valibot@0.42.0: + resolution: {integrity: sha512-igMdmHXxDiQY714ssh9bGisMqJ2yg7sko1KOmv/omnrIacGtP6mGrbvVT1IuV1bDrHyG9ybgpHwG1UElDiDCLg==} peerDependencies: typescript: '>=5' peerDependenciesMeta: @@ -4169,7 +4169,7 @@ snapshots: '@types/istanbul-lib-coverage': 2.0.6 convert-source-map: 2.0.0 - valibot@0.41.0(typescript@5.6.2): + valibot@0.42.0(typescript@5.6.2): optionalDependencies: typescript: 5.6.2