verdaccio
Version:
A lightweight private npm proxy registry
19 lines (14 loc) • 1.19 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.formatLoggingDate = formatLoggingDate;
exports.FORMAT_DATE = void 0;
var _dayjs = _interopRequireDefault(require("dayjs"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const FORMAT_DATE = 'YYYY-MM-DD HH:mm:ss';
exports.FORMAT_DATE = FORMAT_DATE;
function formatLoggingDate(time) {
return (0, _dayjs.default)(time).format(FORMAT_DATE);
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvbG9nZ2VyL3V0aWxzLnRzIl0sIm5hbWVzIjpbIkZPUk1BVF9EQVRFIiwiZm9ybWF0TG9nZ2luZ0RhdGUiLCJ0aW1lIiwiZm9ybWF0Il0sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBOzs7O0FBRU8sTUFBTUEsV0FBVyxHQUFHLHFCQUFwQjs7O0FBRUEsU0FBU0MsaUJBQVQsQ0FBMkJDLElBQTNCLEVBQWlEO0FBQ3RELFNBQU8sb0JBQU1BLElBQU4sRUFBWUMsTUFBWixDQUFtQkgsV0FBbkIsQ0FBUDtBQUNEIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IGRheWpzIGZyb20gJ2RheWpzJztcblxuZXhwb3J0IGNvbnN0IEZPUk1BVF9EQVRFID0gJ1lZWVktTU0tREQgSEg6bW06c3MnO1xuXG5leHBvcnQgZnVuY3Rpb24gZm9ybWF0TG9nZ2luZ0RhdGUodGltZTogc3RyaW5nKTogc3RyaW5nIHtcbiAgcmV0dXJuIGRheWpzKHRpbWUpLmZvcm1hdChGT1JNQVRfREFURSk7XG59XG4iXX0=
;