UNPKG

@platform/cell.schema

Version:

URI and database schemas for the `cell.os`.

18 lines (17 loc) 643 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ManifestFiles = void 0; var tslib_1 = require("tslib"); var compare_1 = require("./compare"); var ManifestHash_1 = require("../ManifestHash"); exports.ManifestFiles = { hash: ManifestHash_1.ManifestHash.files, compare: compare_1.naturalCompare, sort: function (items) { if (items.length === 0) return []; return tslib_1.__spreadArray([], items, true).sort(function (a, b) { return (0, compare_1.naturalCompare)(typeof a === 'string' ? a : a.path, typeof b === 'string' ? b : b.path); }); }, };