Compare commits
20
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
51d5d2913d | ||
|
|
10529907c7 | ||
|
|
f46c48ed6d | ||
|
|
1ac6f5d754 | ||
|
|
30049aaf02 | ||
|
|
02b3fbad1c | ||
|
|
5c5feeb63d | ||
|
|
85bb8372bf | ||
|
|
463aece43a | ||
|
|
e3fb5152be | ||
|
|
4b088f072a | ||
|
|
e46d65f438 | ||
|
|
75222ed640 | ||
|
|
f46bc4dbf8 | ||
|
|
e0a5088fd6 | ||
|
|
f1f8f2bf88 | ||
|
|
453f5e3690 | ||
|
|
6a47644794 | ||
|
|
d11e757f70 | ||
|
|
63e5e62dba |
@@ -1,7 +1,7 @@
|
|||||||
# dependency-review-action
|
# dependency-review-action
|
||||||
|
|
||||||
This action scans your pull requests for dependency changes, and will
|
This action scans your pull requests for dependency changes, and will
|
||||||
raise an error if any vulnerabilities or invalid licenses are being introduced. The action is supported by an [API endpoint](https://docs.github.com/en/rest/reference/dependency-graph#dependency-review) that diffs the dependencies between any two revisions.
|
raise an error if any vulnerabilities or invalid licenses are being introduced. The action is supported by an [API endpoint](https://docs.github.com/en/rest/reference/dependency-graph#dependency-review) that diffs the dependencies between any two revisions on your default branch.
|
||||||
|
|
||||||
The action is available for all public repositories, as well as private repositories that have GitHub Advanced Security licensed.
|
The action is available for all public repositories, as well as private repositories that have GitHub Advanced Security licensed.
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ test('it properly catches RequestError type', async () => {
|
|||||||
owner: 'actions',
|
owner: 'actions',
|
||||||
repo: 'dependency-review-action',
|
repo: 'dependency-review-action',
|
||||||
baseRef: 'refs/heads/master',
|
baseRef: 'refs/heads/master',
|
||||||
headRef: 'refs/heads/master'
|
headRef: 'refs/heads/master',
|
||||||
|
includeDependencySnapshots: false
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
expect(error).toBeInstanceOf(RequestError)
|
expect(error).toBeInstanceOf(RequestError)
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ const defaultConfig: ConfigurationOptions = {
|
|||||||
license_check: true,
|
license_check: true,
|
||||||
fail_on_severity: 'high',
|
fail_on_severity: 'high',
|
||||||
fail_on_scopes: ['runtime'],
|
fail_on_scopes: ['runtime'],
|
||||||
|
include_dependency_snapshots: false,
|
||||||
allow_ghsas: [],
|
allow_ghsas: [],
|
||||||
allow_licenses: [],
|
allow_licenses: [],
|
||||||
deny_licenses: [],
|
deny_licenses: [],
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ inputs:
|
|||||||
head-ref:
|
head-ref:
|
||||||
description: The head git ref to be used for this check. Has a default value when the workflow event is `pull_request` or `pull_request_target`. Must be provided otherwise.
|
description: The head git ref to be used for this check. Has a default value when the workflow event is `pull_request` or `pull_request_target`. Must be provided otherwise.
|
||||||
required: false
|
required: false
|
||||||
|
include-dependency-snapshots:
|
||||||
|
description: Whether to include dependencies submitted through the Dependency Submission API in the comparison. Defaults to `false`.
|
||||||
|
required: false
|
||||||
config-file:
|
config-file:
|
||||||
description: A path to the configuration file for the action.
|
description: A path to the configuration file for the action.
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
+148
-233
@@ -181,15 +181,29 @@ const githubUtils = __importStar(__nccwpck_require__(3030));
|
|||||||
const retry = __importStar(__nccwpck_require__(6298));
|
const retry = __importStar(__nccwpck_require__(6298));
|
||||||
const schemas_1 = __nccwpck_require__(8774);
|
const schemas_1 = __nccwpck_require__(8774);
|
||||||
const retryingOctokit = githubUtils.GitHub.plugin(retry.retry);
|
const retryingOctokit = githubUtils.GitHub.plugin(retry.retry);
|
||||||
|
const SnapshotWarningsHeader = 'x-github-dependency-graph-snapshot-warnings';
|
||||||
const octo = new retryingOctokit(githubUtils.getOctokitOptions(core.getInput('repo-token', { required: true })));
|
const octo = new retryingOctokit(githubUtils.getOctokitOptions(core.getInput('repo-token', { required: true })));
|
||||||
function compare({ owner, repo, baseRef, headRef }) {
|
function compare({ owner, repo, baseRef, headRef, includeDependencySnapshots }) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const changes = yield octo.paginate('GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}', {
|
let snapshot_warnings = '';
|
||||||
|
const changes = yield octo.paginate({
|
||||||
|
method: 'GET',
|
||||||
|
url: '/repos/{owner}/{repo}/dependency-graph/compare/{basehead}',
|
||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
basehead: `${baseRef}...${headRef}`
|
basehead: `${baseRef}...${headRef}`,
|
||||||
|
includes_dependency_snapshots: includeDependencySnapshots
|
||||||
|
}, response => {
|
||||||
|
if (response.headers[SnapshotWarningsHeader] &&
|
||||||
|
typeof response.headers[SnapshotWarningsHeader] === 'string') {
|
||||||
|
snapshot_warnings = Buffer.from(response.headers[SnapshotWarningsHeader], 'base64').toString('utf-8');
|
||||||
|
}
|
||||||
|
return schemas_1.ChangesSchema.parse(response.data);
|
||||||
|
});
|
||||||
|
return schemas_1.ComparisonResponseSchema.parse({
|
||||||
|
changes,
|
||||||
|
snapshot_warnings
|
||||||
});
|
});
|
||||||
return schemas_1.ChangesSchema.parse(changes);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.compare = compare;
|
exports.compare = compare;
|
||||||
@@ -452,12 +466,15 @@ function run() {
|
|||||||
try {
|
try {
|
||||||
const config = yield (0, config_1.readConfig)();
|
const config = yield (0, config_1.readConfig)();
|
||||||
const refs = (0, git_refs_1.getRefs)(config, github.context);
|
const refs = (0, git_refs_1.getRefs)(config, github.context);
|
||||||
const changes = yield dependencyGraph.compare({
|
const comparison = yield dependencyGraph.compare({
|
||||||
owner: github.context.repo.owner,
|
owner: github.context.repo.owner,
|
||||||
repo: github.context.repo.repo,
|
repo: github.context.repo.repo,
|
||||||
baseRef: refs.base,
|
baseRef: refs.base,
|
||||||
headRef: refs.head
|
headRef: refs.head,
|
||||||
|
includeDependencySnapshots: config.include_dependency_snapshots
|
||||||
});
|
});
|
||||||
|
const changes = comparison.changes;
|
||||||
|
const snapshot_warnings = comparison.snapshot_warnings;
|
||||||
if (!changes) {
|
if (!changes) {
|
||||||
core.info('No Dependency Changes found. Skipping Dependency Review.');
|
core.info('No Dependency Changes found. Skipping Dependency Review.');
|
||||||
return;
|
return;
|
||||||
@@ -473,6 +490,9 @@ function run() {
|
|||||||
deny: config.deny_licenses
|
deny: config.deny_licenses
|
||||||
});
|
});
|
||||||
summary.addSummaryToSummary(vulnerableChanges, invalidLicenseChanges, config);
|
summary.addSummaryToSummary(vulnerableChanges, invalidLicenseChanges, config);
|
||||||
|
if (snapshot_warnings) {
|
||||||
|
summary.addSnapshotWarnings(snapshot_warnings);
|
||||||
|
}
|
||||||
if (config.vulnerability_check) {
|
if (config.vulnerability_check) {
|
||||||
summary.addChangeVulnerabilitiesToSummary(vulnerableChanges, minSeverity);
|
summary.addChangeVulnerabilitiesToSummary(vulnerableChanges, minSeverity);
|
||||||
printVulnerabilitiesBlock(vulnerableChanges, minSeverity);
|
printVulnerabilitiesBlock(vulnerableChanges, minSeverity);
|
||||||
@@ -630,7 +650,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.ChangesSchema = exports.ConfigurationOptionsSchema = exports.PullRequestSchema = exports.ChangeSchema = exports.SeveritySchema = exports.SCOPES = exports.SEVERITIES = void 0;
|
exports.ComparisonResponseSchema = exports.ChangesSchema = exports.ConfigurationOptionsSchema = exports.PullRequestSchema = exports.ChangeSchema = exports.SeveritySchema = exports.SCOPES = exports.SEVERITIES = void 0;
|
||||||
const z = __importStar(__nccwpck_require__(3301));
|
const z = __importStar(__nccwpck_require__(3301));
|
||||||
exports.SEVERITIES = ['critical', 'high', 'moderate', 'low'];
|
exports.SEVERITIES = ['critical', 'high', 'moderate', 'low'];
|
||||||
exports.SCOPES = ['unknown', 'runtime', 'development'];
|
exports.SCOPES = ['unknown', 'runtime', 'development'];
|
||||||
@@ -672,6 +692,7 @@ exports.ConfigurationOptionsSchema = z
|
|||||||
config_file: z.string().optional(),
|
config_file: z.string().optional(),
|
||||||
base_ref: z.string().optional(),
|
base_ref: z.string().optional(),
|
||||||
head_ref: z.string().optional(),
|
head_ref: z.string().optional(),
|
||||||
|
include_dependency_snapshots: z.boolean().default(false),
|
||||||
comment_summary_in_pr: z.boolean().default(false)
|
comment_summary_in_pr: z.boolean().default(false)
|
||||||
})
|
})
|
||||||
.superRefine((config, context) => {
|
.superRefine((config, context) => {
|
||||||
@@ -696,6 +717,10 @@ exports.ConfigurationOptionsSchema = z
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
exports.ChangesSchema = z.array(exports.ChangeSchema);
|
exports.ChangesSchema = z.array(exports.ChangeSchema);
|
||||||
|
exports.ComparisonResponseSchema = z.object({
|
||||||
|
changes: z.array(exports.ChangeSchema),
|
||||||
|
snapshot_warnings: z.string()
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -729,7 +754,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.addScannedDependencies = exports.addLicensesToSummary = exports.addChangeVulnerabilitiesToSummary = exports.addSummaryToSummary = void 0;
|
exports.addSnapshotWarnings = exports.addScannedDependencies = exports.addLicensesToSummary = exports.addChangeVulnerabilitiesToSummary = exports.addSummaryToSummary = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const utils_1 = __nccwpck_require__(918);
|
const utils_1 = __nccwpck_require__(918);
|
||||||
const icons = {
|
const icons = {
|
||||||
@@ -887,6 +912,12 @@ function addScannedDependencies(changes) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.addScannedDependencies = addScannedDependencies;
|
exports.addScannedDependencies = addScannedDependencies;
|
||||||
|
function addSnapshotWarnings(warnings) {
|
||||||
|
core.summary.addHeading('Snapshot Warnings', 2);
|
||||||
|
core.summary.addQuote(`${icons.warning}: ${warnings}`);
|
||||||
|
core.summary.addRaw('See the documentation for troubleshooting help.');
|
||||||
|
}
|
||||||
|
exports.addSnapshotWarnings = addSnapshotWarnings;
|
||||||
function countLicenseIssues(invalidLicenseChanges) {
|
function countLicenseIssues(invalidLicenseChanges) {
|
||||||
return Object.values(invalidLicenseChanges).reduce((acc, val) => acc + val.length, 0);
|
return Object.values(invalidLicenseChanges).reduce((acc, val) => acc + val.length, 0);
|
||||||
}
|
}
|
||||||
@@ -40903,7 +40934,6 @@ class ZodError extends Error {
|
|||||||
};
|
};
|
||||||
const actualProto = new.target.prototype;
|
const actualProto = new.target.prototype;
|
||||||
if (Object.setPrototypeOf) {
|
if (Object.setPrototypeOf) {
|
||||||
// eslint-disable-next-line ban/ban
|
|
||||||
Object.setPrototypeOf(this, actualProto);
|
Object.setPrototypeOf(this, actualProto);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -40943,13 +40973,6 @@ class ZodError extends Error {
|
|||||||
const terminal = i === issue.path.length - 1;
|
const terminal = i === issue.path.length - 1;
|
||||||
if (!terminal) {
|
if (!terminal) {
|
||||||
curr[el] = curr[el] || { _errors: [] };
|
curr[el] = curr[el] || { _errors: [] };
|
||||||
// if (typeof el === "string") {
|
|
||||||
// curr[el] = curr[el] || { _errors: [] };
|
|
||||||
// } else if (typeof el === "number") {
|
|
||||||
// const errorArray: any = [];
|
|
||||||
// errorArray._errors = [];
|
|
||||||
// curr[el] = curr[el] || errorArray;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
curr[el] = curr[el] || { _errors: [] };
|
curr[el] = curr[el] || { _errors: [] };
|
||||||
@@ -41111,7 +41134,7 @@ function addIssueToContext(ctx, issueData) {
|
|||||||
ctx.common.contextualErrorMap,
|
ctx.common.contextualErrorMap,
|
||||||
ctx.schemaErrorMap,
|
ctx.schemaErrorMap,
|
||||||
(0, errors_1.getErrorMap)(),
|
(0, errors_1.getErrorMap)(),
|
||||||
en_1.default, // then global default map
|
en_1.default,
|
||||||
].filter((x) => !!x),
|
].filter((x) => !!x),
|
||||||
});
|
});
|
||||||
ctx.common.issues.push(issue);
|
ctx.common.issues.push(issue);
|
||||||
@@ -41205,7 +41228,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.getParsedType = exports.ZodParsedType = exports.util = void 0;
|
exports.getParsedType = exports.ZodParsedType = exports.objectUtil = exports.util = void 0;
|
||||||
var util;
|
var util;
|
||||||
(function (util) {
|
(function (util) {
|
||||||
util.assertEqual = (val) => val;
|
util.assertEqual = (val) => val;
|
||||||
@@ -41235,8 +41258,8 @@ var util;
|
|||||||
return obj[e];
|
return obj[e];
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
util.objectKeys = typeof Object.keys === "function" // eslint-disable-line ban/ban
|
util.objectKeys = typeof Object.keys === "function"
|
||||||
? (obj) => Object.keys(obj) // eslint-disable-line ban/ban
|
? (obj) => Object.keys(obj)
|
||||||
: (object) => {
|
: (object) => {
|
||||||
const keys = [];
|
const keys = [];
|
||||||
for (const key in object) {
|
for (const key in object) {
|
||||||
@@ -41254,7 +41277,7 @@ var util;
|
|||||||
return undefined;
|
return undefined;
|
||||||
};
|
};
|
||||||
util.isInteger = typeof Number.isInteger === "function"
|
util.isInteger = typeof Number.isInteger === "function"
|
||||||
? (val) => Number.isInteger(val) // eslint-disable-line ban/ban
|
? (val) => Number.isInteger(val)
|
||||||
: (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
|
: (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
|
||||||
function joinValues(array, separator = " | ") {
|
function joinValues(array, separator = " | ") {
|
||||||
return array
|
return array
|
||||||
@@ -41269,6 +41292,15 @@ var util;
|
|||||||
return value;
|
return value;
|
||||||
};
|
};
|
||||||
})(util = exports.util || (exports.util = {}));
|
})(util = exports.util || (exports.util = {}));
|
||||||
|
var objectUtil;
|
||||||
|
(function (objectUtil) {
|
||||||
|
objectUtil.mergeShapes = (first, second) => {
|
||||||
|
return {
|
||||||
|
...first,
|
||||||
|
...second,
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})(objectUtil = exports.objectUtil || (exports.objectUtil = {}));
|
||||||
exports.ZodParsedType = util.arrayToEnum([
|
exports.ZodParsedType = util.arrayToEnum([
|
||||||
"string",
|
"string",
|
||||||
"nan",
|
"nan",
|
||||||
@@ -41422,7 +41454,13 @@ const errorMap = (issue, _ctx) => {
|
|||||||
break;
|
break;
|
||||||
case ZodError_1.ZodIssueCode.invalid_string:
|
case ZodError_1.ZodIssueCode.invalid_string:
|
||||||
if (typeof issue.validation === "object") {
|
if (typeof issue.validation === "object") {
|
||||||
if ("startsWith" in issue.validation) {
|
if ("includes" in issue.validation) {
|
||||||
|
message = `Invalid input: must include "${issue.validation.includes}"`;
|
||||||
|
if (typeof issue.validation.position === "number") {
|
||||||
|
message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if ("startsWith" in issue.validation) {
|
||||||
message = `Invalid input: must start with "${issue.validation.startsWith}"`;
|
message = `Invalid input: must start with "${issue.validation.startsWith}"`;
|
||||||
}
|
}
|
||||||
else if ("endsWith" in issue.validation) {
|
else if ("endsWith" in issue.validation) {
|
||||||
@@ -41514,8 +41552,8 @@ exports["default"] = errorMap;
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.date = exports.boolean = exports.bigint = exports.array = exports.any = exports.coerce = exports.ZodFirstPartyTypeKind = exports.late = exports.ZodSchema = exports.Schema = exports.custom = exports.ZodPipeline = exports.ZodBranded = exports.BRAND = exports.ZodNaN = exports.ZodCatch = exports.ZodDefault = exports.ZodNullable = exports.ZodOptional = exports.ZodTransformer = exports.ZodEffects = exports.ZodPromise = exports.ZodNativeEnum = exports.ZodEnum = exports.ZodLiteral = exports.ZodLazy = exports.ZodFunction = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodUnion = exports.ZodObject = exports.objectUtil = exports.ZodArray = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodDate = exports.ZodBoolean = exports.ZodBigInt = exports.ZodNumber = exports.ZodString = exports.ZodType = void 0;
|
exports.discriminatedUnion = exports.date = exports.boolean = exports.bigint = exports.array = exports.any = exports.coerce = exports.ZodFirstPartyTypeKind = exports.late = exports.ZodSchema = exports.Schema = exports.custom = exports.ZodPipeline = exports.ZodBranded = exports.BRAND = exports.ZodNaN = exports.ZodCatch = exports.ZodDefault = exports.ZodNullable = exports.ZodOptional = exports.ZodTransformer = exports.ZodEffects = exports.ZodPromise = exports.ZodNativeEnum = exports.ZodEnum = exports.ZodLiteral = exports.ZodLazy = exports.ZodFunction = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodUnion = exports.ZodObject = exports.ZodArray = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodDate = exports.ZodBoolean = exports.ZodBigInt = exports.ZodNumber = exports.ZodString = exports.ZodType = void 0;
|
||||||
exports.NEVER = exports["void"] = exports.unknown = exports.union = exports.undefined = exports.tuple = exports.transformer = exports.symbol = exports.string = exports.strictObject = exports.set = exports.record = exports.promise = exports.preprocess = exports.pipeline = exports.ostring = exports.optional = exports.onumber = exports.oboolean = exports.object = exports.number = exports.nullable = exports["null"] = exports.never = exports.nativeEnum = exports.nan = exports.map = exports.literal = exports.lazy = exports.intersection = exports["instanceof"] = exports["function"] = exports["enum"] = exports.effect = exports.discriminatedUnion = void 0;
|
exports.NEVER = exports["void"] = exports.unknown = exports.union = exports.undefined = exports.tuple = exports.transformer = exports.symbol = exports.string = exports.strictObject = exports.set = exports.record = exports.promise = exports.preprocess = exports.pipeline = exports.ostring = exports.optional = exports.onumber = exports.oboolean = exports.object = exports.number = exports.nullable = exports["null"] = exports.never = exports.nativeEnum = exports.nan = exports.map = exports.literal = exports.lazy = exports.intersection = exports["instanceof"] = exports["function"] = exports["enum"] = exports.effect = void 0;
|
||||||
const errors_1 = __nccwpck_require__(9566);
|
const errors_1 = __nccwpck_require__(9566);
|
||||||
const errorUtil_1 = __nccwpck_require__(2513);
|
const errorUtil_1 = __nccwpck_require__(2513);
|
||||||
const parseUtil_1 = __nccwpck_require__(888);
|
const parseUtil_1 = __nccwpck_require__(888);
|
||||||
@@ -41523,13 +41561,22 @@ const util_1 = __nccwpck_require__(3985);
|
|||||||
const ZodError_1 = __nccwpck_require__(9892);
|
const ZodError_1 = __nccwpck_require__(9892);
|
||||||
class ParseInputLazyPath {
|
class ParseInputLazyPath {
|
||||||
constructor(parent, value, path, key) {
|
constructor(parent, value, path, key) {
|
||||||
|
this._cachedPath = [];
|
||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
this.data = value;
|
this.data = value;
|
||||||
this._path = path;
|
this._path = path;
|
||||||
this._key = key;
|
this._key = key;
|
||||||
}
|
}
|
||||||
get path() {
|
get path() {
|
||||||
return this._path.concat(this._key);
|
if (!this._cachedPath.length) {
|
||||||
|
if (this._key instanceof Array) {
|
||||||
|
this._cachedPath.push(...this._path, ...this._key);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this._cachedPath.push(...this._path, this._key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return this._cachedPath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const handleResult = (ctx, result) => {
|
const handleResult = (ctx, result) => {
|
||||||
@@ -41540,8 +41587,16 @@ const handleResult = (ctx, result) => {
|
|||||||
if (!ctx.common.issues.length) {
|
if (!ctx.common.issues.length) {
|
||||||
throw new Error("Validation failed but no issues detected.");
|
throw new Error("Validation failed but no issues detected.");
|
||||||
}
|
}
|
||||||
const error = new ZodError_1.ZodError(ctx.common.issues);
|
return {
|
||||||
return { success: false, error };
|
success: false,
|
||||||
|
get error() {
|
||||||
|
if (this._error)
|
||||||
|
return this._error;
|
||||||
|
const error = new ZodError_1.ZodError(ctx.common.issues);
|
||||||
|
this._error = error;
|
||||||
|
return this._error;
|
||||||
|
},
|
||||||
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
function processCreateParams(params) {
|
function processCreateParams(params) {
|
||||||
@@ -41565,7 +41620,6 @@ function processCreateParams(params) {
|
|||||||
}
|
}
|
||||||
class ZodType {
|
class ZodType {
|
||||||
constructor(def) {
|
constructor(def) {
|
||||||
/** Alias of safeParseAsync */
|
|
||||||
this.spa = this.safeParseAsync;
|
this.spa = this.safeParseAsync;
|
||||||
this._def = def;
|
this._def = def;
|
||||||
this.parse = this.parse.bind(this);
|
this.parse = this.parse.bind(this);
|
||||||
@@ -41817,19 +41871,12 @@ exports.Schema = ZodType;
|
|||||||
exports.ZodSchema = ZodType;
|
exports.ZodSchema = ZodType;
|
||||||
const cuidRegex = /^c[^\s-]{8,}$/i;
|
const cuidRegex = /^c[^\s-]{8,}$/i;
|
||||||
const cuid2Regex = /^[a-z][a-z0-9]*$/;
|
const cuid2Regex = /^[a-z][a-z0-9]*$/;
|
||||||
|
const ulidRegex = /[0-9A-HJKMNP-TV-Z]{26}/;
|
||||||
const uuidRegex = /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
const uuidRegex = /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
||||||
// from https://stackoverflow.com/a/46181/1550155
|
|
||||||
// old version: too slow, didn't support unicode
|
|
||||||
// const emailRegex = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;
|
|
||||||
//old email regex
|
|
||||||
// const emailRegex = /^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@((?!-)([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{1,})[^-<>()[\].,;:\s@"]$/i;
|
|
||||||
// eslint-disable-next-line
|
|
||||||
const emailRegex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/;
|
const emailRegex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/;
|
||||||
// from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression
|
|
||||||
const emojiRegex = /^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u;
|
const emojiRegex = /^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u;
|
||||||
const ipv4Regex = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/;
|
const ipv4Regex = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/;
|
||||||
const ipv6Regex = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;
|
const ipv6Regex = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;
|
||||||
// Adapted from https://stackoverflow.com/a/3143231
|
|
||||||
const datetimeRegex = (args) => {
|
const datetimeRegex = (args) => {
|
||||||
if (args.precision) {
|
if (args.precision) {
|
||||||
if (args.offset) {
|
if (args.offset) {
|
||||||
@@ -41873,10 +41920,6 @@ class ZodString extends ZodType {
|
|||||||
code: ZodError_1.ZodIssueCode.invalid_string,
|
code: ZodError_1.ZodIssueCode.invalid_string,
|
||||||
...errorUtil_1.errorUtil.errToObj(message),
|
...errorUtil_1.errorUtil.errToObj(message),
|
||||||
});
|
});
|
||||||
/**
|
|
||||||
* @deprecated Use z.string().min(1) instead.
|
|
||||||
* @see {@link ZodString.min}
|
|
||||||
*/
|
|
||||||
this.nonempty = (message) => this.min(1, errorUtil_1.errorUtil.errToObj(message));
|
this.nonempty = (message) => this.min(1, errorUtil_1.errorUtil.errToObj(message));
|
||||||
this.trim = () => new ZodString({
|
this.trim = () => new ZodString({
|
||||||
...this._def,
|
...this._def,
|
||||||
@@ -41902,9 +41945,7 @@ class ZodString extends ZodType {
|
|||||||
code: ZodError_1.ZodIssueCode.invalid_type,
|
code: ZodError_1.ZodIssueCode.invalid_type,
|
||||||
expected: util_1.ZodParsedType.string,
|
expected: util_1.ZodParsedType.string,
|
||||||
received: ctx.parsedType,
|
received: ctx.parsedType,
|
||||||
}
|
});
|
||||||
//
|
|
||||||
);
|
|
||||||
return parseUtil_1.INVALID;
|
return parseUtil_1.INVALID;
|
||||||
}
|
}
|
||||||
const status = new parseUtil_1.ParseStatus();
|
const status = new parseUtil_1.ParseStatus();
|
||||||
@@ -42021,6 +42062,17 @@ class ZodString extends ZodType {
|
|||||||
status.dirty();
|
status.dirty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (check.kind === "ulid") {
|
||||||
|
if (!ulidRegex.test(input.data)) {
|
||||||
|
ctx = this._getOrReturnCtx(input, ctx);
|
||||||
|
(0, parseUtil_1.addIssueToContext)(ctx, {
|
||||||
|
validation: "ulid",
|
||||||
|
code: ZodError_1.ZodIssueCode.invalid_string,
|
||||||
|
message: check.message,
|
||||||
|
});
|
||||||
|
status.dirty();
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (check.kind === "url") {
|
else if (check.kind === "url") {
|
||||||
try {
|
try {
|
||||||
new URL(input.data);
|
new URL(input.data);
|
||||||
@@ -42051,6 +42103,17 @@ class ZodString extends ZodType {
|
|||||||
else if (check.kind === "trim") {
|
else if (check.kind === "trim") {
|
||||||
input.data = input.data.trim();
|
input.data = input.data.trim();
|
||||||
}
|
}
|
||||||
|
else if (check.kind === "includes") {
|
||||||
|
if (!input.data.includes(check.value, check.position)) {
|
||||||
|
ctx = this._getOrReturnCtx(input, ctx);
|
||||||
|
(0, parseUtil_1.addIssueToContext)(ctx, {
|
||||||
|
code: ZodError_1.ZodIssueCode.invalid_string,
|
||||||
|
validation: { includes: check.value, position: check.position },
|
||||||
|
message: check.message,
|
||||||
|
});
|
||||||
|
status.dirty();
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (check.kind === "toLowerCase") {
|
else if (check.kind === "toLowerCase") {
|
||||||
input.data = input.data.toLowerCase();
|
input.data = input.data.toLowerCase();
|
||||||
}
|
}
|
||||||
@@ -42132,6 +42195,9 @@ class ZodString extends ZodType {
|
|||||||
cuid2(message) {
|
cuid2(message) {
|
||||||
return this._addCheck({ kind: "cuid2", ...errorUtil_1.errorUtil.errToObj(message) });
|
return this._addCheck({ kind: "cuid2", ...errorUtil_1.errorUtil.errToObj(message) });
|
||||||
}
|
}
|
||||||
|
ulid(message) {
|
||||||
|
return this._addCheck({ kind: "ulid", ...errorUtil_1.errorUtil.errToObj(message) });
|
||||||
|
}
|
||||||
ip(options) {
|
ip(options) {
|
||||||
return this._addCheck({ kind: "ip", ...errorUtil_1.errorUtil.errToObj(options) });
|
return this._addCheck({ kind: "ip", ...errorUtil_1.errorUtil.errToObj(options) });
|
||||||
}
|
}
|
||||||
@@ -42159,6 +42225,14 @@ class ZodString extends ZodType {
|
|||||||
...errorUtil_1.errorUtil.errToObj(message),
|
...errorUtil_1.errorUtil.errToObj(message),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
includes(value, options) {
|
||||||
|
return this._addCheck({
|
||||||
|
kind: "includes",
|
||||||
|
value: value,
|
||||||
|
position: options === null || options === void 0 ? void 0 : options.position,
|
||||||
|
...errorUtil_1.errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),
|
||||||
|
});
|
||||||
|
}
|
||||||
startsWith(value, message) {
|
startsWith(value, message) {
|
||||||
return this._addCheck({
|
return this._addCheck({
|
||||||
kind: "startsWith",
|
kind: "startsWith",
|
||||||
@@ -42215,6 +42289,9 @@ class ZodString extends ZodType {
|
|||||||
get isCUID2() {
|
get isCUID2() {
|
||||||
return !!this._def.checks.find((ch) => ch.kind === "cuid2");
|
return !!this._def.checks.find((ch) => ch.kind === "cuid2");
|
||||||
}
|
}
|
||||||
|
get isULID() {
|
||||||
|
return !!this._def.checks.find((ch) => ch.kind === "ulid");
|
||||||
|
}
|
||||||
get isIP() {
|
get isIP() {
|
||||||
return !!this._def.checks.find((ch) => ch.kind === "ip");
|
return !!this._def.checks.find((ch) => ch.kind === "ip");
|
||||||
}
|
}
|
||||||
@@ -42249,7 +42326,6 @@ ZodString.create = (params) => {
|
|||||||
...processCreateParams(params),
|
...processCreateParams(params),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
// https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034
|
|
||||||
function floatSafeRemainder(val, step) {
|
function floatSafeRemainder(val, step) {
|
||||||
const valDecCount = (val.toString().split(".")[1] || "").length;
|
const valDecCount = (val.toString().split(".")[1] || "").length;
|
||||||
const stepDecCount = (step.toString().split(".")[1] || "").length;
|
const stepDecCount = (step.toString().split(".")[1] || "").length;
|
||||||
@@ -42885,7 +42961,6 @@ ZodNull.create = (params) => {
|
|||||||
class ZodAny extends ZodType {
|
class ZodAny extends ZodType {
|
||||||
constructor() {
|
constructor() {
|
||||||
super(...arguments);
|
super(...arguments);
|
||||||
// to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.
|
|
||||||
this._any = true;
|
this._any = true;
|
||||||
}
|
}
|
||||||
_parse(input) {
|
_parse(input) {
|
||||||
@@ -42902,7 +42977,6 @@ ZodAny.create = (params) => {
|
|||||||
class ZodUnknown extends ZodType {
|
class ZodUnknown extends ZodType {
|
||||||
constructor() {
|
constructor() {
|
||||||
super(...arguments);
|
super(...arguments);
|
||||||
// required
|
|
||||||
this._unknown = true;
|
this._unknown = true;
|
||||||
}
|
}
|
||||||
_parse(input) {
|
_parse(input) {
|
||||||
@@ -43058,22 +43132,6 @@ ZodArray.create = (schema, params) => {
|
|||||||
...processCreateParams(params),
|
...processCreateParams(params),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
/////////////////////////////////////////
|
|
||||||
/////////////////////////////////////////
|
|
||||||
////////// //////////
|
|
||||||
////////// ZodObject //////////
|
|
||||||
////////// //////////
|
|
||||||
/////////////////////////////////////////
|
|
||||||
/////////////////////////////////////////
|
|
||||||
var objectUtil;
|
|
||||||
(function (objectUtil) {
|
|
||||||
objectUtil.mergeShapes = (first, second) => {
|
|
||||||
return {
|
|
||||||
...first,
|
|
||||||
...second, // second overwrites first
|
|
||||||
};
|
|
||||||
};
|
|
||||||
})(objectUtil = exports.objectUtil || (exports.objectUtil = {}));
|
|
||||||
function deepPartialify(schema) {
|
function deepPartialify(schema) {
|
||||||
if (schema instanceof ZodObject) {
|
if (schema instanceof ZodObject) {
|
||||||
const newShape = {};
|
const newShape = {};
|
||||||
@@ -43087,7 +43145,10 @@ function deepPartialify(schema) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (schema instanceof ZodArray) {
|
else if (schema instanceof ZodArray) {
|
||||||
return ZodArray.create(deepPartialify(schema.element));
|
return new ZodArray({
|
||||||
|
...schema._def,
|
||||||
|
type: deepPartialify(schema.element),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else if (schema instanceof ZodOptional) {
|
else if (schema instanceof ZodOptional) {
|
||||||
return ZodOptional.create(deepPartialify(schema.unwrap()));
|
return ZodOptional.create(deepPartialify(schema.unwrap()));
|
||||||
@@ -43106,47 +43167,7 @@ class ZodObject extends ZodType {
|
|||||||
constructor() {
|
constructor() {
|
||||||
super(...arguments);
|
super(...arguments);
|
||||||
this._cached = null;
|
this._cached = null;
|
||||||
/**
|
|
||||||
* @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
|
|
||||||
* If you want to pass through unknown properties, use `.passthrough()` instead.
|
|
||||||
*/
|
|
||||||
this.nonstrict = this.passthrough;
|
this.nonstrict = this.passthrough;
|
||||||
// extend<
|
|
||||||
// Augmentation extends ZodRawShape,
|
|
||||||
// NewOutput extends util.flatten<{
|
|
||||||
// [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
|
|
||||||
// ? Augmentation[k]["_output"]
|
|
||||||
// : k extends keyof Output
|
|
||||||
// ? Output[k]
|
|
||||||
// : never;
|
|
||||||
// }>,
|
|
||||||
// NewInput extends util.flatten<{
|
|
||||||
// [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
|
|
||||||
// ? Augmentation[k]["_input"]
|
|
||||||
// : k extends keyof Input
|
|
||||||
// ? Input[k]
|
|
||||||
// : never;
|
|
||||||
// }>
|
|
||||||
// >(
|
|
||||||
// augmentation: Augmentation
|
|
||||||
// ): ZodObject<
|
|
||||||
// extendShape<T, Augmentation>,
|
|
||||||
// UnknownKeys,
|
|
||||||
// Catchall,
|
|
||||||
// NewOutput,
|
|
||||||
// NewInput
|
|
||||||
// > {
|
|
||||||
// return new ZodObject({
|
|
||||||
// ...this._def,
|
|
||||||
// shape: () => ({
|
|
||||||
// ...this._def.shape(),
|
|
||||||
// ...augmentation,
|
|
||||||
// }),
|
|
||||||
// }) as any;
|
|
||||||
// }
|
|
||||||
/**
|
|
||||||
* @deprecated Use `.extend` instead
|
|
||||||
* */
|
|
||||||
this.augment = this.extend;
|
this.augment = this.extend;
|
||||||
}
|
}
|
||||||
_getCached() {
|
_getCached() {
|
||||||
@@ -43214,14 +43235,12 @@ class ZodObject extends ZodType {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// run catchall validation
|
|
||||||
const catchall = this._def.catchall;
|
const catchall = this._def.catchall;
|
||||||
for (const key of extraKeys) {
|
for (const key of extraKeys) {
|
||||||
const value = ctx.data[key];
|
const value = ctx.data[key];
|
||||||
pairs.push({
|
pairs.push({
|
||||||
key: { status: "valid", value: key },
|
key: { status: "valid", value: key },
|
||||||
value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)
|
value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),
|
||||||
),
|
|
||||||
alwaysSet: key in ctx.data,
|
alwaysSet: key in ctx.data,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -43285,23 +43304,6 @@ class ZodObject extends ZodType {
|
|||||||
unknownKeys: "passthrough",
|
unknownKeys: "passthrough",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// const AugmentFactory =
|
|
||||||
// <Def extends ZodObjectDef>(def: Def) =>
|
|
||||||
// <Augmentation extends ZodRawShape>(
|
|
||||||
// augmentation: Augmentation
|
|
||||||
// ): ZodObject<
|
|
||||||
// extendShape<ReturnType<Def["shape"]>, Augmentation>,
|
|
||||||
// Def["unknownKeys"],
|
|
||||||
// Def["catchall"]
|
|
||||||
// > => {
|
|
||||||
// return new ZodObject({
|
|
||||||
// ...def,
|
|
||||||
// shape: () => ({
|
|
||||||
// ...def.shape(),
|
|
||||||
// ...augmentation,
|
|
||||||
// }),
|
|
||||||
// }) as any;
|
|
||||||
// };
|
|
||||||
extend(augmentation) {
|
extend(augmentation) {
|
||||||
return new ZodObject({
|
return new ZodObject({
|
||||||
...this._def,
|
...this._def,
|
||||||
@@ -43311,79 +43313,21 @@ class ZodObject extends ZodType {
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* Prior to zod@1.0.12 there was a bug in the
|
|
||||||
* inferred type of merged objects. Please
|
|
||||||
* upgrade if you are experiencing issues.
|
|
||||||
*/
|
|
||||||
merge(merging) {
|
merge(merging) {
|
||||||
const merged = new ZodObject({
|
const merged = new ZodObject({
|
||||||
unknownKeys: merging._def.unknownKeys,
|
unknownKeys: merging._def.unknownKeys,
|
||||||
catchall: merging._def.catchall,
|
catchall: merging._def.catchall,
|
||||||
shape: () => objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
|
shape: () => ({
|
||||||
|
...this._def.shape(),
|
||||||
|
...merging._def.shape(),
|
||||||
|
}),
|
||||||
typeName: ZodFirstPartyTypeKind.ZodObject,
|
typeName: ZodFirstPartyTypeKind.ZodObject,
|
||||||
});
|
});
|
||||||
return merged;
|
return merged;
|
||||||
}
|
}
|
||||||
// merge<
|
|
||||||
// Incoming extends AnyZodObject,
|
|
||||||
// Augmentation extends Incoming["shape"],
|
|
||||||
// NewOutput extends {
|
|
||||||
// [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
|
|
||||||
// ? Augmentation[k]["_output"]
|
|
||||||
// : k extends keyof Output
|
|
||||||
// ? Output[k]
|
|
||||||
// : never;
|
|
||||||
// },
|
|
||||||
// NewInput extends {
|
|
||||||
// [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
|
|
||||||
// ? Augmentation[k]["_input"]
|
|
||||||
// : k extends keyof Input
|
|
||||||
// ? Input[k]
|
|
||||||
// : never;
|
|
||||||
// }
|
|
||||||
// >(
|
|
||||||
// merging: Incoming
|
|
||||||
// ): ZodObject<
|
|
||||||
// extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
|
|
||||||
// Incoming["_def"]["unknownKeys"],
|
|
||||||
// Incoming["_def"]["catchall"],
|
|
||||||
// NewOutput,
|
|
||||||
// NewInput
|
|
||||||
// > {
|
|
||||||
// const merged: any = new ZodObject({
|
|
||||||
// unknownKeys: merging._def.unknownKeys,
|
|
||||||
// catchall: merging._def.catchall,
|
|
||||||
// shape: () =>
|
|
||||||
// objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
|
|
||||||
// typeName: ZodFirstPartyTypeKind.ZodObject,
|
|
||||||
// }) as any;
|
|
||||||
// return merged;
|
|
||||||
// }
|
|
||||||
setKey(key, schema) {
|
setKey(key, schema) {
|
||||||
return this.augment({ [key]: schema });
|
return this.augment({ [key]: schema });
|
||||||
}
|
}
|
||||||
// merge<Incoming extends AnyZodObject>(
|
|
||||||
// merging: Incoming
|
|
||||||
// ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => {
|
|
||||||
// ZodObject<
|
|
||||||
// extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
|
|
||||||
// Incoming["_def"]["unknownKeys"],
|
|
||||||
// Incoming["_def"]["catchall"]
|
|
||||||
// > {
|
|
||||||
// // const mergedShape = objectUtil.mergeShapes(
|
|
||||||
// // this._def.shape(),
|
|
||||||
// // merging._def.shape()
|
|
||||||
// // );
|
|
||||||
// const merged: any = new ZodObject({
|
|
||||||
// unknownKeys: merging._def.unknownKeys,
|
|
||||||
// catchall: merging._def.catchall,
|
|
||||||
// shape: () =>
|
|
||||||
// objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
|
|
||||||
// typeName: ZodFirstPartyTypeKind.ZodObject,
|
|
||||||
// }) as any;
|
|
||||||
// return merged;
|
|
||||||
// }
|
|
||||||
catchall(index) {
|
catchall(index) {
|
||||||
return new ZodObject({
|
return new ZodObject({
|
||||||
...this._def,
|
...this._def,
|
||||||
@@ -43414,9 +43358,6 @@ class ZodObject extends ZodType {
|
|||||||
shape: () => shape,
|
shape: () => shape,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
deepPartial() {
|
deepPartial() {
|
||||||
return deepPartialify(this);
|
return deepPartialify(this);
|
||||||
}
|
}
|
||||||
@@ -43493,7 +43434,6 @@ class ZodUnion extends ZodType {
|
|||||||
const { ctx } = this._processInputParams(input);
|
const { ctx } = this._processInputParams(input);
|
||||||
const options = this._def.options;
|
const options = this._def.options;
|
||||||
function handleResults(results) {
|
function handleResults(results) {
|
||||||
// return first issue-free validation if it exists
|
|
||||||
for (const result of results) {
|
for (const result of results) {
|
||||||
if (result.result.status === "valid") {
|
if (result.result.status === "valid") {
|
||||||
return result.result;
|
return result.result;
|
||||||
@@ -43501,12 +43441,10 @@ class ZodUnion extends ZodType {
|
|||||||
}
|
}
|
||||||
for (const result of results) {
|
for (const result of results) {
|
||||||
if (result.result.status === "dirty") {
|
if (result.result.status === "dirty") {
|
||||||
// add issues from dirty option
|
|
||||||
ctx.common.issues.push(...result.ctx.common.issues);
|
ctx.common.issues.push(...result.ctx.common.issues);
|
||||||
return result.result;
|
return result.result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// return invalid
|
|
||||||
const unionErrors = results.map((result) => new ZodError_1.ZodError(result.ctx.common.issues));
|
const unionErrors = results.map((result) => new ZodError_1.ZodError(result.ctx.common.issues));
|
||||||
(0, parseUtil_1.addIssueToContext)(ctx, {
|
(0, parseUtil_1.addIssueToContext)(ctx, {
|
||||||
code: ZodError_1.ZodIssueCode.invalid_union,
|
code: ZodError_1.ZodIssueCode.invalid_union,
|
||||||
@@ -43585,13 +43523,6 @@ ZodUnion.create = (types, params) => {
|
|||||||
...processCreateParams(params),
|
...processCreateParams(params),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
/////////////////////////////////////////////////////
|
|
||||||
/////////////////////////////////////////////////////
|
|
||||||
////////// //////////
|
|
||||||
////////// ZodDiscriminatedUnion //////////
|
|
||||||
////////// //////////
|
|
||||||
/////////////////////////////////////////////////////
|
|
||||||
/////////////////////////////////////////////////////
|
|
||||||
const getDiscriminator = (type) => {
|
const getDiscriminator = (type) => {
|
||||||
if (type instanceof ZodLazy) {
|
if (type instanceof ZodLazy) {
|
||||||
return getDiscriminator(type.schema);
|
return getDiscriminator(type.schema);
|
||||||
@@ -43606,7 +43537,6 @@ const getDiscriminator = (type) => {
|
|||||||
return type.options;
|
return type.options;
|
||||||
}
|
}
|
||||||
else if (type instanceof ZodNativeEnum) {
|
else if (type instanceof ZodNativeEnum) {
|
||||||
// eslint-disable-next-line ban/ban
|
|
||||||
return Object.keys(type.enum);
|
return Object.keys(type.enum);
|
||||||
}
|
}
|
||||||
else if (type instanceof ZodDefault) {
|
else if (type instanceof ZodDefault) {
|
||||||
@@ -43668,18 +43598,8 @@ class ZodDiscriminatedUnion extends ZodType {
|
|||||||
get optionsMap() {
|
get optionsMap() {
|
||||||
return this._def.optionsMap;
|
return this._def.optionsMap;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
|
|
||||||
* However, it only allows a union of objects, all of which need to share a discriminator property. This property must
|
|
||||||
* have a different value for each object in the union.
|
|
||||||
* @param discriminator the name of the discriminator property
|
|
||||||
* @param types an array of object schemas
|
|
||||||
* @param params
|
|
||||||
*/
|
|
||||||
static create(discriminator, options, params) {
|
static create(discriminator, options, params) {
|
||||||
// Get all the valid discriminator values
|
|
||||||
const optionsMap = new Map();
|
const optionsMap = new Map();
|
||||||
// try {
|
|
||||||
for (const type of options) {
|
for (const type of options) {
|
||||||
const discriminatorValues = getDiscriminator(type.shape[discriminator]);
|
const discriminatorValues = getDiscriminator(type.shape[discriminator]);
|
||||||
if (!discriminatorValues) {
|
if (!discriminatorValues) {
|
||||||
@@ -43842,7 +43762,7 @@ class ZodTuple extends ZodType {
|
|||||||
return null;
|
return null;
|
||||||
return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
|
return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
|
||||||
})
|
})
|
||||||
.filter((x) => !!x); // filter nulls
|
.filter((x) => !!x);
|
||||||
if (ctx.common.async) {
|
if (ctx.common.async) {
|
||||||
return Promise.all(items).then((results) => {
|
return Promise.all(items).then((results) => {
|
||||||
return parseUtil_1.ParseStatus.mergeArray(status, results);
|
return parseUtil_1.ParseStatus.mergeArray(status, results);
|
||||||
@@ -44423,9 +44343,7 @@ class ZodEffects extends ZodType {
|
|||||||
};
|
};
|
||||||
checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
|
checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
|
||||||
if (effect.type === "refinement") {
|
if (effect.type === "refinement") {
|
||||||
const executeRefinement = (acc
|
const executeRefinement = (acc) => {
|
||||||
// effect: RefinementEffect<any>
|
|
||||||
) => {
|
|
||||||
const result = effect.refinement(acc, checkCtx);
|
const result = effect.refinement(acc, checkCtx);
|
||||||
if (ctx.common.async) {
|
if (ctx.common.async) {
|
||||||
return Promise.resolve(result);
|
return Promise.resolve(result);
|
||||||
@@ -44445,7 +44363,6 @@ class ZodEffects extends ZodType {
|
|||||||
return parseUtil_1.INVALID;
|
return parseUtil_1.INVALID;
|
||||||
if (inner.status === "dirty")
|
if (inner.status === "dirty")
|
||||||
status.dirty();
|
status.dirty();
|
||||||
// return value is ignored
|
|
||||||
executeRefinement(inner.value);
|
executeRefinement(inner.value);
|
||||||
return { status: status.value, value: inner.value };
|
return { status: status.value, value: inner.value };
|
||||||
}
|
}
|
||||||
@@ -44470,10 +44387,6 @@ class ZodEffects extends ZodType {
|
|||||||
path: ctx.path,
|
path: ctx.path,
|
||||||
parent: ctx,
|
parent: ctx,
|
||||||
});
|
});
|
||||||
// if (base.status === "aborted") return INVALID;
|
|
||||||
// if (base.status === "dirty") {
|
|
||||||
// return { status: "dirty", value: base.value };
|
|
||||||
// }
|
|
||||||
if (!(0, parseUtil_1.isValid)(base))
|
if (!(0, parseUtil_1.isValid)(base))
|
||||||
return base;
|
return base;
|
||||||
const result = effect.transform(base.value, checkCtx);
|
const result = effect.transform(base.value, checkCtx);
|
||||||
@@ -44488,10 +44401,6 @@ class ZodEffects extends ZodType {
|
|||||||
.then((base) => {
|
.then((base) => {
|
||||||
if (!(0, parseUtil_1.isValid)(base))
|
if (!(0, parseUtil_1.isValid)(base))
|
||||||
return base;
|
return base;
|
||||||
// if (base.status === "aborted") return INVALID;
|
|
||||||
// if (base.status === "dirty") {
|
|
||||||
// return { status: "dirty", value: base.value };
|
|
||||||
// }
|
|
||||||
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));
|
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -44588,7 +44497,6 @@ ZodDefault.create = (type, params) => {
|
|||||||
class ZodCatch extends ZodType {
|
class ZodCatch extends ZodType {
|
||||||
_parse(input) {
|
_parse(input) {
|
||||||
const { ctx } = this._processInputParams(input);
|
const { ctx } = this._processInputParams(input);
|
||||||
// newCtx is used to not collect issues from inner types in ctx
|
|
||||||
const newCtx = {
|
const newCtx = {
|
||||||
...ctx,
|
...ctx,
|
||||||
common: {
|
common: {
|
||||||
@@ -44613,6 +44521,7 @@ class ZodCatch extends ZodType {
|
|||||||
get error() {
|
get error() {
|
||||||
return new ZodError_1.ZodError(newCtx.common.issues);
|
return new ZodError_1.ZodError(newCtx.common.issues);
|
||||||
},
|
},
|
||||||
|
input: newCtx.data,
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
@@ -44626,6 +44535,7 @@ class ZodCatch extends ZodType {
|
|||||||
get error() {
|
get error() {
|
||||||
return new ZodError_1.ZodError(newCtx.common.issues);
|
return new ZodError_1.ZodError(newCtx.common.issues);
|
||||||
},
|
},
|
||||||
|
input: newCtx.data,
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -44740,14 +44650,16 @@ class ZodPipeline extends ZodType {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.ZodPipeline = ZodPipeline;
|
exports.ZodPipeline = ZodPipeline;
|
||||||
const custom = (check, params = {},
|
const custom = (check, params = {}, fatal) => {
|
||||||
/* @deprecated */
|
|
||||||
fatal) => {
|
|
||||||
if (check)
|
if (check)
|
||||||
return ZodAny.create().superRefine((data, ctx) => {
|
return ZodAny.create().superRefine((data, ctx) => {
|
||||||
var _a, _b;
|
var _a, _b;
|
||||||
if (!check(data)) {
|
if (!check(data)) {
|
||||||
const p = typeof params === "function" ? params(data) : params;
|
const p = typeof params === "function"
|
||||||
|
? params(data)
|
||||||
|
: typeof params === "string"
|
||||||
|
? { message: params }
|
||||||
|
: params;
|
||||||
const _fatal = (_b = (_a = p.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
|
const _fatal = (_b = (_a = p.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
|
||||||
const p2 = typeof p === "string" ? { message: p } : p;
|
const p2 = typeof p === "string" ? { message: p } : p;
|
||||||
ctx.addIssue({ code: "custom", ...p2, fatal: _fatal });
|
ctx.addIssue({ code: "custom", ...p2, fatal: _fatal });
|
||||||
@@ -44797,14 +44709,10 @@ var ZodFirstPartyTypeKind;
|
|||||||
ZodFirstPartyTypeKind["ZodBranded"] = "ZodBranded";
|
ZodFirstPartyTypeKind["ZodBranded"] = "ZodBranded";
|
||||||
ZodFirstPartyTypeKind["ZodPipeline"] = "ZodPipeline";
|
ZodFirstPartyTypeKind["ZodPipeline"] = "ZodPipeline";
|
||||||
})(ZodFirstPartyTypeKind = exports.ZodFirstPartyTypeKind || (exports.ZodFirstPartyTypeKind = {}));
|
})(ZodFirstPartyTypeKind = exports.ZodFirstPartyTypeKind || (exports.ZodFirstPartyTypeKind = {}));
|
||||||
// new approach that works for abstract classes
|
|
||||||
// but requires TS 4.4+
|
|
||||||
class Class {
|
class Class {
|
||||||
constructor(..._) { }
|
constructor(..._) { }
|
||||||
}
|
}
|
||||||
const instanceOfType = (
|
const instanceOfType = (cls, params = {
|
||||||
// const instanceOfType = <T extends new (...args: any[]) => any>(
|
|
||||||
cls, params = {
|
|
||||||
message: `Input not instance of ${cls.name}`,
|
message: `Input not instance of ${cls.name}`,
|
||||||
}) => (0, exports.custom)((data) => data instanceof cls, params);
|
}) => (0, exports.custom)((data) => data instanceof cls, params);
|
||||||
exports["instanceof"] = instanceOfType;
|
exports["instanceof"] = instanceOfType;
|
||||||
@@ -44969,6 +44877,7 @@ function readInlineConfig() {
|
|||||||
const vulnerability_check = getOptionalBoolean('vulnerability-check');
|
const vulnerability_check = getOptionalBoolean('vulnerability-check');
|
||||||
const base_ref = getOptionalInput('base-ref');
|
const base_ref = getOptionalInput('base-ref');
|
||||||
const head_ref = getOptionalInput('head-ref');
|
const head_ref = getOptionalInput('head-ref');
|
||||||
|
const include_dependency_snapshots = getOptionalBoolean('include-dependency-snapshots');
|
||||||
const comment_summary_in_pr = getOptionalBoolean('comment-summary-in-pr');
|
const comment_summary_in_pr = getOptionalBoolean('comment-summary-in-pr');
|
||||||
validateLicenses('allow-licenses', allow_licenses);
|
validateLicenses('allow-licenses', allow_licenses);
|
||||||
validateLicenses('deny-licenses', deny_licenses);
|
validateLicenses('deny-licenses', deny_licenses);
|
||||||
@@ -44982,6 +44891,7 @@ function readInlineConfig() {
|
|||||||
vulnerability_check,
|
vulnerability_check,
|
||||||
base_ref,
|
base_ref,
|
||||||
head_ref,
|
head_ref,
|
||||||
|
include_dependency_snapshots,
|
||||||
comment_summary_in_pr
|
comment_summary_in_pr
|
||||||
};
|
};
|
||||||
return Object.fromEntries(Object.entries(keys).filter(([_, value]) => value !== undefined));
|
return Object.fromEntries(Object.entries(keys).filter(([_, value]) => value !== undefined));
|
||||||
@@ -45206,7 +45116,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.ChangesSchema = exports.ConfigurationOptionsSchema = exports.PullRequestSchema = exports.ChangeSchema = exports.SeveritySchema = exports.SCOPES = exports.SEVERITIES = void 0;
|
exports.ComparisonResponseSchema = exports.ChangesSchema = exports.ConfigurationOptionsSchema = exports.PullRequestSchema = exports.ChangeSchema = exports.SeveritySchema = exports.SCOPES = exports.SEVERITIES = void 0;
|
||||||
const z = __importStar(__nccwpck_require__(3301));
|
const z = __importStar(__nccwpck_require__(3301));
|
||||||
exports.SEVERITIES = ['critical', 'high', 'moderate', 'low'];
|
exports.SEVERITIES = ['critical', 'high', 'moderate', 'low'];
|
||||||
exports.SCOPES = ['unknown', 'runtime', 'development'];
|
exports.SCOPES = ['unknown', 'runtime', 'development'];
|
||||||
@@ -45248,6 +45158,7 @@ exports.ConfigurationOptionsSchema = z
|
|||||||
config_file: z.string().optional(),
|
config_file: z.string().optional(),
|
||||||
base_ref: z.string().optional(),
|
base_ref: z.string().optional(),
|
||||||
head_ref: z.string().optional(),
|
head_ref: z.string().optional(),
|
||||||
|
include_dependency_snapshots: z.boolean().default(false),
|
||||||
comment_summary_in_pr: z.boolean().default(false)
|
comment_summary_in_pr: z.boolean().default(false)
|
||||||
})
|
})
|
||||||
.superRefine((config, context) => {
|
.superRefine((config, context) => {
|
||||||
@@ -45272,6 +45183,10 @@ exports.ConfigurationOptionsSchema = z
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
exports.ChangesSchema = z.array(exports.ChangeSchema);
|
exports.ChangesSchema = z.array(exports.ChangeSchema);
|
||||||
|
exports.ComparisonResponseSchema = z.object({
|
||||||
|
changes: z.array(exports.ChangeSchema),
|
||||||
|
snapshot_warnings: z.string()
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Generated
+179
-483
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "dependency-review-action",
|
"name": "dependency-review-action",
|
||||||
"version": "3.0.3",
|
"version": "3.0.4",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "dependency-review-action",
|
"name": "dependency-review-action",
|
||||||
"version": "3.0.3",
|
"version": "3.0.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.0",
|
"@actions/core": "^1.10.0",
|
||||||
@@ -15,22 +15,23 @@
|
|||||||
"@octokit/request-error": "^2.1.0",
|
"@octokit/request-error": "^2.1.0",
|
||||||
"ansi-styles": "^6.2.1",
|
"ansi-styles": "^6.2.1",
|
||||||
"got": "^12.6.0",
|
"got": "^12.6.0",
|
||||||
|
"nodemon": "^2.0.21",
|
||||||
"octokit": "^2.0.14",
|
"octokit": "^2.0.14",
|
||||||
"spdx-expression-parse": "^3.0.1",
|
"spdx-expression-parse": "^3.0.1",
|
||||||
"spdx-satisfies": "^5.0.1",
|
"spdx-satisfies": "^5.0.1",
|
||||||
"yaml": "^2.2.1",
|
"yaml": "^2.2.1",
|
||||||
"zod": "^3.21.0"
|
"zod": "^3.21.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^27.5.2",
|
"@types/jest": "^27.5.2",
|
||||||
"@types/node": "^16.18.14",
|
"@types/node": "^16.18.16",
|
||||||
"@types/spdx-expression-parse": "^3.0.2",
|
"@types/spdx-expression-parse": "^3.0.2",
|
||||||
"@types/spdx-satisfies": "^0.1.0",
|
"@types/spdx-satisfies": "^0.1.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.54.0",
|
"@typescript-eslint/eslint-plugin": "^5.55.0",
|
||||||
"@typescript-eslint/parser": "^5.53.0",
|
"@typescript-eslint/parser": "^5.55.0",
|
||||||
"@vercel/ncc": "^0.36.1",
|
"@vercel/ncc": "^0.36.1",
|
||||||
"esbuild-register": "^3.4.2",
|
"esbuild-register": "^3.4.2",
|
||||||
"eslint": "^8.35.0",
|
"eslint": "^8.36.0",
|
||||||
"eslint-plugin-github": "^4.6.1",
|
"eslint-plugin-github": "^4.6.1",
|
||||||
"eslint-plugin-jest": "^27.2.1",
|
"eslint-plugin-jest": "^27.2.1",
|
||||||
"jest": "^27.5.1",
|
"jest": "^27.5.1",
|
||||||
@@ -758,15 +759,39 @@
|
|||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@eslint-community/eslint-utils": {
|
||||||
|
"version": "4.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.2.0.tgz",
|
||||||
|
"integrity": "sha512-gB8T4H4DEfX2IV9zGDJPOBgP1e/DbfCPDTtEqUMckpvzS1OYtva8JdFYBqMwYk7xAQ429WGF/UPqn8uQ//h2vQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"eslint-visitor-keys": "^3.3.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@eslint-community/regexpp": {
|
||||||
|
"version": "4.4.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.4.0.tgz",
|
||||||
|
"integrity": "sha512-A9983Q0LnDGdLPjxyXQ00sbV+K+O+ko2Dr+CZigbHWtX9pNfxlaBkMR8X1CztI73zuEyEBXTVjx7CE+/VSwDiQ==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": "^12.0.0 || ^14.0.0 || >=16.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@eslint/eslintrc": {
|
"node_modules/@eslint/eslintrc": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.1.tgz",
|
||||||
"integrity": "sha512-fluIaaV+GyV24CCu/ggiHdV+j4RNh85yQnAYS/G2mZODZgGmmlrgCydjUcV3YvxCm9x8nMAfThsqTni4KiXT4A==",
|
"integrity": "sha512-eFRmABvW2E5Ho6f5fHLqgena46rOj7r7OKHYfLElqcBfGFHHpjBhivyi5+jOEQuSpdc/1phIZJlbC2te+tZNIw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ajv": "^6.12.4",
|
"ajv": "^6.12.4",
|
||||||
"debug": "^4.3.2",
|
"debug": "^4.3.2",
|
||||||
"espree": "^9.4.0",
|
"espree": "^9.5.0",
|
||||||
"globals": "^13.19.0",
|
"globals": "^13.19.0",
|
||||||
"ignore": "^5.2.0",
|
"ignore": "^5.2.0",
|
||||||
"import-fresh": "^3.2.1",
|
"import-fresh": "^3.2.1",
|
||||||
@@ -782,9 +807,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@eslint/js": {
|
"node_modules/@eslint/js": {
|
||||||
"version": "8.35.0",
|
"version": "8.36.0",
|
||||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.35.0.tgz",
|
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.36.0.tgz",
|
||||||
"integrity": "sha512-JXdzbRiWclLVoD8sNUjR443VVlYqiYmDVT6rGUEIEHU5YJW0gaVZwV2xgM7D4arkvASqD0IlLUVjHiFuxaftRw==",
|
"integrity": "sha512-lxJ9R5ygVm8ZWgYdUweoq5ownDlJ4upvoWmO4eLxBYHdMo+vZ/Rx0EN6MbKWDJOSUGrqJy2Gt+Dyv/VKml0fjg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||||
@@ -1901,9 +1926,9 @@
|
|||||||
"integrity": "sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw=="
|
"integrity": "sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw=="
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "16.18.14",
|
"version": "16.18.16",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.14.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.16.tgz",
|
||||||
"integrity": "sha512-wvzClDGQXOCVNU4APPopC2KtMYukaF1MN/W3xAmslx22Z4/IF1/izDMekuyoUlwfnDHYCIZGaj7jMwnJKBTxKw=="
|
"integrity": "sha512-ZOzvDRWp8dCVBmgnkIqYCArgdFOO9YzocZp8Ra25N/RStKiWvMOXHMz+GjSeVNe5TstaTmTWPucGJkDw0XXJWA=="
|
||||||
},
|
},
|
||||||
"node_modules/@types/prettier": {
|
"node_modules/@types/prettier": {
|
||||||
"version": "2.7.1",
|
"version": "2.7.1",
|
||||||
@@ -1951,19 +1976,19 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||||
"version": "5.54.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.54.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.55.0.tgz",
|
||||||
"integrity": "sha512-+hSN9BdSr629RF02d7mMtXhAJvDTyCbprNYJKrXETlul/Aml6YZwd90XioVbjejQeHbb3R8Dg0CkRgoJDxo8aw==",
|
"integrity": "sha512-IZGc50rtbjk+xp5YQoJvmMPmJEYoC53SiKPXyqWfv15XoD2Y5Kju6zN0DwlmaGJp1Iw33JsWJcQ7nw0lGCGjVg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/scope-manager": "5.54.0",
|
"@eslint-community/regexpp": "^4.4.0",
|
||||||
"@typescript-eslint/type-utils": "5.54.0",
|
"@typescript-eslint/scope-manager": "5.55.0",
|
||||||
"@typescript-eslint/utils": "5.54.0",
|
"@typescript-eslint/type-utils": "5.55.0",
|
||||||
|
"@typescript-eslint/utils": "5.55.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"grapheme-splitter": "^1.0.4",
|
"grapheme-splitter": "^1.0.4",
|
||||||
"ignore": "^5.2.0",
|
"ignore": "^5.2.0",
|
||||||
"natural-compare-lite": "^1.4.0",
|
"natural-compare-lite": "^1.4.0",
|
||||||
"regexpp": "^3.2.0",
|
|
||||||
"semver": "^7.3.7",
|
"semver": "^7.3.7",
|
||||||
"tsutils": "^3.21.0"
|
"tsutils": "^3.21.0"
|
||||||
},
|
},
|
||||||
@@ -1984,62 +2009,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-VTPYNZ7vaWtYna9M4oD42zENOBrb+ZYyCNdFs949GcN8Miwn37b8b7eMj+EZaq7VK9fx0Jd+JhmkhjFhvnovhg==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/types": "5.54.0",
|
|
||||||
"@typescript-eslint/visitor-keys": "5.54.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-nExy+fDCBEgqblasfeE3aQ3NuafBUxZxgxXcYfzYRZFHdVvk5q60KhCSkG0noHgHRo/xQ/BOzURLZAafFpTkmQ==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-xu4wT7aRCakGINTLGeyGqDn+78BwFlggwBjnHa1ar/KaGagnmwLYmlrXIrgAaQ3AE1Vd6nLfKASm7LrFHNbKGA==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/types": "5.54.0",
|
|
||||||
"eslint-visitor-keys": "^3.3.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@typescript-eslint/parser": {
|
"node_modules/@typescript-eslint/parser": {
|
||||||
"version": "5.53.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.53.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.55.0.tgz",
|
||||||
"integrity": "sha512-MKBw9i0DLYlmdOb3Oq/526+al20AJZpANdT6Ct9ffxcV8nKCHz63t/S0IhlTFNsBIHJv+GY5SFJ0XfqVeydQrQ==",
|
"integrity": "sha512-ppvmeF7hvdhUUZWSd2EEWfzcFkjJzgNQzVST22nzg958CR+sphy8A6K7LXQZd6V75m1VKjp+J4g/PCEfSCmzhw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/scope-manager": "5.53.0",
|
"@typescript-eslint/scope-manager": "5.55.0",
|
||||||
"@typescript-eslint/types": "5.53.0",
|
"@typescript-eslint/types": "5.55.0",
|
||||||
"@typescript-eslint/typescript-estree": "5.53.0",
|
"@typescript-eslint/typescript-estree": "5.55.0",
|
||||||
"debug": "^4.3.4"
|
"debug": "^4.3.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -2059,13 +2037,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/scope-manager": {
|
"node_modules/@typescript-eslint/scope-manager": {
|
||||||
"version": "5.53.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.53.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.55.0.tgz",
|
||||||
"integrity": "sha512-Opy3dqNsp/9kBBeCPhkCNR7fmdSQqA+47r21hr9a14Bx0xnkElEQmhoHga+VoaoQ6uDHjDKmQPIYcUcKJifS7w==",
|
"integrity": "sha512-OK+cIO1ZGhJYNCL//a3ROpsd83psf4dUJ4j7pdNVzd5DmIk+ffkuUIX2vcZQbEW/IR41DYsfJTB19tpCboxQuw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "5.53.0",
|
"@typescript-eslint/types": "5.55.0",
|
||||||
"@typescript-eslint/visitor-keys": "5.53.0"
|
"@typescript-eslint/visitor-keys": "5.55.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||||
@@ -2076,13 +2054,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/type-utils": {
|
"node_modules/@typescript-eslint/type-utils": {
|
||||||
"version": "5.54.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.54.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.55.0.tgz",
|
||||||
"integrity": "sha512-WI+WMJ8+oS+LyflqsD4nlXMsVdzTMYTxl16myXPaCXnSgc7LWwMsjxQFZCK/rVmTZ3FN71Ct78ehO9bRC7erYQ==",
|
"integrity": "sha512-ObqxBgHIXj8rBNm0yh8oORFrICcJuZPZTqtAFh0oZQyr5DnAHZWfyw54RwpEEH+fD8suZaI0YxvWu5tYE/WswA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/typescript-estree": "5.54.0",
|
"@typescript-eslint/typescript-estree": "5.55.0",
|
||||||
"@typescript-eslint/utils": "5.54.0",
|
"@typescript-eslint/utils": "5.55.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"tsutils": "^3.21.0"
|
"tsutils": "^3.21.0"
|
||||||
},
|
},
|
||||||
@@ -2102,67 +2080,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-nExy+fDCBEgqblasfeE3aQ3NuafBUxZxgxXcYfzYRZFHdVvk5q60KhCSkG0noHgHRo/xQ/BOzURLZAafFpTkmQ==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-X2rJG97Wj/VRo5YxJ8Qx26Zqf0RRKsVHd4sav8NElhbZzhpBI8jU54i6hfo9eheumj4oO4dcRN1B/zIVEqR/MQ==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/types": "5.54.0",
|
|
||||||
"@typescript-eslint/visitor-keys": "5.54.0",
|
|
||||||
"debug": "^4.3.4",
|
|
||||||
"globby": "^11.1.0",
|
|
||||||
"is-glob": "^4.0.3",
|
|
||||||
"semver": "^7.3.7",
|
|
||||||
"tsutils": "^3.21.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"typescript": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-xu4wT7aRCakGINTLGeyGqDn+78BwFlggwBjnHa1ar/KaGagnmwLYmlrXIrgAaQ3AE1Vd6nLfKASm7LrFHNbKGA==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/types": "5.54.0",
|
|
||||||
"eslint-visitor-keys": "^3.3.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@typescript-eslint/types": {
|
"node_modules/@typescript-eslint/types": {
|
||||||
"version": "5.53.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.53.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.55.0.tgz",
|
||||||
"integrity": "sha512-5kcDL9ZUIP756K6+QOAfPkigJmCPHcLN7Zjdz76lQWWDdzfOhZDTj1irs6gPBKiXx5/6O3L0+AvupAut3z7D2A==",
|
"integrity": "sha512-M4iRh4AG1ChrOL6Y+mETEKGeDnT7Sparn6fhZ5LtVJF1909D5O4uqK+C5NPbLmpfZ0XIIxCdwzKiijpZUOvOug==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||||
@@ -2173,13 +2094,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/typescript-estree": {
|
"node_modules/@typescript-eslint/typescript-estree": {
|
||||||
"version": "5.53.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.53.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.55.0.tgz",
|
||||||
"integrity": "sha512-eKmipH7QyScpHSkhbptBBYh9v8FxtngLquq292YTEQ1pxVs39yFBlLC1xeIZcPPz1RWGqb7YgERJRGkjw8ZV7w==",
|
"integrity": "sha512-I7X4A9ovA8gdpWMpr7b1BN9eEbvlEtWhQvpxp/yogt48fy9Lj3iE3ild/1H3jKBBIYj5YYJmS2+9ystVhC7eaQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "5.53.0",
|
"@typescript-eslint/types": "5.55.0",
|
||||||
"@typescript-eslint/visitor-keys": "5.53.0",
|
"@typescript-eslint/visitor-keys": "5.55.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"globby": "^11.1.0",
|
"globby": "^11.1.0",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
@@ -2200,18 +2121,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/utils": {
|
"node_modules/@typescript-eslint/utils": {
|
||||||
"version": "5.54.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.54.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.55.0.tgz",
|
||||||
"integrity": "sha512-cuwm8D/Z/7AuyAeJ+T0r4WZmlnlxQ8wt7C7fLpFlKMR+dY6QO79Cq1WpJhvZbMA4ZeZGHiRWnht7ZJ8qkdAunw==",
|
"integrity": "sha512-FkW+i2pQKcpDC3AY6DU54yl8Lfl14FVGYDgBTyGKB75cCwV3KpkpTMFi9d9j2WAJ4271LR2HeC5SEWF/CZmmfw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@eslint-community/eslint-utils": "^4.2.0",
|
||||||
"@types/json-schema": "^7.0.9",
|
"@types/json-schema": "^7.0.9",
|
||||||
"@types/semver": "^7.3.12",
|
"@types/semver": "^7.3.12",
|
||||||
"@typescript-eslint/scope-manager": "5.54.0",
|
"@typescript-eslint/scope-manager": "5.55.0",
|
||||||
"@typescript-eslint/types": "5.54.0",
|
"@typescript-eslint/types": "5.55.0",
|
||||||
"@typescript-eslint/typescript-estree": "5.54.0",
|
"@typescript-eslint/typescript-estree": "5.55.0",
|
||||||
"eslint-scope": "^5.1.1",
|
"eslint-scope": "^5.1.1",
|
||||||
"eslint-utils": "^3.0.0",
|
|
||||||
"semver": "^7.3.7"
|
"semver": "^7.3.7"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -2225,87 +2146,13 @@
|
|||||||
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/scope-manager": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-VTPYNZ7vaWtYna9M4oD42zENOBrb+ZYyCNdFs949GcN8Miwn37b8b7eMj+EZaq7VK9fx0Jd+JhmkhjFhvnovhg==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/types": "5.54.0",
|
|
||||||
"@typescript-eslint/visitor-keys": "5.54.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/types": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-nExy+fDCBEgqblasfeE3aQ3NuafBUxZxgxXcYfzYRZFHdVvk5q60KhCSkG0noHgHRo/xQ/BOzURLZAafFpTkmQ==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-X2rJG97Wj/VRo5YxJ8Qx26Zqf0RRKsVHd4sav8NElhbZzhpBI8jU54i6hfo9eheumj4oO4dcRN1B/zIVEqR/MQ==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/types": "5.54.0",
|
|
||||||
"@typescript-eslint/visitor-keys": "5.54.0",
|
|
||||||
"debug": "^4.3.4",
|
|
||||||
"globby": "^11.1.0",
|
|
||||||
"is-glob": "^4.0.3",
|
|
||||||
"semver": "^7.3.7",
|
|
||||||
"tsutils": "^3.21.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"typescript": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/visitor-keys": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-xu4wT7aRCakGINTLGeyGqDn+78BwFlggwBjnHa1ar/KaGagnmwLYmlrXIrgAaQ3AE1Vd6nLfKASm7LrFHNbKGA==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/types": "5.54.0",
|
|
||||||
"eslint-visitor-keys": "^3.3.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@typescript-eslint/visitor-keys": {
|
"node_modules/@typescript-eslint/visitor-keys": {
|
||||||
"version": "5.53.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.53.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.55.0.tgz",
|
||||||
"integrity": "sha512-JqNLnX3leaHFZEN0gCh81sIvgrp/2GOACZNgO4+Tkf64u51kTpAyWFOY8XHx8XuXr3N2C9zgPPHtcpMg6z1g0w==",
|
"integrity": "sha512-q2dlHHwWgirKh1D3acnuApXG+VNXpEY5/AwRxDVuEQpxWaB0jCDe0jFMVMALJ3ebSfuOVE8/rMS+9ZOYGg1GWw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "5.53.0",
|
"@typescript-eslint/types": "5.55.0",
|
||||||
"eslint-visitor-keys": "^3.3.0"
|
"eslint-visitor-keys": "^3.3.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -3958,13 +3805,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint": {
|
"node_modules/eslint": {
|
||||||
"version": "8.35.0",
|
"version": "8.36.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.35.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.36.0.tgz",
|
||||||
"integrity": "sha512-BxAf1fVL7w+JLRQhWl2pzGeSiGqbWumV4WNvc9Rhp6tiCtm4oHnyPBSEtMGZwrQgudFQ+otqzWoPB7x+hxoWsw==",
|
"integrity": "sha512-Y956lmS7vDqomxlaaQAHVmeb4tNMp2FWIvU/RnU5BD3IKMD/MJPr76xdyr68P8tV1iNMvN2mRK0yy3c+UjL+bw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint/eslintrc": "^2.0.0",
|
"@eslint-community/eslint-utils": "^4.2.0",
|
||||||
"@eslint/js": "8.35.0",
|
"@eslint-community/regexpp": "^4.4.0",
|
||||||
|
"@eslint/eslintrc": "^2.0.1",
|
||||||
|
"@eslint/js": "8.36.0",
|
||||||
"@humanwhocodes/config-array": "^0.11.8",
|
"@humanwhocodes/config-array": "^0.11.8",
|
||||||
"@humanwhocodes/module-importer": "^1.0.1",
|
"@humanwhocodes/module-importer": "^1.0.1",
|
||||||
"@nodelib/fs.walk": "^1.2.8",
|
"@nodelib/fs.walk": "^1.2.8",
|
||||||
@@ -3975,9 +3824,8 @@
|
|||||||
"doctrine": "^3.0.0",
|
"doctrine": "^3.0.0",
|
||||||
"escape-string-regexp": "^4.0.0",
|
"escape-string-regexp": "^4.0.0",
|
||||||
"eslint-scope": "^7.1.1",
|
"eslint-scope": "^7.1.1",
|
||||||
"eslint-utils": "^3.0.0",
|
|
||||||
"eslint-visitor-keys": "^3.3.0",
|
"eslint-visitor-keys": "^3.3.0",
|
||||||
"espree": "^9.4.0",
|
"espree": "^9.5.0",
|
||||||
"esquery": "^1.4.2",
|
"esquery": "^1.4.2",
|
||||||
"esutils": "^2.0.2",
|
"esutils": "^2.0.2",
|
||||||
"fast-deep-equal": "^3.1.3",
|
"fast-deep-equal": "^3.1.3",
|
||||||
@@ -3999,7 +3847,6 @@
|
|||||||
"minimatch": "^3.1.2",
|
"minimatch": "^3.1.2",
|
||||||
"natural-compare": "^1.4.0",
|
"natural-compare": "^1.4.0",
|
||||||
"optionator": "^0.9.1",
|
"optionator": "^0.9.1",
|
||||||
"regexpp": "^3.2.0",
|
|
||||||
"strip-ansi": "^6.0.1",
|
"strip-ansi": "^6.0.1",
|
||||||
"strip-json-comments": "^3.1.0",
|
"strip-json-comments": "^3.1.0",
|
||||||
"text-table": "^0.2.0"
|
"text-table": "^0.2.0"
|
||||||
@@ -4335,33 +4182,6 @@
|
|||||||
"node": ">=8.0.0"
|
"node": ">=8.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint-utils": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"eslint-visitor-keys": "^2.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^10.0.0 || ^12.0.0 || >= 14.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/mysticatea"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"eslint": ">=5"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/eslint-utils/node_modules/eslint-visitor-keys": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz",
|
|
||||||
"integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/eslint-visitor-keys": {
|
"node_modules/eslint-visitor-keys": {
|
||||||
"version": "3.3.0",
|
"version": "3.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz",
|
||||||
@@ -4394,9 +4214,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/espree": {
|
"node_modules/espree": {
|
||||||
"version": "9.4.1",
|
"version": "9.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz",
|
"resolved": "https://registry.npmjs.org/espree/-/espree-9.5.0.tgz",
|
||||||
"integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==",
|
"integrity": "sha512-JPbJGhKc47++oo4JkEoTe2wjy4fmMwvFpgJT9cQzmfXKp22Dr6Hf1tdCteLz1h0P3t+mGvWZ+4Uankvh8+c6zw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"acorn": "^8.8.0",
|
"acorn": "^8.8.0",
|
||||||
@@ -7462,18 +7282,6 @@
|
|||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/regexpp": {
|
|
||||||
"version": "3.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz",
|
|
||||||
"integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/mysticatea"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/require-directory": {
|
"node_modules/require-directory": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
||||||
@@ -8706,9 +8514,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/zod": {
|
"node_modules/zod": {
|
||||||
"version": "3.21.0",
|
"version": "3.21.4",
|
||||||
"resolved": "https://registry.npmjs.org/zod/-/zod-3.21.0.tgz",
|
"resolved": "https://registry.npmjs.org/zod/-/zod-3.21.4.tgz",
|
||||||
"integrity": "sha512-UYdykTcVxB6lfdyLzAqLyyYAlOcpoluECvjsdoaqfQmz9p+3LRaIqYcNiL/J2kFYp66fBM8wwBvIGVEjq7KtZw==",
|
"integrity": "sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==",
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/colinhacks"
|
"url": "https://github.com/sponsors/colinhacks"
|
||||||
}
|
}
|
||||||
@@ -9272,15 +9080,30 @@
|
|||||||
"optional": true,
|
"optional": true,
|
||||||
"peer": true
|
"peer": true
|
||||||
},
|
},
|
||||||
|
"@eslint-community/eslint-utils": {
|
||||||
|
"version": "4.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.2.0.tgz",
|
||||||
|
"integrity": "sha512-gB8T4H4DEfX2IV9zGDJPOBgP1e/DbfCPDTtEqUMckpvzS1OYtva8JdFYBqMwYk7xAQ429WGF/UPqn8uQ//h2vQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"eslint-visitor-keys": "^3.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@eslint-community/regexpp": {
|
||||||
|
"version": "4.4.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.4.0.tgz",
|
||||||
|
"integrity": "sha512-A9983Q0LnDGdLPjxyXQ00sbV+K+O+ko2Dr+CZigbHWtX9pNfxlaBkMR8X1CztI73zuEyEBXTVjx7CE+/VSwDiQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"@eslint/eslintrc": {
|
"@eslint/eslintrc": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.1.tgz",
|
||||||
"integrity": "sha512-fluIaaV+GyV24CCu/ggiHdV+j4RNh85yQnAYS/G2mZODZgGmmlrgCydjUcV3YvxCm9x8nMAfThsqTni4KiXT4A==",
|
"integrity": "sha512-eFRmABvW2E5Ho6f5fHLqgena46rOj7r7OKHYfLElqcBfGFHHpjBhivyi5+jOEQuSpdc/1phIZJlbC2te+tZNIw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"ajv": "^6.12.4",
|
"ajv": "^6.12.4",
|
||||||
"debug": "^4.3.2",
|
"debug": "^4.3.2",
|
||||||
"espree": "^9.4.0",
|
"espree": "^9.5.0",
|
||||||
"globals": "^13.19.0",
|
"globals": "^13.19.0",
|
||||||
"ignore": "^5.2.0",
|
"ignore": "^5.2.0",
|
||||||
"import-fresh": "^3.2.1",
|
"import-fresh": "^3.2.1",
|
||||||
@@ -9290,9 +9113,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@eslint/js": {
|
"@eslint/js": {
|
||||||
"version": "8.35.0",
|
"version": "8.36.0",
|
||||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.35.0.tgz",
|
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.36.0.tgz",
|
||||||
"integrity": "sha512-JXdzbRiWclLVoD8sNUjR443VVlYqiYmDVT6rGUEIEHU5YJW0gaVZwV2xgM7D4arkvASqD0IlLUVjHiFuxaftRw==",
|
"integrity": "sha512-lxJ9R5ygVm8ZWgYdUweoq5ownDlJ4upvoWmO4eLxBYHdMo+vZ/Rx0EN6MbKWDJOSUGrqJy2Gt+Dyv/VKml0fjg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@github/browserslist-config": {
|
"@github/browserslist-config": {
|
||||||
@@ -10226,9 +10049,9 @@
|
|||||||
"integrity": "sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw=="
|
"integrity": "sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw=="
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "16.18.14",
|
"version": "16.18.16",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.14.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.16.tgz",
|
||||||
"integrity": "sha512-wvzClDGQXOCVNU4APPopC2KtMYukaF1MN/W3xAmslx22Z4/IF1/izDMekuyoUlwfnDHYCIZGaj7jMwnJKBTxKw=="
|
"integrity": "sha512-ZOzvDRWp8dCVBmgnkIqYCArgdFOO9YzocZp8Ra25N/RStKiWvMOXHMz+GjSeVNe5TstaTmTWPucGJkDw0XXJWA=="
|
||||||
},
|
},
|
||||||
"@types/prettier": {
|
"@types/prettier": {
|
||||||
"version": "2.7.1",
|
"version": "2.7.1",
|
||||||
@@ -10276,132 +10099,71 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@typescript-eslint/eslint-plugin": {
|
"@typescript-eslint/eslint-plugin": {
|
||||||
"version": "5.54.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.54.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.55.0.tgz",
|
||||||
"integrity": "sha512-+hSN9BdSr629RF02d7mMtXhAJvDTyCbprNYJKrXETlul/Aml6YZwd90XioVbjejQeHbb3R8Dg0CkRgoJDxo8aw==",
|
"integrity": "sha512-IZGc50rtbjk+xp5YQoJvmMPmJEYoC53SiKPXyqWfv15XoD2Y5Kju6zN0DwlmaGJp1Iw33JsWJcQ7nw0lGCGjVg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@typescript-eslint/scope-manager": "5.54.0",
|
"@eslint-community/regexpp": "^4.4.0",
|
||||||
"@typescript-eslint/type-utils": "5.54.0",
|
"@typescript-eslint/scope-manager": "5.55.0",
|
||||||
"@typescript-eslint/utils": "5.54.0",
|
"@typescript-eslint/type-utils": "5.55.0",
|
||||||
|
"@typescript-eslint/utils": "5.55.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"grapheme-splitter": "^1.0.4",
|
"grapheme-splitter": "^1.0.4",
|
||||||
"ignore": "^5.2.0",
|
"ignore": "^5.2.0",
|
||||||
"natural-compare-lite": "^1.4.0",
|
"natural-compare-lite": "^1.4.0",
|
||||||
"regexpp": "^3.2.0",
|
|
||||||
"semver": "^7.3.7",
|
"semver": "^7.3.7",
|
||||||
"tsutils": "^3.21.0"
|
"tsutils": "^3.21.0"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/scope-manager": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-VTPYNZ7vaWtYna9M4oD42zENOBrb+ZYyCNdFs949GcN8Miwn37b8b7eMj+EZaq7VK9fx0Jd+JhmkhjFhvnovhg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@typescript-eslint/types": "5.54.0",
|
|
||||||
"@typescript-eslint/visitor-keys": "5.54.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@typescript-eslint/types": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-nExy+fDCBEgqblasfeE3aQ3NuafBUxZxgxXcYfzYRZFHdVvk5q60KhCSkG0noHgHRo/xQ/BOzURLZAafFpTkmQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"@typescript-eslint/visitor-keys": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-xu4wT7aRCakGINTLGeyGqDn+78BwFlggwBjnHa1ar/KaGagnmwLYmlrXIrgAaQ3AE1Vd6nLfKASm7LrFHNbKGA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@typescript-eslint/types": "5.54.0",
|
|
||||||
"eslint-visitor-keys": "^3.3.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@typescript-eslint/parser": {
|
"@typescript-eslint/parser": {
|
||||||
"version": "5.53.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.53.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.55.0.tgz",
|
||||||
"integrity": "sha512-MKBw9i0DLYlmdOb3Oq/526+al20AJZpANdT6Ct9ffxcV8nKCHz63t/S0IhlTFNsBIHJv+GY5SFJ0XfqVeydQrQ==",
|
"integrity": "sha512-ppvmeF7hvdhUUZWSd2EEWfzcFkjJzgNQzVST22nzg958CR+sphy8A6K7LXQZd6V75m1VKjp+J4g/PCEfSCmzhw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@typescript-eslint/scope-manager": "5.53.0",
|
"@typescript-eslint/scope-manager": "5.55.0",
|
||||||
"@typescript-eslint/types": "5.53.0",
|
"@typescript-eslint/types": "5.55.0",
|
||||||
"@typescript-eslint/typescript-estree": "5.53.0",
|
"@typescript-eslint/typescript-estree": "5.55.0",
|
||||||
"debug": "^4.3.4"
|
"debug": "^4.3.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@typescript-eslint/scope-manager": {
|
"@typescript-eslint/scope-manager": {
|
||||||
"version": "5.53.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.53.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.55.0.tgz",
|
||||||
"integrity": "sha512-Opy3dqNsp/9kBBeCPhkCNR7fmdSQqA+47r21hr9a14Bx0xnkElEQmhoHga+VoaoQ6uDHjDKmQPIYcUcKJifS7w==",
|
"integrity": "sha512-OK+cIO1ZGhJYNCL//a3ROpsd83psf4dUJ4j7pdNVzd5DmIk+ffkuUIX2vcZQbEW/IR41DYsfJTB19tpCboxQuw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@typescript-eslint/types": "5.53.0",
|
"@typescript-eslint/types": "5.55.0",
|
||||||
"@typescript-eslint/visitor-keys": "5.53.0"
|
"@typescript-eslint/visitor-keys": "5.55.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@typescript-eslint/type-utils": {
|
"@typescript-eslint/type-utils": {
|
||||||
"version": "5.54.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.54.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.55.0.tgz",
|
||||||
"integrity": "sha512-WI+WMJ8+oS+LyflqsD4nlXMsVdzTMYTxl16myXPaCXnSgc7LWwMsjxQFZCK/rVmTZ3FN71Ct78ehO9bRC7erYQ==",
|
"integrity": "sha512-ObqxBgHIXj8rBNm0yh8oORFrICcJuZPZTqtAFh0oZQyr5DnAHZWfyw54RwpEEH+fD8suZaI0YxvWu5tYE/WswA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@typescript-eslint/typescript-estree": "5.54.0",
|
"@typescript-eslint/typescript-estree": "5.55.0",
|
||||||
"@typescript-eslint/utils": "5.54.0",
|
"@typescript-eslint/utils": "5.55.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"tsutils": "^3.21.0"
|
"tsutils": "^3.21.0"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/types": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-nExy+fDCBEgqblasfeE3aQ3NuafBUxZxgxXcYfzYRZFHdVvk5q60KhCSkG0noHgHRo/xQ/BOzURLZAafFpTkmQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"@typescript-eslint/typescript-estree": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-X2rJG97Wj/VRo5YxJ8Qx26Zqf0RRKsVHd4sav8NElhbZzhpBI8jU54i6hfo9eheumj4oO4dcRN1B/zIVEqR/MQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@typescript-eslint/types": "5.54.0",
|
|
||||||
"@typescript-eslint/visitor-keys": "5.54.0",
|
|
||||||
"debug": "^4.3.4",
|
|
||||||
"globby": "^11.1.0",
|
|
||||||
"is-glob": "^4.0.3",
|
|
||||||
"semver": "^7.3.7",
|
|
||||||
"tsutils": "^3.21.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@typescript-eslint/visitor-keys": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-xu4wT7aRCakGINTLGeyGqDn+78BwFlggwBjnHa1ar/KaGagnmwLYmlrXIrgAaQ3AE1Vd6nLfKASm7LrFHNbKGA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@typescript-eslint/types": "5.54.0",
|
|
||||||
"eslint-visitor-keys": "^3.3.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@typescript-eslint/types": {
|
"@typescript-eslint/types": {
|
||||||
"version": "5.53.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.53.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.55.0.tgz",
|
||||||
"integrity": "sha512-5kcDL9ZUIP756K6+QOAfPkigJmCPHcLN7Zjdz76lQWWDdzfOhZDTj1irs6gPBKiXx5/6O3L0+AvupAut3z7D2A==",
|
"integrity": "sha512-M4iRh4AG1ChrOL6Y+mETEKGeDnT7Sparn6fhZ5LtVJF1909D5O4uqK+C5NPbLmpfZ0XIIxCdwzKiijpZUOvOug==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@typescript-eslint/typescript-estree": {
|
"@typescript-eslint/typescript-estree": {
|
||||||
"version": "5.53.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.53.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.55.0.tgz",
|
||||||
"integrity": "sha512-eKmipH7QyScpHSkhbptBBYh9v8FxtngLquq292YTEQ1pxVs39yFBlLC1xeIZcPPz1RWGqb7YgERJRGkjw8ZV7w==",
|
"integrity": "sha512-I7X4A9ovA8gdpWMpr7b1BN9eEbvlEtWhQvpxp/yogt48fy9Lj3iE3ild/1H3jKBBIYj5YYJmS2+9ystVhC7eaQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@typescript-eslint/types": "5.53.0",
|
"@typescript-eslint/types": "5.55.0",
|
||||||
"@typescript-eslint/visitor-keys": "5.53.0",
|
"@typescript-eslint/visitor-keys": "5.55.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"globby": "^11.1.0",
|
"globby": "^11.1.0",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
@@ -10410,71 +10172,28 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@typescript-eslint/utils": {
|
"@typescript-eslint/utils": {
|
||||||
"version": "5.54.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.54.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.55.0.tgz",
|
||||||
"integrity": "sha512-cuwm8D/Z/7AuyAeJ+T0r4WZmlnlxQ8wt7C7fLpFlKMR+dY6QO79Cq1WpJhvZbMA4ZeZGHiRWnht7ZJ8qkdAunw==",
|
"integrity": "sha512-FkW+i2pQKcpDC3AY6DU54yl8Lfl14FVGYDgBTyGKB75cCwV3KpkpTMFi9d9j2WAJ4271LR2HeC5SEWF/CZmmfw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
|
"@eslint-community/eslint-utils": "^4.2.0",
|
||||||
"@types/json-schema": "^7.0.9",
|
"@types/json-schema": "^7.0.9",
|
||||||
"@types/semver": "^7.3.12",
|
"@types/semver": "^7.3.12",
|
||||||
"@typescript-eslint/scope-manager": "5.54.0",
|
"@typescript-eslint/scope-manager": "5.55.0",
|
||||||
"@typescript-eslint/types": "5.54.0",
|
"@typescript-eslint/types": "5.55.0",
|
||||||
"@typescript-eslint/typescript-estree": "5.54.0",
|
"@typescript-eslint/typescript-estree": "5.55.0",
|
||||||
"eslint-scope": "^5.1.1",
|
"eslint-scope": "^5.1.1",
|
||||||
"eslint-utils": "^3.0.0",
|
|
||||||
"semver": "^7.3.7"
|
"semver": "^7.3.7"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/scope-manager": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-VTPYNZ7vaWtYna9M4oD42zENOBrb+ZYyCNdFs949GcN8Miwn37b8b7eMj+EZaq7VK9fx0Jd+JhmkhjFhvnovhg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@typescript-eslint/types": "5.54.0",
|
|
||||||
"@typescript-eslint/visitor-keys": "5.54.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@typescript-eslint/types": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-nExy+fDCBEgqblasfeE3aQ3NuafBUxZxgxXcYfzYRZFHdVvk5q60KhCSkG0noHgHRo/xQ/BOzURLZAafFpTkmQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"@typescript-eslint/typescript-estree": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-X2rJG97Wj/VRo5YxJ8Qx26Zqf0RRKsVHd4sav8NElhbZzhpBI8jU54i6hfo9eheumj4oO4dcRN1B/zIVEqR/MQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@typescript-eslint/types": "5.54.0",
|
|
||||||
"@typescript-eslint/visitor-keys": "5.54.0",
|
|
||||||
"debug": "^4.3.4",
|
|
||||||
"globby": "^11.1.0",
|
|
||||||
"is-glob": "^4.0.3",
|
|
||||||
"semver": "^7.3.7",
|
|
||||||
"tsutils": "^3.21.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@typescript-eslint/visitor-keys": {
|
|
||||||
"version": "5.54.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.54.0.tgz",
|
|
||||||
"integrity": "sha512-xu4wT7aRCakGINTLGeyGqDn+78BwFlggwBjnHa1ar/KaGagnmwLYmlrXIrgAaQ3AE1Vd6nLfKASm7LrFHNbKGA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@typescript-eslint/types": "5.54.0",
|
|
||||||
"eslint-visitor-keys": "^3.3.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@typescript-eslint/visitor-keys": {
|
"@typescript-eslint/visitor-keys": {
|
||||||
"version": "5.53.0",
|
"version": "5.55.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.53.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.55.0.tgz",
|
||||||
"integrity": "sha512-JqNLnX3leaHFZEN0gCh81sIvgrp/2GOACZNgO4+Tkf64u51kTpAyWFOY8XHx8XuXr3N2C9zgPPHtcpMg6z1g0w==",
|
"integrity": "sha512-q2dlHHwWgirKh1D3acnuApXG+VNXpEY5/AwRxDVuEQpxWaB0jCDe0jFMVMALJ3ebSfuOVE8/rMS+9ZOYGg1GWw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@typescript-eslint/types": "5.53.0",
|
"@typescript-eslint/types": "5.55.0",
|
||||||
"eslint-visitor-keys": "^3.3.0"
|
"eslint-visitor-keys": "^3.3.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -11627,13 +11346,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint": {
|
"eslint": {
|
||||||
"version": "8.35.0",
|
"version": "8.36.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.35.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.36.0.tgz",
|
||||||
"integrity": "sha512-BxAf1fVL7w+JLRQhWl2pzGeSiGqbWumV4WNvc9Rhp6tiCtm4oHnyPBSEtMGZwrQgudFQ+otqzWoPB7x+hxoWsw==",
|
"integrity": "sha512-Y956lmS7vDqomxlaaQAHVmeb4tNMp2FWIvU/RnU5BD3IKMD/MJPr76xdyr68P8tV1iNMvN2mRK0yy3c+UjL+bw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@eslint/eslintrc": "^2.0.0",
|
"@eslint-community/eslint-utils": "^4.2.0",
|
||||||
"@eslint/js": "8.35.0",
|
"@eslint-community/regexpp": "^4.4.0",
|
||||||
|
"@eslint/eslintrc": "^2.0.1",
|
||||||
|
"@eslint/js": "8.36.0",
|
||||||
"@humanwhocodes/config-array": "^0.11.8",
|
"@humanwhocodes/config-array": "^0.11.8",
|
||||||
"@humanwhocodes/module-importer": "^1.0.1",
|
"@humanwhocodes/module-importer": "^1.0.1",
|
||||||
"@nodelib/fs.walk": "^1.2.8",
|
"@nodelib/fs.walk": "^1.2.8",
|
||||||
@@ -11644,9 +11365,8 @@
|
|||||||
"doctrine": "^3.0.0",
|
"doctrine": "^3.0.0",
|
||||||
"escape-string-regexp": "^4.0.0",
|
"escape-string-regexp": "^4.0.0",
|
||||||
"eslint-scope": "^7.1.1",
|
"eslint-scope": "^7.1.1",
|
||||||
"eslint-utils": "^3.0.0",
|
|
||||||
"eslint-visitor-keys": "^3.3.0",
|
"eslint-visitor-keys": "^3.3.0",
|
||||||
"espree": "^9.4.0",
|
"espree": "^9.5.0",
|
||||||
"esquery": "^1.4.2",
|
"esquery": "^1.4.2",
|
||||||
"esutils": "^2.0.2",
|
"esutils": "^2.0.2",
|
||||||
"fast-deep-equal": "^3.1.3",
|
"fast-deep-equal": "^3.1.3",
|
||||||
@@ -11668,7 +11388,6 @@
|
|||||||
"minimatch": "^3.1.2",
|
"minimatch": "^3.1.2",
|
||||||
"natural-compare": "^1.4.0",
|
"natural-compare": "^1.4.0",
|
||||||
"optionator": "^0.9.1",
|
"optionator": "^0.9.1",
|
||||||
"regexpp": "^3.2.0",
|
|
||||||
"strip-ansi": "^6.0.1",
|
"strip-ansi": "^6.0.1",
|
||||||
"strip-json-comments": "^3.1.0",
|
"strip-json-comments": "^3.1.0",
|
||||||
"text-table": "^0.2.0"
|
"text-table": "^0.2.0"
|
||||||
@@ -11930,23 +11649,6 @@
|
|||||||
"estraverse": "^4.1.1"
|
"estraverse": "^4.1.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint-utils": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"eslint-visitor-keys": "^2.0.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"eslint-visitor-keys": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz",
|
|
||||||
"integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"eslint-visitor-keys": {
|
"eslint-visitor-keys": {
|
||||||
"version": "3.3.0",
|
"version": "3.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz",
|
||||||
@@ -11954,9 +11656,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"espree": {
|
"espree": {
|
||||||
"version": "9.4.1",
|
"version": "9.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz",
|
"resolved": "https://registry.npmjs.org/espree/-/espree-9.5.0.tgz",
|
||||||
"integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==",
|
"integrity": "sha512-JPbJGhKc47++oo4JkEoTe2wjy4fmMwvFpgJT9cQzmfXKp22Dr6Hf1tdCteLz1h0P3t+mGvWZ+4Uankvh8+c6zw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"acorn": "^8.8.0",
|
"acorn": "^8.8.0",
|
||||||
@@ -14229,12 +13931,6 @@
|
|||||||
"functions-have-names": "^1.2.2"
|
"functions-have-names": "^1.2.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"regexpp": {
|
|
||||||
"version": "3.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz",
|
|
||||||
"integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"require-directory": {
|
"require-directory": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
||||||
@@ -15137,9 +14833,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"zod": {
|
"zod": {
|
||||||
"version": "3.21.0",
|
"version": "3.21.4",
|
||||||
"resolved": "https://registry.npmjs.org/zod/-/zod-3.21.0.tgz",
|
"resolved": "https://registry.npmjs.org/zod/-/zod-3.21.4.tgz",
|
||||||
"integrity": "sha512-UYdykTcVxB6lfdyLzAqLyyYAlOcpoluECvjsdoaqfQmz9p+3LRaIqYcNiL/J2kFYp66fBM8wwBvIGVEjq7KtZw=="
|
"integrity": "sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw=="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-6
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dependency-review-action",
|
"name": "dependency-review-action",
|
||||||
"version": "3.0.3",
|
"version": "3.0.4",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "A GitHub Action for Dependency Review",
|
"description": "A GitHub Action for Dependency Review",
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
@@ -36,20 +36,20 @@
|
|||||||
"spdx-expression-parse": "^3.0.1",
|
"spdx-expression-parse": "^3.0.1",
|
||||||
"spdx-satisfies": "^5.0.1",
|
"spdx-satisfies": "^5.0.1",
|
||||||
"yaml": "^2.2.1",
|
"yaml": "^2.2.1",
|
||||||
"zod": "^3.21.0"
|
"zod": "^3.21.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^27.5.2",
|
"@types/jest": "^27.5.2",
|
||||||
"@types/node": "^16.18.14",
|
"@types/node": "^16.18.16",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.48.1",
|
"@typescript-eslint/eslint-plugin": "^5.48.1",
|
||||||
"@typescript-eslint/parser": "^5.48.0",
|
"@typescript-eslint/parser": "^5.48.0",
|
||||||
"@types/spdx-expression-parse": "^3.0.2",
|
"@types/spdx-expression-parse": "^3.0.2",
|
||||||
"@types/spdx-satisfies": "^0.1.0",
|
"@types/spdx-satisfies": "^0.1.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.54.0",
|
"@typescript-eslint/eslint-plugin": "^5.55.0",
|
||||||
"@typescript-eslint/parser": "^5.53.0",
|
"@typescript-eslint/parser": "^5.55.0",
|
||||||
"@vercel/ncc": "^0.36.1",
|
"@vercel/ncc": "^0.36.1",
|
||||||
"esbuild-register": "^3.4.2",
|
"esbuild-register": "^3.4.2",
|
||||||
"eslint": "^8.35.0",
|
"eslint": "^8.36.0",
|
||||||
"eslint-plugin-github": "^4.6.1",
|
"eslint-plugin-github": "^4.6.1",
|
||||||
"eslint-plugin-jest": "^27.2.1",
|
"eslint-plugin-jest": "^27.2.1",
|
||||||
"jest": "^27.5.1",
|
"jest": "^27.5.1",
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ const defaultConfig: ConfigurationOptions = {
|
|||||||
license_check: true,
|
license_check: true,
|
||||||
fail_on_severity: 'high',
|
fail_on_severity: 'high',
|
||||||
fail_on_scopes: ['runtime'],
|
fail_on_scopes: ['runtime'],
|
||||||
|
include_dependency_snapshots: false,
|
||||||
allow_ghsas: [],
|
allow_ghsas: [],
|
||||||
allow_licenses: ['MIT'],
|
allow_licenses: ['MIT'],
|
||||||
deny_licenses: [],
|
deny_licenses: [],
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ function readInlineConfig(): ConfigurationOptionsPartial {
|
|||||||
const vulnerability_check = getOptionalBoolean('vulnerability-check')
|
const vulnerability_check = getOptionalBoolean('vulnerability-check')
|
||||||
const base_ref = getOptionalInput('base-ref')
|
const base_ref = getOptionalInput('base-ref')
|
||||||
const head_ref = getOptionalInput('head-ref')
|
const head_ref = getOptionalInput('head-ref')
|
||||||
|
const include_dependency_snapshots = getOptionalBoolean(
|
||||||
|
'include-dependency-snapshots'
|
||||||
|
)
|
||||||
const comment_summary_in_pr = getOptionalBoolean('comment-summary-in-pr')
|
const comment_summary_in_pr = getOptionalBoolean('comment-summary-in-pr')
|
||||||
|
|
||||||
validateLicenses('allow-licenses', allow_licenses)
|
validateLicenses('allow-licenses', allow_licenses)
|
||||||
@@ -49,6 +52,7 @@ function readInlineConfig(): ConfigurationOptionsPartial {
|
|||||||
vulnerability_check,
|
vulnerability_check,
|
||||||
base_ref,
|
base_ref,
|
||||||
head_ref,
|
head_ref,
|
||||||
|
include_dependency_snapshots,
|
||||||
comment_summary_in_pr
|
comment_summary_in_pr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+31
-6
@@ -1,9 +1,14 @@
|
|||||||
import * as core from '@actions/core'
|
import * as core from '@actions/core'
|
||||||
import * as githubUtils from '@actions/github/lib/utils'
|
import * as githubUtils from '@actions/github/lib/utils'
|
||||||
import * as retry from '@octokit/plugin-retry'
|
import * as retry from '@octokit/plugin-retry'
|
||||||
import {Changes, ChangesSchema} from './schemas'
|
import {
|
||||||
|
ChangesSchema,
|
||||||
|
ComparisonResponse,
|
||||||
|
ComparisonResponseSchema
|
||||||
|
} from './schemas'
|
||||||
|
|
||||||
const retryingOctokit = githubUtils.GitHub.plugin(retry.retry)
|
const retryingOctokit = githubUtils.GitHub.plugin(retry.retry)
|
||||||
|
const SnapshotWarningsHeader = 'x-github-dependency-graph-snapshot-warnings'
|
||||||
const octo = new retryingOctokit(
|
const octo = new retryingOctokit(
|
||||||
githubUtils.getOctokitOptions(core.getInput('repo-token', {required: true}))
|
githubUtils.getOctokitOptions(core.getInput('repo-token', {required: true}))
|
||||||
)
|
)
|
||||||
@@ -12,20 +17,40 @@ export async function compare({
|
|||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
baseRef,
|
baseRef,
|
||||||
headRef
|
headRef,
|
||||||
|
includeDependencySnapshots
|
||||||
}: {
|
}: {
|
||||||
owner: string
|
owner: string
|
||||||
repo: string
|
repo: string
|
||||||
baseRef: string
|
baseRef: string
|
||||||
headRef: string
|
headRef: string
|
||||||
}): Promise<Changes> {
|
includeDependencySnapshots: boolean
|
||||||
|
}): Promise<ComparisonResponse> {
|
||||||
|
let snapshot_warnings = ''
|
||||||
const changes = await octo.paginate(
|
const changes = await octo.paginate(
|
||||||
'GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}',
|
|
||||||
{
|
{
|
||||||
|
method: 'GET',
|
||||||
|
url: '/repos/{owner}/{repo}/dependency-graph/compare/{basehead}',
|
||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
basehead: `${baseRef}...${headRef}`
|
basehead: `${baseRef}...${headRef}`,
|
||||||
|
includes_dependency_snapshots: includeDependencySnapshots
|
||||||
|
},
|
||||||
|
response => {
|
||||||
|
if (
|
||||||
|
response.headers[SnapshotWarningsHeader] &&
|
||||||
|
typeof response.headers[SnapshotWarningsHeader] === 'string'
|
||||||
|
) {
|
||||||
|
snapshot_warnings = Buffer.from(
|
||||||
|
response.headers[SnapshotWarningsHeader],
|
||||||
|
'base64'
|
||||||
|
).toString('utf-8')
|
||||||
|
}
|
||||||
|
return ChangesSchema.parse(response.data)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return ChangesSchema.parse(changes)
|
return ComparisonResponseSchema.parse({
|
||||||
|
changes,
|
||||||
|
snapshot_warnings
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
+9
-2
@@ -22,12 +22,15 @@ async function run(): Promise<void> {
|
|||||||
const config = await readConfig()
|
const config = await readConfig()
|
||||||
const refs = getRefs(config, github.context)
|
const refs = getRefs(config, github.context)
|
||||||
|
|
||||||
const changes = await dependencyGraph.compare({
|
const comparison = await dependencyGraph.compare({
|
||||||
owner: github.context.repo.owner,
|
owner: github.context.repo.owner,
|
||||||
repo: github.context.repo.repo,
|
repo: github.context.repo.repo,
|
||||||
baseRef: refs.base,
|
baseRef: refs.base,
|
||||||
headRef: refs.head
|
headRef: refs.head,
|
||||||
|
includeDependencySnapshots: config.include_dependency_snapshots
|
||||||
})
|
})
|
||||||
|
const changes = comparison.changes
|
||||||
|
const snapshot_warnings = comparison.snapshot_warnings
|
||||||
|
|
||||||
if (!changes) {
|
if (!changes) {
|
||||||
core.info('No Dependency Changes found. Skipping Dependency Review.')
|
core.info('No Dependency Changes found. Skipping Dependency Review.')
|
||||||
@@ -65,6 +68,10 @@ async function run(): Promise<void> {
|
|||||||
config
|
config
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (snapshot_warnings) {
|
||||||
|
summary.addSnapshotWarnings(snapshot_warnings)
|
||||||
|
}
|
||||||
|
|
||||||
if (config.vulnerability_check) {
|
if (config.vulnerability_check) {
|
||||||
summary.addChangeVulnerabilitiesToSummary(vulnerableChanges, minSeverity)
|
summary.addChangeVulnerabilitiesToSummary(vulnerableChanges, minSeverity)
|
||||||
printVulnerabilitiesBlock(vulnerableChanges, minSeverity)
|
printVulnerabilitiesBlock(vulnerableChanges, minSeverity)
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ export const ConfigurationOptionsSchema = z
|
|||||||
config_file: z.string().optional(),
|
config_file: z.string().optional(),
|
||||||
base_ref: z.string().optional(),
|
base_ref: z.string().optional(),
|
||||||
head_ref: z.string().optional(),
|
head_ref: z.string().optional(),
|
||||||
|
include_dependency_snapshots: z.boolean().default(false),
|
||||||
comment_summary_in_pr: z.boolean().default(false)
|
comment_summary_in_pr: z.boolean().default(false)
|
||||||
})
|
})
|
||||||
.superRefine((config, context) => {
|
.superRefine((config, context) => {
|
||||||
@@ -73,9 +74,14 @@ export const ConfigurationOptionsSchema = z
|
|||||||
})
|
})
|
||||||
|
|
||||||
export const ChangesSchema = z.array(ChangeSchema)
|
export const ChangesSchema = z.array(ChangeSchema)
|
||||||
|
export const ComparisonResponseSchema = z.object({
|
||||||
|
changes: z.array(ChangeSchema),
|
||||||
|
snapshot_warnings: z.string()
|
||||||
|
})
|
||||||
|
|
||||||
export type Change = z.infer<typeof ChangeSchema>
|
export type Change = z.infer<typeof ChangeSchema>
|
||||||
export type Changes = z.infer<typeof ChangesSchema>
|
export type Changes = z.infer<typeof ChangesSchema>
|
||||||
|
export type ComparisonResponse = z.infer<typeof ComparisonResponseSchema>
|
||||||
export type ConfigurationOptions = z.infer<typeof ConfigurationOptionsSchema>
|
export type ConfigurationOptions = z.infer<typeof ConfigurationOptionsSchema>
|
||||||
export type Severity = z.infer<typeof SeveritySchema>
|
export type Severity = z.infer<typeof SeveritySchema>
|
||||||
export type Scope = (typeof SCOPES)[number]
|
export type Scope = (typeof SCOPES)[number]
|
||||||
|
|||||||
@@ -215,6 +215,12 @@ export function addScannedDependencies(changes: Changes): void {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function addSnapshotWarnings(warnings: string): void {
|
||||||
|
core.summary.addHeading('Snapshot Warnings', 2)
|
||||||
|
core.summary.addQuote(`${icons.warning}: ${warnings}`)
|
||||||
|
core.summary.addRaw('See the documentation for troubleshooting help.')
|
||||||
|
}
|
||||||
|
|
||||||
function countLicenseIssues(
|
function countLicenseIssues(
|
||||||
invalidLicenseChanges: InvalidLicenseChanges
|
invalidLicenseChanges: InvalidLicenseChanges
|
||||||
): number {
|
): number {
|
||||||
|
|||||||
Reference in New Issue
Block a user