UNPKG

photo

Version:

Photo/video library management toolset.

32 lines (31 loc) 1.44 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.File = void 0; var mediafile_metadata_1 = require("mediafile-metadata"); var entry_1 = require("./entry"); var lazy_1 = require("./lazy"); var File = /** @class */ (function (_super) { __extends(File, _super); function File(entry) { var _this = _super.call(this, entry.path, entry.name, entry.fullName, entry.lowercasedExtension, entry.parent, entry.stats) || this; _this.metadata = new lazy_1.Lazy(function () { return (0, mediafile_metadata_1.getEssentials)(entry.fullName); }); return _this; } return File; }(entry_1.Entry)); exports.File = File;