n8n-nodes-arubaclearpass
Version:
n8n community node for Aruba ClearPass API integration with comprehensive identity, policy, and enforcement profile management
18 lines (17 loc) • 463 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatResponse = formatResponse;
/**
* Format the API response data into n8n node execution data
*/
function formatResponse(responseData) {
if (!responseData) {
return [{ json: { success: true } }];
}
if (!Array.isArray(responseData)) {
return [{ json: responseData }];
}
return responseData.map((item) => ({
json: item,
}));
}