@json2csv/plainjs
Advanced tools
Comparing version 7.0.4 to 7.0.5
{ | ||
"name": "@json2csv/plainjs", | ||
"version": "7.0.4", | ||
"version": "7.0.5", | ||
"description": "Pure Javascript JSON to CSV converter.", | ||
@@ -46,3 +46,3 @@ "keywords": [ | ||
"test-with-coverage": "c8 --reporter=text npm test", | ||
"test:raw": "ts-node --esm test/index.ts", | ||
"test:raw": "node --loader ts-node/esm test/index.ts", | ||
"dependencies:update-internal": "npm uninstall @json2csv/formatters && npm install @json2csv/formatters", | ||
@@ -52,5 +52,5 @@ "prepublishOnly": "npm run build" | ||
"dependencies": { | ||
"@json2csv/formatters": "^7.0.4", | ||
"@streamparser/json": "^0.0.17" | ||
"@json2csv/formatters": "^7.0.5", | ||
"@streamparser/json": "^0.0.19" | ||
} | ||
} |
type GetIndexedField<T, K> = K extends keyof T | ||
? T[K] | ||
: K extends `${number}` | ||
? 'length' extends keyof T | ||
? number extends T['length'] | ||
? number extends keyof T | ||
? T[number] | ||
? 'length' extends keyof T | ||
? number extends T['length'] | ||
? number extends keyof T | ||
? T[number] | ||
: undefined | ||
: undefined | ||
: undefined | ||
: undefined | ||
: undefined; | ||
: undefined; | ||
@@ -27,16 +27,16 @@ type FieldWithPossiblyUndefined<T, Key> = | ||
: Left extends `${infer FieldKey}[${infer IndexKey}]` | ||
? FieldKey extends keyof T | ||
? FieldWithPossiblyUndefined< | ||
IndexedFieldWithPossiblyUndefined<T[FieldKey], IndexKey>, | ||
Right | ||
> | ||
? FieldKey extends keyof T | ||
? FieldWithPossiblyUndefined< | ||
IndexedFieldWithPossiblyUndefined<T[FieldKey], IndexKey>, | ||
Right | ||
> | ||
: undefined | ||
: undefined | ||
: undefined | ||
: P extends keyof T | ||
? T[P] | ||
: P extends `${infer FieldKey}[${infer IndexKey}]` | ||
? FieldKey extends keyof T | ||
? IndexedFieldWithPossiblyUndefined<T[FieldKey], IndexKey> | ||
: undefined | ||
: IndexedFieldWithPossiblyUndefined<T, P>; | ||
? T[P] | ||
: P extends `${infer FieldKey}[${infer IndexKey}]` | ||
? FieldKey extends keyof T | ||
? IndexedFieldWithPossiblyUndefined<T[FieldKey], IndexKey> | ||
: undefined | ||
: IndexedFieldWithPossiblyUndefined<T, P>; | ||
@@ -43,0 +43,0 @@ type PropertyName = string | number | symbol; |
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
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
210331
+ Added@streamparser/json@0.0.19(transitive)
- Removed@streamparser/json@0.0.17(transitive)
Updated@json2csv/formatters@^7.0.5
Updated@streamparser/json@^0.0.19