Change requires to import

This commit is contained in:
Justin Hutchings
2023-01-20 01:30:59 +00:00
parent 063ed2be4b
commit 237b42ae81
4 changed files with 8 additions and 12 deletions
+3 -6
View File
@@ -1,8 +1,6 @@
const core = require('@actions/core');
const github = require('@actions/github');
const glob = require('glob');
const yaml = require('yaml');
import * as core from '@actions/core';
import * as yaml from 'yaml';
import * as glob from 'glob';
import * as fs from 'fs';
import {
@@ -13,7 +11,6 @@ import {
Manifest,
submitSnapshot
} from '@github/dependency-submission-toolkit'
import { YAMLMap } from 'yaml';
export default class CondaParser {
Generated Vendored
+1 -1
View File
@@ -1,6 +1,6 @@
import { Manifest } from '@github/dependency-submission-toolkit';
export default class CondaParser {
static searchFiles(filePath?: string, filePattern?: string): any;
static searchFiles(filePath?: string, filePattern?: string): string[];
static getManifestsFromEnvironmentFiles(files: string[]): any[];
static getManifestFromYaml(yaml: any, filePath: string): Manifest;
static getPurlFromDependency(dependency: string, ecosystem: string): string;
Generated Vendored
+3 -4
View File
@@ -23820,10 +23820,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const core = __nccwpck_require__(2186);
const github = __nccwpck_require__(5438);
const glob = __nccwpck_require__(1957);
const yaml = __nccwpck_require__(4083);
const core = __importStar(__nccwpck_require__(2186));
const yaml = __importStar(__nccwpck_require__(4083));
const glob = __importStar(__nccwpck_require__(1957));
const fs = __importStar(__nccwpck_require__(7147));
const dependency_submission_toolkit_1 = __nccwpck_require__(9810);
class CondaParser {
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long