UNPKG

kubo-rpc-client-esm-cjs

Version:
23 lines 794 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.objectToCamelWithMetadata = void 0; const object_to_camel_js_1 = require("./object-to-camel.js"); /** * @param {Record<string, any>} entry */ function objectToCamelWithMetadata(entry) { const file = (0, object_to_camel_js_1.objectToCamel)(entry); if (Object.prototype.hasOwnProperty.call(file, 'mode')) { file.mode = parseInt(file.mode, 8); } if (Object.prototype.hasOwnProperty.call(file, 'mtime')) { file.mtime = { secs: file.mtime, nsecs: file.mtimeNsecs || 0 }; delete file.mtimeNsecs; } return file; } exports.objectToCamelWithMetadata = objectToCamelWithMetadata; //# sourceMappingURL=object-to-camel-with-metadata.js.map