MCPcopy Create free account
hub / github.com/TruthHun/BookStack / ZipObject

Function ZipObject

static/word2md/mammoth.browser.js:12750–12770  ·  view source on GitHub ↗
(name, data, options)

Source from the content-addressed store, hash-verified

12748 * @param {Object} options the options of the file
12749 */
12750var ZipObject = function(name, data, options) {
12751 this.name = name;
12752 this.dir = options.dir;
12753 this.date = options.date;
12754 this.comment = options.comment;
12755 this.unixPermissions = options.unixPermissions;
12756 this.dosPermissions = options.dosPermissions;
12757
12758 this._data = data;
12759 this.options = options;
12760
12761 /*
12762 * This object contains initial values for dir and date.
12763 * With them, we can check if the user changed the deprecated metadata in
12764 * `ZipObject#options` or not.
12765 */
12766 this._initialMetadata = {
12767 dir : options.dir,
12768 date : options.date
12769 };
12770};
12771
12772ZipObject.prototype = {
12773 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected