@equinor/fusion-framework-module
Advanced tools
Comparing version 4.2.3 to 4.2.4
# Change Log | ||
## 4.2.4 | ||
### Patch Changes | ||
- [`9076a498`](https://github.com/equinor/fusion-framework/commit/9076a49876e7a414a27557b7fb9095a67fe3a57f) Thanks [@odinr](https://github.com/odinr)! - replace `scan` + `last` whith `reduce` in `BaseConfigBuilder._buildConfig` | ||
## 4.2.3 | ||
@@ -4,0 +10,0 @@ |
@@ -17,3 +17,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { from, lastValueFrom, of } from 'rxjs'; | ||
import { last, mergeMap, scan } from 'rxjs/operators'; | ||
import { mergeMap, reduce } from 'rxjs/operators'; | ||
const assignConfigValue = (obj, prop, value) => { | ||
@@ -53,3 +53,3 @@ var _a; | ||
return { target, value }; | ||
})), scan((acc, { target, value }) => assignConfigValue(acc, target, value), initial !== null && initial !== void 0 ? initial : {}), last()); | ||
})), reduce((acc, { target, value }) => assignConfigValue(acc, target, value), initial !== null && initial !== void 0 ? initial : {})); | ||
} | ||
@@ -56,0 +56,0 @@ _processConfig(config, _init) { |
@@ -1,2 +0,2 @@ | ||
export const version = '4.2.3'; | ||
export const version = '4.2.4'; | ||
//# sourceMappingURL=version.js.map |
@@ -1,1 +0,1 @@ | ||
export declare const version = "4.2.3"; | ||
export declare const version = "4.2.4"; |
{ | ||
"name": "@equinor/fusion-framework-module", | ||
"version": "4.2.3", | ||
"version": "4.2.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/esm/index.js", |
import { from, lastValueFrom, of, type Observable, type ObservableInput } from 'rxjs'; | ||
import { last, mergeMap, scan } from 'rxjs/operators'; | ||
import { mergeMap, reduce } from 'rxjs/operators'; | ||
import { Modules, ModuleType } from './types'; | ||
@@ -180,7 +180,6 @@ | ||
}), | ||
scan( | ||
reduce( | ||
(acc, { target, value }) => assignConfigValue(acc, target, value), | ||
initial ?? ({} as TConfig), | ||
), | ||
last(), | ||
); | ||
@@ -187,0 +186,0 @@ } |
// Generated by genversion. | ||
export const version = '4.2.3'; | ||
export const version = '4.2.4'; |
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
174973
1469