nextalys-js-helpers
Advanced tools
Comparing version
/// <reference types="node" /> | ||
export declare class CSVHelpers { | ||
static parseCSVFileInput(fileInput: HTMLInputElement, delimiter?: string, strict?: boolean, encoding?: BufferEncoding): Promise<{ | ||
static parseCSVFileInput(fileInput: HTMLInputElement, delimiter?: string, strict?: boolean, encoding?: string): Promise<{ | ||
success: boolean; | ||
@@ -8,3 +8,3 @@ error?: any; | ||
}>; | ||
static parseCSVFile(file: File, delimiter?: string, strict?: boolean, encoding?: BufferEncoding): Promise<{ | ||
static parseCSVFile(file: File, delimiter?: string, strict?: boolean, encoding?: string): Promise<{ | ||
success: boolean; | ||
@@ -11,0 +11,0 @@ error?: any; |
@@ -83,3 +83,3 @@ "use strict"; | ||
// console.log("Log ~ file: test.ts:463 ~ excelFileChange ~ file:", file); | ||
reader_1.readAsText(file); | ||
reader_1.readAsText(file, encoding); | ||
reader_1.onload = function () { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -91,3 +91,3 @@ var text, response; | ||
text = reader_1.result; | ||
return [4 /*yield*/, this.parseCSV(text, delimiter, strict, encoding)]; | ||
return [4 /*yield*/, this.parseCSV(text, delimiter, strict)]; | ||
case 1: | ||
@@ -94,0 +94,0 @@ response = _a.sent(); |
{ | ||
"name": "nextalys-js-helpers", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Nextalys Javascript Helpers", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1236694
0