REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.96 KB
Close
/proc/self/root/opt/alt/alt-nodejs20/root/usr/lib/node_modules/npm/node_modules/@tufjs/models/dist/timestamp.js
Text
Base64
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Timestamp = void 0; const base_1 = require("./base"); const file_1 = require("./file"); const utils_1 = require("./utils"); /** * A container for the signed part of timestamp metadata. * * A top-level that specifies the latest version of the snapshot role metadata file, * and hence the latest versions of all metadata and targets on the repository. */ class Timestamp extends base_1.Signed { constructor(options) { super(options); this.type = base_1.MetadataKind.Timestamp; this.snapshotMeta = options.snapshotMeta || new file_1.MetaFile({ version: 1 }); } equals(other) { if (!(other instanceof Timestamp)) { return false; } return super.equals(other) && this.snapshotMeta.equals(other.snapshotMeta); } toJSON() { return { _type: this.type, spec_version: this.specVersion, version: this.version, expires: this.expires, meta: { 'snapshot.json': this.snapshotMeta.toJSON() }, ...this.unrecognizedFields, }; } static fromJSON(data) { const { unrecognizedFields, ...commonFields } = base_1.Signed.commonFieldsFromJSON(data); const { meta, ...rest } = unrecognizedFields; return new Timestamp({ ...commonFields, snapshotMeta: snapshotMetaFromJSON(meta), unrecognizedFields: rest, }); } } exports.Timestamp = Timestamp; function snapshotMetaFromJSON(data) { let snapshotMeta; if (utils_1.guard.isDefined(data)) { const snapshotData = data['snapshot.json']; if (!utils_1.guard.isDefined(snapshotData) || !utils_1.guard.isObject(snapshotData)) { throw new TypeError('missing snapshot.json in meta'); } else { snapshotMeta = file_1.MetaFile.fromJSON(snapshotData); } } return snapshotMeta; }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 13
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
utils
DIR
-
drwxr-xr-x
2026-03-14 07:02:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
base.js
3.18 KB
lrw-r--r--
2026-02-23 03:24:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
delegations.js
3.87 KB
lrw-r--r--
2026-02-23 03:24:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
error.js
1.19 KB
lrw-r--r--
2026-02-23 03:24:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
file.js
6.46 KB
lrw-r--r--
2026-02-23 03:24:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
1.86 KB
lrw-r--r--
2026-02-23 03:24:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
key.js
3.08 KB
lrw-r--r--
2026-02-23 03:24:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
metadata.js
6.10 KB
lrw-r--r--
2026-02-23 03:24:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
role.js
11.00 KB
lrw-r--r--
2026-02-23 03:24:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
root.js
4.10 KB
lrw-r--r--
2026-02-23 03:24:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
signature.js
1018 B
lrw-r--r--
2026-02-23 03:24:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
snapshot.js
2.34 KB
lrw-r--r--
2026-02-23 03:24:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
targets.js
2.99 KB
lrw-r--r--
2026-02-23 03:24:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
timestamp.js
1.96 KB
lrw-r--r--
2026-02-23 03:24:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).