optimize import
This commit is contained in:
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
@@ -669,7 +669,7 @@ const git_refs_1 = __nccwpck_require__(35515);
|
||||
const utils_1 = __nccwpck_require__(69277);
|
||||
const comment_pr_1 = __nccwpck_require__(61188);
|
||||
const deny_1 = __nccwpck_require__(23928);
|
||||
const artifact = __importStar(__nccwpck_require__(76846));
|
||||
const artifact_1 = __nccwpck_require__(76846);
|
||||
const fs = __importStar(__nccwpck_require__(79896));
|
||||
function delay(ms) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
@@ -707,7 +707,7 @@ function handleLargeSummary(summaryContent) {
|
||||
if (Buffer.byteLength(summaryContent, 'utf8') <= MAX_SUMMARY_SIZE) {
|
||||
return summaryContent;
|
||||
}
|
||||
const artifactClient = new artifact.DefaultArtifactClient();
|
||||
const artifactClient = new artifact_1.DefaultArtifactClient();
|
||||
const artifactName = 'dependency-review-summary';
|
||||
const files = ['summary.md'];
|
||||
try {
|
||||
|
||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@@ -24,7 +24,7 @@ import {getRefs} from './git-refs'
|
||||
import {groupDependenciesByManifest} from './utils'
|
||||
import {commentPr, MAX_COMMENT_LENGTH} from './comment-pr'
|
||||
import {getDeniedChanges} from './deny'
|
||||
import * as artifact from '@actions/artifact'
|
||||
import {DefaultArtifactClient} from '@actions/artifact'
|
||||
import * as fs from 'fs'
|
||||
|
||||
import type {PayloadRepository} from '@actions/github/lib/interfaces.d'
|
||||
@@ -73,7 +73,7 @@ export async function handleLargeSummary(
|
||||
return summaryContent
|
||||
}
|
||||
|
||||
const artifactClient = new artifact.DefaultArtifactClient()
|
||||
const artifactClient = new DefaultArtifactClient()
|
||||
const artifactName = 'dependency-review-summary'
|
||||
const files = ['summary.md']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user