ts-ioc-container 27.4.2 → 27.4.4
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/README.md +1 -1
- package/cjm/utils.js +1 -3
- package/esm/utils.js +1 -3
- package/package.json +2 -2
- package/typings/utils.d.ts +1 -1
package/README.md
CHANGED
package/cjm/utils.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.constant = exports.fillEmptyIndexes = exports.pipe = void 0;
|
|
4
|
-
|
|
5
|
-
return (value) => mappers.reduce((acc, current) => current(acc), value);
|
|
6
|
-
}
|
|
4
|
+
const pipe = (...mappers) => (value) => mappers.reduce((acc, current) => current(acc), value);
|
|
7
5
|
exports.pipe = pipe;
|
|
8
6
|
function fillEmptyIndexes(baseArr, insertArr) {
|
|
9
7
|
const a = [...baseArr];
|
package/esm/utils.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
return (value) => mappers.reduce((acc, current) => current(acc), value);
|
|
3
|
-
}
|
|
1
|
+
export const pipe = (...mappers) => (value) => mappers.reduce((acc, current) => current(acc), value);
|
|
4
2
|
export function fillEmptyIndexes(baseArr, insertArr) {
|
|
5
3
|
const a = [...baseArr];
|
|
6
4
|
const b = [...insertArr];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-ioc-container",
|
|
3
|
-
"version": "27.4.
|
|
3
|
+
"version": "27.4.4",
|
|
4
4
|
"description": "Typescript IoC container",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"ts-node": "^10.9.1",
|
|
61
61
|
"typescript": "4.4.3"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "f178a0aa482463f2433c3252b6c44ab295d2656f"
|
|
64
64
|
}
|
package/typings/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare type constructor<T> = new (...args: any[]) => T;
|
|
2
2
|
export declare type MapFn<T> = (value: T) => T;
|
|
3
|
-
export declare
|
|
3
|
+
export declare const pipe: <T>(...mappers: MapFn<T>[]) => MapFn<T>;
|
|
4
4
|
export declare function fillEmptyIndexes<T>(baseArr: (T | undefined)[], insertArr: T[]): T[];
|
|
5
5
|
export declare const constant: <T>(value: T) => () => T;
|