"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.serializeFetchParameter = void 0;
const invariant_1 = require("@apollo/client/utilities/invariant");
const serializeFetchParameter = (p, label) => {
    let serialized;
    try {
        serialized = JSON.stringify(p);
    }
    catch (e) {
        const parseError = (0, invariant_1.newInvariantError)(55, label, e.message);
        parseError.parseError = e;
        throw parseError;
    }
    return serialized;
};
exports.serializeFetchParameter = serializeFetchParameter;
//# sourceMappingURL=serializeFetchParameter.cjs.map
