UNPKG

@flatfile/safe-api

Version:

Flatfile Safe API client with streaming capabilities

12 lines (11 loc) 358 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toSimpleRecord = toSimpleRecord; function toSimpleRecord(record) { return Object.fromEntries(Object.entries(record) .map(([k, v]) => [ k === "__k" ? "id" : k === "__m" ? "metadata" : k, v ]) .filter(([k]) => !k.startsWith("__"))); }