-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f60a7e
commit cb45b21
Showing
91 changed files
with
1,921 additions
and
1,718 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 GitHub and the TUF Contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...dules/tuf-js/dist/models/delegations.d.ts → ...dules/@tufjs/models/dist/delegations.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export declare class ValueError extends Error { | ||
} | ||
export declare class RepositoryError extends Error { | ||
} | ||
export declare class UnsignedMetadataError extends RepositoryError { | ||
} | ||
export declare class LengthOrHashMismatchError extends RepositoryError { | ||
} | ||
export declare class CryptoError extends Error { | ||
} | ||
export declare class UnsupportedAlgorithmError extends CryptoError { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UnsupportedAlgorithmError = exports.CryptoError = exports.LengthOrHashMismatchError = exports.UnsignedMetadataError = exports.RepositoryError = exports.ValueError = void 0; | ||
// An error about insufficient values | ||
class ValueError extends Error { | ||
} | ||
exports.ValueError = ValueError; | ||
// An error with a repository's state, such as a missing file. | ||
// It covers all exceptions that come from the repository side when | ||
// looking from the perspective of users of metadata API or ngclient. | ||
class RepositoryError extends Error { | ||
} | ||
exports.RepositoryError = RepositoryError; | ||
// An error about metadata object with insufficient threshold of signatures. | ||
class UnsignedMetadataError extends RepositoryError { | ||
} | ||
exports.UnsignedMetadataError = UnsignedMetadataError; | ||
// An error while checking the length and hash values of an object. | ||
class LengthOrHashMismatchError extends RepositoryError { | ||
} | ||
exports.LengthOrHashMismatchError = LengthOrHashMismatchError; | ||
class CryptoError extends Error { | ||
} | ||
exports.CryptoError = CryptoError; | ||
class UnsupportedAlgorithmError extends CryptoError { | ||
} | ||
exports.UnsupportedAlgorithmError = UnsupportedAlgorithmError; |
2 changes: 1 addition & 1 deletion
2
node_modules/tuf-js/dist/models/file.d.ts → node_modules/@tufjs/models/dist/file.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export { MetadataKind } from './base'; | ||
export { ValueError } from './error'; | ||
export { MetaFile, TargetFile } from './file'; | ||
export { Key } from './key'; | ||
export { Metadata } from './metadata'; | ||
export { Root } from './root'; | ||
export { Signature } from './signature'; | ||
export { Snapshot } from './snapshot'; | ||
export { Targets } from './targets'; | ||
export { Timestamp } from './timestamp'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Timestamp = exports.Targets = exports.Snapshot = exports.Signature = exports.Root = exports.Metadata = exports.Key = exports.TargetFile = exports.MetaFile = exports.ValueError = exports.MetadataKind = void 0; | ||
var base_1 = require("./base"); | ||
Object.defineProperty(exports, "MetadataKind", { enumerable: true, get: function () { return base_1.MetadataKind; } }); | ||
var error_1 = require("./error"); | ||
Object.defineProperty(exports, "ValueError", { enumerable: true, get: function () { return error_1.ValueError; } }); | ||
var file_1 = require("./file"); | ||
Object.defineProperty(exports, "MetaFile", { enumerable: true, get: function () { return file_1.MetaFile; } }); | ||
Object.defineProperty(exports, "TargetFile", { enumerable: true, get: function () { return file_1.TargetFile; } }); | ||
var key_1 = require("./key"); | ||
Object.defineProperty(exports, "Key", { enumerable: true, get: function () { return key_1.Key; } }); | ||
var metadata_1 = require("./metadata"); | ||
Object.defineProperty(exports, "Metadata", { enumerable: true, get: function () { return metadata_1.Metadata; } }); | ||
var root_1 = require("./root"); | ||
Object.defineProperty(exports, "Root", { enumerable: true, get: function () { return root_1.Root; } }); | ||
var signature_1 = require("./signature"); | ||
Object.defineProperty(exports, "Signature", { enumerable: true, get: function () { return signature_1.Signature; } }); | ||
var snapshot_1 = require("./snapshot"); | ||
Object.defineProperty(exports, "Snapshot", { enumerable: true, get: function () { return snapshot_1.Snapshot; } }); | ||
var targets_1 = require("./targets"); | ||
Object.defineProperty(exports, "Targets", { enumerable: true, get: function () { return targets_1.Targets; } }); | ||
var timestamp_1 = require("./timestamp"); | ||
Object.defineProperty(exports, "Timestamp", { enumerable: true, get: function () { return timestamp_1.Timestamp; } }); |
2 changes: 1 addition & 1 deletion
2
node_modules/tuf-js/dist/models/key.d.ts → node_modules/@tufjs/models/dist/key.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.