UNPKG

n8n-nodes-zalo-nnt

Version:

Unofficial Zalo integration for n8n - Send messages, manage groups, user operations with QR login. No API key required, works via browser simulation.

22 lines 786 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateNonEmptyString = validateNonEmptyString; exports.validatePositiveInt = validatePositiveInt; exports.parseCommaList = parseCommaList; function validateNonEmptyString(value, fieldName) { if (!value || value.trim().length === 0) { throw new Error(`${fieldName} is required and must be a non-empty string`); } } function validatePositiveInt(value, fieldName) { if (!Number.isInteger(value) || value <= 0) { throw new Error(`${fieldName} phải là số nguyên dương, nhận được: ${value}`); } } function parseCommaList(raw) { return raw .split(',') .map((v) => v.trim()) .filter((v) => v); } //# sourceMappingURL=validator.js.map