Fix csv-parse implementation since major update

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2022-04-25 13:35:08 +02:00
parent 2a96a96c9c
commit b7ad32e4f5
4 changed files with 20 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
import csvparse from 'csv-parse/lib/sync';
import {parse} from 'csv-parse/sync';
import * as core from '@actions/core';
export enum Type {
@@ -86,9 +86,9 @@ export function Transform(inputs: string[]): Tag[] {
}
export function Parse(s: string): Tag {
const fields = csvparse(s, {
const fields = parse(s, {
relaxColumnCount: true,
skipLinesWithEmptyValues: true
skipEmptyLines: true
})[0];
const tag = new Tag();