Files
klz-cables.com/.pnpm-store/v10/files/b5/534347dd7f3eca0d6ce96afcbd5be6b4c2048418fb7849fc27dc52a5219e0039c420fb0b3adb7a9aba5090393678e91544c29b6830eb09d0ccea5e300a4541
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

31 lines
1.1 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GraphQLNegativeFloat = void 0;
const graphql_1 = require("graphql");
const error_js_1 = require("../error.js");
const utilities_js_1 = require("./utilities.js");
exports.GraphQLNegativeFloat = new graphql_1.GraphQLScalarType({
name: 'NegativeFloat',
description: 'Floats that will have a value less than 0.',
serialize(value) {
return (0, utilities_js_1.processValue)(value, 'NegativeFloat');
},
parseValue(value) {
return (0, utilities_js_1.processValue)(value, 'NegativeFloat');
},
parseLiteral(ast) {
if (ast.kind !== graphql_1.Kind.FLOAT && ast.kind !== graphql_1.Kind.INT) {
throw (0, error_js_1.createGraphQLError)(`Can only validate floating point numbers as negative floating point numbers but got a: ${ast.kind}`, { nodes: ast });
}
return (0, utilities_js_1.processValue)(ast.value, 'NegativeFloat');
},
extensions: {
codegenScalarType: 'number',
jsonSchema: {
title: 'NegativeFloat',
type: 'number',
maximum: 0,
},
},
});