@thi.ng/transducers
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="1.0.2"></a> | ||
## [1.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@1.0.1...@thi.ng/transducers@1.0.2) (2018-01-29) | ||
### Performance Improvements | ||
* **transducers:** avoid result object cloning in struct() xform ([d774e32](https://github.com/thi-ng/umbrella/commit/d774e32)) | ||
<a name="1.0.1"></a> | ||
@@ -8,0 +19,0 @@ ## [1.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@1.0.0...@thi.ng/transducers@1.0.1) (2018-01-29) |
{ | ||
"name": "@thi.ng/transducers", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Lightweight transducer implementations for ES6 / TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -34,4 +34,4 @@ "use strict"; | ||
function struct(fields) { | ||
return comp_1.comp(partition_of_1.partitionOf(fields.map((f) => f[1])), partition_1.partition(fields.length), rename_1.rename(fields.reduce((acc, f, i) => (acc[f[0]] = i, acc), {})), map_keys_1.mapKeys(fields.reduce((acc, f) => (f[2] ? (acc[f[0]] = f[2], acc) : acc), {}))); | ||
return comp_1.comp(partition_of_1.partitionOf(fields.map((f) => f[1])), partition_1.partition(fields.length), rename_1.rename(fields.reduce((acc, f, i) => (acc[f[0]] = i, acc), {})), map_keys_1.mapKeys(fields.reduce((acc, f) => (f[2] ? (acc[f[0]] = f[2], acc) : acc), {}), false)); | ||
} | ||
exports.struct = struct; |
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
136354