@thi.ng/csv 2.2.9 → 2.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-06-09T16:14:01Z
3
+ - **Last updated**: 2022-08-01T14:53:59Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/csv",
3
- "version": "2.2.9",
3
+ "version": "2.2.12",
4
4
  "description": "Customizable, transducer-based CSV parser/object mapper and transformer",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,18 +34,18 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.3.7",
38
- "@thi.ng/checks": "^3.2.1",
39
- "@thi.ng/strings": "^3.3.5",
40
- "@thi.ng/transducers": "^8.3.6"
37
+ "@thi.ng/api": "^8.3.9",
38
+ "@thi.ng/checks": "^3.2.3",
39
+ "@thi.ng/strings": "^3.3.8",
40
+ "@thi.ng/transducers": "^8.3.9"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@microsoft/api-extractor": "^7.25.0",
44
- "@thi.ng/testament": "^0.2.8",
44
+ "@thi.ng/testament": "^0.2.10",
45
45
  "rimraf": "^3.0.2",
46
46
  "tools": "^0.0.1",
47
47
  "typedoc": "^0.22.17",
48
- "typescript": "^4.7.3"
48
+ "typescript": "^4.7.4"
49
49
  },
50
50
  "keywords": [
51
51
  "csv",
@@ -85,5 +85,5 @@
85
85
  "thi.ng": {
86
86
  "year": 2014
87
87
  },
88
- "gitHead": "e64b1ab39ae9bcc494ef006f6329e5182fa2a326\n"
88
+ "gitHead": "24ec2749982f4193e6bc50173a238f336854bb1c\n"
89
89
  }
package/parse.js CHANGED
@@ -50,7 +50,8 @@ export function parseCSV(opts, src) {
50
50
  }, row);
51
51
  header && init(header);
52
52
  return compR(rfn, (acc, line) => {
53
- if ((!line.length || line.startsWith(comment)) && !isQuoted)
53
+ if ((!line.length || line.startsWith(comment)) &&
54
+ !isQuoted)
54
55
  return acc;
55
56
  if (!first) {
56
57
  isQuoted = parseLine(line, record, isQuoted, delim, quote);
@@ -97,7 +98,8 @@ export function parseCSVSimple(opts, src) {
97
98
  return acc;
98
99
  }, []);
99
100
  return compR(rfn, (acc, line) => {
100
- if ((!line.length || line.startsWith(comment)) && !isQuoted)
101
+ if ((!line.length || line.startsWith(comment)) &&
102
+ !isQuoted)
101
103
  return acc;
102
104
  if (!first) {
103
105
  isQuoted = parseLine(line, record, isQuoted, delim, quote);