Comparing version 2.0.7 to 2.0.8
import csv=require("./v2"); | ||
export=csv; | ||
@@ -247,3 +247,3 @@ { | ||
], | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"keywords": [ | ||
@@ -272,2 +272,3 @@ "csv", | ||
"@types/node": "^10.0.1", | ||
"babel-plugin-syntax-dynamic-import": "^6.18.0", | ||
"coveralls": "^3.0.1", | ||
@@ -279,3 +280,6 @@ "minimist": "^1.2.0", | ||
"ts-node": "^6.0.3", | ||
"typescript": "^2.8.3" | ||
"typescript": "^2.8.3", | ||
"uglifyjs-webpack-plugin": "^1.2.7", | ||
"webpack": "^4.16.4", | ||
"webpack-cli": "^3.1.0" | ||
}, | ||
@@ -285,3 +289,2 @@ "dependencies": { | ||
"lodash": "^4.17.3", | ||
"readable-stream": "^2.3.6", | ||
"strip-bom": "^2.0.0" | ||
@@ -301,3 +304,4 @@ }, | ||
"dev": "tsc -w", | ||
"build": "rm -Rf ./v2 && tsc", | ||
"build": "rm -Rf ./v2 && tsc && npm run build:browser", | ||
"build:browser": "webpack --config ./webpack.config.js", | ||
"test": "rm -Rf .ts-node && TS_NODE_CACHE_DIRECTORY=.ts-node mocha -r ts-node/register src/**/*.test.ts ./test/*.ts -R spec", | ||
@@ -313,7 +317,4 @@ "travis": "nyc --reporter lcov mocha -r ts-node/register src/**/*.test.ts ./test/*.ts -R spec", | ||
}, | ||
"browser": { | ||
"child_process": false, | ||
"fs": false | ||
}, | ||
"browser": "./browser/browser.js", | ||
"main": "./v2/index.js" | ||
} |
@@ -1,3 +0,2 @@ | ||
import { Transform, TransformOptions, Readable } from "readable-stream"; | ||
import * as s from "stream"; | ||
import { Transform, TransformOptions, Readable } from "stream"; | ||
import { CSVParseParam, mergeParams } from "./Parameters"; | ||
@@ -4,0 +3,0 @@ import { ParseRuntime, initParseRuntime } from "./ParseRuntime"; |
@@ -1,2 +0,1 @@ | ||
var util = require("util"); | ||
export default class CSVError extends Error { | ||
@@ -3,0 +2,0 @@ static column_mismatched(index: number, extra?: string) { |
import { TransformOptions } from "stream"; | ||
import { CSVParseParam } from "./Parameters"; | ||
import { Converter } from "./Converter"; | ||
const helper = function (param?: Partial<CSVParseParam>, options?: TransformOptions): Converter { | ||
@@ -5,0 +6,0 @@ return new Converter(param, options); |
@@ -1,2 +0,3 @@ | ||
import { Transform, TransformOptions, Readable } from "readable-stream"; | ||
/// <reference types="node" /> | ||
import { Transform, TransformOptions, Readable } from "stream"; | ||
import { CSVParseParam } from "./Parameters"; | ||
@@ -3,0 +4,0 @@ import { ParseRuntime } from "./ParseRuntime"; |
@@ -16,3 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var readable_stream_1 = require("readable-stream"); | ||
var stream_1 = require("stream"); | ||
var Parameters_1 = require("./Parameters"); | ||
@@ -92,3 +92,3 @@ var ParseRuntime_1 = require("./ParseRuntime"); | ||
var csv = csvString.toString(); | ||
var read = new readable_stream_1.Readable(); | ||
var read = new stream_1.Readable(); | ||
var idx = 0; | ||
@@ -192,4 +192,4 @@ read._read = function (size) { | ||
return Converter; | ||
}(readable_stream_1.Transform)); | ||
}(stream_1.Transform)); | ||
exports.Converter = Converter; | ||
//# sourceMappingURL=Converter.js.map |
@@ -13,3 +13,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var util = require("util"); | ||
var CSVError = /** @class */ (function (_super) { | ||
@@ -16,0 +15,0 @@ __extends(CSVError, _super); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8484180
3
389
12082
14
- Removedreadable-stream@^2.3.6
- Removedcore-util-is@1.0.3(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)