Skip to content

Commit

Permalink
deps: tuf-js@1.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Jun 19, 2023
1 parent aee4a30 commit bb6054b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion node_modules/tuf-js/dist/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ class Updater {
retries: this.config.fetchRetries,
});
}
// refresh and load the metadata before downloading the target
// refresh should be called once after the client is initialized
async refresh() {
await this.loadRoot();
await this.loadTimestamp();
Expand Down Expand Up @@ -102,7 +104,7 @@ class Updater {
}
try {
if (fs.existsSync(filePath)) {
targetInfo.verify(fs.createReadStream(filePath));
await targetInfo.verify(fs.createReadStream(filePath));
return filePath;
}
}
Expand Down
10 changes: 5 additions & 5 deletions node_modules/tuf-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tuf-js",
"version": "1.1.6",
"version": "1.1.7",
"description": "JavaScript implementation of The Update Framework (TUF)",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -29,16 +29,16 @@
"homepage": "https://github.com/theupdateframework/tuf-js/tree/main/packages/client#readme",
"devDependencies": {
"@tufjs/repo-mock": "1.3.1",
"@types/debug": "^4.1.7",
"@types/debug": "^4.1.8",
"@types/make-fetch-happen": "^10.0.1",
"@types/node": "^20.1.1",
"@types/node": "^20.2.5",
"nock": "^13.3.1",
"typescript": "^5.0.4"
"typescript": "^5.1.3"
},
"dependencies": {
"@tufjs/models": "1.0.4",
"debug": "^4.3.4",
"make-fetch-happen": "^11.1.0"
"make-fetch-happen": "^11.1.1"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14541,14 +14541,14 @@
}
},
"node_modules/tuf-js": {
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/tuf-js/-/tuf-js-1.1.6.tgz",
"integrity": "sha512-CXwFVIsXGbVY4vFiWF7TJKWmlKJAT8TWkH4RmiohJRcDJInix++F0dznDmoVbtJNzZ8yLprKUG4YrDIhv3nBMg==",
"version": "1.1.7",
"resolved": "https://registry.npmjs.org/tuf-js/-/tuf-js-1.1.7.tgz",
"integrity": "sha512-i3P9Kgw3ytjELUfpuKVDNBJvk4u5bXL6gskv572mcevPbSKCV3zt3djhmlEQ65yERjIbOSncy7U4cQJaB1CBCg==",
"inBundle": true,
"dependencies": {
"@tufjs/models": "1.0.4",
"debug": "^4.3.4",
"make-fetch-happen": "^11.1.0"
"make-fetch-happen": "^11.1.1"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
Expand Down

0 comments on commit bb6054b

Please sign in to comment.