Skip to content

Commit 284d1ea

Browse files
committed
deps: bump sigstore from 2.x to 3.0.0
Signed-off-by: Brian DeHamer <[email protected]>
1 parent 70cd88d commit 284d1ea

File tree

125 files changed

+3772
-207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+3772
-207
lines changed

node_modules/.gitignore

+20-11
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,23 @@
222222
!/shebang-regex
223223
!/signal-exit
224224
!/sigstore
225+
!/sigstore/node_modules/
226+
/sigstore/node_modules/*
227+
!/sigstore/node_modules/@npmcli/
228+
/sigstore/node_modules/@npmcli/*
229+
!/sigstore/node_modules/@npmcli/agent
230+
!/sigstore/node_modules/@npmcli/fs
231+
!/sigstore/node_modules/@sigstore/
232+
/sigstore/node_modules/@sigstore/*
233+
!/sigstore/node_modules/@sigstore/tuf
234+
!/sigstore/node_modules/cacache
235+
!/sigstore/node_modules/make-fetch-happen
236+
!/sigstore/node_modules/minipass-fetch
237+
!/sigstore/node_modules/proc-log
238+
!/sigstore/node_modules/ssri
239+
!/sigstore/node_modules/tuf-js
240+
!/sigstore/node_modules/unique-filename
241+
!/sigstore/node_modules/unique-slug
225242
!/smart-buffer
226243
!/socks-proxy-agent
227244
!/socks
@@ -253,17 +270,9 @@
253270
!/tuf-js
254271
!/tuf-js/node_modules/
255272
/tuf-js/node_modules/*
256-
!/tuf-js/node_modules/@npmcli/
257-
/tuf-js/node_modules/@npmcli/*
258-
!/tuf-js/node_modules/@npmcli/agent
259-
!/tuf-js/node_modules/@npmcli/fs
260-
!/tuf-js/node_modules/cacache
261-
!/tuf-js/node_modules/make-fetch-happen
262-
!/tuf-js/node_modules/minipass-fetch
263-
!/tuf-js/node_modules/proc-log
264-
!/tuf-js/node_modules/ssri
265-
!/tuf-js/node_modules/unique-filename
266-
!/tuf-js/node_modules/unique-slug
273+
!/tuf-js/node_modules/@tufjs/
274+
/tuf-js/node_modules/@tufjs/*
275+
!/tuf-js/node_modules/@tufjs/models
267276
!/unique-filename
268277
!/unique-slug
269278
!/util-deprecate

node_modules/@sigstore/tuf/dist/appdata.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
33
return (mod && mod.__esModule) ? mod : { "default": mod };
44
};
55
Object.defineProperty(exports, "__esModule", { value: true });
6-
exports.appDataPath = void 0;
6+
exports.appDataPath = appDataPath;
77
/*
88
Copyright 2023 The Sigstore Authors.
99
@@ -41,4 +41,3 @@ function appDataPath(name) {
4141
}
4242
}
4343
}
44-
exports.appDataPath = appDataPath;

node_modules/@sigstore/tuf/dist/client.js

-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ function seedCache({ cachePath, mirrorURL, tufRootPath, forceInit, }) {
7979
fs_1.default.copyFileSync(tufRootPath, cachedRootPath);
8080
}
8181
else {
82-
/* eslint-disable @typescript-eslint/no-var-requires */
8382
const seeds = require('../seeds.json');
8483
const repoSeed = seeds[mirrorURL];
8584
if (!repoSeed) {

node_modules/@sigstore/tuf/dist/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.TUFError = exports.initTUF = exports.getTrustedRoot = exports.DEFAULT_MIRROR_URL = void 0;
3+
exports.TUFError = exports.DEFAULT_MIRROR_URL = void 0;
4+
exports.getTrustedRoot = getTrustedRoot;
5+
exports.initTUF = initTUF;
46
/*
57
Copyright 2023 The Sigstore Authors.
68
@@ -31,14 +33,12 @@ options = {}) {
3133
const trustedRoot = await client.getTarget(TRUSTED_ROOT_TARGET);
3234
return protobuf_specs_1.TrustedRoot.fromJSON(JSON.parse(trustedRoot));
3335
}
34-
exports.getTrustedRoot = getTrustedRoot;
3536
async function initTUF(
3637
/* istanbul ignore next */
3738
options = {}) {
3839
const client = createClient(options);
3940
return client.refresh().then(() => client);
4041
}
41-
exports.initTUF = initTUF;
4242
// Create a TUF client with default options
4343
function createClient(options) {
4444
/* istanbul ignore next */

node_modules/@sigstore/tuf/dist/target.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
33
return (mod && mod.__esModule) ? mod : { "default": mod };
44
};
55
Object.defineProperty(exports, "__esModule", { value: true });
6-
exports.readTarget = void 0;
6+
exports.readTarget = readTarget;
77
/*
88
Copyright 2023 The Sigstore Authors.
99
@@ -39,7 +39,6 @@ async function readTarget(tuf, targetPath) {
3939
});
4040
});
4141
}
42-
exports.readTarget = readTarget;
4342
// Returns the local path to the specified target. If the target is not yet
4443
// cached locally, the provided TUF Updater will be used to download and
4544
// cache the target.

node_modules/@sigstore/tuf/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sigstore/tuf",
3-
"version": "2.3.4",
3+
"version": "3.0.0",
44
"description": "Client for the Sigstore TUF repository",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -28,14 +28,14 @@
2828
},
2929
"devDependencies": {
3030
"@sigstore/jest": "^0.0.0",
31-
"@tufjs/repo-mock": "^2.0.1",
31+
"@tufjs/repo-mock": "^3.0.1",
3232
"@types/make-fetch-happen": "^10.0.4"
3333
},
3434
"dependencies": {
3535
"@sigstore/protobuf-specs": "^0.3.2",
36-
"tuf-js": "^2.2.1"
36+
"tuf-js": "^3.0.1"
3737
},
3838
"engines": {
39-
"node": "^16.14.0 || >=18.0.0"
39+
"node": "^18.17.0 || >=20.5.0"
4040
}
4141
}

node_modules/@sigstore/tuf/seeds.json

+1-1
Large diffs are not rendered by default.

node_modules/rimraf/bin.js

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#!/usr/bin/env node
2+
3+
const rimraf = require('./')
4+
5+
const path = require('path')
6+
7+
const isRoot = arg => /^(\/|[a-zA-Z]:\\)$/.test(path.resolve(arg))
8+
const filterOutRoot = arg => {
9+
const ok = preserveRoot === false || !isRoot(arg)
10+
if (!ok) {
11+
console.error(`refusing to remove ${arg}`)
12+
console.error('Set --no-preserve-root to allow this')
13+
}
14+
return ok
15+
}
16+
17+
let help = false
18+
let dashdash = false
19+
let noglob = false
20+
let preserveRoot = true
21+
const args = process.argv.slice(2).filter(arg => {
22+
if (dashdash)
23+
return !!arg
24+
else if (arg === '--')
25+
dashdash = true
26+
else if (arg === '--no-glob' || arg === '-G')
27+
noglob = true
28+
else if (arg === '--glob' || arg === '-g')
29+
noglob = false
30+
else if (arg.match(/^(-+|\/)(h(elp)?|\?)$/))
31+
help = true
32+
else if (arg === '--preserve-root')
33+
preserveRoot = true
34+
else if (arg === '--no-preserve-root')
35+
preserveRoot = false
36+
else
37+
return !!arg
38+
}).filter(arg => !preserveRoot || filterOutRoot(arg))
39+
40+
const go = n => {
41+
if (n >= args.length)
42+
return
43+
const options = noglob ? { glob: false } : {}
44+
rimraf(args[n], options, er => {
45+
if (er)
46+
throw er
47+
go(n+1)
48+
})
49+
}
50+
51+
if (help || args.length === 0) {
52+
// If they didn't ask for help, then this is not a "success"
53+
const log = help ? console.log : console.error
54+
log('Usage: rimraf <path> [<path> ...]')
55+
log('')
56+
log(' Deletes all files and folders at "path" recursively.')
57+
log('')
58+
log('Options:')
59+
log('')
60+
log(' -h, --help Display this usage info')
61+
log(' -G, --no-glob Do not expand glob patterns in arguments')
62+
log(' -g, --glob Expand glob patterns in arguments (default)')
63+
log(' --preserve-root Do not remove \'/\' (default)')
64+
log(' --no-preserve-root Do not treat \'/\' specially')
65+
log(' -- Stop parsing flags')
66+
process.exit(help ? 0 : 1)
67+
} else
68+
go(0)

0 commit comments

Comments
 (0)