graphql-extra-scalars
Version:
Collection of extra GraphQL scalar types like Email, URL, Password and more
13 lines (12 loc) • 641 B
JavaScript
;
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const factory = __importStar(require("../factory"));
const GraphQLIPv4 = factory.createRegexScalar('IPv4', 'The IPv4 scalar type represents a IPv4.', /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/u);
exports.GraphQLIPv4 = GraphQLIPv4;